\int \frac{1}{\sin x}dx=\int\frac{dx}{2\sin \frac{x}{2} \cos \frac{x}{2}}=I