Factoring

What is Factoring?

Factoring is the reverse of multiplying.

When you expand (x+2)(x+3)(x + 2)(x + 3), you get x2+5x+6x^2 + 5x + 6.

Factoring asks: given x2+5x+6x^2 + 5x + 6, can we get back to (x+2)(x+3)(x + 2)(x + 3)?


Why Factor?

Factored form makes some things easy:

  • Solving equations: if (x+2)(x+3)=0(x + 2)(x + 3) = 0
    • Then either x=2x = -2 or x=3x = -3
  • Finding roots: the factors tell you where the polynomial equals zero

Common Factor

The simplest technique. Look for something that divides every term.

6x26x^2 has factors: 2,3,6,x,2x,3x,6x,2, 3, 6, x, 2x, 3x, 6x, \ldots

9x9x has factors: 3,9,x,3x,9x,3, 9, x, 3x, 9x, \ldots

The greatest common factor is 3x3x. Pull it out:

6x2+9x=3x(2x+3)6x^2 + 9x = 3x(2x + 3)


Difference of Squares

When you see a2b2a^2 - b^2, it factors to (a+b)(ab)(a + b)(a - b).

Why does this work?

Multiply it back:

(a+b)(ab)=a2ab+abb2=a2b2\begin{aligned} (a + b)(a - b) &= a^2 - ab + ab - b^2 \\ &= a^2 - b^2 \end{aligned}

The middle terms cancel out.


Trinomial Factoring

This is the trickiest pattern. For x2+bx+cx^2 + bx + c, find two numbers that:

  • Multiply to cc
  • Add to bb

Example: x2+5x+6x^2 + 5x + 6

We need numbers that multiply to 66 and add to 55.

Try factors of 66: (1,6)(1, 6), (2,3)(2, 3)

  • 1+6=71 + 6 = 7 — no
  • 2+3=52 + 3 = 5 — yes!

So: x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x + 2)(x + 3)


Perfect Square Trinomial

Some trinomials are perfect squares in disguise.

The patterns:

a2+2ab+b2=(a+b)2a^2 + 2ab + b^2 = (a + b)^2

a22ab+b2=(ab)2a^2 - 2ab + b^2 = (a - b)^2

How to spot it:

  1. First and last terms are perfect squares
  2. Middle term is 2×first×last2 \times \sqrt{\text{first}} \times \sqrt{\text{last}}

Example: x2+6x+9x^2 + 6x + 9

  • x2x^2 is a perfect square (xx)
  • 99 is a perfect square (33)
  • 6x=2x36x = 2 \cdot x \cdot 3 — yes!

So: x2+6x+9=(x+3)2x^2 + 6x + 9 = (x + 3)^2