Function g has a graph that’s shown below,
Relative maxima are shown in yellow.
Relative minima are shown in cyan.