Free calculator

Equation Solver: Type a Quadratic, Get Every Step

Type the equation exactly as it is written. It is rearranged into standard form and solved, with every step shown.

Move every term to one side and combine like terms until the equation reads ax² + bx + c = 0, then apply the quadratic formula. For 4d² + 17d + 10 = −d², adding d² to both sides gives 5d² + 17d + 10 = 0, whose discriminant is 89, so d = (−17 ± √89) ÷ 10, about −0.757 and −2.643.

Try it now

Any letter works. Type x^2 or x² for squares; brackets are fine.

Updates as you type
Roots d = −17 ± 8910 ≈ d₁ ≈ −0.756602, d₂ ≈ −2.643398 Discriminant 89 is positive — two distinct real roots, so the parabola crosses the x-axis twice.

Step by step

  1. Your equation
    4d2 + 17d + 10 = −d2
  2. Move every term to the left-hand side, changing its sign as it crosses the =
    4d2 + 17d + 10 + d2 = 0
  3. Combine like terms to reach standard form
    5d2 + 17d + 10 = 0
  4. Read off a, b and c
    a = 5,   b = 17,   c = 10
  5. Start from the quadratic formula
    d = −b ± b2 − 4ac2a
  6. Substitute a, b and c
    d = −(17) ± (17)2 − 4(5)(10)2(5)
  7. Work out the discriminant, b² − 4ac
    Δ = (17)2 − 4(5)(10) = 89
  8. The discriminant is positive, so there are two distinct real roots
    89 = 9.433981
  9. Write the two roots exactly
    d = −17 ± 8910
  10. Take the plus branch
    d₁ = −17 + 9.43398110 = −0.756602
  11. Take the minus branch
    d₂ = −17 − 9.43398110 = −2.643398

Also worth knowing

Standard form
5d2 + 17d + 10 = 0
Vertex
(−1.7, −4.45)
Axis of symmetry
d = −1.7
Discriminant
89
Parabola opens
upward
Check d = −0.756602
−0.572446 = −0.572446
Check d = −2.643398
−6.987554 = −6.987554

How to solve a quadratic equation that is not in standard form

Textbooks and homework rarely hand you ax² + bx + c = 0 neatly. The squared term can be on both sides, there can be brackets, and the numbers can be fractions. The calculator above does the tidying first and shows it, so you can see where each coefficient comes from.

  • Expand any brackets on each side, so (x + 3)(x − 2) becomes x² + x − 6.
  • Move every term to the left. Each term changes sign as it crosses the = sign, so the −d² on the right becomes +d² on the left.
  • Combine like terms to reach ax² + bx + c = 0.
  • Clear fractions by multiplying both sides by the common denominator.
  • Apply the quadratic formula to a, b and c. The discriminant b² − 4ac tells you whether to expect two real roots, one repeated root or a complex pair.

Worked example: 4d² + 17d + 10 = −d²

The squared term appears on both sides, which is the part that catches people. Add d² to both sides: 4d² + d² + 17d + 10 = 0, which is 5d² + 17d + 10 = 0. So a = 5, b = 17 and c = 10.

The discriminant is 17² − 4 × 5 × 10 = 289 − 200 = 89. It is positive, so there are two real roots, but 89 is not a perfect square, so the roots are irrational. The exact answer is d = (−17 ± √89) ÷ 10. As decimals that is d ≈ −0.757 and d ≈ −2.643.

The sign slip to watch for: forgetting that the −d² on the right becomes +d² on the left. Leave it out and you solve 4d² + 17d + 10 = 0 instead, which is a different equation with different roots.

What this solver can and cannot do

It solves equations with one letter, of degree one or two once everything is collected. It reads x^2, x2 and x² as the same thing, understands multiplication written as 4d or 2(x + 1), and accepts decimals with a point or a comma.

If the squared terms cancel, as in x² + x = x² + 1, it says so and solves the linear equation that is left. Cubic and higher-degree equations are outside its scope, and so is dividing by the unknown.

Worked examples

Worked examples

Each one is computed by the calculator above, so the answers are the real output.

4d² + 17d + 10 = −d²

The squared term on both sides. The exact roots are irrational, so they are given as radicals first.

Roots d = −17 ± 8910 ≈ d₁ ≈ −0.756602, d₂ ≈ −2.643398 Discriminant 89 is positive — two distinct real roots, so the parabola crosses the x-axis twice.

Step by step

  1. Your equation
    4d2 + 17d + 10 = −d2
  2. Move every term to the left-hand side, changing its sign as it crosses the =
    4d2 + 17d + 10 + d2 = 0
  3. Combine like terms to reach standard form
    5d2 + 17d + 10 = 0
  4. Read off a, b and c
    a = 5,   b = 17,   c = 10
  5. Start from the quadratic formula
    d = −b ± b2 − 4ac2a
  6. Substitute a, b and c
    d = −(17) ± (17)2 − 4(5)(10)2(5)
  7. Work out the discriminant, b² − 4ac
    Δ = (17)2 − 4(5)(10) = 89
  8. The discriminant is positive, so there are two distinct real roots
    89 = 9.433981
  9. Write the two roots exactly
    d = −17 ± 8910
  10. Take the plus branch
    d₁ = −17 + 9.43398110 = −0.756602
  11. Take the minus branch
    d₂ = −17 − 9.43398110 = −2.643398

Also worth knowing

Standard form
5d2 + 17d + 10 = 0
Vertex
(−1.7, −4.45)
Axis of symmetry
d = −1.7
Discriminant
89
Parabola opens
upward
Check d = −0.756602
−0.572446 = −0.572446
Check d = −2.643398
−6.987554 = −6.987554

(x + 3)(x − 2) = 6

Brackets multiply out to x² + x − 6, and moving the 6 across gives x² + x − 12 = 0, which factors as (x + 4)(x − 3).

Roots x₁ = 3, x₂ = −4 Discriminant 49 is positive — two distinct real roots, so the parabola crosses the x-axis twice.

Step by step

  1. Your equation
    (x + 3)(x − 2) = 6
  2. Expand the brackets on each side
    x2 + x − 6 = 6
  3. Move every term to the left-hand side, changing its sign as it crosses the =
    x2 + x − 6 − 6 = 0
  4. Combine like terms to reach standard form
    x2 + x − 12 = 0
  5. Read off a, b and c
    a = 1,   b = 1,   c = −12
  6. Start from the quadratic formula
    x = −b ± b2 − 4ac2a
  7. Substitute a, b and c
    x = −(1) ± (1)2 − 4(1)(−12)2(1)
  8. Work out the discriminant, b² − 4ac
    Δ = (1)2 − 4(1)(−12) = 49
  9. The discriminant is a perfect square, so the roots are rational
    49 = 7
  10. Take the plus branch
    x₁ = −1 + 72 = 3
  11. Take the minus branch
    x₂ = −1 − 72 = −4

Also worth knowing

Standard form
x2 + x − 12 = 0
Vertex
(−0.5, −12.25)
Axis of symmetry
x = −0.5
Discriminant
49
Parabola opens
upward
Factored form
(x − 3)(x + 4) = 0
Check x = 3
6 = 6
Check x = −4
6 = 6

x²/2 = 3x − 4

A fraction in the equation. Multiplying both sides by 2 clears it and leaves x² − 6x + 8 = 0.

Roots x₁ = 4, x₂ = 2 Discriminant 4 is positive — two distinct real roots, so the parabola crosses the x-axis twice.

Step by step

  1. Your equation
    x2/2 = 3x − 4
  2. Expand the brackets on each side
    12x2 = 3x − 4
  3. Move every term to the left-hand side, changing its sign as it crosses the =
    12x2 − 3x + 4 = 0
  4. Combine like terms to reach standard form
    12x2 − 3x + 4 = 0
  5. Multiply both sides by 2 to clear the fractions
    x2 − 6x + 8 = 0
  6. Read off a, b and c
    a = 1,   b = −6,   c = 8
  7. Start from the quadratic formula
    x = −b ± b2 − 4ac2a
  8. Substitute a, b and c
    x = −(−6) ± (−6)2 − 4(1)(8)2(1)
  9. Work out the discriminant, b² − 4ac
    Δ = (−6)2 − 4(1)(8) = 4
  10. The discriminant is a perfect square, so the roots are rational
    4 = 2
  11. Take the plus branch
    x₁ = 6 + 22 = 4
  12. Take the minus branch
    x₂ = 6 − 22 = 2

Also worth knowing

Standard form
x2 − 6x + 8 = 0
Vertex
(3, −1)
Axis of symmetry
x = 3
Discriminant
4
Parabola opens
upward
Factored form
(x − 4)(x − 2) = 0
Check x = 4
8 = 8
Check x = 2
2 = 2

6 = x² + x

The squared term is on the right. Moving everything left makes the leading coefficient negative, so the solver multiplies through by −1 first.

Roots x₁ = 2, x₂ = −3 Discriminant 25 is positive — two distinct real roots, so the parabola crosses the x-axis twice.

Step by step

  1. Your equation
    6 = x2 + x
  2. Move every term to the left-hand side, changing its sign as it crosses the =
    6 − x2 − x = 0
  3. Combine like terms to reach standard form
    −x2 − x + 6 = 0
  4. Multiply both sides by −1 so the x² term is positive
    x2 + x − 6 = 0
  5. Read off a, b and c
    a = 1,   b = 1,   c = −6
  6. Start from the quadratic formula
    x = −b ± b2 − 4ac2a
  7. Substitute a, b and c
    x = −(1) ± (1)2 − 4(1)(−6)2(1)
  8. Work out the discriminant, b² − 4ac
    Δ = (1)2 − 4(1)(−6) = 25
  9. The discriminant is a perfect square, so the roots are rational
    25 = 5
  10. Take the plus branch
    x₁ = −1 + 52 = 2
  11. Take the minus branch
    x₂ = −1 − 52 = −3

Also worth knowing

Standard form
x2 + x − 6 = 0
Vertex
(−0.5, −6.25)
Axis of symmetry
x = −0.5
Discriminant
25
Parabola opens
upward
Factored form
(x − 2)(x + 3) = 0
Check x = 2
6 = 6
Check x = −3
6 = 6

FAQ

Questions people ask

How do I solve 4d² + 17d + 10 = −d²?

Add d² to both sides to get 5d² + 17d + 10 = 0, then use the quadratic formula with a = 5, b = 17, c = 10. The discriminant is 89, so d = (−17 ± √89) ÷ 10, which is about −0.757 or −2.643.

What if the squared term is on both sides of the equation?

Collect them. Move everything to one side and combine the squared terms; that sum is your a. If they cancel completely, the equation was linear all along.

Does it work with letters other than x?

Yes. Use any single letter and the working will use it throughout.

Why do I get an answer with a square root instead of a decimal?

When the discriminant is not a perfect square, the roots are irrational. The radical form is exact; the decimal is a rounded copy of it, and most teachers want the exact form.

Related app: Quadratic Equation Solver

This one lives on the website. The related app below covers the surrounding topic.

Free to download. AI explanations and dark mode are part of the optional PRO subscription.