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

Exercise 7.3 · Q24 (MCQ): ∫ex(1+x)cos⁡2(exx) dx\int\frac{e^x(1+x)}{\cos^2(e^x x)}\,dx

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Choose the correct answer.

∫ex(1+x)cos⁡2(exx) dx  equals\int\frac{e^x(1 + x)}{\cos^2(e^x x)}\,dx \ \text{ equals}

(A) −cot⁡(exx)+C-\cot(ex^x) + C    (B) tan⁡(xex)+C\tan(xe^x) + C
(C) tan⁡(ex)+C\tan(e^x) + C    (D) cot⁡(ex)+C\cot(e^x) + C

Exam answer

Put xex=txe^x = t⁠. Then ex(1+x) dx=dte^x(1 + x)\,dx = dt⁠.

∫ex(1+x)cos⁡2(exx) dx=∫sec⁡2t dt=tan⁡t+C\begin{aligned} &\int\frac{e^x(1 + x)}{\cos^2(e^x x)}\,dx \\ &= \int\sec^2 t\,dt = \tan t + C \end{aligned}

Answer: (B) tan⁡(xex)+C\tan(xe^x) + C

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

The one idea this problem is built on

Look inside the cosine: exx=xexe^x x = xe^x⁠. Its derivative, by the product rule, is ex+xex=ex(1+x)e^x + xe^x = e^x(1 + x)⁠, which is exactly the numerator. So t=xext = xe^x turns the integral into ∫dtcos⁡2t=∫sec⁡2t dt\int\frac{dt}{\cos^2 t} = \int\sec^2 t\,dt⁠, which is tan⁡t+C\tan t + C⁠.

Given, to find, and the plan
Given
f(x)=ex(1+x)cos⁡2(xex)f(x) = \dfrac{e^x(1 + x)}{\cos^2(xe^x)}⁠, defined wherever cos⁡(xex)≠0\cos(xe^x) \ne 0⁠; four options.
To find
∫f(x) dx\displaystyle\int f(x)\,dx⁠, and which option it matches.
Plan
(1) Domain. (2) Differentiate xexxe^x by the product rule. (3) Substitute t=xext = xe^x and integrate sec⁡2t\sec^2 t⁠. (4) Differentiate back. (5) Test every option.

Basics you need

1The product rule

ddx(uv)=u′v+uv′\frac{d}{dx}(uv) = u'v + uv'⁠. With u=xu = x⁠, v=exv = e^x⁠: ddx(xex)=ex+xex\frac{d}{dx}(xe^x) = e^x + xe^x⁠. Basics: integration undoes differentiation

2Substitution

If t=g(x)t = g(x)⁠, then dt=g′(x) dxdt = g'(x)\,dx⁠; look for the derivative of the inner function in the integrand. Basics: substitution

3∫sec⁡2t dt=tan⁡t+C\int\sec^2 t\,dt = \tan t + C

Standard formula (iv), Section 7.2, since 1cos⁡2t=sec⁡2t\frac{1}{\cos^2 t} = \sec^2 t⁠. Basics: trigonometric identities for integrals

