integrate: [ cos ^ 2 (x) * sin (x) / ( 1 - sin(x) )] - sin (x)

see Mycah's post below