Class 12 Maths, Worked in Full Past papersGet updates
Chapter 7 · Integrals

Exercise 7.10 · Q15: ∫0π/2sin⁡x−cos⁡x1+sin⁡xcos⁡x dx\int_0^{\pi/2}\frac{\sin x-\cos x}{1+\sin x\cos x}\,dx

Exercise 7.10Properties of definite integrals (P4) · Section 7.10
The question

By using the properties of definite integrals, evaluate the integrals in Exercises 1 to 19.

15. ∫0π/2sin⁡x−cos⁡x1+sin⁡xcos⁡x dx\displaystyle\int_0^{\pi/2}\frac{\sin x - \cos x}{1 + \sin x\cos x}\,dx

Exam answer

Let

I=∫0π/2sin⁡x−cos⁡x1+sin⁡xcos⁡x dx  …(i)I = \int_0^{\pi/2}\frac{\sin x - \cos x}{1 + \sin x\cos x}\,dx\;\ldots(\text{i})

Using ∫0af(x) dx=∫0af(a−x) dx\displaystyle\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx⁠, and sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x⁠, cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠,

I=∫0π/2cos⁡x−sin⁡x1+cos⁡xsin⁡x dx  …(ii)I = \int_0^{\pi/2}\frac{\cos x - \sin x}{1 + \cos x\sin x}\,dx\;\ldots(\text{ii})

Adding (i) and (ii),

2I=∫0π/20 dx=02I = \int_0^{\pi/2} 0\,dx = 0

∴ I=0\therefore\ I = 0⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

On [0,π2][0, \frac{\pi}{2}]⁠, P4 replaces xx by π2−x\frac{\pi}{2} - x⁠, which swaps sin⁡x\sin x and cos⁡x\cos x⁠. The denominator 1+sin⁡xcos⁡x1 + \sin x\cos x does not notice the swap, but the numerator sin⁡x−cos⁡x\sin x - \cos x changes sign. So P4 says I=−II = -I⁠, and the only number equal to its own negative is 0.

Given, to find, and the plan
Given
f(x)=sin⁡x−cos⁡x1+sin⁡xcos⁡xf(x) = \dfrac{\sin x - \cos x}{1 + \sin x\cos x} on [0,π2][0, \frac{\pi}{2}]⁠.
To find
I=∫0π/2f(x) dxI = \displaystyle\int_0^{\pi/2} f(x)\,dx⁠.
Plan
(1) Continuity. (2) P4 with a=π2a = \frac{\pi}{2} and the relation f(π2−x)=−f(x)f(\frac{\pi}{2} - x) = -f(x)⁠. (3) Solve I=−II = -I⁠. (4) Confirm with an antiderivative.

Basics you need

1Property P4 (Section 7.10)

∫0af(x) dx=∫0af(a−x) dx\int_0^a f(x)\,dx = \int_0^a f(a - x)\,dx for ff continuous on [0,a][0, a]⁠. Lesson: properties of definite integrals

2Complementary angles

sin⁡(π2−x)=cos⁡x\sin\left(\frac{\pi}{2} - x\right) = \cos x and cos⁡(π2−x)=sin⁡x\cos\left(\frac{\pi}{2} - x\right) = \sin x⁠; also sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠. Basics: trigonometric identities

3Point symmetry

If f(a−x)=−f(x)f(a - x) = -f(x)⁠, the graph on [0,a][0, a] is unchanged by a half turn about (a2,0)(\frac{a}{2}, 0)⁠, so the areas above and below the axis are equal. Basics: symmetry and mirror images

4Derivative of tan⁡−1\tan^{-1}

ddxtan⁡−1u=11+u2 dudx\frac{d}{dx}\tan^{-1}u = \frac{1}{1 + u^2}\,\frac{du}{dx} (used in the check). Basics: integration undoes differentiation

