Concepts · 3 min read

The Quadratic Formula: Where It Comes From

The Quadratic Formula: Where It Comes From — illustration
In short: The quadratic formula is completing the square done once and for all. For x² − 3x − 4 = 0 it gives x = 4 or x = −1.

Start with the general equation

Begin with ax² + bx + c = 0 and divide by a: x² + (b/a)x + c/a = 0. Move the constant across: x² + (b/a)x = −c/a.

Complete the square

Add (b/2a)² to both sides so the left becomes a perfect square: (x + b/2a)² = (b² − 4ac) / 4a². Take square roots: x + b/2a = ±√(b² − 4ac) / 2a. Subtract b/2a and you have the formula.

x = (−b ± √(b² − 4ac)) / 2a

What the discriminant tells you before you finish

The expression under the root, D = b² − 4ac, is the discriminant. Positive means two real roots, zero means one repeated root, and negative means two complex roots.

A worked example with the solver
Answerx = 4 or x = −1
  • Factored form: (x − 4)(x + 1)
  • Discriminant D = 25
  • Vertex: (1.5, −6.25)
Step-by-step working 6 steps
  1. 1
    Identify a, b and c
    x² − 3x − 4 = 0
    a = 1,  b = −3,  c = −4
  2. 2
    Calculate the discriminant
    D = b² − 4ac = (−3)² − 4(1)(−4) = 25

    D is positive: two different real roots.

  3. 3
    Apply the quadratic formula
    x = (−b ± √D) / 2a = (3 ± √25) / 2 = (3 ± 5) / 2
  4. 4
    Solve for both roots
    x₁ = 4
    x₂ = −1
  5. 5
    Check by substitution
    f(4) = 0
    f(−1) = 0

    Both should be 0 (allowing for tiny rounding).

  6. 6
    Vertex of the parabola
    x = −b / 2a = 1.5,  y = −6.25  →  vertex (1.5, −6.25)

    The parabola opens upward, so the vertex is the minimum point.

Frequently asked questions

Why does the formula have a ±?

Because squaring loses the sign: both a positive and a negative number have the same square, so there are two possible roots.

Is there a formula for cubic equations?

Yes, but it is much longer; for degree five and above there is no general formula using ordinary roots.

Written and reviewed by Mateuss M.

Mateuss M. writes and reviews mathematical content for CalcSolver, focusing on online calculators, formulas, equations, and practical math tools. He reviews calculator functionality, calculation methods, formulas, examples, and explanations to help ensure that each tool is clear, useful, and easy to understand.

Keep reading