The first steps in writing f(x) = 3x2 – 24x + 10 in vertex form are shown.

f(x) = 3(x2 – 8x) + 10

(StartFraction negative 8 Over 2 EndFraction) squared = 16

What is the function written in vertex form?

f(x) = 3(x + 4)2 – 6
f(x) = 3(x + 4)2 – 38
f(x) = 3(x – 4)2 – 6
f(x) = 3(x – 4)2 – 38