Arosh

Factorising quadratic equations

How to factorise a quadratic when the leading coefficient is 1, how the AC method handles the case when it is not, and a short proof of why splitting the middle term always works.

TODO — replace with Arosh’s own write-up. The Maths below is correct; the words are a starting point.

Factorising a quadratic means writing it as two brackets multiplied together. It matters because a product is zero exactly when one of its factors is zero — so once you have the brackets, the solutions fall straight out.

The easy case: x2+bx+cx^2 + bx + c

When the coefficient of x2x^2 is 1, you are looking for two numbers that multiply to cc and add to bb.

Take x2+7x+12x^2 + 7x + 12. Which pairs multiply to 12? 1×121 \times 12, 2×62 \times 6, 3×43 \times 4. Of those, 3+4=73 + 4 = 7. So

x2+7x+12=(x+3)(x+4).x^2 + 7x + 12 = (x + 3)(x + 4).

The reason is just the expansion in reverse:

(x+p)(x+q)=x2+(p+q)x+pq,(x + p)(x + q) = x^2 + (p + q)x + pq,

so p+qp + q has to be bb and pqpq has to be cc.

Watch the signs. If cc is negative the two numbers have opposite signs; if cc is positive they share the sign of bb. For x25x+6x^2 - 5x + 6 you want two negatives: 2-2 and 3-3, giving (x2)(x3)(x-2)(x-3).

The harder case: ax2+bx+cax^2 + bx + c

When a1a \neq 1, guessing gets slow. The AC method — also called splitting the middle term — removes the guessing.

Factorise 6x2+11x356x^2 + 11x - 35.

  1. Multiply aa by cc: 6×(35)=2106 \times (-35) = -210.
  2. Find two numbers that multiply to 210-210 and add to b=11b = 11. They are 2121 and 10-10.
  3. Split the middle term using them: 6x2+21x10x35.6x^2 + 21x - 10x - 35.
  4. Factorise the two halves separately: 3x(2x+7)5(2x+7).3x(2x + 7) - 5(2x + 7).
  5. The bracket (2x+7)(2x+7) is now common to both, so take it out: (3x5)(2x+7).(3x - 5)(2x + 7).

Expanding to check: 6x2+21x10x35=6x2+11x356x^2 + 21x - 10x - 35 = 6x^2 + 11x - 35. Correct.

Why splitting the middle term always works

It is not a coincidence that the two halves share a bracket. Suppose the quadratic does factorise, as

ax2+bx+c=(px+q)(rx+s).ax^2 + bx + c = (px + q)(rx + s).

Expanding the right-hand side gives

prx2+(ps+qr)x+qs,prx^2 + (ps + qr)x + qs,

so a=pra = pr, b=ps+qrb = ps + qr and c=qsc = qs.

Now take the two parts of the middle coefficient and multiply them:

(ps)(qr)=pqrs=(pr)(qs)=ac.(ps)(qr) = pqrs = (pr)(qs) = ac.

So psps and qrqr are two numbers whose product is acac and whose sum is bb — precisely what step 2 asks you to find. Finding them is not a trick that happens to work; it is finding the two halves of the middle term directly.

When it does not factorise

Not every quadratic splits into brackets with whole numbers. The test is the discriminant:

Δ=b24ac.\Delta = b^2 - 4ac.
  • If Δ\Delta is a perfect square, the quadratic factorises over the integers.
  • If Δ>0\Delta > 0 but is not a perfect square, there are two real roots, but they are irrational — use the formula rather than hunting for factors.
  • If Δ<0\Delta < 0 there are no real roots at all, and no real factorisation.

For 6x2+11x356x^2 + 11x - 35: Δ=121+840=961=312\Delta = 121 + 840 = 961 = 31^2. A perfect square, which is why the factors came out whole.

Completing the square

When factorising fails, completing the square always works, and it is where the quadratic formula comes from:

ax2+bx+c=a(x+b2a)2+cb24a.ax^2 + bx + c = a\left(x + \frac{b}{2a}\right)^2 + c - \frac{b^2}{4a}.

Setting that to zero and rearranging gives

x=b±b24ac2a.x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}.

Worth deriving once yourself rather than only memorising — the Δ\Delta above is sitting right there under the square root, which is exactly why it decides how many roots there are.