How to Solve Quadratic Equations (Formula, Discriminant & Completing the Square)
A quadratic equation is a second-degree polynomial equation written in standard form as ax² + bx + c = 0, where x is the unknown variable and a, b, and c are real constants with a ≠ 0. Geometrically, the function f(x) = ax² + bx + c traces a symmetric parabola that opens upward when a > 0 (with a minimum vertex) or downward when a < 0 (with a maximum vertex).
The Quadratic Formula
Universal exact solution for any ax² + bx + c = 0
The expression inside the square root, Δ = b² − 4ac, is called the discriminant. Evaluating Δ first immediately reveals whether the parabola intersects the x-axis twice, kisses it at a single repeated root, or sits entirely above/below it with two complex conjugate roots.
Completing the Square & Vertex Form
Deriving vertex (h, k) and axis of symmetry
Factoring a from the first two terms and adding/subtracting (b / 2a)² transforms standard form into Vertex Form, where h = −b / (2a) gives the axis of symmetry x = h and k = f(h) = c − b² / (4a) gives the extremum height.
Completing the Square: Step-by-Step Derivation
c to the right side of ax² + bx + c = 0 and divide every term by a ≠ 0 to obtain x² + (b/a)x = −c/a.(b / 2a)² = b² / (4a²) to both sides so the left side factors into a perfect square: (x + b / 2a)² = (b² − 4ac) / (4a²).x + b / (2a) = ±√(b² − 4ac) / (2a) (introducing imaginary unit i = √−1 whenever b² − 4ac < 0).b / (2a) to produce the quadratic formula, then factor out any largest square from |Δ| and cancel common divisors across −b, the radical coefficient, and 2a.Discriminant Cases (Δ > 0, Δ = 0, Δ < 0) & Graph Behavior
Before simplifying radicals or plotting points, evaluating the discriminant Δ = b² − 4ac classifies the algebraic roots and geometric x-axis behavior into three mutually exclusive regimes:
| Discriminant Case | Root Count & Nature | Parabola Graph & X-Intercepts | Factored Form & Worked Preset |
|---|---|---|---|
| Δ > 0 Positive |
Two distinct real roots (x₁ ≠ x₂; rational if Δ is a perfect square, irrational radical otherwise) |
Crosses the x-axis at two distinct points (x₁, 0) and (x₂, 0) equidistant around x = h. |
Factors cleanly over ℝ: a(x − x₁)(x − x₂).Preset: x² − 5x + 6 = 0 (Δ = 1 → x = 3, 2). |
| Δ = 0 Zero |
One repeated real root (double root of multiplicity 2: x = −b / 2a) |
Tangent to the x-axis at a single point: the vertex sits directly on the x-axis at (h, 0). |
Perfect square trinomial: a(x − r)² = 0.Preset: x² − 6x + 9 = 0 (Δ = 0 → x = 3). |
| Δ < 0 Negative |
Two complex conjugate roots (p ± qi where i = √−1) |
Never touches or crosses the x-axis; opens entirely above (a > 0) or below (a < 0) the horizontal axis. |
Irreducible over ℝ; complex conjugate factors over ℂ. Preset: x² + 2x + 5 = 0 (Δ = −16 → −1 ± 2i). |
Frequently Asked Questions
The Quadratic Formula x = (−b ± √(b² − 4ac)) / (2a) gives exact roots for any quadratic equation ax² + bx + c = 0. Coefficient a cannot be zero because if a = 0, the quadratic term vanishes (reducing the equation to a straight line bx + c = 0) and dividing by 2a = 0 is mathematically undefined.
When Δ > 0, the equation has two distinct real roots. When Δ = 0, it has one repeated real root where the vertex kisses the x-axis. When Δ < 0, taking the square root of a negative number yields two complex conjugate roots (p ± qi) and the parabola never intersects the real x-axis.
When coefficients are integers or terminating decimals, CobaltCalc scales the quadratic into integer form, extracts the largest perfect square factor from |Δ|, and divides −b, the outside radical coefficient, and 2a by their Greatest Common Divisor (GCD), displaying simplified radicals alongside decimal approximations.
Every parabola is symmetric about the vertical line x = h = −b / (2a). Plugging h back into the quadratic yields the extreme vertical value k = ah² + bh + c = c − b² / (4a), giving both the vertex (h, k) and exact vertex form y = a(x − h)² + k.
No—never. All quadratic computations, radical simplifications, step-by-step derivations, and SVG parabola plots execute 100% locally in your browser with zero network uploads.
Explore Our Free Calculator Series
Fast, privacy-first math & statistical utilities running 100% in your browser.