Adding and subtracting polynomials in one variable. Multiplying polynomials in one variable
🖨 Print a self-study sheet Why print?
Mr Hùng's garden is a rectangle m wide and m long, so its area is m². He wants to enlarge it: m more on the width and m more on the length. By how many square metres does the area increase? What about a garden of different size: is there one way of working it out for every garden?
For these particular measurements the answer is easy: (m²). But if we want a formula that works for every width, we need to write the area with a letter, then add, subtract and multiply expressions containing that letter. That is what this lesson is about, and it is the first step in "doing arithmetic with letters" just as you do with numbers.
Adding and subtracting polynomials
Explore: combine things of the same kind
Let and . To add them we combine terms of the same kind: and , so . To subtract: . We check with a number: put , so and . We have and . The results agree; this is a quick check you can use whenever you calculate with polynomials.
Why? Subtraction is adding the opposite: , and the opposite of a polynomial is the polynomial with every term's sign changed. For example . As for combining , that is the distributive property: 2x+x=(2+1)x.
When the polynomials have many terms, we can line up like terms in columns, writing 0 where a term is missing.
Multiplying polynomials
When multiplying, there are two things to remember: how to multiply powers of the same variable, and the distributive property of multiplication over addition.
Why is x^2\cdot x^3=x^5? Because x^2=x\cdot x and x^3=x\cdot x\cdot x, so x^2\cdot x^3 has exactly 2+3=5 factors of x. In general, x^m\cdot x^n=x^{m+n}: we add the exponents, while the coefficients are multiplied.
Explore: multiplying two binomials with numbers
Try (x+2)(x+3) when x=10. The product is 12\cdot13=156. On the other hand, if we expand to x^2+5x+6 and put x=10 we get 100+50+6=156, which is equal. You can see that 5x comes from 2x+3x and 6 comes from 2\cdot3: every term of the first factor is multiplied by every term of the second factor.
Now we answer the question about the garden, going through all four steps. The figure shows the original garden (the smaller rectangle) and the part added.
Connections. Adding and subtracting polynomials is combining like terms, which you did with rational numbers, and multiplying polynomials is the distributive property extended. These two operations are used straight away in the next lesson, when we divide polynomials and use multiplication to check the result. As for Mr Hùng's garden: the area increases by 4x+14, and 54 m² corresponds to x=10.
Key terms
Summary
- Adding polynomials: remove the brackets, combine like terms, add the coefficients.
- Subtracting polynomials: change the sign of every term of the polynomial being subtracted, then combine.
- x^m\cdot x^n=x^{m+n}: when multiplying, multiply the coefficients and add the exponents.
- A(B+C)=AB+AC; to multiply two polynomials, multiply each term by each term, then combine.
- You can check a result by substituting a particular value of the variable, such as x=1 or x=10.
Practice
Each exercise comes with what you need and some steps to start. Try it yourself first, then open the solution.
Let A=4x^2-3x+7 and B=x^2+5x-2. Find A+B and A-B.
What you need: to add, combine like terms; to subtract, change the sign of every term of B.
Steps:
- Combine 4x^2+x^2, -3x+5x and 7-2.
- For A-B, write -x^2-5x+2 after removing the brackets.
Show solution
To add or subtract two polynomials, we remove the brackets and group the like terms (terms of the same degree).
We have A+B=(4x^2+x^2)+(-3x+5x)+(7-2)=5x^2+2x+5.
We have \begin{aligned}A-B&=4x^2-3x+7-x^2-5x+2\\&=(4x^2-x^2)+(-3x-5x)+(7+2)\\&=3x^2-8x+9.\end{aligned}
So A+B=5x^2+2x+5 and A-B=3x^2-8x+9.
Answer. A+B=5x^2+2x+5; A-B=3x^2-8x+9.
Let A=2x^3-x+5 and B=-3x^3+x^2+4x-1. Find A+B and A-B.
What you need: the polynomial A has no x^2 term; you can write A=2x^3+0x^2-x+5 to line up the columns.
Steps:
- Combine by powers: x^3, x^2, x and the constant term.
- When subtracting, change the sign of all four terms of B.
Show solution
We remove the brackets and group the like terms.
We have A+B=(2x^3-3x^3)+x^2+(-x+4x)+(5-1)=-x^3+x^2+3x+4.
When subtracting B, we change the sign of every term of B (because of the minus sign in front of the bracket), so \begin{aligned}A-B&=2x^3-x+5+3x^3-x^2-4x+1\\&=(2x^3+3x^3)-x^2+(-x-4x)+(5+1)\\&=5x^3-x^2-5x+6.\end{aligned}
So A+B=-x^3+x^2+3x+4 and A-B=5x^3-x^2-5x+6.
Answer. A+B=-x^3+x^2+3x+4; A-B=5x^3-x^2-5x+6.
(Revision of the lesson on the value of a polynomial.) Let A=x^2-2x+3 and B=2x^2+x-5.
a) Find A-B.
b) Find the value of A-B at x=1.
What you need: subtract by changing the sign of every term of B; the value at x=1 is the sum of the coefficients.
Steps:
- a) Write A-B=x^2-2x+3-2x^2-x+5.
- b) Substitute x=1 into the polynomial you found.
Show solution
a) We have A-B=x^2-2x+3-2x^2-x+5=(x^2-2x^2)+(-2x-x)+(3+5)=-x^2-3x+8.
b) Substituting x=1, we get -1-3+8=4. Check: A(1)=1-2+3=2, B(1)=2+1-5=-2 and 2-(-2)=4.
So a) A-B=-x^2-3x+8; b) the value at x=1 is 4.
Answer. a) -x^2-3x+8; b) 4.
Find the polynomial M, given that M+(x^2-3x)=2x^2+x-4.
What you need: from M+C=D we get M=D-C.
Steps:
- Write M=(2x^2+x-4)-(x^2-3x).
- Remove the brackets, change the signs of the two terms in the second bracket, then combine.
Show solution
To find an unknown term in a sum, we subtract the known term from the sum. From M+(x^2-3x)=2x^2+x-4 we get M=(2x^2+x-4)-(x^2-3x).
Removing the brackets (changing the signs of the terms in the bracket with a minus sign in front), we get \begin{aligned}M&=2x^2+x-4-x^2+3x\\&=(2x^2-x^2)+(x+3x)-4\\&=x^2+4x-4.\end{aligned}
Check: (x^2+4x-4)+(x^2-3x)=2x^2+x-4, as required.
So M=x^2+4x-4.
Answer. M=x^2+4x-4.
Work out the following products:
a) (-2x^2)\cdot(3x^4).
b) 3x\cdot(2x^2-x+4).
What you need: ax^m\cdot bx^n=ab\,x^{m+n} and A(B+C)=AB+AC.
Steps:
- a) Multiply the coefficients -2 and 3, add the exponents 2+4.
- b) Multiply 3x by each term in the brackets; do not miss the last term.
Show solution
a) We multiply the coefficients and multiply the powers of x. We have (-2)\cdot3=-6 and x^2\cdot x^4=x^{2+4}=x^6. Hence (-2x^2)\cdot(3x^4)=-6x^6.
b) By the distributive property, we have \begin{aligned}3x\cdot(2x^2-x+4)&=3x\cdot2x^2+3x\cdot(-x)+3x\cdot4\\&=6x^3-3x^2+12x.\end{aligned}
So a) the product is -6x^6; b) the product is 6x^3-3x^2+12x.
Answer. a) -6x^6; b) 6x^3-3x^2+12x.
Work out:
a) (x-2)(x^2+2x+4).
b) (2x+3)(x-1).
What you need: multiply each term of one polynomial by each term of the other, then combine like terms.
Steps:
- a) There are 6 products; two pairs of terms will cancel.
- b) There are 4 products; combine -2x and 3x.
Show solution
To multiply two polynomials, we multiply each term of one polynomial by every term of the other and add the products.
a) We have (x-2)(x^2+2x+4)=x^3+2x^2+4x-2x^2-4x-8.
Combining like terms: x^3+(2x^2-2x^2)+(4x-4x)-8=x^3-8.
b) We have (2x+3)(x-1)=2x^2-2x+3x-3=2x^2+x-3.
So a) the result is x^3-8; b) the result is 2x^2+x-3.
Answer. a) x^3-8; b) 2x^2+x-3.
Show that the value of the expression (x+4)(x-1)-(x^2+3x) does not depend on the value of x.
What you need: if after simplifying the expression is just a number, then its value never changes.
Steps:
- Expand (x+4)(x-1).
- Subtract x^2+3x by changing the sign of both terms.
Show solution
We simplify the expression; if the result is a constant, then the value of the expression does not depend on x.
First, we have (x+4)(x-1)=x^2-x+4x-4=x^2+3x-4.
Hence \begin{aligned}(x+4)(x-1)-(x^2+3x)&=x^2+3x-4-x^2-3x\\&=(x^2-x^2)+(3x-3x)-4\\&=-4.\end{aligned}
The expression always equals -4 for every value of x.
So the value of the expression (x+4)(x-1)-(x^2+3x) does not depend on the value of x.
Answer. The expression always equals -4.
Suppose a bakery sells x hundred cakes and takes in 9x (million đồng), while its production cost is x^2+x+4 (million đồng). Profit equals revenue minus cost.
a) Write the polynomial L(x) for the profit.
b) Find the profit when x=5.
What you need: L(x)=9x-(x^2+x+4); removing the brackets means changing the sign of all three terms.
Steps:
- a) Remove the brackets, then combine 9x-x.
- b) Substitute x=5 into L(x) and compare with 9\cdot5-(25+5+4).
Show solution
a) We have L(x)=9x-(x^2+x+4)=9x-x^2-x-4=-x^2+8x-4.
b) Substituting x=5, we get L(5)=-25+40-4=11. Check: the revenue is 9\cdot5=45, the cost is 25+5+4=34 and 45-34=11.
So a) L(x)=-x^2+8x-4 (million đồng); b) selling 5 hundred cakes gives a profit of 11 million đồng.
Answer. a) -x^2+8x-4; b) 11 million đồng.
A gift box is a cuboid whose base is x (cm) wide, whose base length is 4 cm more than the width and whose height is 3 cm.
a) Write a polynomial for the volume of the box.
b) Find the volume when x=5.
What you need: volume equals width times length times height.
Steps:
- a) The base length is x+4; write V=x(x+4)\cdot3 and multiply out.
- b) Substitute x=5.
Show solution
a) The base length is x+4 (cm). The volume of the box is V=x(x+4)\cdot3=3x(x+4)=3x^2+12x (cm³).
b) Substituting x=5, we get V=3\cdot25+12\cdot5=75+60=135 (cm³). Check: 5\cdot9\cdot3=135.
So a) V=3x^2+12x (cm³); b) when x=5 the volume is 135 cm³.
Answer. a) 3x^2+12x; b) 135 cm³.
Prove that (x+1)(x^2-x+1)=x^3+1. Then, by putting x=10, find the product 11\cdot91 quickly.
What you need: multiply the two polynomials and combine like terms; note that x^2-x+1 at x=10 equals 91.
Steps:
- Expand the left-hand side: six products.
- Put x=10 in both sides: x+1=11 and x^2-x+1=91.
Show solution
First we transform the left-hand side. We have (x+1)(x^2-x+1)=x^3-x^2+x+x^2-x+1.
Combining like terms: x^3+(-x^2+x^2)+(x-x)+1=x^3+1.
So (x+1)(x^2-x+1)=x^3+1.
Now we put x=10 into the identity we have just proved. Then x+1=11 and x^2-x+1=100-10+1=91, while the right-hand side equals 10^3+1=1001. Hence 11\cdot91=10^3+1=1001.
So 11\cdot91=1001.
Answer. 11\cdot91=1001.
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
2x^2+3x-x^2+5x=x^2+8x. A forgets to change the sign of -5x; B and D are results of adding (with sign errors).
Multiply the coefficients -2\cdot4=-8 and add the exponents 3+2=5. A has the wrong sign, B multiplies the exponents (3\cdot2) and then adds to get 6, and C adds the two coefficients.
x^2-3x+2x-6=x^2-x-6. A leaves out the cross products, C has the wrong sign for the x term and D adds -3x-2x by mistake.
M=(2x^2+x-4)-(x^2-3x)=x^2+4x-4. B forgets to change the sign of -3x, C adds instead of subtracting and D has the wrong sign for the constant term.
Part II. True or false
| a) A-B=3x+1. | ||
| b) A+B=2x^2+x-5. | ||
| c) The polynomial A-B has degree 1. | ||
| d) x=\dfrac13 is a root of the polynomial A-B. |
a) False: A-B=x^2+2x-3-x^2+x+2=3x-1. b) True: 2x^2+x-5. c) True: 3x-1 has degree 1. d) True: 3\cdot\dfrac13-1=0.
Part III. Short answer
The expression equals x^2+x-6-x^2=x-6; at x=4 it is -2.
(x+2)(3x^2-x+1)=3x^3+5x^2-x+2, where 5x^2 comes from -x^2+6x^2.
Show answers and explanations
- Part I, question 1: C. 2x^2+3x-x^2+5x=x^2+8x. A forgets to change the sign of -5x; B and D are results of adding (with sign errors).
- Part I, question 2: D. Multiply the coefficients -2\cdot4=-8 and add the exponents 3+2=5. A has the wrong sign, B multiplies the exponents (3\cdot2) and then adds to get 6, and C adds the two coefficients.
- Part I, question 3: A. x^2-3x+2x-6=x^2-x-6. A leaves out the cross products, C has the wrong sign for the x term and D adds -3x-2x by mistake.
- Part I, question 4: B. M=(2x^2+x-4)-(x^2-3x)=x^2+4x-4. B forgets to change the sign of -3x, C adds instead of subtracting and D has the wrong sign for the constant term.
- Part II, question 1: a) False; b) True; c) True; d) True. a) False: A-B=x^2+2x-3-x^2+x+2=3x-1. b) True: 2x^2+x-5. c) True: 3x-1 has degree 1. d) True: 3\cdot\dfrac13-1=0.
- Part III, question 1: -2. The expression equals x^2+x-6-x^2=x-6; at x=4 it is -2.
- Part III, question 2: 5. (x+2)(3x^2-x+1)=3x^3+5x^2-x+2, where 5x^2 comes from -x^2+6x^2.