Proofs

The quadratic formula

A quadratic equation ax2+bx+c=0ax^2 + bx + c = 0 has the solutions

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

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 x2+6x+2=0x^2 + 6x + 2 = 0, you write the left side as (x+3)2−7(x + 3)^2 - 7 and solve from there. The only difference below is that the numbers are aa, bb and cc.

Predict first

Before reading on, predict: the formula divides by 2a2a, so it breaks when a=0a = 0. What kind of equation is ax2+bx+c=0ax^2 + bx + c = 0 when a=0a = 0? Work that out first, then read the proof and see where it is assumed.

The proof

Start with the general quadratic equation and a≠0a \neq 0:

ax2+bx+c=0ax^2 + bx + c = 0

Step 1: divide by aa. This is where a≠0a \neq 0 is needed — you cannot divide by zero. Dividing turns the leading coefficient into 11, which is what completing the square wants:

x2+bax+ca=0x^2 + \frac{b}{a}x + \frac{c}{a} = 0

Step 2: move the constant to the other side.

x2+bax=−cax^2 + \frac{b}{a}x = -\frac{c}{a}

Step 3: complete the square. Take half of the coefficient of xx, which is b2a\dfrac{b}{2a}, and square it: b24a2\dfrac{b^2}{4a^2}. Add it to both sides:

x2+bax+b24a2=b24a2−cax^2 + \frac{b}{a}x + \frac{b^2}{4a^2} = \frac{b^2}{4a^2} - \frac{c}{a}

The left side is now a perfect square, by construction:

(x+b2a)2=b24a2−ca\left(x + \frac{b}{2a}\right)^2 = \frac{b^2}{4a^2} - \frac{c}{a}

Step 4: put the right side over one denominator. The common denominator is 4a24a^2, so multiply the second fraction by 4a4a\dfrac{4a}{4a}:

(x+b2a)2=b2−4ac4a2\left(x + \frac{b}{2a}\right)^2 = \frac{b^2 - 4ac}{4a^2}

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 ±\pm comes from:

x+b2a=±b2−4ac2ax + \frac{b}{2a} = \pm\frac{\sqrt{b^2 - 4ac}}{2a}

Step 6: subtract b2a\dfrac{b}{2a} from both sides. The two fractions already share the denominator 2a2a:

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}

That is the formula.

What the proof tells you for free

The discriminant is a square root. The quantity b2−4acb^2 - 4ac 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 a=0a = 0. Step 1 divides by aa. When a=0a = 0 the equation is bx+c=0bx + c = 0, 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 2a2a at the end. The proof assumes a≠0a \neq 0 throughout, so 2a≠02a \neq 0 and the division is allowed.

Check your understanding

  1. Why is the ±\pm there? Answer in terms of the step it appears in, not by quoting the formula.
  2. Use the formula on 2x2−7x+3=02x^2 - 7x + 3 = 0 and check one root by substituting it.
  3. The proof completes the square by adding b24a2\dfrac{b^2}{4a^2} to both sides. Where did that expression come from?
Answers
  1. It appears when taking a square root in Step 5. Every positive number has two square roots, so the equation (something)2=k\text{(something)}^2 = k has two solutions whenever k>0k > 0.
  2. a=2a = 2, b=−7b = -7, c=3c = 3, so b2−4ac=49−24=25b^2 - 4ac = 49 - 24 = 25 and x=7±54x = \dfrac{7 \pm 5}{4}, giving x=3x = 3 or x=12x = \tfrac{1}{2}. Check: 2(3)2−7(3)+3=18−21+3=02(3)^2 - 7(3) + 3 = 18 - 21 + 3 = 0.
  3. The coefficient of xx is ba\dfrac{b}{a}. Completing the square always uses half of that coefficient squared, and half of ba\dfrac{b}{a} is b2a\dfrac{b}{2a}, whose square is b24a2\dfrac{b^2}{4a^2}.

A common error

The formula applies to ax2+bx+c=0ax^2 + bx + c = 0 with the terms collected and in that order. If the equation arrives as 3+2x2=7x3 + 2x^2 = 7x, rearrange it to 2x2−7x+3=02x^2 - 7x + 3 = 0 before reading off aa, bb and cc — and take the sign of bb with the term, because a negative bb is the most common way to lose a mark.

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.