Definite Integral with Trigonometric Denominator via King's Property
Board: JEE Foundation | Grade: Class 12 | Chapter: Definite Integrals
Problem
Evaluate the definite integral: $$I = \int_0^{\pi/2} \frac{\sin^2 x}{\sin x + \cos x},dx.$$
Step-by-Step Textbook Solution
Step 1: Apply King's Property
Using $\int_0^a f(x),dx = \int_0^a f(a - x),dx$ with $a = \frac{\pi}{2}$:
$$I = \int_0^{\pi/2} \frac{\sin^2\left(\frac{\pi}{2} - x\right)}{\sin\left(\frac{\pi}{2} - x\right) + \cos\left(\frac{\pi}{2} - x\right)},dx = \int_0^{\pi/2} \frac{\cos^2 x}{\cos x + \sin x},dx.$$
Step 2: Add the two representations
$$2I = \int_0^{\pi/2} \frac{\sin^2 x + \cos^2 x}{\sin x + \cos x},dx = \int_0^{\pi/2} \frac{1}{\sin x + \cos x},dx.$$
Step 3: Combine $\sin x + \cos x$ into a single cosine
Using $\sin x + \cos x = \sqrt{2}\cos\left(x - \frac{\pi}{4}\right)$:
$$2I = \frac{1}{\sqrt{2}} \int_0^{\pi/2} \sec\left(x - \frac{\pi}{4}\right),dx = \frac{1}{\sqrt{2}} \Big[\ln\big|\sec u + \tan u\big|\Big]_{-\pi/4}^{\pi/4}$$
$$= \frac{1}{\sqrt{2}} \left[\ln(\sqrt{2} + 1) - \ln(\sqrt{2} - 1)\right] = \frac{1}{\sqrt{2}} \ln\left(\frac{\sqrt{2}+1}{\sqrt{2}-1}\right) = \frac{1}{\sqrt{2}} \ln\left((\sqrt{2}+1)^2\right) = \sqrt{2}\ln(\sqrt{2}+1).$$
Dividing by $2$:
$$I = \frac{1}{\sqrt{2}}\ln(\sqrt{2}+1).$$
Final Answer: $\frac{1}{\sqrt{2}}\ln(\sqrt{2}+1)$.
NityaDhi Solution (Intuitive Method)
NityaDhi Symmetry + Even-Integrand Doubling:
After King's Property collapses the numerator to $1$, shift $u = x - \frac{\pi}{4}$ so the limits become symmetric $\left[-\frac{\pi}{4}, \frac{\pi}{4}\right]$ and $\sec u$ is even:
$$2I = \frac{2}{\sqrt{2}} \int_0^{\pi/4} \sec u,du \implies I = \frac{1}{\sqrt{2}}\ln(\sqrt{2}+1).$$
This avoids subtracting logarithms of conjugates altogether!
Common Mistakes to Avoid
- Trying Weierstrass $t = \tan(x/2)$ directly on $\frac{\sin^2 x}{\sin x + \cos x}$, which produces a quartic denominator instead of a quadratic.
- Forgetting the factor of $\frac{1}{2}$ when dividing $2I$ by $2$ at the end.