Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Polynomials. Adding and subtracting polynomials

Lesson 1.2 · 30 min read · Updated

Suppose a notebook costs 12 00012\,000 dong and a pen costs 5 0005\,000 dong. Class 8A buys xx notebooks and yy pens, so it pays 12 000x+5 000y12\,000x+5\,000y (dong). Class 8B buys 33 more notebooks and 22 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 12 000x+5 000y12\,000x+5\,000y. 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?
77 yes (just a number)
−4x-4x yes
3x2y3x^2y yes
x2y3x^2y^3 yes
2x+y2x+y no (it contains an addition)

The first four are a single "block" of factors multiplied together, while 2x+y2x+y is two blocks added. We give these blocks a name.

For example, the monomial −4x2y3-4x^2y^3 has coefficient −4-4, variable part x2y3x^2y^3 and degree 2+3=52+3=5. The coefficient of xx is 11, and that of −y-y is −1-1.

Two monomials with the same variable part (and non-zero coefficients) are called like terms, for example 3x2y3x^2y 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:

  1. Write the two polynomials joined by + or - (put brackets around the second one).
  2. Remove the brackets using the rule above.
  3. 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.

Exercise 1

Find the coefficient and the degree of each monomial:

a) 6x^3y^2.

b) -x^2yz.

c) 15.

What you need and how to start

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:

  1. Write the monomial as "number times variable part".
  2. 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.

Exercise 2

Simplify the polynomial Q=4x^2y-3xy+2x^2y+5xy-7 and find its degree.

What you need and how to start

What you need: add the like terms; the degree is found after simplifying.

Steps:

  1. Group the terms containing x^2y and the terms containing xy.
  2. 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.

Exercise 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 and how to start

What you need: two monomials are like terms when they have the same variable part.

Steps:

  1. Find the monomials with the same variable part.
  2. 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.

Exercise 4

Let A=2x^2-3x+5 and B=-x^2+4x-1. Find A+B and A-B.

What you need and how to start

What you need: A-B=A+(-B); when removing a bracket with a - sign, change the signs.

Steps:

  1. Write A+B and collect like terms.
  2. 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.

Exercise 5

Let M=x^2+2xy-y^2 and N=3x^2-xy+2y^2. Find M+N and M-N.

What you need and how to start

What you need: adding and subtracting polynomials in two variables works just as for one variable.

Steps:

  1. Add the terms with the same variable part x^2, xy, y^2.
  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.

Exercise 6

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 and how to start

What you need: perimeter of a rectangle =2\cdot(length + width).

Steps:

  1. Add the length and the width.
  2. 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.

Exercise 7

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 and how to start

What you need: takings = price \times quantity; adding and subtracting polynomials.

Steps:

  1. Write each day's takings as a polynomial and simplify.
  2. 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.

Exercise 8

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 and how to start

What you need: P_{\text{lat}}=2(a+b)c, where a, b are the base sides and c is the height.

Steps:

  1. Add the length and width of the base.
  2. 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.

Exercise 9

Find the polynomial C such that C+(x^2-2xy)=3x^2+xy-y^2.

What you need and how to start

What you need: if C+B=A then C=A-B.

Steps:

  1. Write C=(3x^2+xy-y^2)-(x^2-2xy).
  2. 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.

Exercise 10 Challenge

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 and how to start

What you need: simplify the polynomial; if every term containing a variable cancels, only a number remains.

Steps:

  1. Remove the brackets, changing signs in the third bracket.
  2. 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

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

Question 1. The degree of the monomial -3x^2y^3z is
Question 2. Simplifying 5x^2y-2xy^2+x^2y+3xy^2 gives
Question 3. The sum (2x^2-3x+1)+(x^2+5x-4) equals
Question 4. The difference (x^2-3xy)-(2x^2-xy+y^2) equals

Part II. True or false

Question 1. Let P=4x^2y-3xy^2+2x^2y+xy^2-5.
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.

Part III. Short answer

Question 1. Let A=2x^2-3xy+y^2 and B=x^2+xy-2y^2. Find the value of A-B at x=2, y=1.

Question 2. Find the value of (x^2y+3xy-2)+(2x^2y-xy+5) at x=1, y=2.

Show answers and explanations
  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. Part III, question 1: -1. A-B=x^2-4xy+3y^2. At x=2, y=1: 4-8+3=-1.
  7. Part III, question 2: 13. The expression equals 3x^2y+2xy+3. At x=1, y=2: 6+4+3=13.
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email