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

Exercise 7.3 · Q19: ∫dxsin⁡xcos⁡3x\int\frac{dx}{\sin x\cos^3x}

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Find the integral of the function

1sin⁡xcos⁡3x.\frac{1}{\sin x\cos^3 x}.
Exam answer

Let I=∫dxsin⁡xcos⁡3xI = \displaystyle\int\frac{dx}{\sin x\cos^3 x}⁠.

Dividing numerator and denominator by cos⁡4x\cos^4 x⁠, and using sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x⁠,

I=∫sec⁡4xtan⁡x dx=∫(1+tan⁡2x)sec⁡2xtan⁡x dx\begin{aligned} I &= \int\frac{\sec^4 x}{\tan x}\,dx \\ &= \int\frac{(1 + \tan^2 x)\sec^2 x}{\tan x}\,dx \end{aligned}

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

∴ I=∫1+t2t dt=∫(1t+t)dt=log⁡∣t∣+t22+C\begin{aligned} \therefore\ I &= \int\frac{1 + t^2}{t}\,dt \\ &= \int\left(\frac1t + t\right)dt \\ &= \log|t| + \frac{t^2}{2} + C \end{aligned}

∴ I=log⁡∣tan⁡x∣+12tan⁡2x+C\therefore\ I = \log|\tan x| + \dfrac12\tan^2 x + C⁠.

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

The one idea this problem is built on

The denominator has total degree 4 in sin⁡\sin and cos⁡\cos⁠. Dividing top and bottom by cos⁡4x\cos^4 x turns everything into tangents and secants: the integrand becomes sec⁡4xtan⁡x\frac{\sec^4 x}{\tan x}⁠. One sec⁡2x\sec^2 x is the derivative of tan⁡x\tan x⁠, and the other is 1+tan⁡2x1 + \tan^2 x⁠. So t=tan⁡xt = \tan x gives ∫1+t2t dt=∫(1t+t)dt\int\frac{1 + t^2}{t}\,dt = \int\left(\frac1t + t\right)dt⁠.

Given, to find, and the plan
Given
f(x)=1sin⁡xcos⁡3xf(x) = \dfrac{1}{\sin x\cos^3 x}⁠, defined wherever sin⁡x≠0\sin x \ne 0 and cos⁡x≠0\cos x \ne 0⁠.
To find
∫dxsin⁡xcos⁡3x\displaystyle\int \frac{dx}{\sin x\cos^3 x}⁠.
Plan
(1) Find the domain. (2) Divide numerator and denominator by cos⁡4x\cos^4 x⁠. (3) Use sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x and substitute t=tan⁡xt = \tan x⁠. (4) Integrate 1t+t\frac1t + t⁠. (5) Return to xx and differentiate back.

Basics you need

1Turning sines and cosines into tangents

sin⁡xcos⁡x=tan⁡x\frac{\sin x}{\cos x} = \tan x and 1cos⁡x=sec⁡x\frac{1}{\cos x} = \sec x⁠; also sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x⁠. Basics: trigonometric identities for integrals

2Substitution t=tan⁡xt = \tan x

dt=sec⁡2x dxdt = \sec^2 x\,dx (standard formula (iv), Section 7.2, read as a derivative). Basics: substitution

3Two standard integrals

∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C (formula (xii)) and ∫t dt=t22+C\int t\,dt = \frac{t^2}{2} + C (formula (i)), Section 7.2. Basics: logarithms and 1/x

