Skip to content
Family Table Math
Auto

Factoring Special Cases

Some expressions have a special shape that lets you factor them in one step, if you recognize it. The two you need are the difference of squares, like x2−49x^2 - 49, and the perfect-square trinomial, like x2+10x+25x^2 + 10x + 25. This page also pulls together everything in the unit into one strategy, so that you can look at any Grade 10 expression and know where to start.

From polynomial operations, you know that (a+b)(a−b)=a2−b2(a + b)(a - b) = a^2 - b^2: the middle terms cancel. Read backwards, that’s a factoring rule:

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

To use it, the expression must have:

  • exactly two terms,
  • both of them perfect squares,
  • a minus sign between them.

Find what each term is the square of, then write one bracket with ++ and one with −-. For example, 9x2−16=(3x)2−42=(3x+4)(3x−4)9x^2 - 16 = (3x)^2 - 4^2 = (3x + 4)(3x - 4).

A square of side a with a small square of side b removed, rearranged into a rectangle a plus b long and a minus b wide b² a a b area a² − b² a b a − b area (a + b)(a − b)
Cutting the leftover shape into two pieces and rearranging them shows that a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b).

x2+9x^2 + 9 is a sum of squares, and it does not factor over the real numbers. Check the tempting guesses: (x+3)(x−3)=x2−9(x + 3)(x - 3) = x^2 - 9 and (x+3)2=x2+6x+9(x + 3)^2 = x^2 + 6x + 9. Neither one is x2+9x^2 + 9.

Squaring a binomial gives a trinomial with a special pattern:

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

A trinomial is a perfect square if:

  1. the first and last terms are perfect squares, a2a^2 and b2b^2 (and the last term is positive), and
  2. the middle term is twice the product of aa and bb, that is ±2ab\pm 2ab.

The sign of the middle term tells you the sign in the bracket. For 4x2−12x+94x^2 - 12x + 9: 4x2=(2x)24x^2 = (2x)^2, 9=329 = 3^2, and 2(2x)(3)=12x2(2x)(3) = 12x matches the middle term, so 4x2−12x+9=(2x−3)24x^2 - 12x + 9 = (2x - 3)^2.

You can always factor a perfect-square trinomial with the methods for trinomials instead; recognizing the pattern just saves time.

Sometimes one method leaves something that can be factored again. Always take out a common factor first, then check every factor to see whether it can be broken down further:

2x2−18=2(x2−9)=2(x+3)(x−3)2x^2 - 18 = 2(x^2 - 9) = 2(x + 3)(x - 3) x4−16=(x2+4)(x2−4)=(x2+4)(x+2)(x−2)x^4 - 16 = (x^2 + 4)(x^2 - 4) = (x^2 + 4)(x + 2)(x - 2)

An expression is fully factored when none of its factors can be factored any further.

Use these steps for every expression in this unit:

StepAsk yourselfMethod
1Do all the terms share a factor?Take out the common factor. If the first term is negative, take out a negative.
2Two terms?Is it a difference of squares, a2−b2a^2 - b^2? A sum of squares doesn’t factor.
3Three terms, starting with x2x^2?Find two numbers with product cc and sum bb. Look out for a perfect square.
4Three terms, starting with ax2ax^2, a≠1a \ne 1?Decomposition (product acac, sum bb) or inspection. Look out for a perfect square.
5Four terms?Factor by grouping.
6Can any factor be factored again?Repeat. Then check by expanding.

Not every expression factors over the integers. For example:

  • x2+4x^2 + 4 is a sum of squares;
  • x2+3x+1x^2 + 3x + 1 has no integer pair with product 11 and sum 33;
  • x2−7x^2 - 7 is a difference, but 77 isn’t a perfect square.

If you’ve tried every step and nothing works, say that the expression doesn’t factor. That’s a complete answer. (Later, the quadratic formula will let you solve equations with expressions like these.)

Factor.

  • (a) x2−49x^2 - 49
  • (b) 9x2−169x^2 - 16
  • (c) 36a2−b236a^2 - b^2

Solution. Write each term as a square, then use a2−b2=(a+b)(a−b)a^2 - b^2 = (a + b)(a - b).

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

(b) 9x2−16=(3x)2−42=(3x+4)(3x−4)9x^2 - 16 = (3x)^2 - 4^2 = (3x + 4)(3x - 4)

