To rewrite the function
-
Factor out the coefficient of
(which is 2) from the first two terms: -
Complete the square for the expression in parentheses
. To do this, take half of the coefficient of (which is ), square it, and add and subtract it inside the parentheses.Half of
is . The square of is .Then we can rewrite the expression:
-
Substitute this back into the function:
-
Distribute the 2:
-
Convert
into sixteenths to combine the constants: -
Combine the constants:
-
Finally, we have the completed square form:
Thus, the completed square form is: