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

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

Miscellaneous ExerciseDivide by cos⁴x, substitute t = tan²x with new limits · Miscellaneous Exercise
The question

Evaluate the definite integral:

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

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

Dividing numerator and denominator by cos⁡4x\cos^4 x⁠,

I=∫0π/4tan⁡xsec⁡2x1+tan⁡4x dxI = \int_0^{\pi/4}\frac{\tan x\sec^2 x}{1 + \tan^4 x}\,dx

Put tan⁡2x=t\tan^2 x = t⁠. Then 2tan⁡xsec⁡2x dx=dt2\tan x\sec^2 x\,dx = dt⁠.

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

Using ∫dt1+t2=tan⁡−1t+C\displaystyle\int\frac{dt}{1 + t^2} = \tan^{-1}t + C⁠,

I=12∫01dt1+t2=12[tan⁡−1t]01=12(π4−0)\begin{aligned} I &= \frac12\int_0^1\frac{dt}{1 + t^2} \\ &= \frac12\Big[\tan^{-1}t\Big]_0^1 \\ &= \frac12\left(\frac{\pi}{4} - 0\right) \end{aligned}

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

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

The one idea this problem is built on

Numerator and denominator are both "homogeneous" in sin⁡x\sin x and cos⁡x\cos x (total degree 2 on top, 4 below). Dividing both by cos⁡4x\cos^4x turns everything into tan⁡x\tan x and sec⁡2x\sec^2x⁠: the integrand becomes tan⁡xsec⁡2x1+tan⁡4x\frac{\tan x\sec^2x}{1 + \tan^4x}⁠. With t=tan⁡2xt = \tan^2x⁠, the numerator and dxdx become dt2\frac{dt}{2} and the denominator becomes 1+t21 + t^2⁠: a tan⁡−1\tan^{-1} integral.

Given, to find, and the plan
Given
g(x)=sin⁡xcos⁡xcos⁡4x+sin⁡4xg(x) = \frac{\sin x\cos x}{\cos^4x + \sin^4x} on [0,π4][0, \frac{\pi}{4}]⁠.
To find
∫0π/4g(x) dx\int_0^{\pi/4}g(x)\,dx exactly, and as a decimal.
Plan
(1) Check continuity. (2) Divide by cos⁡4x\cos^4x⁠. (3) Substitute t=tan⁡2xt = \tan^2x and change the limits. (4) Integrate and evaluate. (5) Check the antiderivative by differentiating.

Basics you need

1Identities

sin⁡2x+cos⁡2x=1\sin^2x + \cos^2x = 1⁠, sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x⁠, 1cos⁡2x=sec⁡2x\frac{1}{\cos^2x} = \sec^2x⁠. Basics: trigonometric identities

2Substitution in a definite integral (Section 7.9)

Change dxdx to dtdt and the limits x=a,bx = a, b to the matching values of tt⁠; then never return to xx⁠. Lesson: definite integrals

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

∫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