(c) 36a2−b2=(6a)2−b2=(6a+b)(6a−b)36a^2 - b^2 = (6a)^2 - b^2 = (6a + b)(6a - b)

Check (b): (3x+4)(3x−4)=9x2−12x+12x−16=9x2−16(3x + 4)(3x - 4) = 9x^2 - 12x + 12x - 16 = 9x^2 - 16. ✓

Decide whether each trinomial is a perfect square, then factor it.

  • (a) x2+10x+25x^2 + 10x + 25
  • (b) 4x2−12x+94x^2 - 12x + 9
  • (c) 9x2+15x+49x^2 + 15x + 4

Solution.

(a) x2=(x)2x^2 = (x)^2 and 25=5225 = 5^2. Twice the product is 2(x)(5)=10x2(x)(5) = 10x, which matches. So x2+10x+25=(x+5)2x^2 + 10x + 25 = (x + 5)^2.

(b) 4x2=(2x)24x^2 = (2x)^2 and 9=329 = 3^2. Twice the product is 2(2x)(3)=12x2(2x)(3) = 12x, and the middle term is −12x-12x. So 4x2−12x+9=(2x−3)24x^2 - 12x + 9 = (2x - 3)^2.

(c) 9x2=(3x)29x^2 = (3x)^2 and 4=224 = 2^2, but twice the product is 2(3x)(2)=12x2(3x)(2) = 12x, not 15x15x. So it’s not a perfect square. Use decomposition instead: ac=36ac = 36, sum 1515, so the integers are 33 and 1212.

9x2+15x+4=9x2+3x+12x+4=3x(3x+1)+4(3x+1)=(3x+1)(3x+4)\begin{aligned} 9x^2 + 15x + 4 &= 9x^2 + 3x + 12x + 4 \\ &= 3x(3x + 1) + 4(3x + 1) \\ &= (3x + 1)(3x + 4) \end{aligned}

Check (c): (3x+1)(3x+4)=9x2+12x+3x+4=9x2+15x+4(3x + 1)(3x + 4) = 9x^2 + 12x + 3x + 4 = 9x^2 + 15x + 4. ✓

Factor fully.

  • (a) 2x2−182x^2 - 18
  • (b) 5x2+20x+205x^2 + 20x + 20
  • (c) x4−81x^4 - 81

Solution.

(a) Neither 2x22x^2 nor 1818 is a perfect square, but take out the common factor 22 first and a difference of squares appears:

2x2−18=2(x2−9)=2(x+3)(x−3)2x^2 - 18 = 2(x^2 - 9) = 2(x + 3)(x - 3)

(b) Take out 55, then spot a perfect square (2(x)(2)=4x2(x)(2) = 4x ✓):

5x2+20x+20=5(x2+4x+4)=5(x+2)25x^2 + 20x + 20 = 5(x^2 + 4x + 4) = 5(x + 2)^2

(c) x4=(x2)2x^4 = (x^2)^2 and 81=9281 = 9^2, so this is a difference of squares. Then one of the factors is a difference of squares again:

x4−81=(x2+9)(x2−9)=(x2+9)(x+3)(x−3)\begin{aligned} x^4 - 81 &= (x^2 + 9)(x^2 - 9) \\ &= (x^2 + 9)(x + 3)(x - 3) \end{aligned}

x2+9x^2 + 9 is a sum of squares, so it doesn’t factor. We’re done.

Factor fully, or say that the expression doesn’t factor.

  • (a) 3x2+123x^2 + 12
  • (b) 6x2+7x−36x^2 + 7x - 3
  • (c) x3−2x2−9x+18x^3 - 2x^2 - 9x + 18
  • (d) x2+x+3x^2 + x + 3

Solution.

(a) Step 1: common factor 33, giving 3(x2+4)3(x^2 + 4). Step 2: x2+4x^2 + 4 is a sum of squares, which doesn’t factor. The answer is 3(x2+4)3(x^2 + 4).

(b) No common factor. Three terms with a=6a = 6: use decomposition. ac=−18ac = -18, sum 77, so the integers are 99 and −2-2.

