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

Miscellaneous · Q26: ∫0π/2cos⁡2x dxcos⁡2x+4sin⁡2x\int_0^{\pi/2}\frac{\cos^2x\,dx}{\cos^2x+4\sin^2x}

Miscellaneous ExerciseConstant plus a multiple of 1/(cos²x + 4 sin²x); split at π/4 (P2) with tan and cot · Miscellaneous Exercise
The question

Evaluate the definite integral:

∫0π/2cos⁡2x dxcos⁡2x+4sin⁡2x\int_0^{\pi/2}\frac{\cos^2x\,dx}{\cos^2x + 4\sin^2x}
Exam answer

Let I=∫0π/2cos⁡2x dxcos⁡2x+4sin⁡2xI = \displaystyle\int_0^{\pi/2}\frac{\cos^2 x\,dx}{\cos^2 x + 4\sin^2 x}⁠.

Here cos⁡2x+4sin⁡2x=4−3cos⁡2x\cos^2 x + 4\sin^2 x = 4 - 3\cos^2 x⁠, so

cos⁡2x4−3cos⁡2x=−13+43⋅14−3cos⁡2x\begin{aligned} &\frac{\cos^2 x}{4 - 3\cos^2 x} \\ &= -\frac13 + \frac43\cdot\frac{1}{4 - 3\cos^2 x} \end{aligned} ∴ I=−13∫0π/2dx+43J=−π6+43J\begin{aligned} \therefore\ I &= -\frac13\int_0^{\pi/2}dx + \frac43J \\ &= -\frac{\pi}{6} + \frac43J \end{aligned}

where J=∫0π/2dxcos⁡2x+4sin⁡2xJ = \displaystyle\int_0^{\pi/2}\frac{dx}{\cos^2 x + 4\sin^2 x}⁠.

Using ∫abf(x) dx\displaystyle\int_a^b f(x)\,dx =∫acf(x) dx+∫cbf(x) dx= \displaystyle\int_a^c f(x)\,dx + \int_c^b f(x)\,dx (a<c<b)(a < c < b) with c=π4c = \frac{\pi}{4}⁠, J=J1+J2J = J_1 + J_2⁠, where

J1=∫0π/4dxcos⁡2x+4sin⁡2x=∫0π/4sec⁡2x dx1+4tan⁡2x\begin{aligned} J_1 &= \int_0^{\pi/4}\frac{dx}{\cos^2 x + 4\sin^2 x} \\ &= \int_0^{\pi/4}\frac{\sec^2 x\,dx}{1 + 4\tan^2 x} \end{aligned}

(dividing by cos⁡2x\cos^2 x⁠). Put tan⁡x=t\tan x = t⁠. Then sec⁡2x dx=dt\sec^2 x\,dx = dt⁠.

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

Using ∫dtt2+a2=1atan⁡−1ta+C\displaystyle\int\frac{dt}{t^2 + a^2} = \frac1a\tan^{-1}\frac{t}{a} + C⁠,

J1=∫01dt1+4t2=14∫01dtt2+(12)2=14⋅2[tan⁡−12t]01=12tan⁡−12\begin{aligned} J_1 &= \int_0^1\frac{dt}{1 + 4t^2} \\ &= \frac14\int_0^1\frac{dt}{t^2 + \left(\frac12\right)^2} \\ &= \frac14\cdot 2\Big[\tan^{-1}2t\Big]_0^1 \\ &= \frac12\tan^{-1}2 \end{aligned} J2=∫π/4π/2dxcos⁡2x+4sin⁡2x=∫π/4π/2cosec⁡2x dxcot⁡2x+4\begin{aligned} J_2 &= \int_{\pi/4}^{\pi/2}\frac{dx}{\cos^2 x + 4\sin^2 x} \\ &= \int_{\pi/4}^{\pi/2}\frac{\operatorname{cosec}^2 x\,dx}{\cot^2 x + 4} \end{aligned}

(dividing by sin⁡2x\sin^2 x⁠). Put cot⁡x=u\cot x = u⁠. Then −cosec⁡2x dx=du-\operatorname{cosec}^2 x\,dx = du⁠.

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

J2=−∫10duu2+4J_2 = -\int_1^0\frac{du}{u^2 + 4}

Swapping the limits removes the minus sign:

