The Quadratic Formula Explained

Advertisement
Ad space (728×90 / Responsive)

Solve quadratic equations (ax²+bx+c=0) using the quadratic formula. Shows real and complex roots, step by step.

Open Quadratic Equation Solver
Advertisement
Ad space (336×280 / Responsive)

Quadratic equations — anything of the form ax² + bx + c = 0 — appear everywhere from physics to business optimization, and the quadratic formula is the tool that solves every one of them. Factoring works when the roots are tidy integers, but most real-world quadratics are not tidy. The quadratic formula gives you the roots no matter what the coefficients are, and a smaller piece of it — the discriminant — tells you what kind of roots to expect before you finish the calculation. This guide walks through the formula, the discriminant, worked examples, and where quadratics actually show up in practice.

What makes an equation quadratic

A quadratic equation is any equation that can be written in the standard form:

ax² + bx + c = 0

where a, b, and c are constants and a ≠ 0. The defining feature is the x² term — that is what makes it quadratic rather than linear. The graph of a quadratic is a parabola, and the solutions to the equation (called roots) are the x-values where that parabola crosses the x-axis.

The coefficients carry straightforward meanings: a controls how wide or narrow the parabola is and which way it opens (up if a is positive, down if negative), b shifts the parabola sideways, and c is the y-intercept — the value of the function when x = 0.

The quadratic formula

Given any ax² + bx + c = 0, the values of x that satisfy it are:

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

The ± means there are two solutions (usually): one where you add the square root term, one where you subtract it. Plug in a, b, and c from your equation, simplify, and you have your roots. No factoring required.

Because the arithmetic gets tedious with messy coefficients, a quadratic equation solver handles the formula instantly — useful for checking your work or grinding through several equations in a row.

When to use the formula vs. factoring

Factoring rewrites ax² + bx + c as a product of two binomials, (px + q)(rx + s), and then uses the zero-product property: if a product equals zero, at least one factor must be zero. It is fast and elegant when the roots are simple integers, but it breaks down quickly:

  • When coefficients are large or prime, factoring becomes a guessing game.
  • When the roots are irrational or complex, factoring fails outright.
  • When the leading coefficient a is not 1, factoring gets clumsy.

The quadratic formula has none of these limitations. It always produces the roots — real or complex, rational or irrational — which is why it is the fallback method. A reasonable workflow: try factoring for ten seconds; if the roots are not obvious, switch to the formula.

To build intuition for why factoring and the formula agree — and to manipulate parabolas interactively rather than just memorizing — Brilliant offers interactive algebra courses where you can drag coefficients and watch the roots move.

The discriminant: a quick way to predict the roots

The expression under the square root in the formula, b² − 4ac, is called the discriminant (often written as Δ). Before you finish solving, the discriminant tells you what kind of roots the equation has:

Discriminant (Δ = b² − 4ac)Number and type of roots
Positive (Δ > 0)Two distinct real roots
Zero (Δ = 0)One repeated real root
Negative (Δ < 0)Two complex conjugate roots

Geometrically: a positive discriminant means the parabola crosses the x-axis twice; zero means it just touches it at the vertex (the root is "repeated"); negative means it never touches the x-axis at all, so there are no real solutions — only complex ones.

Checking the discriminant first saves time. If it is negative, you know immediately there are no real roots and can stop if real solutions are all you need.

Worked example: two real roots

Solve x² − 5x + 6 = 0.

Identify a = 1, b = −5, c = 6. Check the discriminant: b² − 4ac = (−5)² − 4(1)(6) = 25 − 24 = 1. Positive, so two distinct real roots.

Apply the formula: x = (−(−5) ± √1) ÷ 2(1) = (5 ± 1) ÷ 2.

  • x₁ = (5 + 1) ÷ 2 = 6 ÷ 2 = 3
  • x₂ = (5 − 1) ÷ 2 = 4 ÷ 2 = 2

The roots are x = 3 and x = 2. (This one factors as (x − 3)(x − 2) = 0, which is the faster route — but the formula got there just the same.)

Worked example: one repeated root

Solve x² − 4x + 4 = 0.