Solution

  1. Where is the integrand defined?

    We need sin⁡x≠0\sin x \ne 0 and cos⁡x≠0\cos x \ne 0⁠, that is,

    x≠nπ2,n an integer.x \ne \frac{n\pi}{2}, \quad n \text{ an integer}.

    On each interval between consecutive multiples of π2\frac{\pi}{2}⁠, tan⁡x\tan x is defined and non-zero.

    The non-zero tan⁡x\tan x matters: after the substitution we divide by t=tan⁡xt = \tan x⁠, and log⁡∣tan⁡x∣\log|\tan x| appears in the answer. Both need tan⁡x≠0\tan x \ne 0⁠, which holds exactly because sin⁡x≠0\sin x \ne 0⁠.
  2. Divide top and bottom by cos⁡4x\cos^4 x

    1sin⁡xcos⁡3x=1cos⁡4xsin⁡xcos⁡3xcos⁡4x=sec⁡4xsin⁡xcos⁡x=sec⁡4xtan⁡x.\begin{aligned} \frac{1}{\sin x\cos^3 x} &= \frac{\dfrac{1}{\cos^4 x}}{\dfrac{\sin x\cos^3 x}{\cos^4 x}} \\ &= \frac{\sec^4 x}{\dfrac{\sin x}{\cos x}} = \frac{\sec^4 x}{\tan x}. \end{aligned}
    Dividing numerator and denominator by the same non-zero quantity does not change a fraction. We choose cos⁡4x\cos^4 x because the denominator has four trigonometric factors in total: one sin⁡x\sin x pairs with one cos⁡x\cos x to make tan⁡x\tan x⁠, and the other three cos⁡x\cos x cancel against cos⁡4x\cos^4 x⁠, leaving everything in tan⁡x\tan x and sec⁡x\sec x⁠.
    sin⁡xcos⁡x=tan⁡x\frac{\sin x}{\cos x} = \tan x⁠, 1cos⁡x=sec⁡x\frac{1}{\cos x} = \sec x⁠. Basics: trigonometric identities for integrals
  3. Split sec⁡4x\sec^4 x and substitute t=tan⁡xt = \tan x

    Write sec⁡4x=sec⁡2x⋅sec⁡2x\sec^4 x = \sec^2 x\cdot\sec^2 x⁠, which is (1+tan⁡2x)sec⁡2x(1 + \tan^2 x)\sec^2 x⁠. Then

    ∫dxsin⁡xcos⁡3x=∫1+tan⁡2xtan⁡x sec⁡2x dx.\int\frac{dx}{\sin x\cos^3 x} = \int\frac{1 + \tan^2 x}{\tan x}\,\sec^2 x\,dx.

    Put t=tan⁡xt = \tan x⁠, so dt=sec⁡2x dxdt = \sec^2 x\,dx⁠:

    ∫dxsin⁡xcos⁡3x=∫1+t2t dt.\int\frac{dx}{\sin x\cos^3 x} = \int\frac{1 + t^2}{t}\,dt.
    One factor sec⁡2x\sec^2 x is kept with dxdx because together they form dtdt⁠. The other factor is rewritten with the identity sec⁡2x=1+tan⁡2x\sec^2 x = 1 + \tan^2 x so that it too is a function of tan⁡x\tan x⁠. Now the integrand is entirely in tt⁠.
    1+tan⁡2x=sec⁡2x1 + \tan^2 x = \sec^2 x⁠; change of variable, Section 7.3.1. Lesson: integration by substitution
  4. Integrate in tt

    ∫1+t2t dt=∫(1t+t)dt=log⁡∣t∣+t22+C.\begin{aligned} \int\frac{1 + t^2}{t}\,dt &= \int\left(\frac1t + t\right)dt \\ &= \log|t| + \frac{t^2}{2} + C. \end{aligned}
    Splitting the fraction gives two standard integrals: formula (xii) for 1t\frac1t (valid since t≠0t \ne 0⁠) and the power rule (formula (i)) for tt⁠. The modulus in log⁡∣t∣\log|t| is needed because tan⁡x\tan x is negative on some intervals of the domain.
    Standard formulae (i) and (xii), Section 7.2. Basics: logarithms and 1/x
  5. Return to xx

    ∫dxsin⁡xcos⁡3x=log⁡∣tan⁡x∣+12tan⁡2x+C.\int\frac{dx}{\sin x\cos^3 x} = \log|\tan x| + \frac12\tan^2 x + C.
    Replace tt by tan⁡x\tan x⁠. This is the textbook's answer exactly.
  6. Check: differentiate the answer back

    By the chain rule, ddxlog⁡∣tan⁡x∣=sec⁡2xtan⁡x\frac{d}{dx}\log|\tan x| = \frac{\sec^2 x}{\tan x} and ddx12tan⁡2x=tan⁡xsec⁡2x\frac{d}{dx}\tfrac12\tan^2 x = \tan x\sec^2 x⁠. With F(x)=log⁡∣tan⁡x∣+12tan⁡2xF(x) = \log|\tan x| + \frac12\tan^2 x⁠,

    F′(x)=sec⁡2xtan⁡x+tan⁡xsec⁡2x=sec⁡2x (1+tan⁡2x)tan⁡x=sec⁡4xtan⁡x=1cos⁡4x⋅cos⁡xsin⁡x=1sin⁡xcos⁡3x.\begin{aligned} F'(x) &= \frac{\sec^2 x}{\tan x} + \tan x\sec^2 x \\ &= \frac{\sec^2 x\,(1 + \tan^2 x)}{\tan x} = \frac{\sec^4 x}{\tan x} \\ &= \frac{1}{\cos^4 x}\cdot\frac{\cos x}{\sin x} = \frac{1}{\sin x\cos^3 x}. \end{aligned}

    This is the integrand, so the answer is correct on every interval avoiding the multiples of π2\frac{\pi}{2}⁠.

    ddulog⁡∣u∣=1u\frac{d}{du}\log|u| = \frac1u (list in Section 7.2, (xii)); chain rule (Theorem 4, Section 5.3.1); Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫dxsin⁡xcos⁡3x=log⁡∣tan⁡x∣+12tan⁡2x+C,\int\frac{dx}{\sin x\cos^3 x} = \log|\tan x| + \frac12\tan^2 x + C,