J2=∫01duu2+22=12[tan⁡−1u2]01=12tan⁡−112\begin{aligned} J_2 &= \int_0^1\frac{du}{u^2 + 2^2} \\ &= \frac12\Big[\tan^{-1}\frac{u}{2}\Big]_0^1 = \frac12\tan^{-1}\frac12 \end{aligned}

Using tan⁡−11y=cot⁡−1y\tan^{-1}\frac1y = \cot^{-1}y for y>0y > 0⁠, and tan⁡−1y+cot⁡−1y=π2\tan^{-1}y + \cot^{-1}y = \frac{\pi}{2}⁠,

J=12(tan⁡−12+tan⁡−112)=12⋅π2=π4\begin{aligned} J &= \frac12\left(\tan^{-1}2 + \tan^{-1}\frac12\right) \\ &= \frac12\cdot\frac{\pi}{2} = \frac{\pi}{4} \end{aligned}

Hence

I=−π6+43⋅π4=−π6+π3I = -\frac{\pi}{6} + \frac43\cdot\frac{\pi}{4} = -\frac{\pi}{6} + \frac{\pi}{3}

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

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

The one idea this problem is built on

Since cos⁡2x+4sin⁡2x=4−3cos⁡2x\cos^2x + 4\sin^2x = 4 - 3\cos^2x⁠, the numerator cos⁡2x\cos^2x can be written in terms of the denominator, and the integrand becomes a constant plus a multiple of 1cos⁡2x+4sin⁡2x\frac{1}{\cos^2x + 4\sin^2x}⁠. That last fraction is integrated by dividing by cos⁡2x\cos^2x (to get tan⁡x\tan x⁠) on [0,π4][0, \frac{\pi}{4}] and by sin⁡2x\sin^2x (to get cot⁡x\cot x⁠) on [π4,π2][\frac{\pi}{4}, \frac{\pi}{2}]⁠, exactly as in Example 42. Splitting at π4\frac{\pi}{4} keeps every substitution finite on its piece.

Given, to find, and the plan
Given
g(x)=cos⁡2xcos⁡2x+4sin⁡2xg(x) = \frac{\cos^2x}{\cos^2x + 4\sin^2x} on [0,π2][0, \frac{\pi}{2}]⁠.
To find
I=∫0π/2g(x) dxI = \int_0^{\pi/2}g(x)\,dx exactly, and as a decimal.
Plan
(1) Check continuity. (2) Write gg as 43⋅1cos⁡2x+4sin⁡2x−13\frac43\cdot\frac{1}{\cos^2x + 4\sin^2x} - \frac13⁠. (3) Split J=∫0π/2dxcos⁡2x+4sin⁡2xJ = \int_0^{\pi/2}\frac{dx}{\cos^2x + 4\sin^2x} at π4\frac{\pi}{4} (P2). (4) First piece with t=tan⁡xt = \tan x⁠. (5) Second piece with u=cot⁡xu = \cot x⁠. (6) Add, using tan⁡−12+tan⁡−112=π2\tan^{-1}2 + \tan^{-1}\frac12 = \frac{\pi}{2}⁠. (7) Assemble II⁠.

Basics you need

1Properties P1 and P2 (Section 7.10)

P1: ∫abf=−∫baf\int_a^b f = -\int_b^a f⁠. P2: ∫abf=∫acf+∫cbf\int_a^b f = \int_a^c f + \int_c^b f⁠. Lesson: properties of definite integrals

2The tan⁡−1\tan^{-1} formula

∫dtt2+a2=1atan⁡−1ta+C\int\frac{dt}{t^2+a^2} = \frac1a\tan^{-1}\frac{t}{a} + C (Section 7.4, formula (3)). Lesson: integrals of particular functions

3Substitution in a definite integral (Section 7.9)

Change dxdx and the limits together; the new variable must be differentiable on the whole interval. Basics: substitution