Here a = 1, b = −4, c = 4. Discriminant: (−4)² − 4(1)(4) = 16 − 16 = 0. Zero discriminant means one repeated real root.

x = (−(−4) ± √0) ÷ 2(1) = 4 ÷ 2 = 2.

The single root is x = 2 (written as a double root, x = 2 twice). Geometrically the parabola touches the x-axis tangentially at its vertex.

Worked example: complex roots

Solve x² + 2x + 5 = 0.

a = 1, b = 2, c = 5. Discriminant: (2)² − 4(1)(5) = 4 − 20 = −16. Negative, so two complex roots.

x = (−2 ± √(−16)) ÷ 2 = (−2 ± 4i) ÷ 2 = −1 ± 2i, where i = √(−1).

The roots are x = −1 + 2i and x = −1 − 2i. There are no real solutions; the parabola sits entirely above the x-axis.

When you want to verify any of these without redoing the arithmetic, a quadratic equation solver returns both roots and the discriminant in one pass.

Completing the square

Completing the square is both a solving method and the technique used to derive the quadratic formula itself. The idea: rewrite ax² + bx + c in the form a(x + d)² + e, which makes the roots easy to read off.

For a simple example, take x² + 6x + 5 = 0. Half of the x coefficient is 3, and 3² = 9. Add and subtract 9:

x² + 6x + 9 − 9 + 5 = (x + 3)² − 4 = 0.

So (x + 3)² = 4, giving x + 3 = ±2, and x = −3 ± 2, so x = −1 or x = −5. The same roots the formula would give you, reached by a more geometric path. Completing the square is also how the ax² + bx + c form is converted to the vertex form a(x − h)² + k used to graph parabolas.

Real-world applications

Quadratics are not just textbook exercises — they model real curvature wherever something rises and falls under constant acceleration, or wherever a quantity has a single peak.

  • Projectile motion: the height of a thrown object over time follows h(t) = −½gt² + v₀t + h₀, where g is gravity, v₀ initial velocity, and h₀ initial height. It is a quadratic in t: setting h(t) = 0 and solving gives the landing time, and the vertex gives the peak height.
  • Profit optimization: revenue and cost curves are often quadratic. If price p and quantity q are related (say q = 100 − 2p), then revenue R = p·q = 100p − 2p² is a downward parabola, and its vertex gives the price that maximizes revenue.
  • Engineering and design: satellite dishes, suspension bridge cables, and headlight reflectors use parabolic shapes because of how they focus signals and light. The geometry traces back to the quadratic function.
  • Area problems: maximizing the area of a rectangle with a fixed perimeter is a quadratic optimization — the vertex gives the square that yields the largest area.

In all of these, the discriminant tells you whether a real solution exists, and the vertex (found via −b ÷ 2a) tells you the optimum. To go deeper on the modeling side — especially the business and physics applications — Coursera offers university-level courses in calculus, physics, and business analytics where quadratics are the starting point for optimization.

Common mistakes with the quadratic formula

  • Forgetting the sign on b: if b is negative, −b is positive. Lose that sign and both roots come out wrong.
  • Dividing only one term by 2a: the entire numerator (−b ± √Δ) is divided by 2a, not just the square root piece.
  • Sign errors inside the discriminant: b² is always non-negative, but 4ac can flip the sign of the whole expression. Compute it carefully, especially with negative c.
  • Treating a = 0: if a = 0, the equation is not quadratic (it is linear: bx + c = 0). Always confirm a ≠ 0 before applying the formula.
  • Mixing up the order of operations: compute b² − 4ac first, take its square root, then apply ±, then add −b, then divide. Skipping steps invites errors.

The bottom line

The quadratic formula — x = (−b ± √(b² − 4ac)) ÷ 2a — solves any quadratic equation ax² + bx + c = 0. Use it whenever factoring is impractical, and check the discriminant first to predict whether you will get two real roots, one repeated root, or two complex roots. Completing the square is the underlying technique that produces the formula and also converts quadratics into vertex form for graphing. From projectile motion to profit maximization, quadratics model any quantity with a single peak or valley — and the formula gives you the exact points where that curve hits zero.

Advertisement
Ad space (728×90)

Sources