(For the alternative solution) Recall the second derivative test for extremes:
(1) If f ′ ( x ) = 0 {\displaystyle f'(x)=0} and f ″ ( x ) < 0 {\textstyle f''(x)<0} , then f {\textstyle f} has a local maximum at x {\textstyle x} ;
(2) If f ′ ( x ) = 0 {\displaystyle f'(x)=0} and f ″ ( x > 0 ) {\textstyle f''(x>0)} , then f {\textstyle f} has a local minimum at x {\textstyle x} ;