Using the first derivative test to find relative (local) extrema