Solution

  1. Continuity on [0,π2][0, \frac{\pi}{2}]

    cos⁡2x+4sin⁡2x=1+3sin⁡2x ≥ 1.\cos^2x + 4\sin^2x = 1 + 3\sin^2x \ \ge\ 1 .

    The denominator never vanishes, so gg is continuous on [0,π2][0, \frac{\pi}{2}]⁠.

    Theorem 2 and the properties of Section 7.10 are used for continuous integrands on closed intervals. Writing cos⁡2x=1−sin⁡2x\cos^2x = 1 - \sin^2x shows the denominator is at least 1.
  2. Write the integrand as a constant plus a simpler fraction

    Let D=cos⁡2x+4sin⁡2x=4−3cos⁡2xD = \cos^2x + 4\sin^2x = 4 - 3\cos^2x⁠. Then cos⁡2x=4−D3\cos^2x = \frac{4 - D}{3}⁠, so

    g(x)=4−D3D=43⋅1D−13.g(x) = \frac{4 - D}{3D} = \frac43\cdot\frac1D - \frac13 .

    Hence, with J=∫0π/2dxcos⁡2x+4sin⁡2xJ = \int_0^{\pi/2}\frac{dx}{\cos^2x + 4\sin^2x}⁠,

    I=43J−13⋅π2=43J−π6.I = \frac43J - \frac13\cdot\frac{\pi}{2} = \frac43J - \frac{\pi}{6} .
    Why this method: cos⁡2x\cos^2x in the numerator does not pair with any differential, but a constant numerator does: 1cos⁡2x+4sin⁡2x\frac{1}{\cos^2x + 4\sin^2x} becomes sec⁡2x1+4tan⁡2x\frac{\sec^2x}{1 + 4\tan^2x} after dividing by cos⁡2x\cos^2x⁠. So we move the cos⁡2x\cos^2x into the denominator's own terms. The −13-\frac13 integrates to −13-\frac13 times the length π2\frac{\pi}{2} of the interval.
  3. Split JJ at π4\frac{\pi}{4} (P2)

    J=∫0π/4dxcos⁡2x+4sin⁡2x⏟J1+∫π/4π/2dxcos⁡2x+4sin⁡2x⏟J2.J = \underbrace{\int_0^{\pi/4}\frac{dx}{\cos^2x + 4\sin^2x}}_{J_1} + \underbrace{\int_{\pi/4}^{\pi/2}\frac{dx}{\cos^2x + 4\sin^2x}}_{J_2} .
    The natural substitution t=tan⁡xt = \tan x breaks down at x=π2x = \frac{\pi}{2}⁠, where tan⁡x\tan x does not exist; using it on all of [0,π2][0, \frac{\pi}{2}] would need the upper limit "t=∞t = \infty", an improper integral that this chapter does not cover. On [π4,π2][\frac{\pi}{4}, \frac{\pi}{2}] we use cot⁡x\cot x instead, which is finite there. This is the device of Example 42.
    P2, Section 7.10; Example 42 (Miscellaneous Examples). Lesson: properties of definite integrals
  4. J1J_1 with t=tan⁡xt = \tan x

    On [0,π4][0, \frac{\pi}{4}]⁠, cos⁡x≠0\cos x \ne 0⁠; divide by cos⁡2x\cos^2x⁠:

    J1=∫0π/4sec⁡2x dx1+4tan⁡2x.J_1 = \int_0^{\pi/4}\frac{\sec^2x\,dx}{1 + 4\tan^2x} .

    Put t=tan⁡xt = \tan x⁠, dt=sec⁡2x dxdt = \sec^2x\,dx⁠; x=0→t=0x = 0 \to t = 0⁠, x=π4→t=1x = \frac{\pi}{4} \to t = 1⁠:

    J1=∫01dt1+4t2=14∫01dtt2+(12)2=14⋅2[tan⁡−12t]01=12tan⁡−12.\begin{aligned}J_1 &= \int_0^1\frac{dt}{1 + 4t^2} = \frac14\int_0^1\frac{dt}{t^2 + \left(\frac12\right)^2}\\ &= \frac14\cdot 2\left[\tan^{-1}2t\right]_0^1 = \frac12\tan^{-1}2 .\end{aligned}
    tan⁡x\tan x is differentiable and increasing on [0,π4][0, \frac{\pi}{4}]⁠, so the substitution is valid with new limits 0 and 1 (Section 7.9). Formula (3) with a=12a = \frac12 gives 1atan⁡−1ta=2tan⁡−12t\frac{1}{a}\tan^{-1}\frac{t}{a} = 2\tan^{-1}2t⁠. Numerically J1≈0.5535743589J_1 \approx 0.5535743589⁠.
    Section 7.4, formula (3); Section 7.9. Lesson: integrals of particular functions
  5. J2J_2 with u=cot⁡xu = \cot x

    On [π4,π2][\frac{\pi}{4}, \frac{\pi}{2}]⁠, sin⁡x≠0\sin x \ne 0⁠; divide by sin⁡2x\sin^2x⁠:

    J2=∫π/4π/2cosec⁡2x dxcot⁡2x+4.J_2 = \int_{\pi/4}^{\pi/2}\frac{\operatorname{cosec}^2x\,dx}{\cot^2x + 4} .

    Put u=cot⁡xu = \cot x⁠, du=−cosec⁡2x dxdu = -\operatorname{cosec}^2x\,dx⁠; x=π4→u=1x = \frac{\pi}{4} \to u = 1⁠, x=π2→u=0x = \frac{\pi}{2} \to u = 0⁠:

    J2=−∫10duu2+4=∫01duu2+22=12[tan⁡−1u2]01=12tan⁡−112.\begin{aligned}J_2 &= -\int_1^0\frac{du}{u^2 + 4} = \int_0^1\frac{du}{u^2 + 2^2}\\ &= \frac12\left[\tan^{-1}\frac{u}{2}\right]_0^1 = \frac12\tan^{-1}\frac12 .\end{aligned}
    cot⁡x\cot x is differentiable and decreasing on [π4,π2][\frac{\pi}{4}, \frac{\pi}{2}]⁠, with cot⁡π2=0\cot\frac{\pi}{2} = 0⁠, so the new limits are 1 and 0. The minus sign from dudu and the reversed limits cancel by P1. Numerically J2≈0.2318238045J_2 \approx 0.2318238045⁠.
    P1, Section 7.10; Section 7.4, formula (3). Lesson: properties of definite integrals
  6. Add: J=π4J = \frac{\pi}{4}

    J=J1+J2=12(tan⁡−12+tan⁡−112).J = J_1 + J_2 = \frac12\left(\tan^{-1}2 + \tan^{-1}\frac12\right).

    Let ϕ=tan⁡−12\phi = \tan^{-1}2⁠, so 0<ϕ<π20 < \phi < \frac{\pi}{2}⁠. Then π2−ϕ\frac{\pi}{2} - \phi also lies in (0,π2)(0, \frac{\pi}{2}) and tan⁡(π2−ϕ)=cot⁡ϕ=12\tan\left(\frac{\pi}{2} - \phi\right) = \cot\phi = \frac12⁠. Since π2−ϕ\frac{\pi}{2} - \phi is in the principal range of tan⁡−1\tan^{-1}⁠, tan⁡−112=π2−ϕ\tan^{-1}\frac12 = \frac{\pi}{2} - \phi⁠. Therefore

    J=12⋅π2=π4≈0.7853981634.J = \frac12\cdot\frac{\pi}{2} = \frac{\pi}{4} \approx 0.7853981634 .
    tan⁡−1y\tan^{-1}y is the unique angle in (−π2,π2)(-\frac{\pi}{2}, \frac{\pi}{2}) whose tangent is yy⁠, so finding one such angle identifies it. This is the special case a=1a = 1⁠, b=2b = 2 of Example 42's inner result ∫0π/2dxa2cos⁡2x+b2sin⁡2x=π2ab\int_0^{\pi/2}\frac{dx}{a^2\cos^2x + b^2\sin^2x} = \frac{\pi}{2ab}⁠.
    Principal range of tan⁡−1\tan^{-1} (Chapter 2).
  7. Assemble II

    I=43⋅π4−π6=π3−π6=π6≈0.5235987756.I = \frac43\cdot\frac{\pi}{4} - \frac{\pi}{6} = \frac{\pi}{3} - \frac{\pi}{6} = \frac{\pi}{6} \approx 0.5235987756 .
    x y 0 π/4 π/2 0.5 1 1/5 shaded area = π/6 ≈ 0.524 y = cos²x/(cos²x + 4 sin²x); dashed: the split at π/4
    The integrand y=cos⁡2xcos⁡2x+4sin⁡2xy = \frac{\cos^2x}{\cos^2x + 4\sin^2x} falls from 1 at x=0x = 0 to 0 at x=π2x = \frac{\pi}{2}⁠; at x=π4x = \frac{\pi}{4} (dashed line, where we split) it equals 15\frac15⁠. The shaded area is π6≈0.524\frac{\pi}{6} \approx 0.524⁠.
    Substituting J=π4J = \frac{\pi}{4} into Step 2. The answer is less than the length π2\frac{\pi}{2} of the interval, as it must be, since 0≤g(x)≤10 \le g(x) \le 1⁠.
