Let $$f(x) = a_n x^n + a_{n-1} x^{n-1} + \ldots + a_1 x + a_0$$
be a real polynomial of degree $n > 0$. Using the derivative test, the values of $x$ for which the function $f(x)$ attains local minima and local maxima can be determined. However, considering this does not immediately give the values of $f(x)$ at those local minima and local maxima, I was wondering the following:
- Is it possible for $f(x)$ to attain a higher value at a local minimum than at a local maximum?
- If so, what is the lowest degree in which this can happen?
For the second question, I was thinking about degree $5$. Such a polynomial can have two local maxima and two local minima, since its derivative has degree $4$. Order the extrema in increasing value of $x$ at which it is attained. First suppose $a_n > 0$. I think it could have the first local maximum be lower than the last local minimum if the increase from the first local minimum to the second local maximum is more than the decreases from the local maxima to the next local minima combined (vice versa if $a_n < 0$).
However, I could not find an example, so I am not sure if the first question is even true.