Solution

  1. Where is the integrand defined?

    We need cos⁡(xex)≠0\cos(xe^x) \ne 0⁠, that is,

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

    The answer holds on any interval of xx on which this never fails. For example, on 0≤x≤0.70 \le x \le 0.7 the function xexxe^x increases from 00 to 0.7e0.7≈1.410.7e^{0.7} \approx 1.41⁠, which is below π2≈1.57\frac{\pi}{2} \approx 1.57⁠.

    1cos⁡2(xex)\frac{1}{\cos^2(xe^x)} blows up where the cosine is zero, so no antiderivative can cross those points. The numerator ex(1+x)e^x(1 + x) is defined everywhere.
  2. Differentiate the inner function xexxe^x

    By the product rule with u=xu = x and v=exv = e^x⁠:

    ddx(xex)=1⋅ex+x⋅ex=ex(1+x).\begin{aligned} \frac{d}{dx}(xe^x) &= 1\cdot e^x + x\cdot e^x \\ &= e^x(1 + x). \end{aligned}

    This is exactly the numerator.

    Whenever a function sits inside another (here xexxe^x inside cos⁡2\cos^2⁠), check whether its derivative appears elsewhere in the integrand. It does, with no extra constant, so the substitution t=xext = xe^x will absorb the numerator completely. (The book writes exxe^x x inside the cosine; it is the same as xexxe^x⁠.)
    Product rule (Class XI; used throughout Chapter 5); ddxex=ex\frac{d}{dx}e^x = e^x (list in Section 7.2, (xi)).
  3. Substitute t=xext = xe^x and integrate

    Let t=xext = xe^x⁠. Then dt=ex(1+x) dxdt = e^x(1 + x)\,dx⁠, and

    ∫ex(1+x)cos⁡2(xex) dx=∫dtcos⁡2t=∫sec⁡2t dt=tan⁡t+C=tan⁡(xex)+C.\begin{aligned} \int\frac{e^x(1 + x)}{\cos^2(xe^x)}\,dx &= \int\frac{dt}{\cos^2 t} \\ &= \int\sec^2 t\,dt = \tan t + C \\ &= \tan(xe^x) + C. \end{aligned}
    The numerator times dxdx becomes dtdt⁠, and the denominator becomes cos⁡2t\cos^2 t⁠. Then 1cos⁡2t=sec⁡2t\frac{1}{\cos^2 t} = \sec^2 t⁠, a standard integrand. Finally we put t=xext = xe^x back.
    Change of variable, Section 7.3.1; standard formula (iv), Section 7.2. Lesson: integration by substitution
  4. Check: differentiate the answer back

    Chain rule with outer function tan⁡u\tan u and inner function u=xexu = xe^x⁠:

    ddxtan⁡(xex)=sec⁡2(xex)⋅ex(1+x)=ex(1+x)cos⁡2(xex).\begin{aligned} \frac{d}{dx}\tan(xe^x) &= \sec^2(xe^x)\cdot e^x(1 + x) \\ &= \frac{e^x(1 + x)}{\cos^2(xe^x)}. \end{aligned}

    This is the integrand. ✓

    Chain rule (Theorem 4, Section 5.3.1); Property (I), Section 7.2.1. Basics: integration undoes differentiation
  5. Examine every option

    Differentiate each option and compare with the integrand. As a numerical test use x=0.5x = 0.5⁠, where xex≈0.824361xe^x \approx 0.824361 and the integrand is about 5.3637085.363708⁠.

    • (A) −cot⁡(exx)+C-\cot(ex^x) + C⁠. Whatever the inner function uu⁠, the derivative of −cot⁡u-\cot u is cosec⁡2u⋅u′=u′sin⁡2u\operatorname{cosec}^2 u\cdot u' = \frac{u'}{\sin^2 u}⁠: a sine squared in the denominator, not a cosine. Even if the printed exxex^x is read as xexxe^x⁠, the derivative is ex(1+x)sin⁡2(xex)≈4.588933\frac{e^x(1 + x)}{\sin^2(xe^x)} \approx 4.588933 at x=0.5x = 0.5⁠; read literally as e⋅xxe\cdot x^x⁠, it is about 0.6690410.669041⁠. Neither is 5.3637085.363708⁠. Wrong.
    • (B) ddxtan⁡(xex)=ex(1+x)cos⁡2(xex)\frac{d}{dx}\tan(xe^x) = \frac{e^x(1 + x)}{\cos^2(xe^x)} for every xx in the domain (Step 4). Correct.
    • (C) ddxtan⁡(ex)=sec⁡2(ex)⋅ex\frac{d}{dx}\tan(e^x) = \sec^2(e^x)\cdot e^x⁠. The inner function is exe^x⁠, not xexxe^x⁠, and the factor 1+x1 + x is missing. At x=0.5x = 0.5 it is about 272.065502272.065502⁠. Wrong.
    • (D) The derivative of cot⁡(ex)\cot(e^x) is −cosec⁡2(ex)⋅ex-\operatorname{cosec}^2(e^x)\cdot e^x⁠, which is negative for every xx⁠, while the integrand is positive at x=0.5x = 0.5 (about −1.658773-1.658773 against 5.3637085.363708⁠). Wrong.
    A wrong option needs only one point where its derivative differs from the integrand. The correct option is confirmed by the general calculation of Step 4.
Result ∫ex(1+x)cos⁡2(xex) dx=tan⁡(xex)+C,\int\frac{e^x(1 + x)}{\cos^2(xe^x)}\,dx = \tan(xe^x) + C,

valid on any interval on which cos⁡(xex)≠0\cos(xe^x) \ne 0⁠. The correct option is (B). (Textbook answer: B.)

Check it with numbers

Let F(x)=tan⁡(xex)F(x) = \tan(xe^x) and look near x=0.5x = 0.5 with h=0.0001h = 0.0001⁠:

  • F(0.5001)≈1.081663463982F(0.5001) \approx 1.081663463982 and F(0.4999)≈1.080590722322F(0.4999) \approx 1.080590722322⁠.
  • Slope estimate: F(0.5001)−F(0.4999)0.0002≈5.363708\dfrac{F(0.5001) - F(0.4999)}{0.0002} \approx 5.363708⁠.
  • Integrand at x=0.5x = 0.5⁠: e0.5≈1.648721271e^{0.5} \approx 1.648721271⁠, so the numerator 1.5 e0.51.5\,e^{0.5} is about 2.473081912.47308191⁠; with cos⁡(0.824361)≈0.67902647\cos(0.824361) \approx 0.67902647 the integrand is about 2.473081910.679026472≈5.363708\dfrac{2.47308191}{0.67902647^2} \approx 5.363708⁠.

They agree.

Common mistakes
  1. Missing the product rule. ddx(xex)=ex(1+x)\frac{d}{dx}(xe^x) = e^x(1 + x)⁠, not exe^x and not xexxe^x⁠. Spotting this is the whole problem.
  2. Choosing (C) because "the answer has exe^x in it". Its derivative has cos⁡2(ex)\cos^2(e^x) in the denominator, not cos⁡2(xex)\cos^2(xe^x)⁠.
  3. Confusing ∫sec⁡2t dt\int\sec^2 t\,dt with ∫cosec⁡2t dt\int\operatorname{cosec}^2 t\,dt⁠. 1cos⁡2\frac{1}{\cos^2} gives tan⁡\tan⁠; 1sin⁡2\frac{1}{\sin^2} gives −cot⁡-\cot⁠. Option (A) is the trap for this mistake.
What to take away
  1. ex(1+x)e^x(1 + x) is the derivative of xexxe^x⁠; when you see it next to a function of xexxe^x⁠, substitute t=xext = xe^x⁠.
  2. ∫f′(x)sec⁡2f(x) dx=tan⁡f(x)+C\int f'(x)\sec^2 f(x)\,dx = \tan f(x) + C⁠: the chain rule read backwards.

Every fact used, and where it comes from

FactUsed inSource
Product rule; ddxex=ex\frac{d}{dx}e^x = e^xSteps 2, 4Class XI; list in Section 7.2, (xi)
Change of variable (substitution)Step 3Section 7.3.1 (Lesson: integration by substitution)
∫sec⁡2t dt=tan⁡t+C\int\sec^2 t\,dt = \tan t + CStep 3Standard formula (iv), Section 7.2 (Basics: trigonometric identities)
Chain ruleSteps 4, 5Theorem 4, Section 5.3.1
Differentiation undoes integrationSteps 4, 5Property (I), Section 7.2.1
ddxcot⁡x=−cosec⁡2x\frac{d}{dx}\cot x = -\operatorname{cosec}^2 xStep 5List in Section 7.2, (v)
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 →