Using the second derivative test to find extrema