What is the smallest value of ? Trying numbers gets close, but it never proves anything. Rewrite the same expression as and the answer is in plain sight, because a square is never negative. Completing the square is that rewriting, and calculus uses it to find extreme values, to sketch graphs and to bring integrals into a standard form.
Key terms
Square term
Definition A square term is an expression of the form with a real constant. For every real ,
A quadratic is a perfect square exactly when , and then it equals .
In plain words In a perfect square the coefficient of is twice , and the constant is squared. So half the middle coefficient, squared, is the constant you need.
Example For the expansion is . Half of is , and , which matches the constant.
Completing the square
Definition For every real and every real constant ,
Completing the square means using this identity to rewrite a quadratic expression as a square term, or a constant multiple of one, plus a constant.
In plain words The part is a square that is missing its last piece. Add the missing piece inside the square and take the same amount away outside.
Example With , half of is and .
At both sides equal , which is a good quick check.
Constant adjustment
Definition Adding a number and subtracting the same changes no value, since for every expression . In completing the square the adjustment is . It is added to build the perfect square and subtracted at once to keep the expression equal to what it was.
In plain words Every number you add to make the square has to be paid back right away. Keep both in view so each line is visibly equal to the one before.
Example For , half of is and .
Notice that here, so the square is with a minus sign inside.
Leading coefficient
Definition The leading coefficient of is , assumed nonzero. To complete the square, factor out of the two terms that contain ,
and then complete the square inside the parentheses. Anything added inside the parentheses is multiplied by , so the outside compensation must be times the inside adjustment.
In plain words Pull the leading number out first. Then remember that whatever you add inside the bracket actually counts times.
Example Rewrite . Factor from the terms and add inside, which really adds , so subtract outside.
Subtracting only outside is the classic slip and gives the wrong constant .
Equivalent form
Definition Completing the square turns with into the vertex form
This is an identity, true for every real , so the two forms are equivalent everywhere. The graph of is a parabola with vertex .
In plain words Nothing about the function changes. You only write it in a shape that shows where the parabola turns.
Example From before, , so and . The formulas agree, since and . At the original gives and the new form gives .
Minimum value
Definition For every real we have , with equality only at . If , then as well, so
with equality exactly at . The minimum value of the quadratic is , attained only at , and there is no maximum. If the inequality reverses, is the maximum value, and there is no minimum.
In plain words A square is smallest when it is zero. When is positive, the whole expression is smallest exactly where the square vanishes.
Example Since with equality only at , the minimum value of is , at . For a negative leading coefficient, , so that quadratic has maximum value at .
Check yourself
- Complete the square in and find its minimum value.
Show the answer
Half of is and , so
The minimum value is , at .
- Complete the square in and find its minimum value.
Show the answer
Factor from the terms. Adding inside the parentheses adds in total, so subtract outside.
Because , the minimum value is , at .
- A student writes . Find the mistake and correct it.
Show the answer
The added inside the parentheses is multiplied by , so must be subtracted, not . The correct form is
At the original gives , and confirms it.