The “king” property ∫0af(x)dx=∫0af(a−x)dx is a major weapon for symmetric integrals. By replacing x with π/2−x, sinx swaps with cosx. Adding the two versions of I collapses sin2+cos2 to 1, killing the squared term.
This is the cleanest path through such integrals — far better than substitution or partial fractions, which would take 3x longer.
Alternative Method
Substitute t=tan(x/2) (Weierstrass). sinx=2t/(1+t2), cosx=(1−t2)/(1+t2). Tedious but works. The king method is much faster.
Whenever you see ∫0π/2f(sinx,cosx)dx where the integrand has visible sin/cos symmetry, try x→π/2−x first. The identity sin2+cos2=1 does most of the heavy lifting.
Common Mistake
Forgetting that ∫0π/2sinx+cosxsinxdx=π/4 (a JEE classic). Students sometimes confuse this with our integral and short-circuit to a wrong answer.
Sign error in the cosec integral. Antiderivative of cscu is −ln∣cscu+cotu∣=ln∣tan(u/2)∣ — both forms are valid, just be consistent.
Want to master this topic?
Read the complete guide with more examples and exam tips.