← mapAlgebra Core

Factoring

⚗ Dr. Möbius, from the lab

Multiplication builds things up. Factoring tears them down to find what they're made of. You do it because zeros, the most informative points a polynomial has, are found by factoring — and the zero-product property is the theorem that makes this work. It is not a trick. It is a genuine theorem about real numbers that fails in other algebraic systems. File that fact away.

THE BIG IDEA

Factoring is distributivity run backwards; the zero-product property (ab=0 ⟹ a=0 or b=0) is what makes factoring useful for solving equations.

Why bother factoring?

Three reasons:

  1. Zeros. The solutions to p(x)=0p(x) = 0 are the xx-values that make p(x)=0p(x) = 0. If p(x)=(x2)(x+5)p(x) = (x-2)(x+5), then the zero-product property says the only solutions are x=2x = 2 and x=5x = -5. We'll use this immediately.

  2. Simplification. Rational expressions (next lesson) need factored numerators and denominators to cancel common factors.

  3. Structure. Factored form reveals what a polynomial is built from, the way prime factorization reveals what a number is built from.

The zero-product property: a theorem

If ab=0a \cdot b = 0, then a=0a = 0 or b=0b = 0 (or both).

This is provable from the properties of real numbers: if a0a \ne 0, multiply both sides by 1a\frac{1}{a} (which exists because a0a \ne 0), giving b=0b = 0. Done. This theorem is true for real numbers; it fails in "rings with zero divisors" — an algebraic structure you might meet later. For now, it's the engine of everything.

Step 1: GCF first, always

Before doing anything fancy, pull out the greatest common factor of all terms.

6x39x2+3x=3x(2x23x+1).6x^3 - 9x^2 + 3x = 3x(2x^2 - 3x + 1).

Why? Because every subsequent step is easier on a smaller polynomial. Skipping GCF is the source of half the errors in factoring.

Step 2: trinomials x2+bx+cx^2 + bx + c

To factor x2+bx+cx^2 + bx + c: find two integers pp and qq such that pq=cp \cdot q = c and p+q=bp + q = b. Then:

x2+bx+c=(x+p)(x+q).x^2 + bx + c = (x+p)(x+q).

Why? FOIL confirms: (x+p)(x+q)=x2+(p+q)x+pq=x2+bx+c(x+p)(x+q) = x^2 + (p+q)x + pq = x^2 + bx + c. We're undoing FOIL.

Example: x2+5x+6x^2 + 5x + 6. Need pq=6pq = 6, p+q=5p+q = 5. Pairs for 6: (1,6),(2,3),(1,6),(2,3)(1,6), (2,3), (-1,-6), (-2,-3). The pair (2,3)(2,3) sums to 5. So x2+5x+6=(x+2)(x+3)x^2+5x+6 = (x+2)(x+3).

Example: x24x12x^2 - 4x - 12. Need pq=12pq = -12, p+q=4p+q = -4. The pair (2,6)(2, -6): 2(6)=122 \cdot (-6) = -12, 2+(6)=42+(-6) = -4. So x24x12=(x+2)(x6)x^2-4x-12 = (x+2)(x-6).

Step 3: trinomials ax2+bx+cax^2 + bx + c (the ac-method)

For leading coefficient a1a \ne 1: find two integers pp and qq with pq=acpq = ac and p+q=bp+q = b. Then split the middle term and factor by grouping.

Example: 2x2+7x+32x^2 + 7x + 3. Here a=2a=2, b=7b=7, c=3c=3, so ac=6ac = 6. Need pq=6pq=6, p+q=7p+q=7: the pair (1,6)(1,6) works.

2x2+x+6x+3=x(2x+1)+3(2x+1)=(x+3)(2x+1).2x^2 + x + 6x + 3 = x(2x+1) + 3(2x+1) = (x+3)(2x+1).

Check: (x+3)(2x+1)=2x2+x+6x+3=2x2+7x+3(x+3)(2x+1) = 2x^2 + x + 6x + 3 = 2x^2 + 7x + 3. Confirmed.

Step 4: difference of squares and perfect-square trinomials

From the Polynomials lesson, you know:

  • (a+b)(ab)=a2b2(a+b)(a-b) = a^2 - b^2, so a2b2=(a+b)(ab)a^2 - b^2 = (a+b)(a-b).
  • (a+b)2=a2+2ab+b2(a+b)^2 = a^2+2ab+b^2, so perfect-square trinomials factor as (a+b)2(a+b)^2.
  • (ab)2=a22ab+b2(a-b)^2 = a^2-2ab+b^2.

Examples:

  • x225=(x+5)(x5)x^2 - 25 = (x+5)(x-5).
  • 4x29=(2x+3)(2x3)4x^2 - 9 = (2x+3)(2x-3).
  • x2+6x+9=(x+3)2x^2 + 6x + 9 = (x+3)^2.
  • 9x212x+4=(3x2)29x^2 - 12x + 4 = (3x-2)^2.

Solving equations by factoring

Once you factor, use the zero-product property:

x25x+6=0    (x2)(x3)=0    x=2 or x=3.x^2 - 5x + 6 = 0 \implies (x-2)(x-3) = 0 \implies x = 2 \text{ or } x = 3.

