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

Exercise 7.6 · Q24 (MCQ): ∫exsec⁡x(1+tan⁡x) dx\int e^x\sec x(1+\tan x)\,dx

Exercise 7.6Integral of the type eˣ[f + f′] · Section 7.6.1
The question

Choose the correct answer.

∫exsec⁡x (1+tan⁡x) dx equals\int e^x\sec x\,(1 + \tan x)\,dx \text{ equals}

(A) excos⁡x+Ce^x\cos x + C   (B) exsec⁡x+Ce^x\sec x + C   (C) exsin⁡x+Ce^x\sin x + C   (D) extan⁡x+Ce^x\tan x + C

Exam answer ∫exsec⁡x(1+tan⁡x) dx=∫ex(sec⁡x+sec⁡xtan⁡x) dx\begin{aligned} &\int e^x\sec x(1 + \tan x)\,dx \\ &= \int e^x(\sec x + \sec x\tan x)\,dx \end{aligned}

Here f(x)=sec⁡xf(x) = \sec x and f′(x)=sec⁡xtan⁡x{f'(x) = \sec x\tan x}⁠. Using ∫ex[f(x)+f′(x)]dx\displaystyle\int e^x\left[f(x) + f'(x)\right]dx =exf(x)+C,= e^xf(x) + C,

Answer: (B) exsec⁡x+Ce^x\sec x + C

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

The one idea this problem is built on

