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

Example 5: Substitution: sin⁡mx\sin mx⁠, 2xsin⁡(x2+1)2x\sin(x^2+1)⁠, tan⁡4x sec⁡2xx\frac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}⁠, sin⁡(tan⁡−1x)1+x2\frac{\sin(\tan^{-1}x)}{1+x^2}

ExamplesIntegration by substitution · Section 7.3.1
The question

Integrate the following functions w.r.t. xx⁠:

(i) sin⁡mx\sin mx    (ii) 2xsin⁡(x2+1)2x\sin(x^2 + 1)    (iii) tan⁡4x sec⁡2xx\dfrac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}    (iv) sin⁡(tan⁡−1x)1+x2\dfrac{\sin(\tan^{-1}x)}{1 + x^2}

Exam answer

(i) Let I=∫sin⁡mx dxI = \displaystyle\int\sin mx\,dx⁠.

Put mx=tmx = t⁠. Then m dx=dtm\,dx = dt⁠.

I=1m∫sin⁡t dt=−1mcos⁡t+C\begin{aligned} I &= \frac1m\int\sin t\,dt \\ &= -\frac1m\cos t + C \end{aligned}

∴ I=−1mcos⁡mx+C\therefore\ I = -\frac1m\cos mx + C (m≠0)(m \ne 0)⁠.

(ii) Let I=∫2xsin⁡(x2+1) dxI = \displaystyle\int 2x\sin(x^2 + 1)\,dx⁠.

Put x2+1=tx^2 + 1 = t⁠. Then 2x dx=dt2x\,dx = dt⁠.

I=∫sin⁡t dt=−cos⁡t+CI = \int\sin t\,dt = -\cos t + C

∴ I=−cos⁡(x2+1)+C\therefore\ I = -\cos(x^2 + 1) + C⁠.

(iii) Let I=∫tan⁡4x sec⁡2xx dxI = \displaystyle\int\frac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}\,dx⁠.

Put x=t\sqrt x = t⁠. Then dx2x=dt\frac{dx}{2\sqrt x} = dt⁠.

I=2∫tan⁡4t sec⁡2t dtI = 2\int\tan^4t\,\sec^2t\,dt

Put tan⁡t=u\tan t = u⁠. Then sec⁡2t dt=du\sec^2t\,dt = du⁠.

I=2∫u4 du=2u55+C=25tan⁡5t+C\begin{aligned} I &= 2\int u^4\,du = \frac{2u^5}{5} + C \\ &= \frac25\tan^5t + C \end{aligned}

∴ I=25tan⁡5x+C\therefore\ I = \frac25\tan^5\sqrt x + C⁠.

(iv) Let I=∫sin⁡(tan⁡−1x)1+x2 dxI = \displaystyle\int\frac{\sin(\tan^{-1}x)}{1 + x^2}\,dx⁠.

Put tan⁡−1x=t\tan^{-1}x = t⁠. Then dx1+x2=dt\frac{dx}{1 + x^2} = dt⁠.

I=∫sin⁡t dt=−cos⁡t+CI = \int\sin t\,dt = -\cos t + C

∴ I=−cos⁡(tan⁡−1x)+C\therefore\ I = -\cos(\tan^{-1}x) + C⁠.

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

The one idea this problem is built on

Substitution is the chain rule run backwards. If the integrand has the shape g(u(x))⋅u′(x)g(u(x))\cdot u'(x)⁠, a function of some inner expression u(x)u(x) multiplied by the derivative of that inner expression, then putting t=u(x)t = u(x)⁠, dt=u′(x) dxdt = u'(x)\,dx turns it into the simpler ∫g(t) dt\int g(t)\,dt⁠. In each part we look for an inner expression whose derivative is also sitting in the integrand (up to a constant factor).

Given, to find, and the plan
Given
Four integrands: (i) sin⁡mx\sin mx (with m≠0m \ne 0⁠); (ii) 2xsin⁡(x2+1)2x\sin(x^2 + 1)⁠; (iii) tan⁡4xsec⁡2xx\frac{\tan^4\sqrt x\sec^2\sqrt x}{\sqrt x}⁠, x>0x > 0⁠; (iv) sin⁡(tan⁡−1x)1+x2\frac{\sin(\tan^{-1}x)}{1 + x^2}⁠.
To find
∫f(x) dx\int f(x)\,dx for each.
Plan
For each: choose tt⁠; write dtdt in terms of dxdx⁠; rewrite the whole integral in tt⁠; integrate; put xx back; differentiate to check.

