\(f\left(x\right)\) chia \(x+1\) dư -15 \(\Rightarrow f\left(-1\right)=-15\Rightarrow-a+b=-16\)
\(f\left(x\right)\) chia \(x-3\) dư 45 \(\Rightarrow f\left(3\right)=45\Rightarrow3a+b=0\)
\(\Rightarrow\left\{{}\begin{matrix}-a+b=-16\\3a+b=0\end{matrix}\right.\) \(\Rightarrow\left\{{}\begin{matrix}a=4\\b=-12\end{matrix}\right.\)
\(f\left(x\right)=x^4-x^3-x^2+4x-12=\left(x^2-4\right)\left(x^2-x+3\right)\)
\(f\left(x\right)=0\Leftrightarrow x^2-4=0\Rightarrow x=\pm2\)