Polynomials. Adding and subtracting polynomials
🖨 Print a self-study sheet Why print?
Suppose a notebook costs dong and a pen costs dong. Class 8A buys notebooks and pens, so it pays (dong). Class 8B buys more notebooks and fewer pens than class 8A.
How much do the two classes pay altogether? Which class pays more, and by how much? To answer, we need to add and subtract expressions such as . These are polynomials, the main tool of algebra from this year onwards.
Monomials and polynomials
Explore: which expressions are a single "block"?
Let us look at some expressions and ask: which ones are just a number, a variable, or a product of numbers and variables?
| Expression | Product of numbers and variables? |
|---|---|
| yes (just a number) | |
| yes | |
| yes | |
| yes | |
| no (it contains an addition) |
The first four are a single "block" of factors multiplied together, while is two blocks added. We give these blocks a name.
For example, the monomial has coefficient , variable part and degree . The coefficient of is , and that of is .
Two monomials with the same variable part (and non-zero coefficients) are called like terms, for example and -5x^2y. We add like terms by adding the coefficients and keeping the variable part, because by the distributive property 3x^2y+5x^2y=(3+5)x^2y=8x^2y. But x^2y and xy^2 are not like terms, since their variable parts are different.
Going deeper. A polynomial is several monomial blocks joined together. A monomial is itself a polynomial (with one term). To find the degree of a polynomial we must simplify it first, because terms of high degree may cancel each other.
Adding and subtracting polynomials
To add two polynomials, write them one after the other with a + sign, then simplify. For subtraction we must watch the brackets.
Why? Subtraction is adding the opposite: A-B=A+(-B), and the opposite of a sum is the sum of the opposites. With numbers: 10-(3-1)=10-2=8 and 10-3+1=8, whereas 10-3-1=6 is wrong.
The steps for adding or subtracting two polynomials:
- Write the two polynomials joined by + or - (put brackets around the second one).
- Remove the brackets using the rule above.
- Collect the like terms and add their coefficients.
Examples
We begin by recognising monomials.
Next we simplify a polynomial and find its degree.
Now we add two polynomials.
For subtraction we must change signs carefully.
Now we return to the notebook and pen problem from the start.
Connections. Polynomials build on the expressions with letters and powers that you met in Year 7. Adding and subtracting polynomials is the basis for multiplying polynomials, identities and factorising in the next lessons, and polynomials in one variable will return when you study functions.
Key terms
Summary
- A monomial is a number, a variable, or a product of numbers and variables; its degree is the sum of the exponents.
- Like terms (same variable part) are added by adding coefficients: 3x^2y+5x^2y=8x^2y.
- A polynomial is a sum of monomials; its degree is found after simplifying.
- To add polynomials: remove the brackets, collect like terms, add the coefficients.
- To subtract polynomials: A-B=A+(-B); when removing a bracket with a - sign, change the sign of every term.
Practice
Each exercise has the knowledge you need and the steps. Try it yourself first, then open the solution.
Find the coefficient and the degree of each monomial:
a) 6x^3y^2.
b) -x^2yz.
c) 15.
What you need: the degree of a monomial is the sum of the exponents of its variables; a non-zero number has degree 0.
Steps:
- Write the monomial as "number times variable part".
- Add the exponents.
Show solution
a) Coefficient 6, degree 3+2=5.
b) Coefficient -1, degree 2+1+1=4.
c) Coefficient 15, degree 0.
So a) 6 and 5; b) -1 and 4; c) 15 and 0.
Answer. a) 6; 5. b) -1; 4. c) 15; 0.
Simplify the polynomial Q=4x^2y-3xy+2x^2y+5xy-7 and find its degree.
What you need: add the like terms; the degree is found after simplifying.
Steps:
- Group the terms containing x^2y and the terms containing xy.
- Add the coefficients, then find the highest degree.
Show solution
To simplify the polynomial, we group the like terms and add their coefficients.
We have \begin{aligned}Q&=(4x^2y+2x^2y)+(-3xy+5xy)-7\\&=6x^2y+2xy-7.\end{aligned}
The degree of a polynomial is the highest degree of its terms. The term 6x^2y has degree 2+1=3; the term 2xy has degree 2; the term -7 has degree 0. Hence the degree of Q is 3.
So Q=6x^2y+2xy-7 and the degree of Q is 3.
Answer. Q=6x^2y+2xy-7; degree 3.
Consider the monomials 2x^2y, -3xy^2, 5x^2y, xy^2, 7x^2. Group the like terms and find the sum of each group.
What you need: two monomials are like terms when they have the same variable part.
Steps:
- Find the monomials with the same variable part.
- Add the coefficients within each group.
Show solution
The group with variable part x^2y is 2x^2y and 5x^2y, with sum 7x^2y.
The group with variable part xy^2 is -3xy^2 and xy^2, with sum (-3+1)xy^2=-2xy^2. The monomial 7x^2 is not like any other.
So the sums of the two groups are 7x^2y and -2xy^2.
Answer. 7x^2y; -2xy^2.
Let A=2x^2-3x+5 and B=-x^2+4x-1. Find A+B and A-B.
What you need: A-B=A+(-B); when removing a bracket with a - sign, change the signs.
Steps:
- Write A+B and collect like terms.
- Write A-B, change the signs of the terms of B, then collect.
Show solution
To add two polynomials, we remove the brackets and group the like terms. \begin{aligned}A+B&=(2x^2-3x+5)+(-x^2+4x-1)\\&=(2x^2-x^2)+(-3x+4x)+(5-1)\\&=x^2+x+4.\end{aligned}
To subtract, when removing brackets preceded by a minus sign we change the sign of every term inside. \begin{aligned}A-B&=(2x^2-3x+5)-(-x^2+4x-1)\\&=2x^2-3x+5+x^2-4x+1\\&=(2x^2+x^2)+(-3x-4x)+(5+1)\\&=3x^2-7x+6.\end{aligned}
So A+B=x^2+x+4 and A-B=3x^2-7x+6.
Answer. x^2+x+4; 3x^2-7x+6.
Let M=x^2+2xy-y^2 and N=3x^2-xy+2y^2. Find M+N and M-N.
What you need: adding and subtracting polynomials in two variables works just as for one variable.
Steps:
- Add the terms with the same variable part x^2, xy, y^2.
- For M-N, change the signs of the terms of N.
Show solution
To add two polynomials, we remove the brackets and group the like terms. \begin{aligned}M+N&=(x^2+2xy-y^2)+(3x^2-xy+2y^2)\\&=(x^2+3x^2)+(2xy-xy)+(-y^2+2y^2)\\&=4x^2+xy+y^2.\end{aligned}
To subtract, brackets preceded by a minus sign are removed by changing the sign of every term inside. \begin{aligned}M-N&=(x^2+2xy-y^2)-(3x^2-xy+2y^2)\\&=x^2+2xy-y^2-3x^2+xy-2y^2\\&=(x^2-3x^2)+(2xy+xy)+(-y^2-2y^2)\\&=-2x^2+3xy-3y^2.\end{aligned}
So M+N=4x^2+xy+y^2 and M-N=-2x^2+3xy-3y^2.
Answer. 4x^2+xy+y^2; -2x^2+3xy-3y^2.
A rectangular garden has length (3x+2) m and width (2x-1) m (x>\dfrac12). Write a polynomial for the perimeter of the garden, then find the perimeter when x=5.
What you need: perimeter of a rectangle =2\cdot(length + width).
Steps:
- Add the length and the width.
- Multiply by 2, then substitute x=5.
Show solution
The semi-perimeter is (3x+2)+(2x-1)=5x+1 (m). The perimeter is 2(5x+1)=10x+2 (m).
When x=5, the perimeter is 10\cdot5+2=52 (m). (Check: length 17 m, width 9 m, 2(17+9)=52.)
So the perimeter is 10x+2 (m), which equals 52 m when x=5.
Answer. 10x+2 (m); 52 m.
A shop sells shirts at 150 thousand dong and trousers at 200 thousand dong (suppose). On the first day it sells x shirts and y pairs of trousers. On the second day it sells 5 more shirts and 3 fewer pairs of trousers than on the first day. Write polynomials for the total takings over the two days and for how much more the second day takes than the first (in thousand dong).
What you need: takings = price \times quantity; adding and subtracting polynomials.
Steps:
- Write each day's takings as a polynomial and simplify.
- Find the sum and the difference.
Show solution
The first day's takings are D_1=150x+200y. On the second day it sells x+5 shirts and y-3 pairs of trousers, so D_2=150(x+5)+200(y-3)=150x+200y+150.
The sum is D_1+D_2=300x+400y+150. The difference is D_2-D_1=150.
So the total takings are 300x+400y+150 (thousand dong), and the second day takes 150 thousand dong more than the first.
Answer. 300x+400y+150; 150 thousand dong.
Recall the lesson on cuboids. A cuboid has a base of length (x+3) cm and width x cm, and height 5 cm. Write a polynomial for the lateral surface area, then find it when x=4.
What you need: P_{\text{lat}}=2(a+b)c, where a, b are the base sides and c is the height.
Steps:
- Add the length and width of the base.
- Multiply by 2\cdot5, then substitute x=4.
Show solution
Let a (cm) be the length and b (cm) the width of the base, so a=x+3 and b=x (with x>0), and the height is h=5 cm.
The lateral surface area of a cuboid is S=2(a+b)h. We have a+b=(x+3)+x=2x+3.
Substituting into the formula, we get S=2(2x+3)\cdot5=10(2x+3)=20x+30\ (\text{cm}^2).
When x=4 (which satisfies x>0), we have S=20\cdot4+30=110\ (\text{cm}^2).
Check: when x=4 we have a=7, b=4 and 2(7+4)\cdot5=110 (cm^2).
So the lateral surface area is 20x+30\ (\text{cm}^2), which equals 110\ \text{cm}^2 when x=4.
Answer. 20x+30; 110\ \text{cm}^2.
Find the polynomial C such that C+(x^2-2xy)=3x^2+xy-y^2.
What you need: if C+B=A then C=A-B.
Steps:
- Write C=(3x^2+xy-y^2)-(x^2-2xy).
- Remove the brackets (changing signs), then simplify.
Show solution
From C+(x^2-2xy)=3x^2+xy-y^2, to find C we subtract the known term from the sum: C=(3x^2+xy-y^2)-(x^2-2xy).
Removing the brackets preceded by a minus sign (changing the sign of every term inside) and grouping like terms: \begin{aligned}C&=3x^2+xy-y^2-x^2+2xy\\&=(3x^2-x^2)+(xy+2xy)-y^2\\&=2x^2+3xy-y^2.\end{aligned}
So C=2x^2+3xy-y^2.
Answer. C=2x^2+3xy-y^2.
Prove that the value of the expression E=(4x^2-3xy+y^2+7)+(-x^2+2xy-3y^2)-(3x^2-xy-2y^2) does not depend on x or y.
What you need: simplify the polynomial; if every term containing a variable cancels, only a number remains.
Steps:
- Remove the brackets, changing signs in the third bracket.
- Group the terms with the same variable part x^2, xy, y^2.
Show solution
We have E=4x^2-3xy+y^2+7-x^2+2xy-3y^2-3x^2+xy+2y^2. Grouping like terms: \begin{aligned} E&=(4x^2-x^2-3x^2)+(-3xy+2xy+xy)+(y^2-3y^2+2y^2)+7\\ &=0+0+0+7=7. \end{aligned} So E=7 for all x, y, and the value of E does not depend on x or y.
Answer. E=7.
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
The degree is the sum of the exponents: 2+3+1=6. A forgets the variable z, B is the coefficient, D is the number of variables.
(5+1)x^2y+(-2+3)xy^2=6x^2y+xy^2. A drops the sign of -2, B forgets the term x^2y, C adds both groups although they are not like terms.
(2+1)x^2+(-3+5)x+(1-4)=3x^2+2x-3. B gets the sign of -3x wrong, C is the difference instead of the sum, D gets the constant term wrong.
x^2-3xy-2x^2+xy-y^2=-x^2-2xy-y^2. A is an addition, C forgets to change the sign of -xy, D forgets to change the sign of 2x^2.
Part II. True or false
| a) The degree of P is 5. | ||
| b) After simplifying, P has 4 terms. | ||
| c) The value of P at x=1, y=1 is -1. | ||
| d) After simplifying, the coefficient of the term containing xy^2 is -2. |
After simplifying, P=6x^2y-2xy^2-5. a) False: the degree is 3. b) False: there are 3 terms. c) True: 6-2-5=-1. d) True: -3+1=-2.
Part III. Short answer
A-B=x^2-4xy+3y^2. At x=2, y=1: 4-8+3=-1.
The expression equals 3x^2y+2xy+3. At x=1, y=2: 6+4+3=13.
Show answers and explanations
- Part I, question 1: C. The degree is the sum of the exponents: 2+3+1=6. A forgets the variable z, B is the coefficient, D is the number of variables.
- Part I, question 2: D. (5+1)x^2y+(-2+3)xy^2=6x^2y+xy^2. A drops the sign of -2, B forgets the term x^2y, C adds both groups although they are not like terms.
- Part I, question 3: A. (2+1)x^2+(-3+5)x+(1-4)=3x^2+2x-3. B gets the sign of -3x wrong, C is the difference instead of the sum, D gets the constant term wrong.
- Part I, question 4: B. x^2-3xy-2x^2+xy-y^2=-x^2-2xy-y^2. A is an addition, C forgets to change the sign of -xy, D forgets to change the sign of 2x^2.
- Part II, question 1: a) False; b) False; c) True; d) True. After simplifying, P=6x^2y-2xy^2-5. a) False: the degree is 3. b) False: there are 3 terms. c) True: 6-2-5=-1. d) True: -3+1=-2.
- Part III, question 1: -1. A-B=x^2-4xy+3y^2. At x=2, y=1: 4-8+3=-1.
- Part III, question 2: 13. The expression equals 3x^2y+2xy+3. At x=1, y=2: 6+4+3=13.