30% off your first 3 months

Get the deal

How to solve quadratic equations

A quadratic equation has an x2x^2 term, like x2−x−6=0x^2 - x - 6 = 0, and usually has two answers.

Guide 12 of 12
A graph of the parabola y equals x squared minus x minus 6. It crosses the x-axis at minus 2 and at 3, both marked with dots.xy−4−224−6−4−2240
y = x² − x − 6. It crosses zero at x = −2 and x = 3.

Why it works. If two numbers multiply to 0, at least one of them is 0. So once the equation reads (x+2)(x−3)=0(x + 2)(x - 3) = 0, either x+2=0x + 2 = 0 or x−3=0x - 3 = 0. That is why the equation must equal 0 before you split it.


Move it yourself

Change a, b and c and watch where the curve crosses zero.

A graph of the parabola y equals x squared minus x minus 6. It crosses the x-axis at minus 2 and at 3, both marked with dots.xy−4−224−6−4−2240

Your turn

Solve x2+5x+4=0x^2 + 5x + 4 = 0.

Or just show the answer

x=−1x = -1 or x=−4x = -4

Factor: (x+1)(x+4)=0(x + 1)(x + 4) = 0, so x=−1x = -1 or x=−4x = -4. Check: 1−5+4=01 - 5 + 4 = 0 and 16−20+4=016 - 20 + 4 = 0.


Watch out for

  • Mistake 1. Struck through: x(x − 1) = 6 → x = 6; written over it: x^2 − x − 6 = 0.

    Splitting before it equals 0: from x(x−1)=6x(x - 1) = 6, writing x=6x = 6 or x−1=6x - 1 = 6.

    Move everything to one side first: x2−x−6=0x^2 - x - 6 = 0.

  • Mistake 2. Struck through: x^2 = 5x → x = 5; written over it: x = 0 or x = 5.

    Dividing both sides of x2=5xx^2 = 5x by x and losing x=0x = 0.

    Factor instead: x(x−5)=0x(x - 5) = 0, so x=0x = 0 or x=5x = 5.

  • Mistake 3. Struck through: x + 2 = 0 → x = 2; written over it: x = −2.

    A sign slip at the end: x+2=0x + 2 = 0 gives x=2x = 2.

    x+2=0x + 2 = 0 means x=−2x = -2.


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.

“Graph this quadratic and show me where it crosses the x-axis.”

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

A quadratic equation has an x2x^2 term, like x2−x−6=0x^2 - x - 6 = 0, and usually has two answers. They are the x values where the parabola y=x2−x−6y = x^2 - x - 6 crosses the x-axis. When it factors, factor it and set each bracket equal to zero. When it does not, the quadratic formula always works.

Worked example

Solve x2−x−6=0x^2 - x - 6 = 0.

  1. Factor: 2 and −3-3 multiply to −6-6 and add to −1-1.
    (x+2)(x−3)=0(x + 2)(x - 3) = 0
  2. Set each bracket equal to zero.
    x+2=0orx−3=0x + 2 = 0 \quad\text{or}\quad x - 3 = 0
  3. Solve each one.
    x=−2orx=3x = -2 \quad\text{or}\quad x = 3
  4. Check both in the first equation: 4+2−6=04 + 2 - 6 = 0 and 9−3−6=09 - 3 - 6 = 0.

Answer: x=−2x = -2 or x=3x = 3

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.