Algebra 1

How to factor polynomials

Factoring rewrites an expression as a product, the reverse of multiplying. Always take out the greatest common factor first. For x2+bx+cx^2 + bx + c, find two numbers that multiply to c and add to b. When the leading number a is not 1, find two numbers that multiply to acac and add to b, split the middle term, and group. A difference of squares factors as a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b).

Updated

The key idea

Multiplying turns a product into a sum. Factoring runs that backward:

(x+4)(x+5)  →multiply  x2+9x+20  →factor  (x+4)(x+5)(x + 4)(x + 5) \;\xrightarrow{\text{multiply}}\; x^2 + 9x + 20 \;\xrightarrow{\text{factor}}\; (x + 4)(x + 5)

The 4 and 5 multiply to 20 (the last number) and add to 9 (the middle number). That pattern is the whole trick for x2+bx+cx^2 + bx + c. Use this checklist every time:

  1. Take out the greatest common factor (GCF), if there is one.
  2. Count the terms. Two terms: look for a difference of squares. Three terms: use the product and sum. Four terms: try grouping.
  3. Check whether any factor can be factored again.
  4. Multiply back to check.
Signs for x^2 + bx + c
If c isand b isthe two numbers areExample
positivepositiveboth positivex2+9x+20=(x+4)(x+5)x^2 + 9x + 20 = (x + 4)(x + 5)
positivenegativeboth negativex2−9x+20=(x−4)(x−5)x^2 - 9x + 20 = (x - 4)(x - 5)
negativeeitheropposite signs; the larger one has b's signx2−x−20=(x−5)(x+4)x^2 - x - 20 = (x - 5)(x + 4)

Worked examples

Example 1: greatest common factor

Problem Factor 8x3y−12x2y28x^3y - 12x^2y^2.

  1. The GCF of 8 and 12 is 4. Both terms have at least x2x^2 and at least yy. So the GCF is 4x2y4x^2y. Divide each term by it.
    8x3y−12x2y2=4x2y(2x−3y)8x^3y - 12x^2y^2 = 4x^2y(2x - 3y)
  2. Check: 4x2y⋅2x=8x3y4x^2y \cdot 2x = 8x^3y and 4x2y⋅3y=12x2y24x^2y \cdot 3y = 12x^2y^2.

Answer 4x2y(2x−3y)4x^2y(2x - 3y)

Example 2: a trinomial with a = 1

Problem Factor x2−2x−35x^2 - 2x - 35.

  1. Find two numbers that multiply to −35-35 and add to −2-2. Since −35-35 is negative, the signs are opposite. The pairs are 1 and 35, or 5 and 7. The pair −7-7 and 55 adds to −2-2.
  2. Write the factors.
    x2−2x−35=(x−7)(x+5)x^2 - 2x - 35 = (x - 7)(x + 5)
  3. Check with FOIL: x2+5x−7x−35=x2−2x−35x^2 + 5x - 7x - 35 = x^2 - 2x - 35.

Answer (x−7)(x+5)(x - 7)(x + 5)

Example 3: a trinomial with a not 1 (the ac method)

Problem Factor 6x2+7x−36x^2 + 7x - 3.

  1. Multiply a⋅c=6⋅(−3)=−18a \cdot c = 6 \cdot (-3) = -18. Find two numbers that multiply to −18-18 and add to 7: they are 9 and −2-2. Use them to split the middle term.
    6x2+7x−3=6x2+9x−2x−36x^2 + 7x - 3 = 6x^2 + 9x - 2x - 3
  2. Group the first two and the last two terms, and take the GCF of each group. Factor −1-1 out of the second group so both groups share (2x+3)(2x + 3).
    6x2+9x−2x−3=3x(2x+3)−1(2x+3)6x^2 + 9x - 2x - 3 = 3x(2x + 3) - 1(2x + 3)
  3. Factor out the shared (2x+3)(2x + 3).
    3x(2x+3)−1(2x+3)=(3x−1)(2x+3)3x(2x + 3) - 1(2x + 3) = (3x - 1)(2x + 3)

Answer (3x−1)(2x+3)(3x - 1)(2x + 3)

Example 4 (test-hard): factor completely

Problem Factor 2x4−322x^4 - 32 completely.

  1. GCF first.
    2x4−32=2(x4−16)2x^4 - 32 = 2(x^4 - 16)
  2. x4−16x^4 - 16 is (x2)2−42(x^2)^2 - 4^2, a difference of squares.
    2(x4−16)=2(x2+4)(x2−4)2(x^4 - 16) = 2(x^2 + 4)(x^2 - 4)
  3. x2−4x^2 - 4 is another difference of squares. x2+4x^2 + 4 is a sum of squares, which does not factor with real numbers.
    2(x2+4)(x2−4)=2(x2+4)(x+2)(x−2)2(x^2 + 4)(x^2 - 4) = 2(x^2 + 4)(x + 2)(x - 2)

Answer 2(x2+4)(x+2)(x−2)2(x^2 + 4)(x + 2)(x - 2)