valid on any interval containing no multiple of π2\frac{\pi}{2}⁠. (Textbook answer: log⁡∣tan⁡x∣+12tan⁡2x+C\log|\tan x| + \frac12\tan^2 x + C⁠.)

Check it with numbers

Let F(x)=log⁡∣tan⁡x∣+12tan⁡2xF(x) = \log|\tan x| + \frac12\tan^2 x and look near x=0.6x = 0.6 with h=0.0001h = 0.0001⁠:

  • F(0.6001)≈−0.145260756F(0.6001) \approx -0.145260756 and F(0.5999)≈−0.145890791F(0.5999) \approx -0.145890791⁠.
  • Slope estimate: F(0.6001)−F(0.5999)0.0002≈3.150175\dfrac{F(0.6001) - F(0.5999)}{0.0002} \approx 3.150175⁠.
  • Integrand at x=0.6x = 0.6⁠: 1sin⁡0.6 cos⁡30.6≈3.150175\dfrac{1}{\sin 0.6\,\cos^3 0.6} \approx 3.150175⁠.

They agree.

Common mistakes
  1. Substituting t=cos⁡xt = \cos x at once. Then dt=−sin⁡x dxdt = -\sin x\,dx⁠, but sin⁡x\sin x is in the denominator, not the numerator; the substitution does not fit without further work.
  2. Dividing by cos⁡3x\cos^3 x instead of cos⁡4x\cos^4 x⁠. That leaves a stray cos⁡x\cos x⁠; the total degree of the denominator is 4.
  3. Dropping the modulus. tan⁡x\tan x is negative on intervals such as (π2,π)\left(\frac{\pi}{2}, \pi\right)⁠, so write log⁡∣tan⁡x∣\log|\tan x|⁠.
What to take away
  1. For 1sin⁡mxcos⁡nx\frac{1}{\sin^m x\cos^n x} with m+nm + n even, divide top and bottom by cos⁡m+nx\cos^{m+n}x and substitute t=tan⁡xt = \tan x⁠.
  2. Another route: write 1=sin⁡2x+cos⁡2x1 = \sin^2 x + \cos^2 x to split the integrand into tan⁡xsec⁡2x+sec⁡2xtan⁡x\tan x\sec^2 x + \frac{\sec^2 x}{\tan x}⁠, which gives the same two terms.

Every fact used, and where it comes from

FactUsed inSource
tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}⁠, sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}Steps 2, 6Definitions
1+tan⁡2x=sec⁡2x1 + \tan^2 x = \sec^2 xSteps 3, 6Class XI trigonometry (Basics: trigonometric identities)
ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 xSteps 3, 6List in Section 7.2, (iv)
Change of variable (substitution)Step 3Section 7.3.1 (Lesson: integration by substitution)
∫dtt=log⁡∣t∣+C\int\frac{dt}{t} = \log|t| + C⁠; ∫t dt=t22+C\int t\,dt = \frac{t^2}{2} + CStep 4Standard formulae (xii) and (i), Section 7.2
Chain ruleStep 6Theorem 4, Section 5.3.1
Differentiation undoes integrationStep 6Property (I), Section 7.2.1
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 →