Answer
$ f(x)=-3(x-5)^2-7$.
Work Step by Step
The given maximum value is $=-7$ at $x=5$.
The vertex is $(h,k)=(5,-7)$
For the maximum value $a$ must be less than zero.
Take the given function $g(x)=-3x^2$.
The equation of the parabola that has the same shape is
$\Rightarrow f(x)=-3(x-h)^2+k$
Substitute the values of $h$ and $k$.
$\Rightarrow f(x)=-3(x-5)^2+(-7)$.
Simplify.
$\Rightarrow f(x)=-3(x-5)^2-7$.