Consider $f:[-1,1] \to \mathbb{R}$ defined as $f(x)=x^5$ for each $x\in[-1,1]$. Find maxima and minima of f. Which maxima or minima does the derivative test identify?
Intuitively, maximum is $1$ when $x^*=1$, and minimum is $-1$ when $x^*=-1$. And the candidate by first order condition, $x^*=0$ is a inflection point. But the question is how do I prove these (maximum&minimum) by $n$-th order derivative test?
Since $-1 \le x \le 1 \implies -1 = (-1)^5 \le x^5 \le 1^5 = 1\implies -1 \le f(x) \le 1$, and $f(-1) = -1, f(1) = 1$. So $f_{\text{max}} = 1$, and $f_{\text{min}} = -1$ at $x = 1, -1$ respectively. If you want to use the derivative to solve the problem, you see that $f'(x) = 5x^4 \ge 0$, thus $f$ increases, and you have $-1 = f(-1) \le f(x) \le f(1) = 1$.