- Halve the coefficient of $x$ — call it $p$.
- Write $(x + p)^2$.
- That bracket produces $p^2$ too much, so subtract $p^2$.
- Add on the original constant.
Express $x^2 + 8x + 3$ in completed-square form.
Express $x^2 - 10x + 21$ in completed-square form.
- Factor $a$ out of the $x^2$ and $x$ terms only.
- Complete the square inside the bracket.
- Multiply the whole bracket back out by $a$.
- Combine the constants.
Express $2x^2 + 12x + 5$ in the form $a(x+p)^2 + q$.
Express $5 - 4x - x^2$ in the form $q - (x+p)^2$.
If $a > 0$: minimum $y = q$. If $a < 0$: maximum $y = q$.
Find the coordinates of the vertex of $y = x^2 - 6x + 11$ and state the minimum value of $y$.
Because the variable appears once, you can undo the operations one at a time to get an exact answer.
Solve $x^2 + 6x - 2 = 0$, giving your answers in surd form.
Completing the square on the general quadratic gives the formula itself.
The form
$ax^2+bx+c \equiv a(x+p)^2+q$.
Finding $p$
$p = \tfrac{b}{2a}$ — half the middle coefficient after factoring out $a$.
Finding $q$
Subtract $ap^2$, then add $c$.
Vertex
$(-p,\, q)$ — the sign flips.
Symmetry
The line $x = -p$.
$a>0$
$q$ is the minimum value.
$a<0$
$q$ is the maximum value.
Solving
Isolate the bracket, square-root with $\pm$.
No real roots
If $a>0$ and $q>0$, the curve misses the axis.
Always check
Expand your answer back out.
Express $x^2 + 4x + 9$ in the form $(x+p)^2 + q$.
▶ Show solution
Half of $4$ is $2$: $(x+2)^2 = x^2 + 4x + 4$.
$\equiv (x+2)^2 - 4 + 9 = (x+2)^2 + 5$
Express $x^2 - 12x + 40$ in completed-square form and write down the minimum value.
▶ Show solution
$\equiv (x-6)^2 - 36 + 40 = (x-6)^2 + 4$
Minimum value $4$, at $x = 6$.
Express $x^2 + 5x + 1$ in the form $(x+p)^2 + q$.
▶ Show solution
Half of $5$ is $\tfrac52$: $\left(x + \tfrac52\right)^2 = x^2 + 5x + \tfrac{25}{4}$.
$\equiv \left(x + \dfrac{5}{2}\right)^2 - \dfrac{25}{4} + 1 = \left(x + \dfrac{5}{2}\right)^2 - \dfrac{21}{4}$
Express $3x^2 - 6x + 7$ in the form $a(x+p)^2 + q$.
▶ Show solution
$3\left(x^2 - 2x\right) + 7$
$x^2 - 2x = (x-1)^2 - 1$
$3\left[(x-1)^2 - 1\right] + 7 = 3(x-1)^2 - 3 + 7$
$= 3(x-1)^2 + 4$
Find the coordinates of the vertex of $y = 2x^2 + 8x + 3$.
▶ Show solution
$2\left(x^2 + 4x\right) + 3 = 2\left[(x+2)^2 - 4\right] + 3$
$= 2(x+2)^2 - 8 + 3 = 2(x+2)^2 - 5$
Vertex at $(-2,\, -5)$.
Express $7 - 6x - x^2$ in the form $q - (x+p)^2$ and state the maximum value.
▶ Show solution
$-\left(x^2 + 6x\right) + 7 = -\left[(x+3)^2 - 9\right] + 7$
$= -(x+3)^2 + 9 + 7 = 16 - (x+3)^2$
Maximum value $16$, at $x = -3$.
Solve $x^2 - 4x - 6 = 0$ by completing the square, giving exact answers.
▶ Show solution
$(x-2)^2 - 4 - 6 = 0$
$(x-2)^2 = 10$
$x - 2 = \pm\sqrt{10}$
$x = 2 \pm \sqrt{10}$
Show that $x^2 + 2x + 5$ is positive for all real $x$.
▶ Show solution
$x^2 + 2x + 5 \equiv (x+1)^2 - 1 + 5 = (x+1)^2 + 4$
$(x+1)^2 \geqslant 0$ for every real $x$, so the expression is at least $4$.
Since $4 > 0$, the expression is always positive.
The curve $y = x^2 + kx + 9$ touches the $x$-axis. Use completing the square to find the two possible values of $k$.
▶ Show solution
$x^2 + kx + 9 \equiv \left(x + \dfrac{k}{2}\right)^2 - \dfrac{k^2}{4} + 9$
Touching the axis means the minimum value is exactly $0$:
$9 - \dfrac{k^2}{4} = 0 \;\Rightarrow\; k^2 = 36 \;\Rightarrow\; k = \pm 6$
Check with the discriminant: $k^2 - 36 = 0$ gives the same answer ✓
A ball is thrown so that its height in metres after $t$ seconds is $h = 1 + 14t - 5t^2$.
(a) Express $h$ in completed-square form. (b) Find the greatest height and when it occurs. (c) Find, to 2 d.p., when the ball hits the ground. (d) Explain why only one of the two algebraic solutions in (c) is used.
▶ Show solution
(a) $h = -5t^2 + 14t + 1 = -5\left(t^2 - \dfrac{14}{5}t\right) + 1$
Half of $-\tfrac{14}{5}$ is $-\tfrac{7}{5}$, and $\left(\tfrac{7}{5}\right)^2 = \tfrac{49}{25}$:
$= -5\left[\left(t - \dfrac{7}{5}\right)^2 - \dfrac{49}{25}\right] + 1 = -5\left(t - \dfrac{7}{5}\right)^2 + \dfrac{49}{5} + 1$
$h = \dfrac{54}{5} - 5\left(t - \dfrac{7}{5}\right)^2$
(b) The squared term is subtracted, so $h$ is greatest when it is zero, at $t = \tfrac75 = 1.4$ s.
Greatest height $= \tfrac{54}{5} = 10.8$ m.
(c) Ground level is $h = 0$:
$5\left(t - \dfrac{7}{5}\right)^2 = \dfrac{54}{5} \;\Rightarrow\; \left(t - 1.4\right)^2 = \dfrac{54}{25} = 2.16$
$t - 1.4 = \pm\sqrt{2.16} = \pm 1.4697\ldots$
$t = 2.8697\ldots$ or $t = -0.0697\ldots$
The ball lands at $t = 2.87$ s (2 d.p.).
(d) The negative root corresponds to a time before the ball was thrown. The model only applies for $t \geqslant 0$, so $t = -0.07$ is rejected as physically meaningless — though it is a genuine root of the quadratic.