The function is increasing for:

And the function is decreasing for:

The local maximum (or minimum) occurs when there may be higher (or lower) points elsewhere but not nearby.
Therefore, the local maximum of the function is:

And the local minimum of the function is:
