∫ 1/(sinx + cosx) dx
= ∫ 1/[√2sin(x + π/4)] dx
= (1/√2)∫ csc(x + π/4) d(x + π/4)
= (1/√2)ln|csc(x + π/4) - cot(x + π/4)| + C