Completing the square is a technique which can be used to solve quadratic equations that do not factorise. It can also be useful when finding the minimum or maximum value of a quadratic.
A general quadratic ax2 + bx + c is written in the form a(x + p)2 + q when completing the square. You need to find the constants p and q so that the two expressions are identical.
Worked Examples
Complete the square for x2 + 10x + 2.
First consider the x2 + 10x . These terms can be obtained by expanding (x + 5)2 .
| But | (x + 5)2 | = x2 + 10x + 25 |
| so | x2 + 10x | = (x + 5)2 − 25 |
| Therefore | x2 + 10x + 2 | = (x + 5)2 − 25 + 2 |
| = (x + 5)2 − 23 |
Complete the square for x2 + 6x − 8.
To obtain x2 + 6x requires expanding (x + 3)2.
| But | (x + 3)2 | = x2 + 6x + 9 |
| so | x2 + 6x | = (x + 3)2 − 9 |
| Therefore | x2 + 6x − 8 | = (x + 3)2 − 9 − 8 |
| = (x + 3)2 − 17 |
Note
When completing the square for x2 + bx + c, the result is
⎝x + ⎞
⎠2 − + c
and for a ≠ 0,
⎝x + ⎞
⎠2 − + c
Complete the square for 3x2 + 6x + 7.
As a first step, the quadratic can be rearranged as shown below.
| 3x2 + 6x + 7 | = 3(x2 + 2x) + 7 | |
| Then note that | x2 + 2x | = (x + 1)2 − 1 |
| so | 3(x2 + 2x) + 7 | = 3⎛ ⎝(x + 1)2 − 1⎞ ⎠ + 7 |
| = 3(x + 1)2 − 3 + 7 | ||
| = 3(x + 1)2 + 4 |
Complete the square for y = 2x2 − 8x + 2.
First rearrange the quadratic as shown.
2x2 − 8x + 2 = 2(x2 − 4x) + 2 .
Then x2 − 4x can be written as (x − 2)2 − 4 to give
| 2(x2 − 4x) + 2 | = 2⎛ ⎝(x − 2)2 − 4⎞ ⎠ + 2 |
| = 2(x − 2)2 − 8 + 2 | |
| = 2(x − 2)2 − 6 |
Find the minimum value of y.
As y = 2(x − 2)2 − 6, the minimum possible value of y is − 6, which is obtained when x − 2 = 0 or x = 2.
Sketch the graph of y = 2x2 − 8x + 2.
Before sketching the graph, it is also useful to find where the curve crosses the x-axis, that is when y = 0. To do this, solve
| 0 | = 2(x − 2)2 − 6 |
| 2(x − 2)2 | = 6 |
| (x − 2)2 | = 3 |
| x − 2 | = ± |
| x | = 2± |
So the curve crosses the x-axis at 2 + and 2 − , and has a minimum at (2, −6).
This is shown in the graph opposite.
Express 3x2 + 2x + 1 in the form a(x + p)2 + q where a, p and q are real numbers.
As a first step, the quadratic can be rearranged as shown below.
| 3x2 + 2x + 1 | = a(x + p)2 + q |
| = a(x2 + 2px + p2) + q | |
| = ax2 + 2apx + (ap2 + q) |
Equating coefficients:
| [x2] | 3 = a | ⇒ a = 3 |
| [x] | 2 = 2ap | ⇒ p = = |
| [ct] | 1 = ap2 + q =
3 × ⎛ ⎝⎞ ⎠2 + q = + q | |
| q = 1 − = | ||
Thus
3x2 + 2x + 1 =
3⎛
⎝x + ⎞
⎠2 +
Hence, determine for f(x) = 3x2 + 2x + 1
the minimum value for f(x)
Minimum value of y = 3x2 + 2x + 1 will occur when x + = 0 ; that is, x = , and the value is y = .
the equation of the axis of symmetry.
x = is the equation of the axis of symmetry.

