The quadratic formula
A quadratic equation has the solutions
Every course hands this over to be used. Here is where it comes from: it is completing the square, carried out once with letters instead of numbers, so that the answer works for every quadratic at once.
Before you start
You need to be able to complete the square, because that is the whole method. If , you write the left side as and solve from there. The only difference below is that the numbers are , and .
Predict first
Before reading on, predict: the formula divides by , so it breaks when . What kind of equation is when ? Work that out first, then read the proof and see where it is assumed.
The proof
Start with the general quadratic equation and :
Step 1: divide by . This is where is needed — you cannot divide by zero. Dividing turns the leading coefficient into , which is what completing the square wants:
Step 2: move the constant to the other side.
Step 3: complete the square. Take half of the coefficient of , which is , and square it: . Add it to both sides:
The left side is now a perfect square, by construction:
Step 4: put the right side over one denominator. The common denominator is , so multiply the second fraction by :
Step 5: take the square root of both sides. A square has two square roots, one positive and one negative, and that is where the comes from:
Step 6: subtract from both sides. The two fractions already share the denominator :
That is the formula.
What the proof tells you for free
The discriminant is a square root. The quantity sits under a square root, so its sign decides how many solutions there are: positive gives two, zero gives one, negative gives none. That is not an extra rule to learn — it is the shape of the answer.
Why the formula fails when . Step 1 divides by . When the equation is , which is a straight line with one solution, not a quadratic. The formula was never meant to apply, and it says so by breaking.
Why you can divide by at the end. The proof assumes throughout, so and the division is allowed.
Check your understanding
- Why is the there? Answer in terms of the step it appears in, not by quoting the formula.
- Use the formula on and check one root by substituting it.
- The proof completes the square by adding to both sides. Where did that expression come from?
Answers
- It appears when taking a square root in Step 5. Every positive number has two square roots, so the equation has two solutions whenever .
- , , , so and , giving or . Check: .
- The coefficient of is . Completing the square always uses half of that coefficient squared, and half of is , whose square is .
A common error
The formula applies to with the terms collected and in that order. If the equation arrives as , rearrange it to before reading off , and — and take the sign of with the term, because a negative is the most common way to lose a mark.