Solution

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

    cos⁡4x+sin⁡4x=(cos⁡2x+sin⁡2x)2−2sin⁡2xcos⁡2x=1−12sin⁡22x ≥ 12.\begin{aligned}\cos^4x + \sin^4x &= (\cos^2x + \sin^2x)^2 - 2\sin^2x\cos^2x\\ &= 1 - \tfrac12\sin^22x \ \ge\ \tfrac12 .\end{aligned}

    The denominator is never 0, so gg is continuous on [0,π4][0, \frac{\pi}{4}] (indeed on all of R\mathbb{R}⁠).

    Theorem 2 (Section 7.8.3) needs a continuous integrand on the closed interval. Writing a2+b2=(a+b)2−2aba^2 + b^2 = (a + b)^2 - 2ab with a=cos⁡2xa = \cos^2x⁠, b=sin⁡2xb = \sin^2x shows the denominator is at least 12\frac12⁠, because sin⁡22x≤1\sin^22x \le 1⁠.
  2. Divide numerator and denominator by cos⁡4x\cos^4x

    On [0,π4][0, \frac{\pi}{4}]⁠, cos⁡x≥12>0\cos x \ge \frac{1}{\sqrt2} > 0⁠, so this is allowed:

    sin⁡xcos⁡xcos⁡4x+sin⁡4x=sin⁡xcos⁡x⋅1cos⁡2x1+sin⁡4xcos⁡4x=tan⁡xsec⁡2x1+tan⁡4x.\frac{\sin x\cos x}{\cos^4x + \sin^4x} = \frac{\frac{\sin x}{\cos x}\cdot\frac{1}{\cos^2x}}{1 + \frac{\sin^4x}{\cos^4x}} = \frac{\tan x\sec^2x}{1 + \tan^4x} .
    Why this method: sec⁡2x dx\sec^2x\,dx is the differential of tan⁡x\tan x⁠, so after the division the whole integrand is a function of tan⁡x\tan x times something close to its differential. The numerator sin⁡xcos⁡x\sin x\cos x divided by cos⁡4x\cos^4x is sin⁡xcos⁡3x\frac{\sin x}{\cos^3x}⁠, split as sin⁡xcos⁡x⋅1cos⁡2x\frac{\sin x}{\cos x}\cdot\frac{1}{\cos^2x}⁠.
  3. Substitute t=tan⁡2xt = \tan^2x and change the limits

    t=tan⁡2x,dt=2tan⁡xsec⁡2x dx.t = \tan^2x ,\qquad dt = 2\tan x\sec^2x\,dx .

    Limits: x=0x = 0 gives t=0t = 0⁠; x=π4x = \frac{\pi}{4} gives t=tan⁡2π4=1t = \tan^2\frac{\pi}{4} = 1⁠. And tan⁡4x=t2\tan^4x = t^2⁠. So

    ∫0π/4tan⁡xsec⁡2x dx1+tan⁡4x=12∫01dt1+t2.\int_0^{\pi/4}\frac{\tan x\sec^2x\,dx}{1 + \tan^4x} = \frac12\int_0^1\frac{dt}{1 + t^2} .
    Why tan⁡2x\tan^2x and not tan⁡x\tan x⁠: with u=tan⁡xu = \tan x we would get ∫u du1+u4\int\frac{u\,du}{1 + u^4}⁠, which still needs a second substitution t=u2t = u^2⁠; taking t=tan⁡2xt = \tan^2x does both at once. The substitution is valid on the whole interval: tan⁡2x\tan^2x is differentiable on [0,π4][0, \frac{\pi}{4}] (where cos⁡x≠0\cos x \ne 0⁠) and increases steadily from 0 to 1, so the new limits are 0 and 1 (Section 7.9).
  4. Integrate and evaluate

    12∫01dt1+t2=12[tan⁡−1t]01=12(π4−0)=π8.\frac12\int_0^1\frac{dt}{1+t^2} = \frac12\left[\tan^{-1}t\right]_0^1 = \frac12\left(\frac{\pi}{4} - 0\right) = \frac{\pi}{8} .

    So

    ∫0π/4sin⁡xcos⁡xcos⁡4x+sin⁡4x dx=π8≈0.3926990817.\int_0^{\pi/4}\frac{\sin x\cos x}{\cos^4x + \sin^4x}\,dx = \frac{\pi}{8} \approx 0.3926990817 .
    x y 0 π/8 π/4 0.5 1 shaded area = π/8 ≈ 0.393 y = sin x cos x/(cos⁴x + sin⁴x), rising from 0 to 1
    The integrand on [0,π4][0, \frac{\pi}{4}] rises from 0 at x=0x = 0 to 1 at x=π4x = \frac{\pi}{4} (where the numerator is 12\frac12 and the denominator is 12\frac12⁠). The shaded area is π8≈0.393\frac{\pi}{8} \approx 0.393⁠.
    Standard formula (x), then Theorem 2 in the variable tt⁠; tan⁡−11=π4\tan^{-1}1 = \frac{\pi}{4} and tan⁡−10=0\tan^{-1}0 = 0 are principal values. Because the limits were changed, there is no need to go back to xx⁠.
    Theorem 2, Section 7.8.3. Basics: area as a sum of thin strips
  5. Check: an antiderivative in xx⁠, differentiated

    Steps 3 and 4 say F(x)=12tan⁡−1(tan⁡2x)F(x) = \frac12\tan^{-1}(\tan^2x) is an antiderivative on [0,π4][0, \frac{\pi}{4}]⁠. Differentiating with the chain rule,

    F′(x)=12⋅11+tan⁡4x⋅2tan⁡xsec⁡2x=tan⁡xsec⁡2x1+tan⁡4x=g(x),\begin{aligned}F'(x) &= \frac12\cdot\frac{1}{1 + \tan^4x}\cdot 2\tan x\sec^2x\\ &= \frac{\tan x\sec^2x}{1 + \tan^4x} = g(x) ,\end{aligned}

    and F(π4)−F(0)=12⋅π4−0=π8F(\frac{\pi}{4}) - F(0) = \frac12\cdot\frac{\pi}{4} - 0 = \frac{\pi}{8}⁠, the same value.

    The last equality is Step 2. Evaluating in xx with the old limits and in tt with the new limits must give the same number; this confirms the limits were changed correctly.
