∫dx/(1+sinx)
=∫dx/(1+cos(π/2-x))
=∫dx/[2cos(π/4-x/2)^2]
=-∫d(π/4-x/2)/(cos(π/4-x/2)^2)
=-tan(π/4-x/2)+C