The Quadratic Formula
Learning goals
- Derive the formula by completing the square in general
- Divide the whole numerator, both and the radical, by
- Read to sort the roots
- Write standard form and read , , with their signs
- Simplify the radical, then reduce the fraction
- Accept complex roots when the discriminant is negative
Deriving the formula by completing the square
The quadratic formula is not a rule to accept on faith. It is exactly what completing the square gives when you feed it the general equation, so we earn it step by step. Every move below is one you already made in the last lesson on specific numbers; the only new thing is that the numbers are now letters.
Deriving the quadratic formula from #
Start from the general quadratic equation, with the single restriction that . If were there would be no term and the equation would not be quadratic at all:
Completing the square needs the leading coefficient to be , so divide every term by . Because , dividing by it is allowed:
Move the constant term to the right side, so the left holds only the two terms that carry :
Now complete the square on the left. Half of the coefficient of is , and squaring it gives . Add that constant to both sides, which keeps the equation balanced:
The left side is now a perfect square. Since half of is , it factors as
Combine the right side into one fraction. The common denominator is , and rewriting lets the two pieces subtract cleanly:
Take the square root of both sides. A square root carries two signs, so attach a , and split the root over numerator and denominator:
The denominator simplified because . (Strictly the root is , but the in front already delivers both signs, so writing throws nothing away.) Finally subtract from both sides to isolate :
Both terms on the right already share the denominator , so they merge into a single fraction, and that fraction is the quadratic formula:
Because the derivation never assumed anything about , , and beyond , the formula holds for every quadratic equation. Whatever completing the square would have found, the formula finds too, with none of the repeated setup.
What the formula says
Here is the result on its own, worth memorizing because you will use it constantly:
The single packs both solutions into one line. Read with a plus it gives one root; read with a minus it gives the other. The one part people misread is the denominator: the divides the entire numerator, both the and the together, not just one piece of it.
To use the formula you first need the three numbers , , and . They are the coefficients when the equation is written in standard form, with everything on one side and zero on the other:
Here is the coefficient of , is the coefficient of , and is the constant term. Read them with their signs. In the coefficients are , , and ; the minus sign belongs to . Getting a sign wrong here is the fastest way to a wrong answer, so it is worth a moment of care before you substitute.
The discriminant
Look again at the quantity under the square root:
This number is called the discriminant, and it alone decides what kind of roots a quadratic has. The reason is that the discriminant is the thing you are about to take the square root of. There are exactly three cases, and each comes straight from what a square root does to a positive number, to zero, and to a negative number.
If , then is a nonzero real number, and the pulls it once above and once below , giving two different real roots.
If , then , and adding or subtracting makes no difference, so the two roots fall together into one repeated real root, .
If , then is the square root of a negative number, which is imaginary. Writing turns the answer into two complex roots, a conjugate pair . Before this chapter that case simply had no answer; now that is available, it does.
| Discriminant | The square root | Roots of the quadratic |
|---|---|---|
| a nonzero real number | two distinct real roots | |
| zero | one repeated real root | |
| imaginary | two complex conjugate roots |
Notice you can name the type of roots from alone, without ever finishing the solve. Computing the discriminant first is a quick way to know what you are heading toward.
Check your understanding
Without solving, what does the discriminant tell you about the roots of ?
Read off , , and compute the discriminant. Take care that is positive and that .
Since , the square root is imaginary, so the quadratic has two complex conjugate roots. Every quadratic has roots, so "no roots at all" is never correct once complex numbers are allowed.
Applying the formula
With the formula, the discriminant, and the imaginary unit in hand, one procedure now solves any quadratic. Put the equation in standard form, read off , , and with their signs, substitute, and simplify.
Worked example 1 Solve
The equation is already in standard form, so read off , , and , keeping the sign on . Substitute into the formula, watching the double negative in :
The term is positive because was negative, so the discriminant is , a perfect square:
Now split the into its two cases:
The two roots are and . When the discriminant is a perfect square, the roots come out rational, exactly the case that ordinary factoring could also have caught.
Worked example 2 Solve
Read off , , and . Because , the term is , and is positive; a common slip is to write here. Substitute:
The discriminant is not a perfect square, so the roots are irrational. Simplify the radical using and :
Every term in the fraction shares a factor of , so divide the numerator and denominator by to reduce:
The roots are and , both real and irrational. Reduce only by a factor common to , the radical, and the denominator; here that shared factor is .
Check your understanding
Solve with the quadratic formula.
Read off , , , then substitute. The discriminant is , and .
Divide the whole numerator by , then reduce by the common factor . Dividing only the (giving ) or using are the traps.
The formula does not stop at real roots. When the discriminant is negative, the same substitution runs straight into a square root of a negative number, which the imaginary unit handles.
Worked example 3 Solve (complex roots)
Read off , , and , and substitute:
The discriminant is , negative, so the roots are complex. Rewrite the root of the negative with , using :
Divide both parts of the numerator by :
The roots are the conjugate pair and . Whenever the discriminant is negative, the two roots always arrive as a conjugate pair like this, matching in real part and opposite in imaginary part.
Worked example 4 Solve (a repeated root)
Read off , , and . Substitute, being careful that and :
The discriminant is , so and the adds nothing. The two roots collapse into one:
There is a single repeated root, . A zero discriminant is the exact border between real and complex roots, and it always signals that the quadratic is a perfect square, here .
Check your understanding
Solve with the quadratic formula.
Read off , , , so and the discriminant is , with .
Divide the whole numerator by , turning and . The roots are the conjugate pair and .
A quadratic does not always arrive in standard form. When it does not, move every term to one side first, so that the other side is , and only then read off , , and .
Worked example 5 Solve by first reaching standard form
As written, the equation is not set to , so you cannot read the coefficients yet. Subtract and from both sides to gather everything on the left:
Now it is in standard form with , , and . Substitute, noting that :
The discriminant is , so
Reaching standard form first is what made , , and readable. Skipping that step, and reading coefficients off directly, is a reliable way to get the signs wrong.
That single procedure, put in standard form and substitute, now handles every quadratic you will meet. The next lesson turns it loose on real-world situations, where an unknown length, time, or price is whatever value makes a quadratic equal zero.