I'm having difficulty reducing a quadratic equation to its "vertex-form" by following my textbook and nearly every tutorial I can find online.
The starting equation is:
$$f(x) = -2x^2 + 16x - 24$$
Next, I divided each term by $-2$ (to leave the first term as $x^2$):
$$ = x^2 - 8x + 12$$
Next, to complete the square, I divide $x$'s coefficient by $2$, then square it ($(b/2)^2$):
$$\left(\frac{8}{2}\right)^2 = 16$$
Which gives me $16$. I add $16$ to complete the square, but also subtract it so it doesn't affect the value:
$$ = x^2 - 8x + 16 + 12 - 16$$
Finally, I complete the square:
$$ = (x - 4)^2 + 12 - 16$$
Then simplify:
$$= (x - 4)^2 - 4$$
According to by book though,the answer is:
$$-2(x - 4)^2 + 8$$
Unfortunately, the text skips over steps and makes it very unclear how they got the answer that they did. Can anyone point out where I went wrong above? I compiled the above steps from several videosand tutorials, but I must have gone wrong somewhere.