Is this your equation?
First find the derivative. Then find the values of x for which the derivative is equal to 0 or undefined.
Then use a sign chart to find where the function is increasing/decreasing.
When the function goes from increasing to decreasing, you have a local maximum and vise versa.