How do you know when to use the first derivative test and the second derivative test?