This is the basic differential formula.
(2) Let u=sint,
Then du=costdt,
The original formula = ∫1/u2du =-1/u+c.
=- 1/sinx+C