A fifth order polynomial can change its directions as this one does three times.
The input is in yellow and goes through the origin. The polynomial in red has real coefficients. Perhaps a different polynomial could switch directions 5 times, although I have yet to construct one.
Input: (-3, -3, -3, -3) to (2, 2, 2, 2)