Solution

  1. The integrand is continuous on [0,π2][0, \frac{\pi}{2}]

    Using sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \frac12\sin 2x⁠, the denominator is

    1+sin⁡xcos⁡x=1+12sin⁡2x.1 + \sin x\cos x = 1 + \tfrac12\sin 2x .

    On [0,π2][0, \frac{\pi}{2}]⁠, 2x2x runs over [0,π][0, \pi]⁠, where sin⁡2x≥0\sin 2x \ge 0⁠. So the denominator is at least 1 and never 0. The integrand, a quotient of continuous functions, is continuous on the closed interval.

    P4 (and Theorem 2 in the check) need a function continuous on the closed interval. A zero of the denominator would break this; Step 1 rules it out.
    sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠; sin⁡θ≥0\sin\theta \ge 0 for 0≤θ≤π0 \le \theta \le \pi⁠. Basics: trigonometric identities
  2. P4 with a=π2a = \frac{\pi}{2}⁠: the integrand changes sign

    Replace xx by π2−x\frac{\pi}{2} - x⁠. Sine and cosine swap:

    f ⁣(π2−x)=cos⁡x−sin⁡x1+cos⁡xsin⁡x=−sin⁡x−cos⁡x1+sin⁡xcos⁡x=−f(x).\begin{aligned}f\!\left(\tfrac{\pi}{2} - x\right) &= \frac{\cos x - \sin x}{1 + \cos x\sin x} \\ &= -\frac{\sin x - \cos x}{1 + \sin x\cos x} = -f(x) .\end{aligned}

    P4 therefore gives

    I=∫0π/2f ⁣(π2−x)dx=∫0π/2(−f(x)) dx=−I.I = \int_0^{\pi/2} f\!\left(\tfrac{\pi}{2} - x\right)dx = \int_0^{\pi/2}\big(-f(x)\big)\,dx = -I .
    P4 holds for every continuous ff (Step 1), so no further condition is needed. The relation f(π2−x)=−f(x)f(\frac{\pi}{2} - x) = -f(x) is exactly the condition of the second case of P6 (with 2a=π22a = \frac{\pi}{2}⁠), so P6 would give 0 at once as well; here we see it directly from P4.
    sin⁡(π2−x)=cos⁡x\sin(\frac{\pi}{2} - x) = \cos x⁠, cos⁡(π2−x)=sin⁡x\cos(\frac{\pi}{2} - x) = \sin x⁠; a minus sign comes out of an integral as a constant factor −1-1⁠.
  3. Solve I=−II = -I

    Add II to both sides:

    2I=0,I=0.2I = 0, \qquad I = 0 .
    x y O π/4 π/2 1 −1 blue: y = (sin x − cos x)/(1 + sin x cos x) turning the graph half a turn about (π/4, 0) gives the same graph rose area below = green area above: total 0
    The integrand on [0,π2][0, \frac{\pi}{2}]⁠: negative on [0,π4)[0, \frac{\pi}{4}) (rose), positive on (π4,π2](\frac{\pi}{4}, \frac{\pi}{2}] (green). A half turn about (π4,0)(\frac{\pi}{4}, 0) maps one region onto the other, so the signed areas cancel.
    II is a finite number (the integrand is continuous on a closed interval), so it is legitimate to add II to both sides. The figure shows why the answer is 0: the area below the axis on the left equals the area above it on the right.
  4. Check: an antiderivative, differentiated back

    Let u=sin⁡x+cos⁡xu = \sin x + \cos x⁠. Then u2=1+2sin⁡xcos⁡xu^2 = 1 + 2\sin x\cos x⁠, so 1+sin⁡xcos⁡x=1+u221 + \sin x\cos x = \frac{1 + u^2}{2}⁠, and dudx=cos⁡x−sin⁡x\frac{du}{dx} = \cos x - \sin x⁠. This suggests

    G(x)=−2tan⁡−1(sin⁡x+cos⁡x).G(x) = -2\tan^{-1}(\sin x + \cos x) .

    Differentiate back (chain rule):

    G′(x)=−2⋅cos⁡x−sin⁡x1+(sin⁡x+cos⁡x)2=2(sin⁡x−cos⁡x)2+2sin⁡xcos⁡x=sin⁡x−cos⁡x1+sin⁡xcos⁡x=f(x).\begin{aligned}G'(x) &= -2\cdot\frac{\cos x - \sin x}{1 + (\sin x + \cos x)^2} \\ &= \frac{2(\sin x - \cos x)}{2 + 2\sin x\cos x} \\ &= \frac{\sin x - \cos x}{1 + \sin x\cos x} = f(x) .\end{aligned}

    By Theorem 2:

    I=G ⁣(π2)−G(0)=−2tan⁡−11+2tan⁡−11=0.\begin{aligned}I &= G\!\left(\tfrac{\pi}{2}\right) - G(0) \\ &= -2\tan^{-1}1 + 2\tan^{-1}1 = 0 .\end{aligned}
    u=sin⁡x+cos⁡xu = \sin x + \cos x equals 1 at both ends (x=0x = 0 and x=π2x = \frac{\pi}{2}⁠), so GG takes the same value at both ends and the integral is 0. This route does not use P4, so it independently confirms Step 3. GG is defined and differentiable on the whole interval, since tan⁡−1\tan^{-1} is defined for every real number.
    (sin⁡x+cos⁡x)2(\sin x + \cos x)^2 expands to sin⁡2x+cos⁡2x\sin^2 x + \cos^2 x plus 2sin⁡xcos⁡x2\sin x\cos x⁠, that is, 1+2sin⁡xcos⁡x1 + 2\sin x\cos x⁠. Basics: substitution (the chain rule backwards)
