You can
put this solution on YOUR website!In order to write

in vertex form, we need to complete the square for
---------------------------------------------
Completing the Square:

Start with the given expression.
Take half of the

coefficient

to get

. In other words,

.
Now square

to get

. In other words,

Now add
and subtract

. Notice how

. So the expression is not changed.

Group the first three terms.

Factor

to get

.
So after completing the square,

transforms to

. So

.
So

is equivalent to

.
---------------------------------------------

Start with the previous equation

Rewrite

as

Place a "1" outside the parenthesis.
Now

is in vertex form

where

,

and