Step-by-step math solver
Quadratic equations
Solve ax² + bx + c = 0 by factoring, by the quadratic formula x = (−b ± √(b² − 4ac))/(2a) and by completing the square, and check every root.
Free, no sign-in. The solver runs in your browser and does not send your problem to the server.
Method
- Write the equation in standard form ax² + bx + c = 0 with a ≠ 0.
- Factoring: if the left side factors into two linear factors, use the zero product property: if AB = 0, then A = 0 or B = 0.
- Quadratic formula: first find the discriminant D = b² − 4ac. If D > 0 there are two real roots, if D = 0 one repeated root, and if D < 0 no real roots. Then substitute into x = (−b ± √D)/(2a).
- Completing the square: move the constant to the right side, add the square of half the x coefficient to both sides (when a = 1), then take the square root of both sides.
Worked examples
x² − 5x + 6 = 0
Identify the coefficients
a = 1; b = −5; c = 6
Compute the discriminant Δ = b² − 4ac
Δ = (−5)² − 4 · 1 · 6 = 1
Since Δ > 0, the equation has two distinct solutions
√Δ = √1 = 1
x₁ = (−b + √Δ)/(2a) = 3
x₂ = (−b − √Δ)/(2a) = 2
Result
x = 2
x = 3
Solution set: S = {2; 3}
Open in the solver · has 3 methods
2x² + 3x − 2 = 0
Identify the coefficients
a = 2; b = 3; c = −2
Compute the discriminant Δ = b² − 4ac
Δ = 3² − 4 · 2 · (−2) = 25
Since Δ > 0, the equation has two distinct solutions
√Δ = √25 = 5
x₁ = (−b + √Δ)/(2a) = 1/2
x₂ = (−b − √Δ)/(2a) = −2
Result
x = −2
x = 1/2
Solution set: S = {−2; 1/2}
Open in the solver · has 3 methods
x² + 2x + 5 = 0
Identify the coefficients
a = 1; b = 2; c = 5
Compute the discriminant Δ = b² − 4ac
Δ = 2² − 4 · 1 · 5 = −16
Since Δ < 0, the equation has no real solution
Result
The equation has no real solution.
Open in the solver · has 3 methods
Practice problems
Work it out on paper first, then tap to see the step-by-step solution.
Not supported yet
- Complex roots are not found yet. If b² − 4ac < 0, the answer says the equation has no real solution.
For these, open Chat with the Tutor skill from the solver (sign-in required, uses credit like a normal chat).