Algebra 1 · Algebra 2 · Grades 8, 9, 10
The Quadratic Formula: How and Why It Works
Quick answer
The quadratic formula solves any equation of the form ax² + bx + c = 0 with a ≠ 0. The solutions are x = (−b ± √(b² − 4ac)) / (2a). The expression under the radical, b² − 4ac, is the discriminant: if it is positive there are two real solutions, if it is zero there is one, and if it is negative there are no real solutions.
What you'll learn
- Use the quadratic formula to solve any quadratic equation
- Explain where the quadratic formula comes from
- Use the discriminant to predict how many real solutions an equation has
What the quadratic formula is
A quadratic equation is any equation you can write in the form
The quadratic formula gives you both solutions directly from , , and :
That is doing real work. It is shorthand for two separate solutions:
Why it works
Most courses hand you the formula and move on. It is worth seeing where it comes from, because the derivation is completing the square done once with letters instead of numbers. Doing it once with letters is what saves you from doing it every time with numbers.
Start with the general equation and divide through by (allowed, since ):
Move the constant across:
Now complete the square. Take half of the -coefficient, , square it, and add it to both sides:
The left side is now a perfect square, and the right side combines over a common denominator:
Take the square root of both sides — and this is exactly where the enters, because a positive number has two square roots:
Finally, isolate :
That is the whole derivation. Nothing in it is a trick you have not already seen.
How to use it
- Rearrange the equation so that one side is .
- Identify , , and , keeping their signs.
- Compute the discriminant first, on its own.
- Substitute into the formula and simplify.
- Check at least one solution by substituting it back in.
Worked examples
The discriminant
The quantity tells you how many real solutions exist before you finish solving:
The three cases are three things a parabola can do against the -axis, and the discriminant is how the algebra sees them coming:
- two crossings
- one touch
- no crossing
Reading the curves against the formula: a positive discriminant leaves a real square root to add and subtract, which pulls the two crossings apart. Zero leaves nothing to add or subtract, so the two crossings land on the same point. A negative one asks for the square root of a negative, and the curve never reaches the axis to be found.
Practice problems
-
Solve .
Hint
Compute the discriminant first. It is a perfect square, so the solutions are rational.
Answer
or
Full solution
, , .
, giving or .
Check: ✓
-
Solve .
Answer
or
Full solution
, , .
, giving or .
-
How many real solutions does have?
Answer
None.
Full solution
, which is negative, so there are no real solutions. The parabola sits entirely above the -axis.
-
Solve .
Hint
Compute the discriminant before doing anything else.
Answer
, a single repeated solution.
Full solution
, , .
, so there is exactly one solution.
.
The parabola touches the -axis at without crossing it.
-
Solve , leaving the answer in exact form.
Hint
The discriminant is not a perfect square, so a square root will stay in the answer.
Answer
or
Full solution
.
. Since , this becomes .
Both parts of the numerator were divided by , not only the root.
-
Solve .
Hint
It is not equal to zero yet.
Answer
or
Full solution
Move everything to one side: , so , , .
.
, giving or .
-
Without solving, say how many real solutions has.
Answer
One.
Full solution
, so there is exactly one repeated solution.
The discriminant answers “how many” without any need to answer “which”.
-
Solve .
Hint
Dividing through by first makes the arithmetic easier and changes nothing.
Answer
or
Full solution
Divide every term by : .
, so , giving or .
Using , , directly gives the same pair, with a division by along the way.
-
A ball is thrown upward. Its height in metres after seconds is . When does it hit the ground?
Hint
Ground level means . Two answers will appear — decide what each one means.
Answer
After seconds.
Full solution
Set : , so , , .
, and , giving or .
Both are real, and both mean something: is the moment of the throw, when the ball was also at ground level, and is the landing. The question asks for the landing, so the answer is seconds.
-
Sofia solves and writes , then concludes there are no real solutions. Find her error.
Hint
Check the sign of .
Answer
She used instead of . The solutions are and .
Full solution
With , the calculation is .
, giving or .
Checking: ✓
A dropped minus sign in flips from adding to subtracting, which is why it so often turns a solvable equation into an apparently unsolvable one.
Frequently asked questions
When should I use the quadratic formula instead of factoring?
Try factoring first if you can spot two whole numbers that work. Use the quadratic formula when you cannot find that pair, when the solutions are irrational, or when you want a method that always works. The formula never fails; factoring only works for some equations.
What does it mean when the discriminant is negative?
A negative discriminant means the parabola never crosses the x-axis, so the equation has no real solutions. It does have two complex solutions, which you study in Algebra 2.
Do I have to set the equation to zero first?
Yes, always. The formula reads a, b and c off the arrangement ax² + bx + c = 0. Reading them off 2x² + 5x = 12 gives c = 12 instead of c = −12, and both answers come out wrong.
What is a if there is no number in front of x squared?
It is 1. A bare x² means one of them, so in x² − 5x + 6 = 0 the value of a is 1, not 0. Using a = 0 makes the formula divide by zero.
Can the quadratic formula be used on any equation?
Only on quadratics — equations whose highest power is x². It does not apply to x³ or to equations with x in a denominator until those are rearranged into quadratic form first.
Formulas on this page
Key terms in this lesson
- Discriminant
- The discriminant is the expression b squared minus 4ac inside the quadratic formula. Its sign tells you how many real solutions a quadratic has before you finish solving.
- Irrational number
- An irrational number cannot be written as a fraction of two whole numbers, and its decimal never ends and never repeats. The square root of 2 and pi are the two you meet first.
- Quadratic equation
- A quadratic equation is one that can be written as ax squared plus bx plus c = 0, with a not equal to zero. The squared term is what makes it quadratic rather than linear.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSA.REI.B.4bReasoning with Equations and InequalitiesSolve quadratic equations by inspection (e.g., for x² = 49), taking square roots, completing the square, the quadratic formula and factoring, as appropriate to the initial form of the equation. Recognize when the quadratic formula gives complex solutions and write them as a ± bi for real numbers a and b.
- CCSS.MATH.CONTENT.HSA.REI.B.4aReasoning with Equations and InequalitiesUse the method of completing the square to transform any quadratic equation in x into an equation of the form (x - p)² = q that has the same solutions. Derive the quadratic formula from this form.