Result ∫0π/4sin⁡xcos⁡xcos⁡4x+sin⁡4x dx=π8≈0.3926990817\int_0^{\pi/4}\frac{\sin x\cos x}{\cos^4x + \sin^4x}\,dx = \frac{\pi}{8} \approx 0.3926990817

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

Check it with numbers

The rewrite of Step 2 at x=π6x = \frac{\pi}{6}⁠: 12⋅32916+116=3/45/8=235\frac{\frac12\cdot\frac{\sqrt3}{2}}{\frac{9}{16} + \frac{1}{16}} = \frac{\sqrt3/4}{5/8} = \frac{2\sqrt3}{5}⁠, and tan⁡xsec⁡2x1+tan⁡4x=13⋅431+19=235\frac{\tan x\sec^2x}{1 + \tan^4x} = \frac{\frac{1}{\sqrt3}\cdot\frac43}{1 + \frac19} = \frac{2\sqrt3}{5} as well.

Numerical integration of the integrand from 0 to π4\frac{\pi}{4} gives 0.39269908170.3926990817⁠, and π8≈0.3926990817\frac{\pi}{8} \approx 0.3926990817 as well.

Common mistakes
  1. Keeping the old limits after substituting. In tt the limits are 0 and 1, not 0 and π4\frac{\pi}{4}⁠.
  2. Losing the 12\frac12⁠. dt=2tan⁡xsec⁡2x dxdt = 2\tan x\sec^2x\,dx⁠, so tan⁡xsec⁡2x dx=dt2\tan x\sec^2x\,dx = \frac{dt}{2}⁠.
  3. Simplifying the denominator to 1. cos⁡4x+sin⁡4x\cos^4x + \sin^4x is not (cos⁡2x+sin⁡2x)2(\cos^2x + \sin^2x)^2⁠; it is that minus 2sin⁡2xcos⁡2x2\sin^2x\cos^2x⁠.
What to take away
  1. For quotients of even total degree in sin⁡x\sin x and cos⁡x\cos x⁠, divide by the highest power of cos⁡x\cos x to reach tan⁡x\tan x and sec⁡2x\sec^2x⁠.
  2. In a definite integral, change the limits with the substitution and say why the substitution is valid on the whole interval.

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 = 1⁠; sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos xSteps 1, 2Class XI trigonometry (Basics)
ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2xSteps 3, 5Section 7.2, list item (iv)
Substitution with changed limitsStep 3Section 7.9 (Lesson: substitution)
∫dt1+t2=tan⁡−1t+C\int\frac{dt}{1+t^2} = \tan^{-1}t + CStep 4Standard formula (x), Section 7.2
Theorem 2: ∫abg=F(b)−F(a)\int_a^b g = F(b) - F(a)Steps 4, 5Section 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 →