Solution:
Key idea: The property ∫0af(x)dx=∫0af(a−x)dx. With a=2π it swaps sinx and cosx. If this turns the integral into its own negative, the integral must be zero.
Step 1 — Name the integral.
We call the given integral I.
I=∫0π/21+sinxcosxsinx−cosxdx...(1)
Step 2 — Replace x by π/2 − x.
Since sin(2π−x)=cosx and cos(2π−x)=sinx, the numerator becomes cosx−sinx, while the denominator 1+sinxcosx stays the same.
I=∫0π/21+sinxcosxcosx−sinxdx...(2)
Step 3 — Add (1) and (2).
The numerators add up to (sinx−cosx)+(cosx−sinx), and this is 0.
2I=∫0π/21+sinxcosx0dx
2I=0
Therefore, ∫0π/21+sinxcosxsinx−cosxdx=0.