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

Exercise 7.9 · Q5: ∫0π/2sin⁡x1+cos⁡2x dx\int_0^{\pi/2}\frac{\sin x}{1+\cos^2x}\,dx

Exercise 7.9Definite integrals by substitution · Section 7.9
The question

Evaluate the integral using substitution:

∫0π2sin⁡x1+cos⁡2x dx.\int_0^{\frac{\pi}{2}} \frac{\sin x}{1 + \cos^2 x}\,dx.
Exam answer

Let I=∫0π2sin⁡x1+cos⁡2x dxI = \displaystyle\int_0^{\frac{\pi}{2}}\frac{\sin x}{1 + \cos^2 x}\,dx⁠.

Put cos⁡x=t\cos x = t⁠. Then −sin⁡x dx=dt-\sin x\,dx = dt⁠.

When x=0x = 0⁠, t=1t = 1⁠; when x=π2x = \frac{\pi}{2}⁠, t=0t = 0⁠.

∴ I=∫10−dt1+t2\therefore\ I = \int_1^0\frac{-dt}{1 + t^2}

Swapping the limits removes the minus sign:

I=∫01dt1+t2=[tan⁡−1t]01=tan⁡−11−tan⁡−10\begin{aligned} I &= \int_0^1\frac{dt}{1 + t^2} = \Big[\tan^{-1}t\Big]_0^1 \\ &= \tan^{-1}1 - \tan^{-1}0 \end{aligned}

∴ I=π4\therefore\ I = \dfrac{\pi}{4}⁠.

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

The one idea this problem is built on

sin⁡x dx\sin x\,dx is (minus) the differential of cos⁡x\cos x⁠. With t=cos⁡xt = \cos x the integral becomes −∫dt1+t2-\int\frac{dt}{1 + t^2}⁠, an inverse tangent. Because cosine decreases, the new limits come out "upside down" (from 1 to 0), and the minus sign turns them the right way round.

Given, to find, and the plan
Given
The integrand sin⁡x1+cos⁡2x\frac{\sin x}{1 + \cos^2 x} on [0,π2]\left[0, \frac{\pi}{2}\right]⁠.
To find
The exact value of the integral, and a decimal.
Plan
(1) Check continuity. (2) Substitute t=cos⁡xt = \cos x⁠, write dtdt⁠, change the limits. (3) Integrate 11+t2\frac{1}{1+t^2} and evaluate, keeping track of the minus sign. (4) Check with an antiderivative in xx⁠, and numerically.

Basics you need

1Derivative of cos⁡x\cos x

ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠, so with t=cos⁡xt = \cos x⁠, dt=−sin⁡x dxdt = -\sin x\,dx⁠. Basics: substitution (the chain rule backwards)

2Inverse tangent integral

∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1 + t^2} = \tan^{-1}t + C (standard formula (x), Section 7.2). Lesson: integrals of particular functions

3Substitution with new limits

∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(t) dt\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(t)\,dt⁠, even when g(b)<g(a)g(b) < g(a) (Section 7.9). Lesson: integration by substitution

4The second fundamental theorem

∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a) when ff is continuous on [a,b][a, b] and F′=fF' = f (Theorem 2, Section 7.8.3). Lesson: definite integrals

