First off, we factor out the expression:
In the bracket, separate 8 out of the expression.
In x^2-6x, find the third term that can make up or convert it to a perfect square form. The third term is 9 because:
So we add +9 in x^2-6x.
Convert the expression in the small bracket to perfect square.
Since we add +9 in the small bracket, we have to subtract 8 with 9 as well.
Then we distribute 2 in.
Remember that negative multiply positive = negative.
Hence the vertex form is y = 2(x-3)^2-2 or first choice.