Given
The function,

To find:
The maximum or minimum value of the function, and where does it occur.
Step-by-step explanation:
It is given that,

That implies,
Set g(x)=y.
Then,

Here, a=1>0.
Then, the parabola opens up.
And, k is the minimum functional value, it occurs when x = h.
Therefore,
1) g(x) has a minimum value.
2) g(x)'s minimum value is -4.
3) And it occurs at x = -2.