Result ∫0π/2cos⁡2x dxcos⁡2x+4sin⁡2x=π6≈0.5235987756\int_0^{\pi/2}\frac{\cos^2x\,dx}{\cos^2x + 4\sin^2x} = \frac{\pi}{6} \approx 0.5235987756

(Textbook answer: π6\frac{\pi}{6}⁠.)

Check it with numbers

Step 2 at x=π4x = \frac{\pi}{4}⁠: D=12+2=52D = \frac12 + 2 = \frac52⁠, so g=1/25/2=15g = \frac{1/2}{5/2} = \frac15⁠, and 43⋅25−13=815−515=15\frac43\cdot\frac25 - \frac13 = \frac{8}{15} - \frac{5}{15} = \frac15⁠.

Numerical integration: ∫0π/4dxD≈0.5535743589\int_0^{\pi/4}\frac{dx}{D} \approx 0.5535743589 and ∫π/4π/2dxD≈0.2318238045\int_{\pi/4}^{\pi/2}\frac{dx}{D} \approx 0.2318238045⁠, matching 12tan⁡−12\frac12\tan^{-1}2 and 12tan⁡−112\frac12\tan^{-1}\frac12⁠. Numerical integration of gg from 0 to π2\frac{\pi}{2} gives 0.52359877560.5235987756⁠, and π6≈0.5235987756\frac{\pi}{6} \approx 0.5235987756 as well.

