Q.E.D. — quod erat demonstrandum · every step shown, every result verifiedJournal · ISSN pending · Crossref DOI member
Sign inSign up

The Quadratic Formula

The quadratic formula gives the two roots of any quadratic equation with , directly from its coefficients.

FormulaWLM-F-0001 · Algebra

Variables

SymbolMeaningConstraints / unit
aCoefficient of the quadratic terma ≠ 0
bCoefficient of the linear termany real or complex number
cConstant termany real or complex number
xThe roots of the equationtwo values, with multiplicity

Derivation — completing the square

Divide the equation through by a, then move the constant across:

Add to both sides so the left side becomes a perfect square:

Take square roots of both sides and solve for x:

The discriminant

The quantity decides the character of the roots: Δ > 0 gives two distinct real roots, Δ = 0 gives one repeated real root, and Δ < 0 gives a conjugate pair of complex roots.

Worked example

Solve . Here a = 1, b = −5, c = 6, so Δ = 25 − 24 = 1 and: