\(\Leftrightarrow x^3-ax^2-4=\left(x^2+4x+4\right)\cdot a\left(x\right)=\left(x+2\right)^2\cdot a\left(x\right)\)
Thay \(x=-2\Leftrightarrow-8-4a-4=0\Leftrightarrow a=-3\)
\(\Leftrightarrow x^3+4x^2+4x+\left(-4-a\right)x^2-4⋮x^2+4x+4\)
\(\Leftrightarrow-4-a=4+x^2\)
\(\Leftrightarrow a=-4-4-x^2=-x^2-8\)