Leave lesson

Pure · Algebra & functions

1 / 9

Quadratic equations

Three ways to solve a quadratic — factorising, completing the square, the formula — where the formula comes from, and what the discriminant tells you before you solve.

Pure · Algebra & functions

Quadratic equations

Three ways to solve a quadratic — factorising, completing the square, the formula — where the formula comes from, and what the discriminant tells you before you solve.

Why it works

A quadratic is ax2+bx+c=0ax^2 + bx + c = 0 with a0a \ne 0. Its graph is a parabola, so it can cross the xx-axis twice, touch it once, or miss it entirely — which is why a quadratic has two, one, or no real solutions.

Factorising rests on one fact: if two things multiply to 00, at least one of them is 00. So once you write (xp)(xq)=0(x-p)(x-q) = 0, the solutions are simply x=px = p or x=qx = q. The whole skill is finding pp and qq — two numbers that multiply to cc and add to bb (when a=1a = 1).

Completing the square rewrites the quadratic to make the xx appear once. The key pattern is x2+bx=(x+b2)2(b2)2.x^2 + bx = \left(x + \tfrac{b}{2}\right)^2 - \left(\tfrac{b}{2}\right)^2. Squaring (x+b2)\left(x+\tfrac b2\right) gives you the bxbx you wanted but also an extra (b2)2\left(\tfrac b2\right)^2, so you subtract it back off. This form a(x+p)2+qa(x+p)^2 + q hands you the vertex for free: the bracket is smallest (zero) when x=px = -p, so the turning point is (p,q)(-p,\, q) and qq is the minimum (or maximum, if a<0a<0) value.

The formula is just completing the square done once, in general: x=b±b24ac2a.x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}. Note the whole top — including b-b — is divided by 2a2a, and the ±\pm is what produces the two roots.

The discriminant is the bit under the root, Δ=b24ac\Delta = b^2 - 4ac. You can read off the number of real roots without solving, because you can't square-root a negative:
  • Δ>0\Delta > 0 → two distinct real roots,
  • Δ=0\Delta = 0 → one repeated root (the parabola just touches the axis),
  • Δ<0\Delta < 0 → no real roots.
Here is y=x2+6x+1y = x^2 + 6x + 1, which completing the square turns into (x+3)28(x+3)^2 - 8 — the vertex sits at (3,8)(-3, -8):-7-6-5-4-3-2-11-8-6-4-22468(-3, -8) minxy