Csc^3x-csc^2x-cscx+1 I know the answer is: (cscx-1)cot^2x But how do i simplify to get that answer?

csc3x-csc2x-cscx1

#1

csc^3x-csc^2x-cscx+1
I know the answer is: (cscx-1)cot^2x
But how do i simplify to get that answer?

Answer:

image