This question was asked in Theorem 10.3
X³-2x²-x 2 factorise

Dheeraj Nishad's image