TR

Home / Guides / How to Solve a Quadratic Equation: Discriminant and Formula

How to Solve a Quadratic Equation: Discriminant and Formula

Updated: October 31, 2026 · AracMerkezi

▶ Open Quadratic Equation Calculator

Solving a quadratic equation is one of the algebra skills met most often, from middle school through university. Projectile motion in physics, area problems in geometry and cost and profit models in economics all rest on this kind of equation. In this guide you will see step by step how the equation ax² + bx + c = 0 is solved with the discriminant (delta) method, what types of roots there are and how the vertex is found. To try your own equations, use the Quadratic Equation Solver.

General form

A quadratic equation is written in this form:

ax² + bx + c = 0, a ≠ 0

Here a, b and c are coefficients. If a is zero, the equation becomes first degree and is solved with x = −c ÷ b.

The solution formula and the discriminant

To find the roots, first compute the discriminant:

Δ = b² − 4ac

Then the roots are found with this formula:

x₁,₂ = (−b ± √Δ) ÷ 2a

The formula comes from the "completing the square" method: divide ax² + bx + c = 0 by a to get x² + (b/a)x = −c/a; add (b/2a)² to both sides and the left side becomes (x + b/2a)², from which you isolate x.

### Root types according to Δ

ΔRoot typeParabola and the x-axis
Δ > 0Two distinct real rootsThe axis is crossed at two points
Δ = 0One repeated (double) real rootTouches the axis at the vertex
Δ < 0No real roots, two conjugate complex rootsThe axis is not crossed

Step-by-step solution method

  1. Bring the equation to the form ax² + bx + c = 0 (all terms on one side).
  2. Write down a, b and c together with their signs.
  3. Compute Δ = b² − 4ac.
  4. Determine the root type from the sign of Δ.
  5. Substitute into the formula to find the roots.
  6. Verify by substituting the roots back into the equation.

Worked examples

### Example 1: Two distinct real roots

2x² − 7x + 3 = 0. a = 2, b = −7, c = 3.

Δ = (−7)² − 4 × 2 × 3 = 49 − 24 = 25, √Δ = 5.

x₁ = (7 − 5) ÷ 4 = 1/2 = 0.5

x₂ = (7 + 5) ÷ 4 = 3

Check: 2 × 3² − 7 × 3 + 3 = 18 − 21 + 3 = 0 ✓.

### Example 2: A repeated root

x² − 6x + 9 = 0. a = 1, b = −6, c = 9.

Δ = 36 − 36 = 0. x = 6 ÷ 2 = 3. This equation can be written as (x − 3)² = 0.

### Example 3: Complex roots

x² + 2x + 5 = 0. a = 1, b = 2, c = 5.

Δ = 4 − 20 = −16. √Δ = 4i.

x = (−2 ± 4i) ÷ 2 = −1 ± 2i

The roots are the conjugate complex numbers −1 + 2i and −1 − 2i.

### Example 4: Δ that is not a perfect square

x² − 2x − 1 = 0. Δ = 4 + 4 = 8, √8 = 2√2 ≈ 2.82842712.

x₁ = (2 − 2.82842712) ÷ 2 ≈ −0.41421356, x₂ = (2 + 2.82842712) ÷ 2 ≈ 2.41421356. In exact form, x = 1 ± √2.

Relationship between roots and coefficients (Vieta)

If the roots are x₁ and x₂:

For 2x² − 7x + 3 the sum is 7/2 = 3.5 and the product is 3/2 = 1.5; since 0.5 + 3 = 3.5 and 0.5 × 3 = 1.5, the result is confirmed. The equation also factors as a(x − x₁)(x − x₂): 2(x − 0.5)(x − 3).

The vertex and the parabola

The graph of y = ax² + bx + c is a parabola, and its vertex is V(−b ÷ 2a ; f(−b ÷ 2a)). The y-value of the vertex can also be found as c − b² ÷ 4a.

Example: For 2x² − 7x + 3, x = 7 ÷ 4 = 1.75 and y = 3 − 49 ÷ 8 = −3.125. The vertex is V(1.75 ; −3.125). It matches 1.75, the midpoint of the roots 0.5 and 3.

Other solution methods

Common mistakes

  1. Missing the sign of b. If b = −7, then −b = +7.
  2. Computing −7² instead of (−7)². The correct value is (−7)² = 49.
  3. Writing 2 instead of 2a in the denominator. If a = 2, the denominator is 4.
  4. Using the equation without setting it to zero. x² = 5x − 6 must first become x² − 5x + 6 = 0.
  5. Saying "no solution" when Δ < 0. There are none among the real numbers, but among complex numbers there are two solutions.
  6. Not verifying the roots. Substituting back catches errors.

Note on currency of information

The formulas in this guide are universal mathematics and do not change from year to year. This guide was prepared on October 31, 2026.

Summary

For ax² + bx + c = 0, first compute Δ = b² − 4ac; Δ > 0 gives two real roots, Δ = 0 one repeated root and Δ < 0 two complex roots. The roots are found with x = (−b ± √Δ) ÷ 2a. In the examples, for 2x² − 7x + 3 = 0 the roots were 0.5 and 3 and the vertex was V(1.75 ; −3.125). Verify the results step by step with our calculator.

Frequently asked questions

How do you solve a quadratic equation?

For ax² + bx + c = 0, first compute Δ = b² − 4ac, then apply x = (−b ± √Δ) ÷ 2a. For example, for 2x² − 7x + 3 = 0 we get Δ = 25 and the roots are 1/2 and 3.

What happens if the discriminant is negative?

If Δ < 0 the equation has no real roots; the roots are conjugate complex numbers of the form p ± qi. On the graph, the parabola does not cross the x-axis. For example, the roots of x² + 2x + 5 = 0 are −1 ± 2i.

How is the vertex found?

The x-coordinate of the vertex is −b ÷ 2a, and the y-coordinate is found by substituting this x into the equation. For 2x² − 7x + 3 the vertex is V(1.75 ; −3.125); since a is positive, this is the minimum value of the function.

Tools mentioned in this guide

More guides

This article is for general information only and is not legal, financial or medical advice. We are not an official institution.