Basics you need

1The substitution rule

If t=u(x)t = u(x)⁠, then dt=u′(x) dxdt = u'(x)\,dx and ∫g(u(x)) u′(x) dx=∫g(t) dt\int g(u(x))\,u'(x)\,dx = \int g(t)\,dt⁠. After integrating, replace tt by u(x)u(x)⁠. Basics: substitution, the chain rule backwards

2Derivatives of the inner functions

ddx(mx)=m\frac{d}{dx}(mx) = m⁠, ddx(x2+1)=2x\frac{d}{dx}(x^2 + 1) = 2x⁠, ddxx=12x\frac{d}{dx}\sqrt x = \frac{1}{2\sqrt x} (x>0x > 0⁠), ddttan⁡t=sec⁡2t\frac{d}{dt}\tan t = \sec^2 t⁠, ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠. Basics: the power rule

3Standard integrals

∫sin⁡t dt=−cos⁡t+C\int\sin t\,dt = -\cos t + C and ∫u4 du=u55+C\int u^4\,du = \frac{u^5}{5} + C (Section 7.2, formulae (iii) and (i)). Basics: integration undoes differentiation

4Principal range of tan⁡−1\tan^{-1}

tan⁡−1x\tan^{-1}x lies in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, where the cosine is positive (Chapter 2). Used for the simplified form in part (iv). Basics: trigonometric identities

Part (i): ∫sin⁡mx dx\int\sin mx\,dx

  1. Choose the substitution

    The inner expression is mxmx⁠, with derivative mm⁠, a constant. Assume m≠0m \ne 0 and put

    t=mx,dt=m dx,dx=dtm.t = mx, \qquad dt = m\,dx, \qquad dx = \frac{dt}{m}.
    The missing factor mm is a constant, and a constant factor can always be supplied by dividing by it. This needs m≠0m \ne 0⁠; if m=0m = 0 the integrand is sin⁡0=0\sin 0 = 0 and the integral is just a constant, so that case is trivial.
    Substitution, Section 7.3.1. Basics: substitution
  2. Integrate in tt and return to xx

    ∫sin⁡mx dx=1m∫sin⁡t dt=−1mcos⁡t+C=−1mcos⁡mx+C.\begin{aligned} \int\sin mx\,dx &= \frac1m\int\sin t\,dt \\ &= -\frac1m\cos t + C \\ &= -\frac1m\cos mx + C. \end{aligned}
    ∫sin⁡t dt=−cos⁡t\int\sin t\,dt = -\cos t is formula (iii). The answer must be in the original variable, so tt is replaced by mxmx at the end.
    Standard formula (iii), Section 7.2. Lesson: integration by substitution
  3. Check: differentiate the answer

    ddx(−1mcos⁡mx)=−1m⋅(−sin⁡mx)⋅m=sin⁡mx. ✓\begin{aligned} \frac{d}{dx}\left(-\frac1m\cos mx\right) &= -\frac1m\cdot(-\sin mx)\cdot m \\ &= \sin mx. \ \checkmark \end{aligned}

    Valid for every real xx⁠.

    The chain rule produces the factor mm (derivative of the inner mxmx⁠), which cancels the 1m\frac1m⁠: exactly the factor we divided by in Part (i), Step 1.