Result

∫0π/2sin⁡x−cos⁡x1+sin⁡xcos⁡x dx=0\int_0^{\pi/2}\frac{\sin x - \cos x}{1 + \sin x\cos x}\,dx = 0 (Textbook answer: 0.)

Check it with numbers

Numerical integration over [0,π2][0, \frac{\pi}{2}] gives 0 (to more than 25 decimal places). Over the left half [0,π4][0, \frac{\pi}{4}] alone it gives −0.339837-0.339837⁠, which matches G(π4)−G(0)G(\frac{\pi}{4}) - G(0) =π2−2tan⁡−12= \frac{\pi}{2} - 2\tan^{-1}\sqrt2 ≈−0.339837\approx -0.339837⁠; the right half gives +0.339837+0.339837⁠.

The relation of Step 2 at x=0.3x = 0.3⁠: f(0.3)≈−0.514548f(0.3) \approx -0.514548 and f(π2−0.3)≈0.514548f(\frac{\pi}{2} - 0.3) \approx 0.514548⁠.

Common mistakes
  1. Adding the two forms and getting 2I=∫0 dx2I = \int 0\,dx without seeing why. It is correct, but the clearer statement is f(π2−x)=−f(x)f(\frac{\pi}{2} - x) = -f(x)⁠, so I=−II = -I⁠.
  2. Thinking the denominator changes under P4. sin⁡xcos⁡x\sin x\cos x is symmetric in sin⁡\sin and cos⁡\cos⁠, so swapping them leaves it unchanged.
  3. Concluding there is no area. The integral is 0 because equal areas lie above and below the axis.
What to take away
  1. On [0,π2][0, \frac{\pi}{2}]⁠, P4 swaps sin⁡x\sin x and cos⁡x\cos x⁠. If the integrand is antisymmetric under that swap, the integral is 0. Q21 works the same way.
  2. If it is unchanged by the swap, add the two forms instead, as in Q3.

Every fact used, and where it comes from

FactUsed inSource
A definite integral needs ff continuous on [a,b][a, b]Step 1Remark (iv) after Theorem 2, Section 7.8.3
sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠; complementary anglesSteps 1, 2Class XI trigonometry
P4 (and P6, second case)Step 2Section 7.10, properties P4 and P6 (Lesson: properties)
ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠; chain ruleStep 4Chapter 5, Section 5.3.3; Section 5.3.1
Theorem 2 (second fundamental theorem)Step 4Section 7.8.3
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →