Candidates Test, Global Extrema, Example - Calculus