Common mistakes

  • Skipping the GCF. 2x2+10x+122x^2 + 10x + 12 is much easier as 2(x2+5x+6)=2(x+2)(x+3)2(x^2 + 5x + 6) = 2(x + 2)(x + 3). Fix: always look for a GCF first.
  • Right numbers, wrong signs. (x+7)(x−5)(x + 7)(x - 5) gives +2x+2x, not −2x-2x. Fix: the larger number gets the sign of b.
  • Trying to factor a sum of squares. x2+9x^2 + 9 does not factor over the real numbers. Only a difference of squares does.
  • Stopping too early. (x2+4)(x2−4)(x^2 + 4)(x^2 - 4) is not finished, because x2−4x^2 - 4 still factors.
  • Sign slip in grouping. Taking −1-1 out of −2x−3-2x - 3 gives −1(2x+3)-1(2x + 3), with a plus inside.

Quick methods

Practice

5 practice questions

  1. Factor x2+9x+20x^2 + 9x + 20.

    1. (x+4)(x+5)(x + 4)(x + 5)
    2. (x+2)(x+10)(x + 2)(x + 10)
    3. (x−4)(x−5)(x - 4)(x - 5)
    4. (x+1)(x+20)(x + 1)(x + 20)
    Show answer

    Answer: (x+4)(x+5)(x + 4)(x + 5)

    4 and 5 multiply to 20 and add to 9. The pair 2 and 10 multiplies to 20 but adds to 12. (x−4)(x−5)(x - 4)(x - 5) gives −9x-9x.

  2. Factor x2−49x^2 - 49.

    1. (x−7)2(x - 7)^2
    2. (x+7)(x−7)(x + 7)(x - 7)
    3. (x+7)2(x + 7)^2
    4. (x−49)(x+1)(x - 49)(x + 1)
    Show answer

    Answer: (x+7)(x−7)(x + 7)(x - 7)

    It is a difference of squares, x2−72x^2 - 7^2. (x−7)2(x - 7)^2 multiplies out to x2−14x+49x^2 - 14x + 49, which has a middle term and a plus 49.

  3. Factor 3x2−10x−83x^2 - 10x - 8.

    1. (3x+2)(x−4)(3x + 2)(x - 4)
    2. (3x−2)(x+4)(3x - 2)(x + 4)
    3. (3x−4)(x+2)(3x - 4)(x + 2)
    4. (3x+4)(x−2)(3x + 4)(x - 2)
    Show answer

    Answer: (3x+2)(x−4)(3x + 2)(x - 4)

    ac=−24ac = -24, and −12-12 and 2 multiply to −24-24 and add to −10-10. Split: 3x2−12x+2x−8=3x(x−4)+2(x−4)3x^2 - 12x + 2x - 8 = 3x(x - 4) + 2(x - 4). The other choices give middle terms of +10x+10x, +2x+2x and −2x-2x.

  4. Which shows 5x3−20x5x^3 - 20x factored completely?

    1. 5x(x2−4)5x(x^2 - 4)
    2. 5x(x+2)(x−2)5x(x + 2)(x - 2)
    3. 5(x3−4x)5(x^3 - 4x)
    4. 5x(x−2)25x(x - 2)^2
    Show answer

    Answer: 5x(x+2)(x−2)5x(x + 2)(x - 2)

    Take out the GCF 5x5x to get 5x(x2−4)5x(x^2 - 4). That is correct but not complete: x2−4x^2 - 4 is a difference of squares. 5(x3−4x)5(x^3 - 4x) misses part of the GCF, and 5x(x−2)25x(x - 2)^2 is a different polynomial.

  5. Which is a factor of 2x2+5x−122x^2 + 5x - 12?

    1. 2x+32x + 3
    2. x−4x - 4
    3. x+4x + 4
    4. 2x+42x + 4
    Show answer

    Answer: x+4x + 4

    ac=−24ac = -24, and 8 and −3-3 add to 5. Split and group: 2x2+8x−3x−12=2x(x+4)−3(x+4)=(2x−3)(x+4)2x^2 + 8x - 3x - 12 = 2x(x + 4) - 3(x + 4) = (2x - 3)(x + 4). So x+4x + 4 is a factor. The signs in 2x+32x + 3 and x−4x - 4 are flipped.

Frequently asked questions

What is the first step in factoring?

Look for a greatest common factor and take it out. It makes every later step smaller and easier. Then count the terms: two terms suggest a difference of squares, three suggest a trinomial, and four suggest grouping.

How do I factor a trinomial when a is not 1?

Use the ac method. Multiply a and c, then find two numbers that multiply to acac and add to b. Split the middle term into those two pieces, group the four terms into pairs, factor each pair, and pull out the shared binomial.

Can every polynomial be factored?

No. Some are prime over the real numbers, like x2+9x^2 + 9 or x2+x+1x^2 + x + 1. Others factor only with irrational numbers, like x2−2=(x+2)(x−2)x^2 - 2 = (x + \sqrt{2})(x - \sqrt{2}). If the quick check b2−4acb^2 - 4ac is not a perfect square, whole-number factoring will not work.

How do I check my factoring?

Multiply the factors back together. If you get the original polynomial, your answer is right. Then make sure no factor can be factored again, since "factor completely" means every piece is as small as it can be.

Try asking Ducky

  • “What two numbers multiply to -18 and add to 7?”
  • “I got (x + 7)(x - 5) but it should be (x - 7)(x + 5). How do I pick the signs?”
  • “Am I done factoring this, or does a piece still factor?”

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