∫11+cosxdx=∫1−cosx(1+cosx)(1−cosx)dx
=∫1−cosx1−cos2xdx
=∫1−cosxsin2xdx
=∫1sin2xdx−∫cosxsin2xdx
=∫cosec2xdx−∫cotxcosecxdx
=−cotx+cscx+C