Skip to content
HNarzędzia
en
Categories

Quadratic equation solver - discriminant and roots step by step

Enter a, b and c - the solver calculates the discriminant and exact roots (as fractions, surds or complex numbers), the vertex, the vertex and factored forms, and draws the parabola.

  • Free
  • No sign-up
  • Private
  • Runs locally

Coefficients of ax² + bx + c = 0

Integers, decimals (0.5) or fractions (1/3).

Your equation: 2x² − 3x + 1 = 0

Solution

Roots
x₁ = 1/2x₂ = 1
approximately: 0.5, 1
Discriminant (Δ)
1
two roots
√Δ
1
Vertex of the parabola
W(3/4; −1/8)
≈ (0.75; −0.125)

Forms of the function and Vieta’s formulas

Form / formulaExpression
Standardy = 2x² − 3x + 1
Vertex formy = 2(x − 3/4)² − 1/8
Factoredy = 2(x − 1/2)(x − 1)
Sum of roots x₁ + x₂ = −b/a3/2
Product of roots x₁ · x₂ = c/a1/2

Step-by-step solution

  1. 1. Equation
    2x² − 3x + 1 = 0
  2. 2. Read the coefficients
    a = 2, b = −3, c = 1
  3. 3. Calculate the discriminant
    Δ = b² − 4ac = (−3)² − 4 · 2 · 1 = 9 − 8 = 1
  4. 4. Positive discriminant - two roots
    Δ > 0
  5. 5. Square root of the discriminant
    √Δ = 1
  6. 6. First root
    x₁ = (−b − √Δ)/(2a) = (3 − 1)/4 = 1/2
  7. 7. Second root
    x₂ = (−b + √Δ)/(2a) = (3 + 1)/4 = 1
  8. 8. Vertex of the parabola
    p = −b/(2a) = 3/4, q = −Δ/(4a) = −1/8 → W(3/4; −1/8)
  9. 9. Vertex form
    y = 2(x − 3/4)² − 1/8
  10. 10. Factored form
    y = 2(x − 1/2)(x − 1)
  11. 11. Vieta’s formulas (check)
    x₁ + x₂ = −b/a = 3/2, x₁ · x₂ = c/a = 1/2

Graph

−0.20.20.40.60.811.21.41.60.511.52

How to solve a quadratic equation

  1. 1.

    Enter the coefficients

    Type a, b and c from ax² + bx + c = 0 as integers, decimals (0.5) or fractions (1/3). A missing term is 0.

  2. 2.

    Check the discriminant

    Δ = b² − 4ac: positive - two real roots, zero - one double root, negative - two complex roots.

  3. 3.

    Read the roots

    x₁ and x₂ are shown exactly (fraction or surd such as 2 + √3) and as a decimal approximation; the graph marks them on the x-axis.

  4. 4.

    Copy the solution

    Copy the step-by-step solution together with the vertex form, the factored form and Vieta’s formulas.

The quadratic formula

For ax² + bx + c = 0 with a ≠ 0: Δ = b² − 4ac and x = (−b ± √Δ) / (2a).

Example: 2x² − 3x + 1 = 0 gives Δ = 9 − 8 = 1, so x₁ = (3 − 1)/4 = 1/2 and x₂ = (3 + 1)/4 = 1. When Δ is not a perfect square the result keeps the root in simplified form: x² − 4x + 1 = 0 gives Δ = 12, √12 = 2√3 and x = 2 ± √3 ≈ 0.268 and 3.732.

All arithmetic is exact (rational numbers, not floating point), so 1/3 stays 1/3 instead of becoming 0.333333. If the coefficients are fractions, the solver first multiplies the equation by a common denominator to work with whole numbers.

What the discriminant tells you

ΔRootsParabolaExample
Δ > 0two different real rootscrosses the x-axis twicex² − 5x + 6 = 0 → 2 and 3
Δ = 0one double root x = −b/(2a)touches the x-axis at the vertexx² − 6x + 9 = 0 → 3
Δ < 0two complex conjugate rootsdoes not touch the x-axisx² + 2x + 5 = 0 → −1 ± 2i

If a = 0 the equation is linear (bx + c = 0, x = −c/b); the solver detects this and also reports the special cases “every real number” (0 = 0) and “no solution” (e.g. 0 = 5).

Vertex form and factored form

The vertex is at p = −b/(2a), q = −Δ/(4a), which gives the vertex form y = a(x − p)² + q - the same result you get by completing the square. For 2x² − 3x + 1: p = 3/4, q = −1/8, so y = 2(x − 3/4)² − 1/8. The parabola opens upwards when a > 0 (the vertex is a minimum) and downwards when a < 0 (a maximum).

The factored form y = a(x − x₁)(x − x₂) = 2(x − 1/2)(x − 1) exists over the real numbers only when Δ ≥ 0.

Vieta’s formulas and common mistakes

x₁ + x₂ = −b/a and x₁ · x₂ = c/a. For x² − 5x + 6 = 0 the roots add up to 5 and multiply to 6, so they are 2 and 3 - a quick way to check any answer.

  • Sign of b: for x² − 5x + 6, b = −5, so −b = +5. Entering 5 instead of −5 flips both roots.
  • Squaring a negative b: b² is always positive - (−5)² = 25, not −25.
  • Dividing only √Δ by 2a: the whole numerator −b ± √Δ is divided by 2a.
  • Not moving terms to one side: x² = 3x − 2 must first become x² − 3x + 2 = 0.

For other calculations with roots, powers and logarithms use the scientific calculator.

Frequently asked questions

How do I calculate the discriminant?

+
Δ = b² − 4ac. For 2x² − 3x + 1 = 0: Δ = 9 − 8 = 1, so there are two real roots.

What if the discriminant is negative?

+
There are no real roots and the parabola does not cross the x-axis. The solver shows the complex roots, e.g. x = ±i for x² + 1 = 0.

What if a = 0?

+
The equation is linear: bx + c = 0, so x = −c/b. The solver handles this case automatically.

Can I enter fractions or decimals?

+
Yes, e.g. 1/3 or 0.5. Calculations are exact, so rational results are shown as fractions.

How do I find the vertex?

+
p = −b/(2a) and q = −Δ/(4a). For y = 2x² − 3x + 1 the vertex is (3/4, −1/8).

What is a double root?

+
When Δ = 0 both roots coincide, e.g. x² − 6x + 9 = (x − 3)² gives x = 3. The parabola touches the x-axis at its vertex.

How do I check my answer?

+
Substitute the roots back into the equation or use Vieta’s formulas: their sum must equal −b/a and their product c/a.

Updated: