You have

where

or

or .

Therefore or .

But since for all , that means

.

So there is a critical value at . Use the second derivative test to determine its nature, and then substitute it back into the original function to find the corresponding value.