Evaluate $$ \int_0^\frac{\pi}{2}\frac{\cos\theta}{\cos\theta+\sin\theta}\,d\theta.\qquad\text{(1)} $$
By letting $t=\tan\theta$, $(1)$ equals $$ \int_0^\infty\frac{1}{(1+t)(1+t^2)} \,dt,$$ and then?
By letting $t=\tan\frac{\theta}{2}$, (1) equals $$ \int_0^1\frac{(1-t^2)\cdot2}{(1+t^2)\cdot(1-t^2+2t)}\,dt, $$ and then?
All need to much effort.