Multiply out: sec⁡x(1+tan⁡x)=sec⁡x+sec⁡xtan⁡x\sec x(1 + \tan x) = \sec x + \sec x\tan x⁠, and sec⁡xtan⁡x\sec x\tan x is the derivative of sec⁡x\sec x⁠. So the integrand is ex[f+f′]e^x[f + f'] with f=sec⁡xf = \sec x⁠, and Section 7.6.1 gives exsec⁡x+Ce^x\sec x + C⁠.

Given, to find, and the plan
Given
exsec⁡x(1+tan⁡x)e^x\sec x(1 + \tan x)⁠, defined where cos⁡x≠0\cos x \ne 0⁠, that is x≠(2n+1)π2x \ne (2n+1)\frac{\pi}{2} for integers nn⁠; four candidate answers.
To find
The integral and the matching option.
Plan
(1) Expand and recognise f+f′f + f'⁠. (2) Apply the rule. (3) Differentiate back. (4) Examine every option.

Basics you need

1The rule ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C

Section 7.6.1 (the product rule read backwards). Lesson: integration by parts

2Derivative of sec⁡x\sec x

ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x = \sec x\tan x (standard formula (vi), Section 7.2). Basics: trigonometric identities

3Product rule

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

Solution

  1. Expand and recognise f+f′f + f'

    exsec⁡x(1+tan⁡x)=ex(sec⁡x+sec⁡xtan⁡x).e^x\sec x(1 + \tan x) = e^x\big(\sec x + \sec x\tan x\big).

    Take f(x)=sec⁡xf(x) = \sec x⁠; then f′(x)=sec⁡xtan⁡xf'(x) = \sec x\tan x⁠, so the bracket is f(x)+f′(x)f(x) + f'(x)⁠.

    Opening the bracket shows two terms, and one of them (sec⁡xtan⁡x\sec x\tan x⁠) is the derivative of the other (sec⁡x\sec x⁠). That is exactly the pattern of Section 7.6.1.
    ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x = \sec x\tan x (formula (vi)). Basics: trigonometric identities
  2. Apply the rule

    ∫exsec⁡x(1+tan⁡x) dx=exsec⁡x+C.\int e^x\sec x(1 + \tan x)\,dx = e^x\sec x + C.
    ∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + C with f=sec⁡xf = \sec x⁠. Since sec⁡x\sec x is differentiable wherever cos⁡x≠0\cos x \ne 0⁠, the answer holds on each interval between consecutive odd multiples of π2\frac{\pi}{2}⁠.
  3. Check: differentiate the answer

    ddx(exsec⁡x)=exsec⁡x+exsec⁡xtan⁡x=exsec⁡x(1+tan⁡x),\begin{aligned} \frac{d}{dx}\big(e^x\sec x\big) &= e^x\sec x + e^x\sec x\tan x \\ &= e^x\sec x(1 + \tan x), \end{aligned}

    the integrand, wherever cos⁡x≠0\cos x \ne 0⁠.

    Product rule, then take out the common factor exsec⁡xe^x\sec x⁠.
  4. Examine every option

    Differentiate each option by the product rule and compare with the integrand. At the sample point x=π4x = \frac{\pi}{4} the integrand is eπ/4⋅2⋅2e^{\pi/4}\cdot\sqrt2\cdot 2⁠, that is

    22 eπ/4=6.2035327876…2\sqrt2\,e^{\pi/4} = 6.2035327876\ldots

    (A) ddx(excos⁡x)=ex(cos⁡x−sin⁡x)\frac{d}{dx}(e^x\cos x) = e^x(\cos x - \sin x)⁠: at π4\frac{\pi}{4} this is 00⁠. Wrong.

    (B) ddx(exsec⁡x)=exsec⁡x(1+tan⁡x)\frac{d}{dx}(e^x\sec x) = e^x\sec x(1 + \tan x)⁠: the integrand exactly (Step 3). Correct.

    (C) ddx(exsin⁡x)=ex(sin⁡x+cos⁡x)\frac{d}{dx}(e^x\sin x) = e^x(\sin x + \cos x)⁠: at π4\frac{\pi}{4} this is 2 eπ/4=3.1017663938…\sqrt2\,e^{\pi/4} = 3.1017663938\ldots Wrong.

    (D) ddx(extan⁡x)=ex(tan⁡x+sec⁡2x)\frac{d}{dx}(e^x\tan x) = e^x(\tan x + \sec^2 x)⁠: at π4\frac{\pi}{4} this is 3eπ/4=6.5798401522…3e^{\pi/4} = 6.5798401522\ldots Wrong.

    One sample point where the values differ is enough to rule an option out. (At x=0x = 0 option (A)'s derivative happens to equal the integrand, both being 1, so a single point can only disprove, never prove; option (B) is proved for all xx in Step 3.) Each wrong option is the ex[f+f′]e^x[f + f'] rule applied with a different ff⁠: (A) f=cos⁡xf = \cos x⁠, (C) f=sin⁡xf = \sin x (this is Question 16), (D) f=tan⁡xf = \tan x⁠.
    Product rule; derivatives of cos⁡x\cos x⁠, sin⁡x\sin x⁠, tan⁡x\tan x (formulae (ii)–(iv)). Basics: integration undoes differentiation
Result ∫exsec⁡x(1+tan⁡x) dx=exsec⁡x+C,\int e^x\sec x(1 + \tan x)\,dx = e^x\sec x + C,

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

Check it with numbers

On [0,π4]\left[0, \frac{\pi}{4}\right]⁠, where cos⁡x≠0\cos x \ne 0⁠:

F(π4)−F(0)=eπ/4sec⁡π4−e0sec⁡0=2 eπ/4−1=2.1017663938…\begin{aligned} F\left(\tfrac{\pi}{4}\right) - F(0) &= e^{\pi/4}\sec\frac{\pi}{4} - e^0\sec 0 \\ &= \sqrt2\,e^{\pi/4} - 1 = 2.1017663938\ldots \end{aligned}

Numerical integration of exsec⁡x(1+tan⁡x)e^x\sec x(1 + \tan x) over [0,π4]\left[0, \frac{\pi}{4}\right] gives 2.1017663938…2.1017663938\ldots⁠, the same.

Common mistakes
  1. Choosing f=tan⁡xf = \tan x because tan⁡x\tan x appears: its derivative is sec⁡2x\sec^2 x⁠, not sec⁡x\sec x⁠.
  2. Choosing (A) after testing only x=0x = 0⁠: there (A)'s derivative also equals 1. Test at a point like π4\frac{\pi}{4}⁠, or better, differentiate symbolically.
  3. Ignoring where sec⁡x\sec x is undefined: the answer is valid only away from odd multiples of π2\frac{\pi}{2}⁠.
What to take away
  1. Open the bracket and look for a function together with its derivative; here sec⁡x\sec x and sec⁡xtan⁡x\sec x\tan x⁠.
  2. ∫exsec⁡x(1+tan⁡x) dx=exsec⁡x+C\int e^x\sec x(1 + \tan x)\,dx = e^x\sec x + C⁠.

Every fact used, and where it comes from

FactUsed inSource
∫ex[f+f′] dx=exf+C\int e^x[f + f']\,dx = e^x f + CStep 2Section 7.6.1 (Lesson: integration by parts)
ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x = \sec x\tan xSteps 1, 3Standard formula (vi), Section 7.2
Derivatives of cos⁡x\cos x⁠, sin⁡x\sin x⁠, tan⁡x\tan xStep 4Standard formulae (ii)–(iv), Section 7.2
Product ruleSteps 3, 4Chapter 5, Section 5.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 →