Quadratic equations - the discriminant and the quadratic formula, step by step
· 15 min read
In short
The solutions of ax² + bx + c = 0 are the points where the parabola y = ax² + bx + c meets the x axis. The discriminant Δ = b² − 4ac tells you how many there are - two when Δ > 0, one when Δ = 0, none when Δ < 0 - and the quadratic formula x = (−b ± √Δ)/(2a) gives them. Both come from completing the square.
Words to know
- Quadratic equation
- An equation ax² + bx + c = 0 in which a is not 0.
- Roots (solutions)
- The values of x that make the equation true - where the parabola y = ax² + bx + c meets the x axis.
- Discriminant
- The number Δ = b² − 4ac. Its sign decides whether there are two real roots, one repeated root or none.
- Quadratic formula
- x = (−b ± √Δ)/(2a), the roots of any quadratic equation with Δ ≥ 0.
- Axis of symmetry
- The vertical line x = −b/(2a) through the vertex. The two roots lie the same distance either side of it.
What do you think?
The equation has two solutions, and . How many solutions does have? The only change is a constant term that is bigger.
None. Adding lifts the whole parabola by 2 units. Its lowest point moves from to , above the axis, so the parabola no longer meets the axis. You can also see it from : a square is never negative, so the left side is always at least .
The idea: where the parabola meets the x axis
Solving means finding the that make equal to zero. On the graph of , those are the points where the parabola meets the axis. A parabola can cross the axis twice, touch it once at its vertex, or miss it altogether. So a quadratic equation has two solutions, one or none.
Two facts do the rest:
- the parabola is symmetric, so the two solutions lie the same distance either side of its axis of symmetry ,
- that distance depends on one number, the discriminant . A negative means there is nothing to measure: no solutions.
Put together, they give the quadratic formula: start at the axis and go the same distance left and right.
Solving x² − 4x + 3 = 0, step by step
Below is the parabola of the equation . Step through the animation with the buttons or the arrow keys. In the last steps the same parabola is lifted, and the number of solutions changes.
x² − 4x + 3 = 0 · x = 1 or x = 3
The solutions of x² − 4x + 3 = 0 are where the parabola y = x² − 4x + 3 meets the x axis: x = 1 and x = 3. Check: 1 − 4 + 3 = 0 and 9 − 12 + 3 = 0.
Step 3 is the heart of the method. Once the left side is a square plus a number, the equation says “a square equals something”. A square can equal a positive number in two ways, zero in one way, and a negative number in no way at all.
Try it yourself: change a, b and c
Set the three numbers of the equation . Below the picture you can see the discriminant with your numbers put in, how many solutions it gives and what they are. The amber segments go from the axis of symmetry to each solution.
- Equation
- x² − 4x + 3 = 0
- Discriminant
- Δ = (−4)² − 4 · 1 · 3 = 4
- Number of solutions
- two - Δ > 0
- Solutions
- x₁ = 1, x₂ = 3
- Axis of symmetry
- x = −b/(2a) = 2
Things to try:
- change only : the parabola goes up and down, and changes with it,
- make negative: the parabola opens downwards, and now it has solutions when its vertex is above the axis,
- with the dashed amber line shows how far the vertex is from the axis,
- set : the disappears, and the equation is no longer quadratic.
The definition and the formula
A quadratic equation is an equation , where , , are real numbers and . Its discriminant is
- if , the equation has two different real solutions:
- if , it has one solution (a repeated root): ,
- if , it has no real solutions.
Where the formula comes from. Divide the equation by and move to the right. Then complete the square: add to both sides, so that the left side becomes a square.
The right side is , and is positive. So everything depends on the sign of . When , take the square root of both sides:
The two solutions are either side of the axis , just like the amber segments in the lab. When there are solutions, the left side factorises as .
When or you do not need the formula. For write , so or . For take out: , so or .
Example 1: the quadratic formula
Solve .
Step 1. Read off a, b and c
We compare the equation with , keeping the signs.
Step 2. Work out the discriminant
We put the numbers into . Minus times minus gives a plus.
Step 3. Take the square root
, so there are two solutions. We need for the formula.
Step 4. Use the formula
We put , and into the formula, once with minus and once with plus.
Answer
or . The parabola crosses the axis at these two points.
Example 2: a garden bed
A rectangular bed is 3 m longer than it is wide, and its area is 40 m². How wide and how long is it?
Step 1. Write the equation
We call the width (in metres). Then the length is , and the area is width times length.
Step 2. Bring it to the form with zero on one side
We multiply out the bracket and subtract from both sides.
Step 3. Work out the discriminant
Here , and .
Step 4. Use the formula
, and .
Step 5. Keep the solution that makes sense
A width cannot be negative, so we reject . The width is m, and we add to get the length.
Answer
The bed is m wide and m long. The equation has two solutions, but only one of them fits the problem.
Your turn
Solve .
Hintshow
Here , , . Work out first. In the formula the denominator is , a negative number. You can also multiply the whole equation by first: the solutions stay the same.
Solutiontry it on your own first
Step 1. Work out the discriminant
We put , and into .
Step 2. Take the square root
, so there are two solutions, and the square root of is a whole number.
Step 3. Use the formula
The denominator is . Dividing by a negative number changes the sign.
Step 4. Check both solutions
We put (first line) and (second line) into the left side of the equation.
Answer
or . Multiplied by , the equation is , which is - the same two solutions.
Common mistakes
- The sign of . In , , so , not .
- Squaring a negative . , not . With the discriminant of would come out as , and you would wrongly say there are no solutions.
- Dividing only the square root by . The fraction bar covers the whole . For the formula gives , that is and . Writing gives and instead.
- Dividing by . From you might divide by and get only . That loses , because you cannot divide by a number that might be zero. Write , so : the solutions are and .
- Only one square root. has two solutions, and , because as well.
At GCSE and A-level
In England, GCSE Mathematics asks you to solve quadratic equations algebraically by factorising, by completing the square and by using the quadratic formula. You are expected to know the formula: it is not given in the exam.
A-level Mathematics adds the discriminant of a quadratic function, including the conditions for real and repeated roots - exactly the three cases in the animation. Completing the square is part of the same topic.
In the open textbook Illustrative Mathematics Algebra 1, written for US high schools, the formula is derived by completing the square, as in the definition above.
Check yourself
Test yourself
How many solutions does have?
What is the discriminant of ?
What are the solutions of ?
For which does have exactly one solution?
What are the solutions of ?
Flashcards for review
Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.
Flashcards
Question
Answer
What is a quadratic equation?
An equation in which .What does solving mean on the graph?
Finding where the parabola meets the axis.What is the discriminant?
.How many solutions are there when , and ?
Two, one and none. With the parabola touches the axis at its vertex; with it does not reach the axis.What is the quadratic formula?
, where .What is the one solution when ?
- the vertex lies on the axis.Where do the two solutions lie compared with the axis of symmetry?
The same distance either side of : to the left and to the right.How do you solve without the formula?
Take out: , so or .Where does the quadratic formula come from?
From completing the square: the equation becomes .Why should you not divide by ?
Because might be , and that solution would be lost. Write instead: or .
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- Illustrative Mathematics - Algebra 1, Unit 7, Lesson 16: The Quadratic Formula (the formula for ax² + bx + c = 0 with a not 0; equations without b or without c) · CC BY 4.0
- Illustrative Mathematics - Algebra 1, Unit 7, Lesson 18: Applying the Quadratic Formula, Part 2 (mistakes: the sign of −b, dividing only part of the numerator by 2a, squaring negative numbers) · CC BY 4.0
- Illustrative Mathematics - Algebra 1, Unit 7, Lesson 19: Deriving the Quadratic Formula (the formula derived by completing the square) · CC BY 4.0
- Wikibooks - A-level Mathematics/CIE/Pure Mathematics 1/Quadratics (factorising, completing the square and the formula; the discriminant and the number of real roots) · CC BY-SA 4.0
- Wikipedia - Quadratic equation (roots as x-intercepts, the discriminant, symmetry about x = −b/2a, the factored form, equations without b or c) · CC BY-SA 4.0