Skip to content

General Math

Quadratic Equation Solver: Formula, Discriminant & Roots Explained

Master the quadratic formula, understand discriminants, find real and complex roots, and locate the vertex. Complete guide with worked examples.

OurDailyCalc Team 8 min read

Try it now

Quadratic Equation Solver

Solve any quadratic equation with full working, discriminant, and vertex.

The quadratic equation is one of mathematics’ most celebrated formulas, appearing in virtually every branch of science and engineering. From projectile motion in physics to profit optimization in economics, from signal processing in electrical engineering to orbital mechanics in aerospace, quadratic equations emerge naturally whenever a relationship involves squared terms. Mastering the quadratic formula and understanding the geometry of parabolas gives you a powerful analytical toolkit applicable across countless domains.

Our quadratic equation solver handles the computational work instantly, providing the discriminant, roots (real or complex), vertex coordinates, axis of symmetry, and complete step-by-step solutions. But understanding the mathematics behind the formula transforms you from a calculator user into a confident problem solver.

The Standard Form: ax² + bx + c = 0

Every quadratic equation can be written in standard form ax² + bx + c = 0, where a, b, and c are real number coefficients and a ≠ 0 (if a equals zero, the equation degenerates into a linear equation). The coefficient a determines the “width” and direction of the parabola, b influences the horizontal position, and c represents the y-intercept.

The requirement that a ≠ 0 is fundamental — without a squared term, there is no quadratic to solve. This is why our calculator validates that the leading coefficient is nonzero before proceeding with the solution.

The Quadratic Formula

The quadratic formula provides the exact solutions to any quadratic equation:

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

This formula is derived by completing the square on the general form ax² + bx + c = 0. The ± symbol indicates that there are generally two solutions: one using addition and one using subtraction. These two values are the x-coordinates where the parabola crosses (or would cross) the x-axis.

Derivation by Completing the Square

Starting from ax² + bx + c = 0:

  1. Divide everything by a: x² + (b/a)x + c/a = 0
  2. Move the constant: x² + (b/a)x = −c/a
  3. Complete the square: x² + (b/a)x + (b/2a)² = −c/a + (b/2a)²
  4. Factor the left side: (x + b/2a)² = (b² − 4ac) / (4a²)
  5. Take the square root: x + b/2a = ±√(b² − 4ac) / (2a)
  6. Solve for x: x = (−b ± √(b² − 4ac)) / (2a)

This derivation explains why the formula works and demonstrates that it is not merely a memorized trick but a logical consequence of algebraic manipulation.

The Discriminant: Δ = b² − 4ac

The discriminant is the expression under the square root in the quadratic formula. It serves as a powerful diagnostic tool that reveals the nature of the roots without requiring full computation.

Three Cases of the Discriminant

Case 1: Δ > 0 (Positive discriminant) The equation has two distinct real roots. The parabola crosses the x-axis at two different points. The square root of a positive number is real, giving two different values when added to and subtracted from −b.

Example: x² − 5x + 6 = 0 → Δ = 25 − 24 = 1 > 0 → roots at x = 2 and x = 3.

Case 2: Δ = 0 (Zero discriminant) The equation has exactly one real root (a “double root” or “repeated root”). The parabola just touches the x-axis at its vertex. Since √0 = 0, both the + and − versions of the formula give the same answer: x = −b/(2a).

Example: x² − 6x + 9 = 0 → Δ = 36 − 36 = 0 → root at x = 3 (double root).

Case 3: Δ < 0 (Negative discriminant) The equation has no real roots but two complex conjugate roots. The parabola never crosses the x-axis — it sits entirely above (a > 0) or entirely below (a < 0) the x-axis. The roots take the form p ± qi where i = √(−1).

Example: x² + x + 1 = 0 → Δ = 1 − 4 = −3 < 0 → roots at x = −0.5 ± (√3/2)i.

You can explore all three cases using our quadratic equation solver, which clearly identifies the discriminant value and root type.

The Vertex of a Parabola

Every parabola y = ax² + bx + c has a vertex — the highest or lowest point on the curve. The vertex coordinates are:

  • x-coordinate: h = −b / (2a)
  • y-coordinate: k = f(h) = a(−b/2a)² + b(−b/2a) + c = c − b²/(4a)

The vertex form of the quadratic is y = a(x − h)² + k, which makes the vertex coordinates immediately visible. Converting between standard form and vertex form is a common algebraic exercise that deepens understanding of parabola geometry.

Significance of the Vertex

If a > 0 (parabola opens upward), the vertex is the minimum point — the function achieves its smallest value at x = h. If a < 0 (parabola opens downward), the vertex is the maximum point. This property makes quadratics invaluable for optimization problems.

