find the second derivative