6x2+7x−3=6x2+9x−2x−3=3x(2x+3)−1(2x+3)=(2x+3)(3x−1)\begin{aligned} 6x^2 + 7x - 3 &= 6x^2 + 9x - 2x - 3 \\ &= 3x(2x + 3) - 1(2x + 3) \\ &= (2x + 3)(3x - 1) \end{aligned}

(c) Four terms: group them. Then the bracket x2−9x^2 - 9 factors again.

x3−2x2−9x+18=x2(x−2)−9(x−2)=(x−2)(x2−9)=(x−2)(x+3)(x−3)\begin{aligned} x^3 - 2x^2 - 9x + 18 &= x^2(x - 2) - 9(x - 2) \\ &= (x - 2)(x^2 - 9) \\ &= (x - 2)(x + 3)(x - 3) \end{aligned}

(d) No common factor. We need product 33 and sum 11. The pairs 1,31, 3 and −1,−3-1, -3 have sums 44 and −4-4, so x2+x+3x^2 + x + 3 doesn’t factor over the integers.

Factoring a sum of squares. x2+25x^2 + 25 is not (x+5)(x−5)(x + 5)(x - 5) (that’s x2−25x^2 - 25) and it’s not (x+5)2(x + 5)^2 (that’s x2+10x+25x^2 + 10x + 25). A sum of squares doesn’t factor.

Assuming a perfect square without checking the middle term. 9x2+15x+49x^2 + 15x + 4 starts and ends with perfect squares, but (3x+2)2=9x2+12x+4(3x + 2)^2 = 9x^2 + 12x + 4. Always check that the middle term is 2ab2ab.

Stopping too early. x4−16=(x2+4)(x2−4)x^4 - 16 = (x^2 + 4)(x^2 - 4) isn’t finished, because x2−4x^2 - 4 is another difference of squares. Likewise, (2x+6)(x−3)(2x + 6)(x - 3) isn’t fully factored, because 2x+6=2(x+3)2x + 6 = 2(x + 3). Check every factor.

Forcing a difference of squares. x2−8x^2 - 8 isn’t a difference of squares over the integers, because 88 isn’t a perfect square. Don’t write (x+4)(x−4)(x + 4)(x - 4) or (x+2)(x−4)(x + 2)(x - 4); expand to see that they don’t work.

Missing a common factor that hides the pattern. 3x2−753x^2 - 75 doesn’t look like a difference of squares until you take out the 33: 3(x2−25)=3(x+5)(x−5)3(x^2 - 25) = 3(x + 5)(x - 5).

Getting the order wrong when the constant comes first. 25−y2=(5+y)(5−y)25 - y^2 = (5 + y)(5 - y). It’s not (y+5)(y−5)(y + 5)(y - 5), which equals y2−25y^2 - 25, the opposite.

1. (Warm-up) Factor.

  • (a) x2−64x^2 - 64
  • (b) 25−y225 - y^2
  • (c) 4x2−814x^2 - 81
Solution

(a) (x+8)(x−8)(x + 8)(x - 8)

(b) 25−y2=52−y2=(5+y)(5−y)25 - y^2 = 5^2 - y^2 = (5 + y)(5 - y)

(c) 4x2−81=(2x)2−92=(2x+9)(2x−9)4x^2 - 81 = (2x)^2 - 9^2 = (2x + 9)(2x - 9)

2. (Warm-up) Decide whether each is a perfect-square trinomial. Then factor it.

  • (a) x2+14x+49x^2 + 14x + 49
  • (b) x2−12x+36x^2 - 12x + 36
  • (c) x2+8x+12x^2 + 8x + 12
Solution

(a) Yes: 2(x)(7)=14x2(x)(7) = 14x. So (x+7)2(x + 7)^2.

(b) Yes: 2(x)(6)=12x2(x)(6) = 12x and the middle term is negative. So (x−6)2(x - 6)^2.

(c) No: 1212 isn’t a perfect square. Product 1212, sum 88: 22 and 66. So (x+2)(x+6)(x + 2)(x + 6).

3. (Core) Factor 16x2−40x+2516x^2 - 40x + 25.

Solution

16x2=(4x)216x^2 = (4x)^2 and 25=5225 = 5^2. Twice the product is 2(4x)(5)=40x2(4x)(5) = 40x, which matches the middle term (with a minus sign). So

16x2−40x+25=(4x−5)216x^2 - 40x + 25 = (4x - 5)^2

