Gọi đa thức dư khi chia f(x) cho \(\left(x-2\right)\left(x-3\right)\) là \(ax+b\)
\(\Rightarrow f\left(x\right)=\left(x-2\right)\left(x-3\right)\left(x^2-1\right)+ax+b\left(1\right)\)
Lại có \(f\left(x\right):\left(x-2\right)R5\Leftrightarrow f\left(2\right)=5;f\left(x\right):\left(x-3\right)R7\Leftrightarrow f\left(3\right)=7\)
Thế vào \(\left(1\right)\Leftrightarrow\left\{{}\begin{matrix}f\left(2\right)=2a+b=5\\f\left(3\right)=3a+b=7\end{matrix}\right.\Leftrightarrow\left\{{}\begin{matrix}a=2\\b=1\end{matrix}\right.\)
\(\Leftrightarrow f\left(x\right)=\left(x-2\right)\left(x-3\right)\left(x^2-1\right)+2x+1\\ \Leftrightarrow f\left(x\right)=\left(x^2-5x-6\right)\left(x^2-1\right)+2x+1\\ \Leftrightarrow f\left(x\right)=x^4-x^2-5x^3+5x-6x^2+6+2x+1\\ \Leftrightarrow f\left(x\right)=x^4-5x^3-7x^2+7x+7\)