I want to construct a polynomial of degree at least 4 with local maximums at $(-2,1)$ and $(3,4)$ and local minimum at $(1,-2)$. It's easy to draw to have some idea of how $f$ is.
I've tried to solve a linear system with $f(x)=ax^4+bx^3+cx^2+dx+e$
$f(3)=4, f(1)=-2, f(-2)=1$
But I don't know what to do with $f'(x)$ because there are two variables left to solve the system but three local extremes' conditions to fix: $f'(-2)=0, f'(1)=0, f'(3)=0$.