Part (ii): ∫2xsin⁡(x2+1) dx\int 2x\sin(x^2 + 1)\,dx

  1. Spot the inner function and its derivative

    The sine is applied to x2+1x^2 + 1⁠, whose derivative 2x2x is the other factor. Put

    t=x2+1,dt=2x dx.t = x^2 + 1, \qquad dt = 2x\,dx.
    This is the ideal situation for substitution: the whole of 2x dx2x\,dx is replaced by dtdt⁠, and nothing is left over in xx⁠.
  2. Integrate and return to xx

    ∫2xsin⁡(x2+1) dx=∫sin⁡t dt=−cos⁡t+C=−cos⁡(x2+1)+C.\begin{aligned} \int 2x\sin(x^2 + 1)\,dx &= \int\sin t\,dt \\ &= -\cos t + C \\ &= -\cos(x^2 + 1) + C. \end{aligned}
    Formula (iii) again, then t=x2+1t = x^2 + 1 is put back.
    Standard formula (iii), Section 7.2. Lesson: integration by substitution
  3. Check: differentiate the answer

    ddx(−cos⁡(x2+1))=sin⁡(x2+1)⋅2x. ✓\frac{d}{dx}\left(-\cos(x^2 + 1)\right) = \sin(x^2 + 1)\cdot 2x. \ \checkmark

    Valid for every real xx⁠.

    Outer: −cos⁡-\cos differentiates to sin⁡\sin⁠; inner: x2+1x^2 + 1 differentiates to 2x2x⁠. The product is the integrand.

Part (iii): ∫tan⁡4x sec⁡2xx dx\int\frac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}\,dx

  1. Where the integrand exists

    x\sqrt x is in a denominator, so x>0x > 0⁠; and sec⁡x\sec\sqrt x⁠, tan⁡x\tan\sqrt x need cos⁡x≠0\cos\sqrt x \ne 0⁠, that is x≠π2,3π2,…\sqrt x \ne \frac{\pi}{2}, \frac{3\pi}{2}, \dots

    These are the conditions under which every symbol in the integrand has a value; the answer will be valid on each interval where they hold.
  2. First substitution: t=xt = \sqrt x

    ddxx=12x−12=12x\frac{d}{dx}\sqrt x = \frac12 x^{-\frac12} = \frac{1}{2\sqrt x}⁠. Put

    t=x (t>0),dt=dx2x,dxx=2 dt.\begin{gathered} t = \sqrt x \ (t > 0), \qquad dt = \frac{dx}{2\sqrt x}, \\ \frac{dx}{\sqrt x} = 2\,dt. \end{gathered}

    Then

    ∫tan⁡4x sec⁡2xx dx=2∫tan⁡4t sec⁡2t dt.\int\frac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}\,dx = 2\int\tan^4 t\,\sec^2 t\,dt.
    The 1x\frac{1}{\sqrt x} in the integrand is, up to the factor 2, the derivative of the inner expression x\sqrt x⁠. So dxx\frac{dx}{\sqrt x} becomes 2 dt2\,dt⁠, and every x\sqrt x becomes tt⁠. The book writes this as dx=2t dtdx = 2t\,dt and then cancels the tt against the x=t\sqrt x = t in the denominator; the result is the same.
    Power rule with n=12n = \frac12⁠. Basics: the power rule
  3. Second substitution: u=tan⁡tu = \tan t

    Now sec⁡2t\sec^2 t is the derivative of tan⁡t\tan t⁠. Put

    u=tan⁡t,du=sec⁡2t dt.u = \tan t, \qquad du = \sec^2 t\,dt. 2∫tan⁡4t sec⁡2t dt=2∫u4 du=2⋅u55+C.\begin{aligned} 2\int\tan^4 t\,\sec^2 t\,dt &= 2\int u^4\,du \\ &= 2\cdot\frac{u^5}{5} + C. \end{aligned}
    Again an inner function (tan⁡t\tan t⁠) appears together with its derivative (sec⁡2t\sec^2 t⁠), so the integral collapses to a power of uu⁠. Formula (i) with n=4n = 4 finishes it.
    Standard formulae (iv) and (i), Section 7.2. Lesson: integration by substitution
  4. Return to xx

    25u5+C=25tan⁡5t+C=25tan⁡5x+C.\frac25 u^5 + C = \frac25\tan^5 t + C = \frac25\tan^5\sqrt x + C.
    Undo the substitutions in reverse order: u=tan⁡tu = \tan t⁠, then t=xt = \sqrt x⁠. The book also suggests ("Alternatively") the single substitution t=tan⁡xt = \tan\sqrt x⁠, without working it out. It does both jobs at once: then dt=sec⁡2x⋅12x dxdt = \sec^2\sqrt x\cdot\frac{1}{2\sqrt x}\,dx⁠, and the integral is ∫2t4 dt\int 2t^4\,dt directly.
  5. Check: differentiate the answer

    ddx(25tan⁡5x)=25⋅5tan⁡4x⋅sec⁡2x⋅12x=tan⁡4x sec⁡2xx. ✓\begin{aligned} &\frac{d}{dx}\left(\frac25\tan^5\sqrt x\right) \\ &= \frac25\cdot 5\tan^4\sqrt x\cdot\sec^2\sqrt x\cdot\frac{1}{2\sqrt x} \\ &= \frac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}. \ \checkmark \end{aligned}
    Three layers, three factors from the chain rule: the fifth power gives 5tan⁡45\tan^4⁠, the tangent gives sec⁡2\sec^2⁠, and the square root gives 12x\frac{1}{2\sqrt x}⁠. The constants 25⋅5⋅12=1\frac25\cdot 5\cdot\frac12 = 1⁠.

