Quadratic Equation Solver
Solve any quadratic equation ax² + bx + c = 0 step by step: discriminant, real or complex solutions, vertex, factored form and graph.
x² − 3x + 2 = 0
Solutions
x₁ = 1, x₂ = 2
Discriminant (Δ)
1
- Vertex
- (1.5, −0.25)
- Axis of symmetry
- x = 1.5
- Factored form
- (x − 1)(x − 2)
Graph of y = ax² + bx + c
Steps
- 1Calculate the discriminant: Δ = b² − 4ac = (−3)² − 4 × 1 × 2 = 1
- 2Δ > 0, so there are two real solutions: x = (−b ± √Δ) / 2a = (3 ± 1) / 2
- 3x₁ = 1, x₂ = 2
About this tool
A quadratic equation has the form ax² + bx + c = 0, with a ≠ 0. Its solutions come from the quadratic formula x = (−b ± √Δ) / 2a, where Δ = b² − 4ac is the discriminant. For x² − 3x + 2 = 0: Δ = (−3)² − 4 × 1 × 2 = 1, so x = (3 ± 1) / 2, which gives x₁ = 1 and x₂ = 2.
The sign of the discriminant tells you how many real solutions there are. If Δ > 0, there are two; if Δ = 0, there's a single double solution, x = −b / 2a (x² − 6x + 9 = 0 gives x = 3); if Δ < 0, there's no real solution, only two complex conjugate ones: x² + 2x + 5 = 0 has Δ = −16 and x = −1 ± 2i.
The graph of y = ax² + bx + c is a parabola, which opens upward if a > 0 and downward if a < 0. Its vertex lies at x = −b / 2a, on the axis of symmetry, and the real solutions are the points where it crosses the x-axis. When there are real roots, the trinomial factors as a(x − x₁)(x − x₂): x² − 3x + 2 = (x − 1)(x − 2).
Worked example
- 1Enter the coefficients a, b and c of ax² + bx + c = 0, with their signs (for example b = −3).
- 2Read the solutions, the discriminant, the vertex, the axis of symmetry and the factored form.
- 3Check the steps and the graph, where the roots and the vertex are marked. Example: 2x² + 3x − 2 = 0 gives Δ = 25, x₁ = −2 and x₂ = 0.5.
Formula
Δ = b² − 4ac ; x = (−b ± √Δ) / 2a ; vertex = (−b / 2a, c − b² / 4a) ; x₁ + x₂ = −b/a and x₁ × x₂ = c/a
Related tools
Frequently asked questions
- What is the discriminant?
- The quantity Δ = b² − 4ac, which sits under the square root in the quadratic formula. Its sign alone tells you whether the equation has two real solutions (Δ > 0), one double solution (Δ = 0) or none among real numbers (Δ < 0).
- What happens if a = 0?
- The equation is then linear, bx + c = 0, with the single solution x = −c / b when b ≠ 0. The calculator detects this case and solves it.
- How can I check my solutions?
- Substitute them into the equation: for x = 2 in x² − 3x + 2, you get 4 − 6 + 2 = 0. You can also use Vieta's formulas: the sum of the roots is −b/a = 3 and their product is c/a = 2, which matches 1 + 2 and 1 × 2.
- Can I solve a quadratic equation without the formula?
- Yes, when the trinomial factors easily: look for two numbers whose sum is −b/a and whose product is c/a. For x² − 3x + 2, the numbers 1 and 2 have a sum of 3 and a product of 2, so x² − 3x + 2 = (x − 1)(x − 2). Otherwise, completing the square always works.