The correct option is D (x+1)(x+2)(x−5)
Let p(x)=x3−2x2−13x−10
By trail, we find that p(−1)=(−1)3−2(−1)2−13(−1)−10=−1−2+13−10=0. So (x+1) is factor of p(x).
Now, x3−2x2−13x−10=x3+(x2−3x2)−(3x+10x)−10
=(x3+x2)−(3x2+3x)−(10x+10)
=x2(x+1)−3x(x+1)−10(x+1)
=(x+1)(x2−3x−10)
=(x+1)[x2−5x+2x−10]
=(x+1)[x(x−5)+2(x−5)]
=(x+1)(x−5)(x+2)
=(x−5)(x+1)(x+2)
Option D is correct.