Step-by-step explanation:
(x-3)(x^2+2x+1)
=x^3-3x^2+2x^2-6x+x-3
=x^3+2x^2-3x^2-6x+x-3
=x^3-x^2-5x-3
___________