A second route gives the same: on [0,π2)[0, \frac{\pi}{2}) the function G(x)=23tan⁡−1(2tan⁡x)−x3G(x) = \frac23\tan^{-1}(2\tan x) - \frac{x}{3} has G′=gG' = g⁠, and G(x)→23⋅π2−π6=π6G(x) \to \frac23\cdot\frac{\pi}{2} - \frac{\pi}{6} = \frac{\pi}{6} as x→π2x \to \frac{\pi}{2}⁠, with G(0)=0G(0) = 0⁠.

Common mistakes
  1. Writing tan⁡π2\tan\frac{\pi}{2} as a limit of integration. It does not exist; split at π4\frac{\pi}{4} (or work with a limit, which is beyond this chapter).
  2. Forgetting the −π6-\frac{\pi}{6}⁠. The −13-\frac13 in Step 2 integrates over an interval of length π2\frac{\pi}{2}⁠.
  3. Missing the factor from a=12a = \frac12⁠. ∫dt1+4t2=12tan⁡−12t\int\frac{dt}{1 + 4t^2} = \frac12\tan^{-1}2t⁠, not tan⁡−12t\tan^{-1}2t⁠.
What to take away
  1. ∫0π/2dxa2cos⁡2x+b2sin⁡2x=π2ab\int_0^{\pi/2}\frac{dx}{a^2\cos^2x + b^2\sin^2x} = \frac{\pi}{2ab} (a,b>0a, b > 0⁠), found by splitting at π4\frac{\pi}{4} with tan⁡x\tan x and cot⁡x\cot x⁠.
  2. A numerator like cos⁡2x\cos^2x can often be rewritten using the denominator, leaving a constant plus a simpler fraction.
  3. tan⁡−1y+tan⁡−11y=π2\tan^{-1}y + \tan^{-1}\frac1y = \frac{\pi}{2} for y>0y > 0⁠.

Every fact used, and where it comes from

FactUsed inSource
Continuity needed for Theorem 2Step 1Section 7.8.3 (Lesson: definite integrals)
sin⁡2x+cos⁡2x=1\sin^2x + \cos^2x = 1Steps 1, 2Class XI trigonometry (Basics)
P2: splitting at π4\frac{\pi}{4}Step 3Section 7.10, property P2 (Lesson: properties)
Splitting with tan⁡x\tan x and cot⁡x\cot xSteps 3 to 6Example 42 (Miscellaneous Examples, Chapter 7)
Substitution with changed limitsSteps 4, 5Section 7.9
∫dtt2+a2=1atan⁡−1ta+C\int\frac{dt}{t^2+a^2} = \frac1a\tan^{-1}\frac{t}{a} + CSteps 4, 5Section 7.4, formula (3)
P1: reversing the limitsStep 5Section 7.10, property P1
Principal range of tan⁡−1\tan^{-1}Step 6Chapter 2
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 →