Lesson 9.6 · Quadratic Functions and Equations
The quadratic formula and the discriminant
Completing the square works on every quadratic, but it takes several steps each time. If you complete the square once on the general equation , you get a formula that solves any quadratic just by substituting , and . A small piece of that formula, the discriminant, even tells you how many solutions to expect before you find them.
Where the formula comes from
Follow the same steps as in the last lesson, but with letters instead of numbers. Start with , where .
You don't need to reproduce this every time, but it shows why the formula is true: it is just completing the square, done once and for all.
The quadratic formula
The solutions of , where , are
The equation must be in standard form (equal to ) before you read off , and .
Worked example: Rational solutions
Solve with the quadratic formula.
Here , and . First compute the part under the radical:
Then
So or . (Factoring as gives the same answers.)
Worked example: Irrational solutions
Solve .
Here , , , and .
The last step divides every term of the numerator and the denominator by . The solutions are about and .
Common mistake
Watch the signs, especially when is negative.
- means "the opposite of ." If , then .
- is never negative: , not . Use parentheses when you substitute.
- The fraction bar goes under the whole numerator, , not just the square root. When you simplify, divide every term by the same number.
The discriminant
The expression under the square root decides what kind of solutions you get.
Definition
Discriminant
The discriminant of is .
- If , there are two real solutions ( and are different).
- If , there is exactly one real solution, (adding or subtracting gives the same number).
- If , there are no real solutions (a negative number has no real square root).
Graphically, the discriminant counts the x-intercepts of .
When is a perfect square (), the solutions are rational and the quadratic can be factored over the integers. When is positive but not a perfect square, the solutions are irrational.
Worked example: Counting solutions
Use the discriminant to find the number of real solutions.
Solutions.
- . Negative, so no real solutions.
- . Exactly one solution. (Indeed, .)
- . Positive, so two solutions, and since isn't a perfect square they are irrational.
Choosing a method
You now have four ways to solve a quadratic equation. All of them give the same answers, so choose the quickest.
| the equation looks like | good method |
|---|---|
| no term, or | square roots |
| a trinomial that factors easily | factoring |
| and is even | completing the square |
| anything else | the quadratic formula |
Tip
The quadratic formula always works, so it's the safe choice when you don't spot a factorization within a few seconds. Computing first is a good habit: if you can stop, and if is a perfect square you know factoring would have worked too.
Worked example: A throw that never reaches 35 feet
A ball is thrown upward, and its height in feet after seconds is .
When does it land? Set and multiply by : . Then , and
The solutions are about and . Time can't be negative, so the ball lands after about seconds.
Does it ever reach feet? Set : , or . The discriminant is . It's negative, so there is no solution: the ball never gets that high. (Its vertex is at , where feet.)
Practice
Solve using the quadratic formula.
Separate answers with commas, e.g. 2, -5
Find the discriminant of .
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
How many real solutions does have?
Solve .
Solve . What is the larger solution? Give an exact answer, such as (2 + sqrt(3))/5.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
For what positive value of does have exactly one solution?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Solve . Round each solution to the nearest hundredth.
Separate answers with commas, e.g. 2, -5
A ball's height in feet after seconds is . After how many seconds does it hit the ground? Round to the nearest hundredth.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.