First, find the derivative of the function:
Now find the critical points. These occur when the derivative function is equal to zero or when it is undefined. Since the function is never undefined, the critical points occur only when it is equal to 0.
So, find the critical points. Then, create a sign chart. Where the sign changes from positive to negative you have a maximum and where it changes from negative to positive you have a minimum.