Algebra 1

Adding, subtracting and multiplying polynomials

A polynomial is a sum of terms like 3x2−5x+23x^2 - 5x + 2. To add or subtract polynomials, combine like terms, which have the same variable and the same exponent. When subtracting, change the sign of every term in the second polynomial first. To multiply, multiply every term in the first polynomial by every term in the second, then combine like terms. FOIL is that rule for two binomials.

Updated

The key idea

Words you will see
WordMeaningIn 3x2−5x+23x^2 - 5x + 2
termone piece between plus and minus signs3x23x^2, −5x-5x, 22
coefficientthe number in front of a variable3 and −5-5
like termssame variable with the same exponent3x23x^2 and 7x27x^2 are like; 3x23x^2 and 3x3x are not
degreethe highest exponent2
standard formterms written from highest exponent to lowestalready in standard form

Multiplying uses the distributive property over and over. For two binomials, there are four products:

(a+b)(c+d)=ac+ad+bc+bd(a + b)(c + d) = ac + ad + bc + bd

Three products come up so often that they are worth memorizing:

(a+b)2=a2+2ab+b2(a−b)2=a2−2ab+b2(a+b)(a−b)=a2−b2(a + b)^2 = a^2 + 2ab + b^2 \qquad (a - b)^2 = a^2 - 2ab + b^2 \qquad (a + b)(a - b) = a^2 - b^2

Worked examples

Example 1: subtracting polynomials

Problem Simplify (4x2−3x+7)−(x2+5x−2)(4x^2 - 3x + 7) - (x^2 + 5x - 2).

  1. The minus sign in front of the second group changes the sign of every term inside it.
    (4x2−3x+7)−(x2+5x−2)=4x2−3x+7−x2−5x+2(4x^2 - 3x + 7) - (x^2 + 5x - 2) = 4x^2 - 3x + 7 - x^2 - 5x + 2
  2. Group like terms, then combine them.
    4x2−x2−3x−5x+7+2=3x2−8x+94x^2 - x^2 - 3x - 5x + 7 + 2 = 3x^2 - 8x + 9

Answer 3x2−8x+93x^2 - 8x + 9

Example 2: FOIL

Problem Multiply (2x+3)(x−4)(2x + 3)(x - 4).

  1. First, Outer, Inner, Last: 2x⋅x2x \cdot x, 2x⋅(−4)2x \cdot (-4), 3⋅x3 \cdot x, 3⋅(−4)3 \cdot (-4).
    (2x+3)(x−4)=2x2−8x+3x−12(2x + 3)(x - 4) = 2x^2 - 8x + 3x - 12
  2. Combine the two middle terms.
    2x2−8x+3x−12=2x2−5x−122x^2 - 8x + 3x - 12 = 2x^2 - 5x - 12

Answer 2x2−5x−122x^2 - 5x - 12

Example 3: a binomial times a trinomial

Problem Multiply (x−2)(x2+3x−1)(x - 2)(x^2 + 3x - 1).

  1. FOIL only covers two binomials. Here, multiply each of the 2 terms by each of the 3 terms, so expect 6 products. First the xx, then the −2-2.
    (x−2)(x2+3x−1)=x3+3x2−x−2x2−6x+2(x - 2)(x^2 + 3x - 1) = x^3 + 3x^2 - x - 2x^2 - 6x + 2
  2. Combine like terms and write in standard form.
    x3+3x2−x−2x2−6x+2=x3+x2−7x+2x^3 + 3x^2 - x - 2x^2 - 6x + 2 = x^3 + x^2 - 7x + 2

Answer x3+x2−7x+2x^3 + x^2 - 7x + 2

Example 4 (test-hard): special products together

Problem Simplify (3x−5)2−(3x+5)(3x−5)(3x - 5)^2 - (3x + 5)(3x - 5).

  1. Square of a difference: a=3xa = 3x and b=5b = 5, so a2−2ab+b2a^2 - 2ab + b^2.
    (3x−5)2=9x2−30x+25(3x - 5)^2 = 9x^2 - 30x + 25
  2. Sum times difference: a2−b2a^2 - b^2.
    (3x+5)(3x−5)=9x2−25(3x + 5)(3x - 5) = 9x^2 - 25
  3. Subtract the second result, keeping it in parentheses so both of its signs change.
    9x2−30x+25−(9x2−25)=−30x+509x^2 - 30x + 25 - (9x^2 - 25) = -30x + 50

Answer −30x+50-30x + 50

Common mistakes

  • Squaring a binomial without the middle term. (x+5)2(x + 5)^2 is x2+10x+25x^2 + 10x + 25, not x2+25x^2 + 25. Fix: write it as (x+5)(x+5)(x + 5)(x + 5) and FOIL.
  • Changing only the first sign when subtracting. −(x2+5x−2)-(x^2 + 5x - 2) is −x2−5x+2-x^2 - 5x + 2. All three signs change.
  • Combining unlike terms. 3x2+2x3x^2 + 2x stays as it is. It is not 5x35x^3 or 5x25x^2.
  • Multiplying exponents when you multiply terms. x2⋅x3=x5x^2 \cdot x^3 = x^5. Exponents add when you multiply.
  • Missing a product. A 2-term times a 3-term polynomial has 2×3=62 \times 3 = 6 products before combining. Count them.

Quick methods

Practice

5 practice questions

  1. Simplify (5x2+2x−1)+(3x2−6x+4)(5x^2 + 2x - 1) + (3x^2 - 6x + 4).

    1. 8x2−4x+38x^2 - 4x + 3
    2. 8x4−4x2+38x^4 - 4x^2 + 3
    3. 8x2+8x+38x^2 + 8x + 3
    4. 2x2−4x+32x^2 - 4x + 3
    Show answer

    Answer: 8x2−4x+38x^2 - 4x + 3

    Add like terms: 5x2+3x2=8x25x^2 + 3x^2 = 8x^2, 2x−6x=−4x2x - 6x = -4x, −1+4=3-1 + 4 = 3. Adding never changes exponents, so 8x48x^4 is wrong.

  2. Simplify (3x2−x+2)−(x2−4x+7)(3x^2 - x + 2) - (x^2 - 4x + 7).

    1. 2x2+3x−52x^2 + 3x - 5
    2. 2x2−5x−52x^2 - 5x - 5
    3. 2x2−5x+92x^2 - 5x + 9
    4. 4x2−5x+94x^2 - 5x + 9
    Show answer

    Answer: 2x2+3x−52x^2 + 3x - 5

    Change every sign in the second group: 3x2−x+2−x2+4x−73x^2 - x + 2 - x^2 + 4x - 7. Combine: 2x2+3x−52x^2 + 3x - 5. The choices with −5x-5x did not flip the sign of −4x-4x, and +9+9 did not flip the sign of 7.

  3. Multiply (x+6)(x−2)(x + 6)(x - 2).

    1. x2−12x^2 - 12
    2. x2+4x−12x^2 + 4x - 12
    3. x2−4x−12x^2 - 4x - 12
    4. x2+8x−12x^2 + 8x - 12
    Show answer

    Answer: x2+4x−12x^2 + 4x - 12

    FOIL: x2−2x+6x−12=x2+4x−12x^2 - 2x + 6x - 12 = x^2 + 4x - 12. The choice x2−12x^2 - 12 multiplies only first and last terms and skips the middle.

  4. Expand (2x+7)2(2x + 7)^2.

    1. 4x2+494x^2 + 49
    2. 2x2+28x+492x^2 + 28x + 49
    3. 4x2+14x+494x^2 + 14x + 49
    4. 4x2+28x+494x^2 + 28x + 49
    Show answer

    Answer: 4x2+28x+494x^2 + 28x + 49

    Use a2+2ab+b2a^2 + 2ab + b^2 with a=2xa = 2x and b=7b = 7: 4x2+2(2x)(7)+49=4x2+28x+494x^2 + 2(2x)(7) + 49 = 4x^2 + 28x + 49. The choice with 14x14x forgot the 2 in 2ab2ab, and 4x2+494x^2 + 49 has no middle term at all.

  5. Multiply (4x−3)(4x+3)(4x - 3)(4x + 3).

    1. 16x2−916x^2 - 9
    2. 16x2+916x^2 + 9
    3. 16x2−24x−916x^2 - 24x - 9
    4. 8x2−98x^2 - 9
    Show answer

    Answer: 16x2−916x^2 - 9

    This is (a−b)(a+b)=a2−b2(a - b)(a + b) = a^2 - b^2. The middle terms 12x12x and −12x-12x cancel, leaving 16x2−916x^2 - 9. The choice 8x28x^2 doubles 4x4x instead of squaring it.

Frequently asked questions

What does FOIL mean?

FOIL stands for First, Outer, Inner, Last: the four products you get when multiplying two binomials like (2x+3)(x−4)(2x + 3)(x - 4). It is just the distributive property in a fixed order. For anything bigger than two binomials, use distribution or the box method instead.

What are like terms?

Like terms have exactly the same variables raised to exactly the same powers. 4x24x^2 and −x2-x^2 are like terms, so they combine to 3x23x^2. 4x24x^2 and 4x4x are not, so they stay separate. Only the coefficients change when you combine.

What is the degree of a polynomial?

It is the highest exponent on the variable after you simplify. x3+x2−7x+2x^3 + x^2 - 7x + 2 has degree 3. The degree tells you the general shape of the graph and, later, the most solutions an equation can have.

How do I multiply polynomials with more than two terms?

Multiply every term in the first polynomial by every term in the second. A 2-term times a 3-term polynomial gives 6 products, and a 3-term times a 3-term gives 9. Then combine like terms. A box grid keeps track so you do not miss one.

Try asking Ducky

  • “Why isn't (x + 5) squared just x squared plus 25?”
  • “Set up a box for this multiplication with me.”
  • “I keep messing up the signs when I subtract polynomials. Can you check my work?”

Free to start. The web app works in any browser, Chromebooks included; the Mac app can also draw on your real screen.