How to complete the square: from general form to standard form
To complete the square, factor out of the and terms, add and subtract the square of half the coefficient of inside the bracket, close the perfect square, and multiply the number left over by as it leaves the bracket. What comes out is the standard form (often called vertex form outside Quebec), which hands you the vertex and the maximum or minimum of the function with no further work.
The one identity behind it
Every step of completing the square is this expansion read backwards:
- The coefficient of is , twice the number in the bracket.
- The constant is , the square of that number.
So if you are looking at , the bracket must hold , half of 8, and the piece missing to make a perfect square is . That is the whole trick: half the coefficient of , squared. Everything else is bookkeeping, so that the function does not change while you rewrite it.
The four moves
- Factor out of the first two terms only. Leave the constant outside. If , there is nothing to do.
- Add and subtract the missing square inside the bracket: half the coefficient of in the bracket, squared. Adding and subtracting the same number changes nothing.
- Close the square. The first three terms in the bracket are now a perfect square trinomial; write them as .
- Clear the bracket. The number you subtracted is multiplied by as it leaves, then combined with the constant.
Example 1: a leading coefficient of 1
Write in standard form. Move 1 is empty. Half of 12 is 6, and :
The vertex is . Read with care: is , so .
Example 2: a leading coefficient that is not 1
This is where most students stall, because there are now two numbers to keep track of. Write in standard form.
- Factor out of the first two terms. Since , the bracket holds :
- Half of the inside the bracket is , and . Add and subtract it inside:
- Close the square:
- Clear the bracket. The leaves multiplied by , so it becomes :
The vertex is . Notice that in move 2 the number halved is the 4 in the bracket, not the of the original rule.
A one-line check. Put into both rules. The general form gives ; the standard form gives . They agree. Had the left the bracket without being multiplied by , the constant would have come out as instead of , and this check would give instead of .
Why the standard form hands you the maximum or minimum
The vertex is not just a point to plot. The standard form proves which value is the extreme one, using a single fact: a square is never negative.
- for every , and it equals only when .
- If , then , so . The function never goes below and reaches it at : is the minimum.
- If , then , so : is the maximum, again reached at .
In Example 2, is never positive, so is never more than , and it equals exactly when . The maximum is , at . No graph and no table of values: the form itself is the argument. That is why a problem asking for a greatest height or a least cost is, underneath, asking you to complete the square.
Doing it once with letters
Run the four moves on itself and the vertex comes out as a formula:
So , and is simply . That is a fast way to locate the vertex from the general form, and the post on which form of a quadratic function answers what uses it. It is still completing the square underneath, and doing the moves by hand is what stops a misremembered sign.
The most common mistake. Completing the square rewrites the rule; it must never change it. Every number added inside the bracket is subtracted inside the same bracket, and the number that leaves the bracket is multiplied by on its way out. The trap is to treat the rule like an equation: add the missing number "to make the square work" and never take it back, or take it back without multiplying it by . Either way the vertex comes out with the right and the wrong . The check catches both in one line.
Check your understanding
No calculator. The first four ask for the standard form; the last three ask you to explain.
- Write in standard form and give its vertex.
- Write in standard form. Fractions are allowed.
- Write in standard form. Does the function have a maximum or a minimum, and what is it?
- Write in standard form and give its maximum or minimum.
- True or false: has a minimum value of . Explain.
- Sam completes the square on and announces that the vertex is . Is he right? If not, what did he most likely forget?
- Use a completed square to explain why is positive for every real number .
Show the answers
- , vertex . Half of 6 is 3 and , so .
- . Half of is , whose square is , and . The vertex is .
- , with a minimum of at . Factoring gives , and the leaves as , so . Since , the function never goes below .
- , with a maximum of at . Factoring gives , and the leaves as . Since , is the greatest value.
- False. has , so is the maximum, reached at . There is no minimum: the values keep falling as moves away from .
- No. , so the vertex is . He let the leave the bracket without multiplying it by . The check exposes it: the general form gives , while his rule gives at .
- . A square is never negative, so the expression is at least for every ; it can never reach zero, let alone go below it.
Keep practising
The free Secondary 4 Algebraic Expressions worksheet has a completing-the-square question alongside the factoring it builds on, and the Quadratic Functions worksheet puts the standard form to work on graphs and problems. If your next question is which form to use, read general, standard or factored: which form answers what; if the rule factors, the product-sum method gets you to the zeroes faster.
Want one-on-one help with this? I offer Secondary 4 and 5 math tutoring in Montreal, in person or online. Sessions start with a short written diagnostic, and a written recap goes to whoever books after every session.