\(f\left(x\right)=ax^3+bx+c\)
\(\hept{\begin{cases}f\left(-2\right)=0\\f\left(1\right)=1+5=6\\f\left(-1\right)=-1+5=4\end{cases}}\Leftrightarrow\hept{\begin{cases}-8a-2b+c=0\\a+b+c=6\\-a-b+c=4\end{cases}}\Leftrightarrow\hept{\begin{cases}a=b=\frac{1}{2}\\c=5\end{cases}}\)