On this page
In short
- Rewrite the equation in standard form, with zero on one side, before solving.
- Factor when the numbers are small and the discriminant is a perfect square.
- Use the quadratic formula when factoring isn't obvious; it works on every quadratic.
- Compute first to know whether to expect two, one, or no real solutions.
- Check by substitution, or with the sum and product of the solutions.
A quadratic equation is any equation that can be written in the standard form , where . Quadratics show up in everything from projectile motion to area problems, and they can have two real solutions, one, or none. There are several ways to solve them, and the hardest part is often deciding which one to use.
This guide covers factoring, the quadratic formula, and the discriminant, a quick calculation that tells you what to expect before you start. Whichever method you choose, the first step is always the same: move every term to one side so the other side is zero.
Method 1: Factoring
Factoring relies on the zero product property: if two numbers multiply to zero, at least one of them must be zero. So once the quadratic is written as a product of two factors, you can set each factor equal to zero.
Example 1. Solve .
Look for two numbers that multiply to and add to . Those are and :
Set each factor to zero: or .
Example 2. Solve .
When , try the "ac method": find two numbers that multiply to and add to . That's 6 and 1. Split the middle term into and factor by grouping:
So or .
One warning: the zero product property only works when the other side is zero. If you have , you can't factor the left side and set each factor equal to . Add 6 to both sides first.
Method 2: The quadratic formula
The quadratic formula solves every quadratic, whether or not it factors nicely. It comes from completing the square on the general form:
Example 3. Solve .
Here , , and . Substitute carefully, keeping the sign of :
Because , this simplifies to
So or . This equation doesn't factor over the integers, which is when the formula earns its keep.
Two common slips: forgetting that flips the sign of , and dividing only part of the numerator by .
The discriminant: how many solutions to expect
The expression under the square root, , is called the discriminant. Working it out first tells you what to expect. With integer coefficients, the four cases are:
| Discriminant | Solutions | Example |
|---|---|---|
| Positive perfect square | Two rational solutions (try factoring) | : |
| Positive, not a perfect square | Two irrational solutions | : |
| Zero | One repeated solution | : |
| Negative | No real solutions | : |
In the zero case, , so the only solution is . Its graph just touches the -axis there.
In the negative case, the formula asks for the square root of . No real number squares to a negative, so there are no real solutions, and the parabola never crosses the -axis. (If your course covers complex numbers, the solutions are .)
Which method when
With your equation in standard form, look for these patterns:
| What you see | Best first move | Example |
|---|---|---|
| No term () | Isolate and take square roots | gives |
| No constant term () | Factor out | gives or |
| Small integers, perfect-square discriminant | Factor | |
| Large or decimal coefficients, or a non-square discriminant | Quadratic formula | |
| Asked for vertex form, or with an even | Complete the square | becomes |
When , never divide both sides by ; that throws away the solution . And when in doubt, use the formula. It always works.
Check your answers
Substitution is the most reliable check. For Example 2, try :
You can also check both solutions at once, since the solutions and of any quadratic always satisfy
For Example 2, the solutions should add to and multiply to , and they do.
Our framework for showing your work on multi-step math problems covers checking in more detail. When you practice, attempt each problem first, then compare your work with a full solution, as described in how to learn from step-by-step solutions. And if your homework lives online, the StudyCloak Chrome extension lets you highlight a quadratic and read the explanation in a popup, without leaving the page.
When a tricky quadratic has you stuck, StudyCloak can walk you through every step.