\(\frac{sin^2x+cos^2x+2sinx.cosx}{sinx+cosx}-\left(1-tan^2\frac{x}{2}\right).cos^2\frac{x}{2}\)
\(=\frac{\left(sinx+cosx\right)^2}{sinx+cosx}-\left(cos^2\frac{x}{2}-sin^2\frac{x}{2}\right)\)
\(=sinx+cosx-cosx=sinx\)
\(sin^4x+cos^4\left(x+\frac{\pi}{4}\right)=\left(\frac{1}{2}-\frac{1}{2}cos2x\right)^2+\left(\frac{1}{2}+\frac{1}{2}cos\left(2x+\frac{\pi}{2}\right)\right)^2\)
\(=\frac{1}{4}-\frac{1}{2}cos2x+\frac{1}{4}cos^22x+\left(\frac{1}{2}-\frac{1}{2}sin2x\right)^2\)
\(=\frac{1}{4}-\frac{1}{2}cos2x+\frac{1}{4}cos^22x+\frac{1}{4}-\frac{1}{2}sin2x+\frac{1}{4}sin^22x\)
\(=\frac{1}{4}-\frac{1}{2}\left(cos2x+sin2x\right)+\frac{1}{4}\left(cos^22x+sin^22x\right)\)
\(=\frac{3}{4}-\frac{\sqrt{2}}{2}sin\left(2x+\frac{\pi}{4}\right)\)