Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools

How to Solve a Quadratic Equation by Factoring

If a product is zero, one of its factors is zero. So bring the quadratic to the form "something =0= 0", factor the something, and solve each factor separately.

Recognize the task

A quadratic with small integer coefficients that factors over the integers: x2−5x+6=0x^2 - 5x + 6 = 0, x2+x=12x^2 + x = 12, 2x2+7x+3=02x^2 + 7x + 3 = 0, x2=9xx^2 = 9x. Test: can you find two integers whose product is acac and whose sum is bb within a minute? If not, use the quadratic formula.
The lesson section is solving by factoring; the factoring itself is in the factoring polynomials lesson.

Steps

StepOn x2+x=12x^2 + x = 12
1Move every term to one side. The other side must be exactly 00. Write the quadratic in standard form ax2+bx+c=0ax^2 + bx + c = 0.Addition property of equality ↗x2+x−12=0x^2 + x - 12 = 0
2Factor the quadratic. For a=1a = 1: two numbers with product cc and sum bb (simple case). For a≠1a \neq 1: the ac method (general case).(x+4)(x−3)=0(x + 4)(x - 3) = 0
3Set each factor equal to zero. The zero product property.x+4=0x + 4 = 0 or x−3=0x - 3 = 0
4Solve each linear equation and check. Two roots, or one repeated root if both factors are the same.x=−4x = -4 or x=3x = 3; check: 16−4=1216 - 4 = 12, 9+3=129 + 3 = 12 ✓

Worked examples

Example 1 · leading coefficient not 1

ac method
2x2+7x+3=02x^2 + 7x + 3 = 0: ac=6=6⋅1ac = 6 = 6\cdot 1, 6+1=76 + 1 = 7
split the middle term
2x2+6x+x+3=2x(x+3)+1(x+3)=(2x+1)(x+3)2x^2 + 6x + x + 3 = 2x(x + 3) + 1(x + 3) = (2x + 1)(x + 3)
grouping
x=−12x = -\tfrac{1}{2} or x=−3x = -3

Example 2 · no constant term

factor out x
x2=9x  ⇒  x2−9x=0  ⇒  x(x−9)=0x^2 = 9x \;\Rightarrow\; x^2 - 9x = 0 \;\Rightarrow\; x(x - 9) = 0
do not divide by xx
x=0x = 0 or x=9x = 9

Example 3 · difference of squares

no middle term
x2−16=0  ⇒  (x−4)(x+4)=0x^2 - 16 = 0 \;\Rightarrow\; (x - 4)(x + 4) = 0
x=±4x = \pm 4
Check your factoring in the factoring calculator.

See it happen

The roots of x2+x−12x^2 + x - 12 are where the parabola y=x2+x−12y = x^2 + x - 12 crosses the xx-axis: at −4-4 and 33. Each factor (x+4)(x + 4), (x−3)(x - 3) is zero at exactly one of those crossings.

Common mistakes

Factoring without a zero on one side

✗ x(x+1)=12⇒x=12x(x + 1) = 12 \Rightarrow x = 12 or x+1=12x + 1 = 12
✓ the zero product property needs 00: rewrite as x2+x−12=0x^2 + x - 12 = 0

Dividing by x

✗ x2=9x⇒x=9x^2 = 9x \Rightarrow x = 9
✓ that loses x=0x = 0; factor instead

Sign of the root

✗ (x+4)=0⇒x=4(x + 4) = 0 \Rightarrow x = 4
✓ x=−4x = -4