Remember that a function has its critical points where the derivative equal zero. Therefore we need to compute the derivative of this function and find the points where the derivative is zero. Using the chain rule and the product rule we get that
And then we get that if then . So it has a critical point at .
Now, if the second derivative evaluated at that point is less than 0 then the point is a maximum and if is greater than zero the point is a minimum.