30% off your first 3 months

Get the deal

How to factor quadratics

Factoring undoes multiplying: it turns x2+7x+12x^2 + 7x + 12 back into (x+3)(x+4)(x + 3)(x + 4).

Guide 11 of 12
A factoring diamond: an X with minus 15 at the top (multiply), minus 2 at the bottom (add), and 3 and minus 5 on the sides. Beside it: x squared minus 2x minus 15 equals x plus 3 times x minus 5.multiplyadd
x² − 2x − 15. 3 × (−5) = −15 and 3 + (−5) = −2.

Why it works. Multiply (x+p)(x+q)(x + p)(x + q) and you get x2+(p+q)x+pqx^2 + (p + q)x + pq. So the two numbers must add to the middle number b and multiply to the last number c.


Your turn

Factor x2+2x−24x^2 + 2x - 24.

Or just show the answer

(x+6)(x−4)(x + 6)(x - 4)

Multiply to −24-24 and add to 2: 6 and −4-4. Check: x2−4x+6x−24=x2+2x−24x^2 - 4x + 6x - 24 = x^2 + 2x - 24.


Watch out for

  • Mistake 1. Struck through: (x − 3)(x + 5); written over it: (x + 3)(x − 5).

    Swapping the signs: (x−3)(x+5)(x - 3)(x + 5).

    That adds to +2+2. Check the sum: you need −2-2.

  • Mistake 2. Struck through: 3 · (−5) = −15 only; written over it: and 3 + (−5) = −2.

    Checking only that the numbers multiply to c.

    They must multiply to c and add to b.

  • Mistake 3. Struck through: 2x^2 + 14x + 24; written over it: 2(x + 3)(x + 4).

    Missing a common factor, like the 2 in 2x2+14x+242x^2 + 14x + 24.

    Take it out first: 2(x2+7x+12)=2(x+3)(x+4)2(x^2 + 7x + 12) = 2(x + 3)(x + 4).


Stuck on your own homework?

Open DuckyHelper and say it out loud. It sees your screen, so it works through your own problem with you and draws it, like the board above.

“Help me find the two numbers for this one without giving me the answer.”

Plus is $14 a month for your first 3 months. DuckyHelper is an app for Mac (Apple silicon, macOS 14 or later), Windows and Linux.


Read the whole guide as text

Factoring undoes multiplying: it turns x2+7x+12x^2 + 7x + 12 back into (x+3)(x+4)(x + 3)(x + 4). For a quadratic x2+bx+cx^2 + bx + c, look for two numbers that multiply to c and add to b. Those two numbers go in the brackets. Always check your answer by multiplying the brackets back out.

Worked example

Factor x2−2x−15x^2 - 2x - 15.

  1. You need two numbers that multiply to −15-15 and add to −2-2. The pairs that multiply to −15-15 are 1 and −15-15, −1-1 and 15, 3 and −5-5, −3-3 and 5.
  2. Only 3 and −5-5 add to −2-2.
    3+(−5)=−23 + (-5) = -2
  3. Put them in the brackets.
    x2−2x−15=(x+3)(x−5)x^2 - 2x - 15 = (x + 3)(x - 5)
  4. Check by multiplying back: x2−5x+3x−15=x2−2x−15x^2 - 5x + 3x - 15 = x^2 - 2x - 15.

Answer: (x+3)(x−5)(x + 3)(x - 5)

Algebra 1: all 12 guides
Questions and jobs

Do anything

Ask it a question or hand it a job, in any app.

Doing jobs for you is in the Mac app. Asking works on Mac, Windows and Linux.