I=∫π/20sin x(sin x+cos x)2dx ---- (1)
I=∫π/20cos x(sin x+cos x)2dx ---- (2)
2I=∫π/201sin x+cos xdx
2I=∫π/202d tanx/22−(tanx/2−1)2
I=1/2√2 log∣∣ ∣∣√2+(tanx/2−1)√2−(tanx/2−1)∣∣ ∣∣|10
=1/√2log(√2+1)