Advanced level

Quadratic equations

A quadratic equation has the unknown in the second power. Learn the general form, the discriminant, the formulas for the roots, the shortcuts for incomplete equations, Vieta formulas and how to read the solutions off a parabola.

Before you start

This topic builds on earlier ideas. Before you start, it's worth working through the lessons below — they'll make everything click:

All formulas

  • General form of a quadratic equation

    ax2+bx+c=0(a0)ax^2 + bx + c = 0 \quad (a \neq 0)

    the condition a ≠ 0 is what tells it from a linear one

  • The discriminant

    Δ=b24ac\Delta = b^2 - 4ac

    its sign decides how many roots there are

  • Roots when Δ > 0

    x1=bΔ2a,x2=b+Δ2ax_1 = \frac{-b - \sqrt{\Delta}}{2a}, \quad x_2 = \frac{-b + \sqrt{\Delta}}{2a}

    two distinct real solutions

  • Root when Δ = 0

    x0=b2ax_0 = \frac{-b}{2a}

    one (double) solution

  • No roots

    Δ<0    x\Delta < 0 \implies x \in \varnothing

    the equation has no real solutions

  • Vieta formulas

    x1+x2=ba,x1x2=cax_1 + x_2 = -\frac{b}{a}, \quad x_1 \cdot x_2 = \frac{c}{a}

    the sum and product of the roots without computing them

  • Factored form

    ax2+bx+c=a(xx1)(xx2)ax^2 + bx + c = a(x - x_1)(x - x_2)

    it exists only when Δ ≥ 0

A quadratic equation is one in which the unknown appears in the second power. Once tidied up, every one of them can be written in the general form:

ax2+bx+c=0(a0)ax^2 + bx + c = 0 \quad (a \neq 0)

The condition a0a \neq 0 is not decoration — it is what tells a quadratic equation from a linear one. The numbers aa, bb and cc are called coefficients; bb or cc may be zero, but aa never is.

The discriminant

Before computing anything else, we compute one number:

Δ=b24ac\Delta = b^2 - 4ac

That number sits under the square root in the formulas for the solutions, so its sign settles everything before the search for the roots even begins:

  • Δ>0\Delta > 0two distinct roots,
  • Δ=0\Delta = 0one (double) root,
  • Δ<0\Delta < 0no real roots.

The formulas for the roots

When Δ>0\Delta > 0, both solutions are given by:

x1=bΔ2a,x2=b+Δ2ax_1 = \frac{-b - \sqrt{\Delta}}{2a}, \qquad x_2 = \frac{-b + \sqrt{\Delta}}{2a}

When Δ=0\Delta = 0, both formulas give the same number, so they are written more briefly:

x0=b2ax_0 = \frac{-b}{2a}
Solve: x² − 2x − 3 = 0.

The commonest slip lives in the signs: the formula has b-b, so a b=2b = -2 turns into a +2+2 in the numerator.

Incomplete equations

When the middle or the constant term is missing, the discriminant of course still works — but it is a waste of time, because the shortcut is shorter:

x29=0    x2=9    x=3  or  x=3x^2 - 9 = 0 \iff x^2 = 9 \iff x = 3 \ \text{ or } \ x = -3 x25x=0    x(x5)=0    x=0  or  x=5x^2 - 5x = 0 \iff x(x - 5) = 0 \iff x = 0 \ \text{ or } \ x = 5

The first case is taking the square root of both sides — with both signs, because squaring loses the sign. The second is factoring xx out and using the fact that a product is zero only when one of its factors is. That is the same rule the factored form rests on:

ax2+bx+c=a(xx1)(xx2)ax^2 + bx + c = a(x - x_1)(x - x_2)

The parabola and its zeros

The graph of y=ax2+bx+cy = ax^2 + bx + c is a parabola. So the equation ax2+bx+c=0ax^2 + bx + c = 0 asks where that parabola has height zero — that is, where it crosses the xx-axis:

−3−2−1012345−4−20246xyx₁ = −1x₂ = 3
The roots are the x-coordinates where the parabola meets the x-axis: −1 and 3.

The three cases of the discriminant are now plain to see: for Δ>0\Delta > 0 the parabola crosses the axis twice, for Δ=0\Delta = 0 it touches it once, and for Δ<0\Delta < 0 it misses it entirely — lying wholly above or wholly below.

The parabola also has a vertex, an axis of symmetry and a canonical form, but those are properties of the quadratic function — we come back to them in the branch on functions. Here only one thing about it matters: where it meets the xx-axis.

Vieta formulas

The sum and the product of the roots can be read off the coefficients alone, without computing the discriminant:

x1+x2=ba,x1x2=cax_1 + x_2 = -\frac{b}{a}, \qquad x_1 \cdot x_2 = \frac{c}{a}

For x22x3=0x^2 - 2x - 3 = 0 that gives a sum of 22 and a product of 3-3 — matching the pair 1-1 and 33. It is the cheapest check of a result there is, and with whole-number coefficients it often lets you guess the roots: look for two numbers with the given sum and the given product.

In the exercises below, enter both roots separated by a comma, in ascending order — for instance x1=1,x2=3x_1 = -1, x_2 = 3 (a bare 1,3-1, 3 is accepted too). When Δ=0\Delta = 0 and there is a single root, enter a single number.

Practice

Work through a set of exercises — they get harder as you go. At the end you'll see your score and the mistakes worth reviewing.

Exercise 1 of 8Score: 0
x² − 11x + 30 = 0

Common mistakes

  • Computing the discriminant before tidying the equation up — move everything to one side first, then read off aa, bb, cc.
  • A lost sign in b-b — for b=2b = -2 the numerator starts with +2+2.
  • Dividing only the first term by 2a2a — the fraction bar covers the whole numerator.
  • Keeping one sign when taking a rootx2=9x^2 = 9 gives x=3x = 3 or x=3x = -3.
  • Dividing the equation by xx — in x2=5xx^2 = 5x that loses the solution x=0x = 0; factor xx out instead.
  • Reading a negative discriminant as an arithmetic slip — it is a correct answer: no real roots.

Formula card

Topic: Quadratic equations

  • General form of a quadratic equation

    ax2+bx+c=0(a0)ax^2 + bx + c = 0 \quad (a \neq 0)

    the condition a ≠ 0 is what tells it from a linear one

  • The discriminant

    Δ=b24ac\Delta = b^2 - 4ac

    its sign decides how many roots there are

  • Roots when Δ > 0

    x1=bΔ2a,x2=b+Δ2ax_1 = \frac{-b - \sqrt{\Delta}}{2a}, \quad x_2 = \frac{-b + \sqrt{\Delta}}{2a}

    two distinct real solutions

  • Root when Δ = 0

    x0=b2ax_0 = \frac{-b}{2a}

    one (double) solution

  • No roots

    Δ<0    x\Delta < 0 \implies x \in \varnothing

    the equation has no real solutions

  • Vieta formulas

    x1+x2=ba,x1x2=cax_1 + x_2 = -\frac{b}{a}, \quad x_1 \cdot x_2 = \frac{c}{a}

    the sum and product of the roots without computing them

  • Factored form

    ax2+bx+c=a(xx1)(xx2)ax^2 + bx + c = a(x - x_1)(x - x_2)

    it exists only when Δ ≥ 0

−3−2−1012345−4−20246xyx₁ = −1x₂ = 3
The parabola y = x² − 2x − 3 crosses the x-axis at (−1, 0) and (3, 0) — the roots of x² − 2x − 3 = 0.

Frequently asked questions

Related articles