Solution

  1. Check the integrand is continuous on [0,π2]\left[0, \frac{\pi}{2}\right]

    sin⁡x\sin x and cos⁡2x\cos^2 x are continuous for every xx⁠, and 1+cos⁡2x≥11 + \cos^2 x \ge 1 is never 0. So the quotient is continuous on [0,π2]\left[0, \frac{\pi}{2}\right]⁠.

    The fundamental theorem needs a continuous integrand on the closed interval. With a denominator of at least 1, nothing can go wrong.
    A quotient of continuous functions is continuous where the denominator is not 0 (Chapter 5, Section 5.2.1). Lesson: the fundamental theorem
  2. Substitute t=cos⁡xt = \cos x and change the limits

    Then dt=−sin⁡x dxdt = -\sin x\,dx⁠, so

    sin⁡x dx=− dt,1+cos⁡2x=1+t2.\sin x\,dx = -\,dt, \qquad 1 + \cos^2 x = 1 + t^2.

    New limits. When x=0x = 0⁠, t=cos⁡0=1t = \cos 0 = 1⁠. When x=π2x = \frac{\pi}{2}⁠, t=cos⁡π2=0t = \cos\frac{\pi}{2} = 0⁠.

    ∫0π2sin⁡x dx1+cos⁡2x=∫10− dt1+t2.\int_0^{\frac{\pi}{2}}\frac{\sin x\,dx}{1 + \cos^2 x} = \int_1^0\frac{-\,dt}{1 + t^2}.

    Why it is valid on the whole interval. t=cos⁡xt = \cos x has the continuous derivative −sin⁡x-\sin x⁠, which is ≤0\le 0 on [0,π2]\left[0, \frac{\pi}{2}\right]⁠. So tt decreases steadily from 1 to 0, and 11+t2\frac{1}{1+t^2} is continuous for every tt⁠.

    The numerator sin⁡x\sin x is, apart from its sign, the derivative of cos⁡x\cos x⁠, and the denominator is built from cos⁡x\cos x⁠. The lower limit 0 maps to t=1t = 1 and the upper limit π2\frac{\pi}{2} to t=0t = 0⁠: the new limits keep their positions (lower first), even though 1 is bigger than 0.
    cos⁡0=1\cos 0 = 1⁠, cos⁡π2=0\cos\frac{\pi}{2} = 0⁠. Basics: trigonometry
  3. Integrate in tt

    ∫10− dt1+t2=[−tan⁡−1t]10=(−tan⁡−10)−(−tan⁡−11)=0+π4=π4.\begin{aligned}\int_1^0\frac{-\,dt}{1 + t^2} &= \Big[-\tan^{-1}t\Big]_1^0 \\ &= \left(-\tan^{-1}0\right) - \left(-\tan^{-1}1\right) \\ &= 0 + \frac{\pi}{4} = \frac{\pi}{4}.\end{aligned}

    In decimals, π4≈0.7853982\frac{\pi}{4} \approx 0.7853982⁠.

    We evaluate at the upper limit (0) minus the lower limit (1), exactly as written. Equivalently, swapping the limits removes the minus sign: ∫10−g=∫01g\int_1^0 -g = \int_0^1 g (property P1 of Section 7.10).
    tan⁡−10=0\tan^{-1}0 = 0 and tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} (principal values, Chapter 2). Lesson: integrals of particular functions
  4. Same result by staying in xx

    Returning to xx⁠: −tan⁡−1t-\tan^{-1}t becomes

    F(x)=−tan⁡−1(cos⁡x).F(x) = -\tan^{-1}(\cos x).

    Check: differentiate. Chain rule with outer −tan⁡−1u-\tan^{-1}u and inner u=cos⁡xu = \cos x⁠:

    F′(x)=−11+cos⁡2x⋅(−sin⁡x)=sin⁡x1+cos⁡2x,F'(x) = -\frac{1}{1 + \cos^2 x}\cdot(-\sin x) = \frac{\sin x}{1 + \cos^2 x},

    the integrand. Then F(π2)−F(0)=−tan⁡−10+tan⁡−11=π4F\left(\frac{\pi}{2}\right) - F(0) = -\tan^{-1}0 + \tan^{-1}1 = \frac{\pi}{4}⁠.

    The two minus signs (from −tan⁡−1-\tan^{-1} and from ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin x⁠) cancel, which is exactly why the substitution produced a minus sign that later disappeared.
    ddutan⁡−1u=11+u2\frac{d}{du}\tan^{-1}u = \frac{1}{1+u^2} (Chapter 5, Section 5.3.3). Basics: the chain rule backwards
  5. The region

    π/4 π/2 π 0.5 1 x y (π/2, 1) area ≈ 0.785 y = sin x / (1 + cos²x)
    y=sin⁡x1+cos⁡2xy = \frac{\sin x}{1+\cos^2x} rises from 0 at x=0x = 0 to 1 at x=π2x = \frac{\pi}{2}⁠. The shaded area is π4≈0.785\frac{\pi}{4} \approx 0.785⁠.
    The integrand is ≥0\ge 0 on the interval, so the answer is an area and must be positive, which our careful handling of the minus sign delivers. The region lies inside the π2\frac{\pi}{2} by 1 rectangle (area 1.571), and about half of it is filled.
    For a function that is never negative, the definite integral is the area under its graph. Basics: area as a sum of thin strips
Result

∫0π2sin⁡x1+cos⁡2x dx=π4≈0.7853982.\int_0^{\frac{\pi}{2}}\frac{\sin x}{1 + \cos^2 x}\,dx = \frac{\pi}{4} \approx 0.7853982. (Textbook answer: π4\frac{\pi}{4}⁠.)

Check it with numbers

A numerical integration of sin⁡x1+cos⁡2x\frac{\sin x}{1+\cos^2 x} over [0,π2]\left[0, \frac{\pi}{2}\right] gives 0.7853982, and π÷4≈0.7853982\pi \div 4 \approx 0.7853982⁠. The area is exactly half of the rectangle π2×1\frac{\pi}{2}\times 1⁠: π/4π/2=0.5\frac{\pi/4}{\pi/2} = 0.5⁠.

Common mistakes
  1. Losing the minus sign. dt=−sin⁡x dxdt = -\sin x\,dx⁠. Dropping the minus and keeping the limits 1 to 0 gives −π4-\frac{\pi}{4}⁠, a negative "area" for a positive integrand.
  2. Swapping the limits and also keeping the minus. Do one or the other: ∫10(−g)=∫01g\int_1^0(-g) = \int_0^1 g⁠.
  3. Writing tan⁡−11=1\tan^{-1}1 = 1⁠. tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} because tan⁡π4=1\tan\frac{\pi}{4} = 1⁠.
What to take away
  1. sin⁡x dx\sin x\,dx next to a function of cos⁡x\cos x signals t=cos⁡xt = \cos x (and cos⁡x dx\cos x\,dx next to a function of sin⁡x\sin x signals t=sin⁡xt = \sin x⁠).
  2. A decreasing substitution gives "upside-down" limits; keep them, and let the minus sign from dtdt fix the order.
  3. A positive integrand must give a positive answer: a quick sign check.

Every fact used, and where it comes from

FactUsed inSource
Continuity of quotientsStep 1Chapter 5, Section 5.2.1
ddxcos⁡x=−sin⁡x\frac{d}{dx}\cos x = -\sin xSteps 2 and 4Chapter 5; standard formula (iii), Section 7.2
Substitution with change of limitsStep 2Section 7.9 and its Note (Lesson)
∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1+t^2} = \tan^{-1}t + CStep 3Standard formula (x), Section 7.2 (Lesson)
tan⁡−10=0\tan^{-1}0 = 0⁠, tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4}Steps 3 and 4Chapter 2, principal values
∫baf=−∫abf\int_b^a f = -\int_a^b fStep 3 (remark)Property P1, Section 7.10 (Lesson)
∫abf=F(b)−F(a)\int_a^b f = F(b) - F(a)Steps 3 and 4Theorem 2, Section 7.8.3 (Lesson)
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 →