Mark M. answered 10/30/18
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
Here is a way that bypasses the "substitution" method:
Let "theta" = T
You can rewrite the integral as integral [cosT/sinT)(1/sinT)dT
= integral (cotT)(cscT)dt
= -cscT + C = -1/(sinT) + C