Math Core

Lesson 8.7 · Polynomials and Factoring

Factoring special cases

In the special products lesson you learned three patterns for multiplying. Read backward, those same patterns are factoring shortcuts. Once you can recognize a difference of squares or a perfect square trinomial on sight, you can factor it in one step, with no factor pairs to list.

Difference of two squares

Recall that (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2. Reversed:

a2−b2=(a+b)(a−b).a^2 - b^2 = (a + b)(a - b).

To use it, you need a binomial with two perfect squares and a minus sign between them. Perfect squares to recognize include 1,4,9,16,25,36,49,64,81,100,…1, 4, 9, 16, 25, 36, 49, 64, 81, 100, \ldots, as well as even powers of variables like x2x^2, x4x^4 and y6y^6 (because x4=(x2)2x^4 = (x^2)^2).

Worked example: Differences of squares

Factor x2−49x^2 - 49 and 9a2−25b29a^2 - 25b^2.

x2−49=x2−72x^2 - 49 = x^2 - 7^2, so

x2−49=(x+7)(x−7).x^2 - 49 = (x + 7)(x - 7).

9a2=(3a)29a^2 = (3a)^2 and 25b2=(5b)225b^2 = (5b)^2, so

9a2−25b2=(3a+5b)(3a−5b).9a^2 - 25b^2 = (3a + 5b)(3a - 5b).

Common mistake

A sum of two squares, like x2+49x^2 + 49, does not factor using real numbers. Try it: (x+7)(x+7)=x2+14x+49(x + 7)(x + 7) = x^2 + 14x + 49 and (x+7)(x−7)=x2−49(x + 7)(x - 7) = x^2 - 49. Neither gives x2+49x^2 + 49. Only the difference of squares follows the pattern.

Perfect square trinomials

The other two special products, read backward, are

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

A trinomial is a perfect square trinomial when:

  1. the first and last terms are perfect squares, a2a^2 and b2b^2, and both are positive;
  2. the middle term is 2ab2ab or −2ab-2ab.

For x2+12x+36x^2 + 12x + 36: x2=(x)2x^2 = (x)^2, 36=6236 = 6^2, and 2⋅x⋅6=12x2 \cdot x \cdot 6 = 12x. ✓ So x2+12x+36=(x+6)2x^2 + 12x + 36 = (x + 6)^2.

For x2+13x+36x^2 + 13x + 36: the ends are still perfect squares, but 13x≠12x13x \ne 12x, so it is not a perfect square trinomial. (It happens to factor as (x+4)(x+9)(x + 4)(x + 9) by the usual method.)

Special factoring patterns

a2−b2=(a+b)(a−b)a2+2ab+b2=(a+b)2a2−2ab+b2=(a−b)2\begin{aligned} a^2 - b^2 &= (a + b)(a - b) \\ a^2 + 2ab + b^2 &= (a + b)^2 \\ a^2 - 2ab + b^2 &= (a - b)^2 \end{aligned}

The sign of the middle term tells you the sign inside the square.

Worked example: Perfect square trinomials

Factor 4x2−20x+254x^2 - 20x + 25.

  • 4x2=(2x)24x^2 = (2x)^2, so a=2xa = 2x.
  • 25=5225 = 5^2, so b=5b = 5.
  • 2ab=2(2x)(5)=20x2ab = 2(2x)(5) = 20x, and the middle term is −20x-20x.

So 4x2−20x+25=(2x−5)24x^2 - 20x + 25 = (2x - 5)^2.

You could also factor that trinomial with the ac method and get (2x−5)(2x−5)(2x - 5)(2x - 5). The pattern is simply faster.

Factoring completely

Many polynomials need more than one step. A reliable order:

  1. Factor out the GCF, if there is one.
  2. Count the terms of what's left.
    • Two terms: is it a difference of squares?
    • Three terms: is it a perfect square trinomial? If not, use product-and-sum or the ac method.
    • Four terms: try grouping.
  3. Check each factor to see whether it can be factored again.

Worked example: GCF, then a pattern

Factor 2x3−18x2x^3 - 18x completely.

The GCF is 2x2x: 2x3−18x=2x(x2−9)2x^3 - 18x = 2x(x^2 - 9).

x2−9x^2 - 9 is a difference of squares:

2x3−18x=2x(x+3)(x−3).2x^3 - 18x = 2x(x + 3)(x - 3).

Worked example: Factoring twice

Factor x4−16x^4 - 16 completely.

x4=(x2)2x^4 = (x^2)^2 and 16=4216 = 4^2, so first

x4−16=(x2+4)(x2−4).x^4 - 16 = (x^2 + 4)(x^2 - 4).

The factor x2−4x^2 - 4 is another difference of squares, while x2+4x^2 + 4 is a sum of squares and doesn't factor. So

x4−16=(x2+4)(x+2)(x−2).x^4 - 16 = (x^2 + 4)(x + 2)(x - 2).

Tip

The difference of squares also makes some arithmetic easy. 532−472=(53+47)(53−47)=100⋅6=60053^2 - 47^2 = (53 + 47)(53 - 47) = 100 \cdot 6 = 600, with no squaring required.

Practice

Practice 1

Factor x2−81x^2 - 81.

Practice 2

Factor 16y2−116y^2 - 1.

Practice 3

Which is a perfect square trinomial?

Practice 4

The trinomial 9x2−24x+169x^2 - 24x + 16 can be written as (ax−b)2(ax - b)^2 with aa and bb positive. What is bb?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Factor 3x2−753x^2 - 75 completely.

Practice 6

For what positive value of kk is x2+kx+64x^2 + kx + 64 a perfect square trinomial?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Factor 2x3+12x2+18x2x^3 + 12x^2 + 18x completely.

Practice 8

Factor x4−81x^4 - 81 completely.

Practice 9

Use a difference of squares to compute 1012−992101^2 - 99^2.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.