Use the notations f'(x), f''(x), dy/dx, d^2y/dx^2 [=d/dx(dy/dx)].
Apply differentiation to stationary points.
Use the first and second derivative tests to discriminate between maxima and minima.