(1/sinx-1/tanx)·(1+cosx)
=(1/sinx-cosx/sinx)·(1+cosx)
=((1-cosx)/sinx)(1+cosx)
=(1-cos²x)/sinx
=sin²x/sinx
=sinx