For example, a projectile’s height h(t) = −16t² + 64t + 5 reaches maximum height at t = −64/(2×−16) = 2 seconds, with maximum height h(2) = −16(4) + 64(2) + 5 = 69 feet.

Axis of Symmetry

The axis of symmetry is the vertical line x = −b/(2a) that passes through the vertex and divides the parabola into two mirror-image halves. This means the two roots of the equation are always equidistant from the axis of symmetry.

If the roots are x₁ and x₂, then the axis of symmetry passes through their midpoint: x = (x₁ + x₂)/2 = −b/(2a). This relationship provides a useful check: after finding both roots, their average should equal −b/(2a).

Parabola Direction and Shape

The coefficient a controls both the direction and “width” of the parabola:

  • a > 0: Opens upward (U-shape), has a minimum at the vertex
  • a < 0: Opens downward (∩-shape), has a maximum at the vertex
  • |a| > 1: Parabola is narrower than y = x² (vertically stretched)
  • |a| < 1: Parabola is wider than y = x² (vertically compressed)

Understanding these geometric properties helps in sketching parabolas quickly and interpreting real-world quadratic models.

Worked Example: Complete Solution

Solve 2x² − 7x + 3 = 0.

Step 1: Identify coefficients a = 2, b = −7, c = 3

Step 2: Calculate discriminant Δ = b² − 4ac = (−7)² − 4(2)(3) = 49 − 24 = 25

Step 3: Determine root type Since Δ = 25 > 0, there are two distinct real roots.

Step 4: Apply the formula x = (−(−7) ± √25) / (2×2) = (7 ± 5) / 4

x₁ = (7 + 5) / 4 = 12/4 = 3 x₂ = (7 − 5) / 4 = 2/4 = 0.5

Step 5: Find vertex h = −(−7)/(2×2) = 7/4 = 1.75 k = 2(1.75)² − 7(1.75) + 3 = 6.125 − 12.25 + 3 = −3.125

Vertex: (1.75, −3.125), Axis of symmetry: x = 1.75, Direction: Opens upward

You can verify this entire solution step-by-step in our quadratic equation solver.

Alternative Solution Methods

Factoring

When possible, factoring is the fastest method. Look for two numbers that multiply to give ac and add to give b, then rewrite the middle term and factor by grouping. Not all quadratics factor nicely over the integers.

Completing the Square

This method works for all quadratics and is the basis for deriving the quadratic formula itself. Move c to the right side, add (b/2a)² to both sides, then factor and solve.

Graphical Method

Plot the parabola and identify where it crosses the x-axis. While less precise, this gives valuable geometric intuition about the solutions.

Real-World Applications

Projectile Motion

The height of any projectile under gravity follows h(t) = −½gt² + v₀t + h₀. Finding when h = 0 (when the projectile hits the ground) requires solving a quadratic equation.

Revenue Optimization

If revenue R = px where price p = a − bx (linear demand), then R = ax − bx², a quadratic in x. The vertex gives the profit-maximizing quantity.

Engineering Design

Parabolic shapes appear in satellite dishes (signal focusing), suspension bridge cables (load distribution), and reflective telescopes (parallel light focusing). The geometric properties of parabolas make them optimal for these applications.

Finance

The present value of certain cash flow patterns, break-even analysis with non-linear cost functions, and option pricing models all involve solving quadratic equations.

Common Mistakes and How to Avoid Them

  1. Forgetting that a ≠ 0: If a = 0, use the linear formula x = −c/b instead.
  2. Sign errors with negative b: Be careful: −(−b) = +b. Double-check signs in the formula.
  3. Dividing by 2a, not 2: The denominator is 2a, not just 2. A common error is computing (−b±√Δ)/2 instead of (−b±√Δ)/(2a).
  4. Square root of negative discriminant: Don’t declare “no solution.” Complex roots exist; state them as p ± qi.
  5. Confusing vertex with roots: The vertex (h, k) is not a root unless k = 0.

Relationship to Higher-Order Polynomials

Quadratic equations are second-degree polynomials. While cubic (degree 3) and quartic (degree 4) equations also have closed-form solutions (Cardano’s formula and Ferrari’s method), they are far more complex. The quadratic formula is elegant in its simplicity and complete generality — it solves every possible quadratic equation with a single compact expression.

For polynomials of degree 5 and higher, Abel and Galois proved that no general closed-form solution exists (the Abel-Ruffini theorem). This makes the quadratic formula even more remarkable — it represents one of the highest-degree polynomial types with a universal algebraic solution.

#quadratic equation #quadratic formula #discriminant #parabola #roots
DC

OurDailyCalc Team

OurDailyCalc — beautiful tools for everyday calculations.