Find Relative Extrema of Functions