Check: (4x−5)2=16x2−40x+25(4x - 5)^2 = 16x^2 - 40x + 25. ✓

4. (Core) Factor fully.

  • (a) 3x2−753x^2 - 75
  • (b) 50−2a250 - 2a^2
Solution

(a)

3x2−75=3(x2−25)=3(x+5)(x−5)3x^2 - 75 = 3(x^2 - 25) = 3(x + 5)(x - 5)

(b)

50−2a2=2(25−a2)=2(5+a)(5−a)50 - 2a^2 = 2(25 - a^2) = 2(5 + a)(5 - a)

5. (Core) Factor 49x2−100y249x^2 - 100y^2.

Solution49x2−100y2=(7x)2−(10y)2=(7x+10y)(7x−10y)49x^2 - 100y^2 = (7x)^2 - (10y)^2 = (7x + 10y)(7x - 10y)

6. (Core) Factor fully, or say that the expression doesn’t factor.

  • (a) 4x2+364x^2 + 36
  • (b) 2x2+16x+322x^2 + 16x + 32
  • (c) x4−1x^4 - 1
  • (d) x2−5x+9x^2 - 5x + 9
Solution

(a) Take out 44: 4(x2+9)4(x^2 + 9). The sum of squares x2+9x^2 + 9 doesn’t factor, so the answer is 4(x2+9)4(x^2 + 9).

(b) Take out 22, then spot a perfect square:

2x2+16x+32=2(x2+8x+16)=2(x+4)22x^2 + 16x + 32 = 2(x^2 + 8x + 16) = 2(x + 4)^2

(c) Difference of squares twice:

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

(d) We need product 99 and sum −5-5. The pairs 1,91, 9, 3,33, 3, −1,−9-1, -9 and −3,−3-3, -3 have sums 1010, 66, −10-10 and −6-6. None is −5-5, so x2−5x+9x^2 - 5x + 9 doesn’t factor over the integers.

7. (Core) A square lawn has sides of xx metres. A square flower bed with sides of 33 m is dug out of one corner.

  • (a) Write the remaining lawn area as an expression, and factor it.
  • (b) Find the remaining area when x=10x = 10, using both forms.
Solution

(a) The remaining area is x2−9x^2 - 9 square metres, which factors as (x+3)(x−3)(x + 3)(x - 3).

(b) Using x2−9x^2 - 9: 102−9=9110^2 - 9 = 91 m². Using the factored form: (13)(7)=91(13)(7) = 91 m². ✓

8. (Challenge) Use the difference of squares to calculate these without a calculator.

  • (a) 47×5347 \times 53
  • (b) 1032−972103^2 - 97^2
Solution

(a) 47=50−347 = 50 - 3 and 53=50+353 = 50 + 3, so

47×53=(50+3)(50−3)=502−32=2500−9=249147 \times 53 = (50 + 3)(50 - 3) = 50^2 - 3^2 = 2500 - 9 = 2491

(b)

1032−972=(103+97)(103−97)=200×6=1200103^2 - 97^2 = (103 + 97)(103 - 97) = 200 \times 6 = 1200

9. (Challenge)

  • (a) Find all values of kk so that 4x2+kx+254x^2 + kx + 25 is a perfect-square trinomial.
  • (b) Factor fully: x4−13x2+36x^4 - 13x^2 + 36.
Solution

(a) 4x2=(2x)24x^2 = (2x)^2 and 25=5225 = 5^2, so the middle term must be ±2(2x)(5)=±20x\pm 2(2x)(5) = \pm 20x. So k=20k = 20 or k=−20k = -20, giving (2x+5)2(2x + 5)^2 or (2x−5)2(2x - 5)^2.

(b) Treat x2x^2 like a single variable: we need product 3636 and sum −13-13, which are −4-4 and −9-9.

x4−13x2+36=(x2−4)(x2−9)=(x+2)(x−2)(x+3)(x−3)\begin{aligned} x^4 - 13x^2 + 36 &= (x^2 - 4)(x^2 - 9) \\ &= (x + 2)(x - 2)(x + 3)(x - 3) \end{aligned}

Check with x=1x = 1: the original is 1−13+36=241 - 13 + 36 = 24, and (3)(−1)(4)(−2)=24(3)(-1)(4)(-2) = 24. ✓