Part (iv): ∫sin⁡(tan⁡−1x)1+x2 dx\int\frac{\sin(\tan^{-1}x)}{1 + x^2}\,dx

  1. Choose the substitution

    ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}⁠, and the integrand contains exactly this factor. Put

    t=tan⁡−1x,dt=dx1+x2,t = \tan^{-1}x, \qquad dt = \frac{dx}{1 + x^2},

    with tt in (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, the principal range.

    The sine is applied to tan⁡−1x\tan^{-1}x⁠, and the derivative of tan⁡−1x\tan^{-1}x is the rest of the integrand. The integrand is defined for every real xx⁠, since 1+x2≥11 + x^2 \ge 1⁠.
    Standard formula (x), Section 7.2. Basics: substitution
  2. Integrate and return to xx

    ∫sin⁡(tan⁡−1x)1+x2 dx=∫sin⁡t dt=−cos⁡t+C=−cos⁡(tan⁡−1x)+C.\begin{aligned} \int\frac{\sin(\tan^{-1}x)}{1 + x^2}\,dx &= \int\sin t\,dt \\ &= -\cos t + C \\ &= -\cos(\tan^{-1}x) + C. \end{aligned}
    Formula (iii), then t=tan⁡−1xt = \tan^{-1}x is put back. This is the book's final form.
  3. A simpler form (optional)

    If t=tan⁡−1xt = \tan^{-1}x then tan⁡t=x\tan t = x and cos⁡t>0\cos t > 0 (because −π2<t<π2-\frac{\pi}{2} < t < \frac{\pi}{2}⁠). From sec⁡2t=1+tan⁡2t=1+x2\sec^2 t = 1 + \tan^2 t = 1 + x^2⁠:

    cos⁡(tan⁡−1x)=11+x2,\cos(\tan^{-1}x) = \frac{1}{\sqrt{1 + x^2}},

    so the answer can also be written −11+x2+C-\dfrac{1}{\sqrt{1 + x^2}} + C⁠.

    The positive square root is correct only because the principal range keeps cos⁡t\cos t positive. This form is identical to the book's, not merely equal up to a constant.
    Principal value branch of tan⁡−1\tan^{-1}⁠, Chapter 2. Basics: trigonometric identities
  4. Check: differentiate the answer

    ddx(−cos⁡(tan⁡−1x))=sin⁡(tan⁡−1x)⋅11+x2. ✓\begin{aligned} &\frac{d}{dx}\left(-\cos(\tan^{-1}x)\right) \\ &= \sin(\tan^{-1}x)\cdot\frac{1}{1 + x^2}. \ \checkmark \end{aligned}

    Valid for every real xx⁠.

    Outer −cos⁡-\cos gives sin⁡\sin⁠; inner tan⁡−1x\tan^{-1}x gives 11+x2\frac{1}{1 + x^2}⁠.
Result

(i) ∫sin⁡mx dx=−1mcos⁡mx+C\displaystyle\int\sin mx\,dx = -\frac1m\cos mx + C (m≠0)(m \ne 0)⁠.

(ii) ∫2xsin⁡(x2+1) dx\displaystyle\int 2x\sin(x^2 + 1)\,dx =−cos⁡(x2+1)+C= -\cos(x^2 + 1) + C⁠.

(iii) ∫tan⁡4x sec⁡2xx dx=25tan⁡5x+C\displaystyle\int\frac{\tan^4\sqrt x\,\sec^2\sqrt x}{\sqrt x}\,dx = \frac25\tan^5\sqrt x + C⁠, x>0x > 0⁠.

(iv) ∫sin⁡(tan⁡−1x)1+x2 dx\displaystyle\int\frac{\sin(\tan^{-1}x)}{1 + x^2}\,dx =−cos⁡(tan⁡−1x)+C= -\cos(\tan^{-1}x) + C⁠, which equals −11+x2+C-\frac{1}{\sqrt{1 + x^2}} + C⁠.

These agree with the textbook's solution.

Check it with numbers

By Section 7.8, ∫abf(x) dx=F(b)−F(a)\int_a^b f(x)\,dx = F(b) - F(a)⁠. The middle column is a computer's sum of very many thin strips, found without our answers (part (i) with m=3m = 3⁠):

PartIntervalSum of thin stripsF(b)−F(a)F(b) - F(a)
(i)[0,1][0, 1]0.66333080.66333081−cos⁡33≈0.6633308\frac{1 - \cos 3}{3} \approx 0.6633308
(ii)[0,1][0, 1]0.95644910.9564491cos⁡1−cos⁡2≈0.9564491\cos 1 - \cos 2 \approx 0.9564491
(iii)[14,1][\frac14, 1]3.64551633.645516325(tan⁡51−tan⁡512)\frac25(\tan^5 1 - \tan^5\frac12) ≈3.6455163\approx 3.6455163
(iv)[0,1][0, 1]0.29289320.29289321−12≈0.29289321 - \frac{1}{\sqrt2} \approx 0.2928932

In (iii) the interval keeps x\sqrt x between 12\frac12 and 1, well below π2\frac{\pi}{2}⁠, so the integrand is defined throughout.

Common mistakes
  1. Forgetting to convert dxdx⁠. Writing ∫sin⁡mx dx=∫sin⁡t dt\int\sin mx\,dx = \int\sin t\,dt loses the factor 1m\frac1m⁠. Every substitution must replace dxdx as well.
  2. Leaving the answer in tt or uu⁠. The question is in xx⁠; substitute back.
  3. Choosing t=tan⁡4xt = \tan^4\sqrt x or t=sin⁡(tan⁡−1x)t = \sin(\tan^{-1}x)⁠. Choose the inner expression whose derivative is also present (x\sqrt x⁠, tan⁡t\tan t⁠, tan⁡−1x\tan^{-1}x⁠), not the most complicated piece.
  4. Wrong sign in cos⁡(tan⁡−1x)\cos(\tan^{-1}x)⁠. It is +11+x2+\frac{1}{\sqrt{1+x^2}}⁠, never negative, because of the principal range.
What to take away
  1. Look for "a function of u(x)u(x)⁠, times u′(x)u'(x)". Then t=u(x)t = u(x) works.
  2. A missing constant factor is no problem: divide by it (part (i)). A missing factor involving xx is a problem: then try a different substitution.
  3. Substitutions can be chained (part (iii)), or combined into one.

Every fact used, and where it comes from

FactUsed inSource
∫f(x) dx=∫f(g(t)) g′(t) dt\int f(x)\,dx = \int f(g(t))\,g'(t)\,dtAll partsSection 7.3.1 (Lesson: integration by substitution)
∫sin⁡t dt=−cos⁡t+C\int\sin t\,dt = -\cos t + CParts (i), (ii), (iv)Standard formula (iii), Section 7.2
∫u4du=u55+C\int u^4du = \frac{u^5}{5} + CPart (iii), Step 3Standard formula (i), Section 7.2
ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2x⁠; ddxtan⁡−1x=11+x2\frac{d}{dx}\tan^{-1}x = \frac{1}{1 + x^2}Part (iii), Step 3; Part (iv), Step 1Standard formulae (iv), (x), Section 7.2
ddxx=12x\frac{d}{dx}\sqrt x = \frac{1}{2\sqrt x}Part (iii), Step 2Power rule, Section 7.2 formula (i)
Chain ruleAll checksTheorem 4, Section 5.3.1 (Basics: the chain rule backwards)
tan⁡−1x∈(−π2,π2)\tan^{-1}x \in \left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠; 1+tan⁡2t=sec⁡2t1 + \tan^2t = \sec^2tPart (iv), Step 3Chapter 2, Section 2.2; Class XI trigonometry
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 →