\(\left(x^2+cx+2\right)\left(ax+b\right)=x^3+x^2-2\)
\(\Leftrightarrow ax^{3\:}+\left(ac+b\right)x^2+\left(2a+bc\right)x+2b=x^3+x^2-2\)
\(\Leftrightarrow\left\{{}\begin{matrix}a=1\\ac+b=1\\2a+bc=0\\2b=-2\end{matrix}\right.\)
\(\Leftrightarrow\left\{{}\begin{matrix}a=1\\b=-1\\c=2\end{matrix}\right.\) ( TM )