\(\int\frac{1+sin2x+cos2x}{sinx+cosx}dx\)
\(=\int\frac{sin^2x+cos^2x+2sinxcosx+cos^2x-sin^2x}{sinx+cosx}dx\)
\(=\int\frac{\left(sinx+cosx\right)^2+\left(cosx-sinx\right)\left(cosx+sinx\right)}{sinx+cosx}dx\)
\(=\int\left(sinx+cosx+cosx-sinx\right)dx=\int2cosxdx=2sinx\)