Solving Quadratic Equations

Chapter 5: Quadratic Equations and the Discriminant

Learning objectives

  • Solve quadratics by factoring, completing the square, and the quadratic formula
  • Compute and interpret the discriminant
  • Understand the relationship between roots and coefficients

Linear equations are a one-trick pony: isolate the variable. Quadratic equations are the first time you meet an equation where isolation alone does not work — x2x^2 and xx both contain the unknown, and you cannot pull them apart by simple subtraction. The four big ideas of this section (factoring, completing the square, the quadratic formula, and the discriminant) all amount to one strategy: rewrite the equation in a form where the variable IS isolated, namely as a perfect square equal to a number. A quadratic equation has the standard form ax2+bx+c=0ax^2 + bx + c = 0 where a0a \neq 0.

The Quadratic Formula

x=b±b24ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

The expression Δ=b24ac\Delta = b^2 - 4ac is the discriminant:

If Δ>0\Delta > 0: two distinct real roots. If Δ=0\Delta = 0: one repeated root. If Δ<0\Delta < 0: no real roots (two complex roots).

Completing the Square

ax2+bx+c=a(x+b2a)2b24ac4aax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 - \frac{b^2 - 4ac}{4a}

Vieta's formulas relate roots r1,r2r_1, r_2 to coefficients: r1+r2=bar_1 + r_2 = -\frac{b}{a}, r1r2=car_1 \cdot r_2 = \frac{c}{a}. This means you can find the sum and product of roots without solving.

Factoring: If you can find r1,r2r_1, r_2 such that r1+r2=b/ar_1 + r_2 = -b/a and r1r2=c/ar_1 r_2 = c/a, then ax2+bx+c=a(xr1)(xr2)ax^2 + bx + c = a(x - r_1)(x - r_2).

Quadratic ExplorerInteractive figure — enable JavaScript to interact.

(Drag a, b, c in the widget. Watch the parabola morph, the roots slide along the x-axis, and the discriminant flip sign at the moment the parabola becomes tangent to the x-axis.)

Try it

  • In the widget, set a=a =, b=b =, c=c =. Before setting these: what are the roots of x25x+6=0x^2 - 5x + 6 = 0? Set the coefficients in the widget to verify, and confirm using Vieta's formulas.
  • Drag the coefficients until the discriminant equals zero exactly. What does the parabola do at that moment?
  • Solve 2x25x+3=02x^2 - 5x + 3 = 0 by the quadratic formula. Then verify with Vieta's formulas.
  • Drag the coefficients until the parabola has no real roots (discriminant Δ<0\Delta < 0).

Try it in code

A trap to watch for

A common error: applying the quadratic formula to (x1)2=4(x - 1)^2 = 4. That is not in standard form yet. Expand first: x22x3=0x^2 - 2x - 3 = 0, THEN read off a=1,b=2,c=3a = 1, b = -2, c = -3 and apply the formula. Another sneakier trap: when a<0a < 0, students sometimes forget that aa stays negative throughout. The fix: always rewrite the equation as ax2+bx+c=0ax^2 + bx + c = 0 before extracting a,b,ca, b, c, and keep signs explicit.

What you now know

You can solve any quadratic by factoring (when easy), completing the square (always works), or the quadratic formula (when factoring is hard). The discriminant tells you the number of real roots before you commit to a method, and Vieta's formulas link roots to coefficients. The Intermezzo chapter that follows steps back from computation to discuss how mathematics is read, written, and reasoned about.

Quick check

References

  • Lang, S. (1971). Basic Mathematics. Springer. Chapter 4, §1 — quadratic equations, completing the square, and the discriminant.
  • Stewart, J. (2015). Calculus: Early Transcendentals, 8th ed. Cengage. Appendix C — the quadratic formula derived from completing the square step by step.
  • Garrity, T. (2002). All the Mathematics You Missed. Cambridge. Chapter 1 — quadratics as the bridge to algebraic geometry, with Vieta's formulas as the first symmetric-function identity.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.