Clearly, 5 satisfy the equation.So, x−5 is the factor.
x−5 )x3−3x2−9x−5( x2+2x+1
x3−5x2
----------------------------
2x2−9x
2x2−10x
-----------------------------
x−5
x−5
-------------------------------
0
x2+2x+1
x2+x+x+1
x(x+1)+1(x+1)
(x+1)(x+1)
Therefore the factors are: x=5 and x=−1