Always check both solutions. (2)25(2)+6=410+6=0(2)^2-5(2)+6 = 4-10+6 = 0 and (3)25(3)+6=915+6=0(3)^2-5(3)+6 = 9-15+6 = 0. Both confirmed.

What doesn't factor?

Not everything factors over the rationals. x2+1x^2 + 1 has no real zeros (since x20x^2 \ge 0, so x2+11>0x^2 + 1 \ge 1 > 0 always). It is irreducible over Q\mathbb{Q} — a polynomial with no rational factorization. This is the teaser for complex numbers, which live past the edge of this stratum.

🔬 SPECIMENS (worked examples)

Worked example 1 — GCF then trinomial

Factor completely: 3x312x215x3x^3 - 12x^2 - 15x.

Step 1: GCF. All terms divisible by 3x3x: 3x312x215x=3x(x24x5).3x^3 - 12x^2 - 15x = 3x(x^2 - 4x - 5).

Step 2: Factor the trinomial. Need pq=5pq = -5, p+q=4p+q = -4. Pairs for 5-5: (1,5)(1,-5) sums to 4-4. Yes. x24x5=(x+1)(x5).x^2 - 4x - 5 = (x+1)(x-5).

Complete factorization: 3x(x+1)(x5)3x(x+1)(x-5).

Check by expanding: 3x(x+1)(x5)=3x(x24x5)=3x312x215x3x(x+1)(x-5) = 3x(x^2-4x-5) = 3x^3-12x^2-15x. Confirmed.

Worked example 2 — the ac-method

Factor 6x27x36x^2 - 7x - 3.

a=6a = 6, c=3c = -3, so ac=18ac = -18. Need pq=18pq = -18, p+q=7p+q = -7.

Check pairs: (2,9)(2,-9): 2(9)=182 \cdot (-9) = -18, 2+(9)=72+(-9) = -7. Yes.

Split the middle term: 6x2+2x9x3.6x^2 + 2x - 9x - 3.

Factor by grouping: =2x(3x+1)3(3x+1)=(2x3)(3x+1).= 2x(3x + 1) - 3(3x + 1) = (2x-3)(3x+1).

Check: (2x3)(3x+1)=6x2+2x9x3=6x27x3(2x-3)(3x+1) = 6x^2 + 2x - 9x - 3 = 6x^2 - 7x - 3. Confirmed.

Worked example 3 — the trap: zero-product requires zero

Solve: x2+x6=6x^2 + x - 6 = 6.

Trap warning: some students see "=6= 6" and try to factor x2+x6x^2+x-6 directly, then set factors equal to 6. This is wrong. The zero-product property requires zero on one side.

Correct approach. Move 6 to the left: x2+x66=0    x2+x12=0.x^2 + x - 6 - 6 = 0 \implies x^2 + x - 12 = 0.

Factor: need pq=12pq = -12, p+q=1p+q = 1. Pair (4,3)(4, -3): 4(3)=124 \cdot (-3) = -12, 4+(3)=14+(-3) = 1. Yes. (x+4)(x3)=0    x=4 or x=3.(x+4)(x-3) = 0 \implies x = -4 \text{ or } x = 3.

Check both. x=4x = -4: 1646=616-4-6 = 6. Yes. x=3x = 3: 9+36=69+3-6 = 6. Yes.

☠ KNOWN HAZARDS

  • Skipping the GCF. If you try to factor 6x266x^2 - 6 without pulling 66 out first, you make the difference-of-squares calculation harder than necessary. GCF first, every time.

  • Sign errors in the pair-finding step. For x27x+12x^2 - 7x + 12: you need pq=12>0pq = 12 > 0 and p+q=7<0p+q = -7 < 0, so both must be negative. The pair is (3)(4)(-3)(-4), giving (x3)(x4)(x-3)(x-4).

  • Thinking (a2+b2)(a^2+b^2) factors. a2+b2a^2+b^2 does NOT factor over the reals. Only the DIFFERENCE of squares factors: a2b2=(a+b)(ab)a^2 - b^2 = (a+b)(a-b). The sum is irreducible.

  • Applying zero-product to non-zero right-hand sides. The zero-product property requires zero on one side. If you have (x1)(x+2)=6(x-1)(x+2) = 6, you CANNOT set x1=6x-1=6 or x+2=6x+2=6 — that's gibberish. Move everything to one side first, get zero, then factor.

TL;DR

  • Factoring is distributivity in reverse. Always pull out the GCF first.

  • x2+bx+cx^2+bx+c: find p,qp,q with pq=cpq=c and p+q=bp+q=b. Then (x+p)(x+q)(x+p)(x+q).

  • ax2+bx+cax^2+bx+c: find p,qp,q with pq=acpq=ac and p+q=bp+q=b; split and group.

  • Special patterns: a2b2=(a+b)(ab)a^2-b^2=(a+b)(a-b); perfect-square trinomials. Recognize both directions.

  • Zero-product property: ab=0    a=0ab=0 \implies a=0 or b=0b=0. This is a theorem about R\mathbb{R}, not a magic trick.

unlocks