How to Solve Quadratic Equations (Formula, Factoring)
A quadratic equation ax² + bx + c = 0 is solved by x = (−b ± √(b² − 4ac)) ÷ 2a. For 2x² + 4x − 6 = 0, the discriminant is 64, so x = (−4 ± 8) ÷ 4, giving x = 1 or x = −3. The sign of the discriminant tells you whether the roots are real or complex.
What a quadratic equation is
A quadratic equation has an x² term as its highest power: ax² + bx + c = 0, with a ≠ 0. Its graph is a parabola, a U-shaped curve that opens upward when a is positive and downward when a is negative. The solutions, called roots, are where the parabola crosses the x-axis.
Method 1: the quadratic formula
The formula works for every quadratic. Take 2x² + 4x − 6 = 0, with a = 2, b = 4 and c = −6.
- Work out the discriminant D = b² − 4ac = 16 − 4 × 2 × (−6) = 64.
- Take its square root: 8.
- Apply x = (−b ± √D) ÷ 2a = (−4 ± 8) ÷ 4.
- The two answers are x = 1 and x = -3.
The discriminant
| D = b² − 4ac | Roots |
|---|---|
| Positive | Two different real roots |
| Zero | One repeated real root |
| Negative | Two complex roots p ± qi, no real roots |
For x² + 2x + 5 = 0, D = 4 − 20 = −16, so the roots are −1 ± 2i. The parabola never reaches the x-axis.
Method 2: factoring
If the roots are simple, rewrite the quadratic as a product. For x² − 5x + 6, look for two numbers that multiply to 6 and add to −5: −2 and −3. So x² − 5x + 6 = (x − 2)(x − 3), and the roots are 2 and 3. Factoring is fast when it works, but many quadratics do not factor with whole numbers.
Method 3: completing the square
Move the constant over, divide by a, and add (b ÷ 2a)² to both sides so the left side becomes a perfect square. For x² + 6x + 5 = 0: x² + 6x = −5; add 9 to get (x + 3)² = 4; so x + 3 = ±2 and x = −1 or x = −5. The quadratic formula is just this method done once in general.
The vertex and the axis of symmetry
The parabola’s turning point is at x = −b ÷ 2a. For 2x² + 4x − 6, that is x = −1, and the y value there is -8, which is the minimum because a is positive. The roots are symmetric about the line x = −1: 1 and −3 are both 2 units away from it.
Checking your answer
- Substitute each root into the original equation. It must give 0.
- The roots add to −b ÷ a (here −2) and multiply to c ÷ a (here −3).
Where quadratics appear
Projectile motion, areas that depend on a length squared, profit models with a maximum, and break-even points all lead to quadratics. Use the quadratic formula calculator to check your work, and the root calculator to simplify the square roots in your answers.
Key terms
- Discriminant: The expression b² − 4ac.
- Root: A value of x that solves the equation.
- Vertex: The turning point of the parabola.
- Parabola: The U-shaped graph of a quadratic.
- Complex root: A root that involves i, the square root of −1.
Practice questions
Try each one before you read the answer.
- Solve x² − 7x + 12 = 0.
Answer: x = 3 or x = 4. - What is the discriminant of x² + x + 1?
Answer: 1 − 4 = −3, so the roots are complex. - What is the x value of the vertex of y = x² − 6x + 5?
Answer: −b ÷ 2a = 3.
Frequently asked questions
What is the quickest way to solve a quadratic?
If it factors easily, factor it. Otherwise use the quadratic formula, which always works.
What does a negative discriminant mean?
The equation has no real solutions. Its roots are a pair of complex numbers, and the parabola does not cross the x-axis.
How do I find the maximum or minimum of a quadratic?
Use the vertex at x = −b ÷ 2a. It is a minimum if a is positive and a maximum if a is negative.