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

Exercise 7.1 · Q18: ∫sec⁡x (sec⁡x+tan⁡x) dx\int \sec x\,(\sec x + \tan x)\,dx

Exercise 7.1Integration as anti-differentiation · Section 7.2
The question

Find the following integral:

∫sec⁡x (sec⁡x+tan⁡x) dx\int \sec x\,(\sec x + \tan x)\,dx
Exam answer

Let I=∫sec⁡x(sec⁡x+tan⁡x)dxI = \displaystyle\int\sec x\left(\sec x + \tan x\right)dx⁠.

I=∫(sec⁡2x+sec⁡xtan⁡x)dxI = \int\left(\sec^2 x + \sec x\tan x\right)dx

∴ I=tan⁡x+sec⁡x+C\therefore\ I = \tan x + \sec x + C⁠.

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

The one idea this problem is built on

Multiplying out gives sec⁡2x+sec⁡xtan⁡x\sec^2 x + \sec x\tan x⁠, and both terms are derivatives we already know: ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x and ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x = \sec x\tan x⁠. So the integral is read straight off the list of standard integrals: tan⁡x+sec⁡x+C\tan x + \sec x + C⁠.

Given, to find, and the plan
Given
The integrand f(x)=sec⁡x (sec⁡x+tan⁡x)f(x) = \sec x\,(\sec x + \tan x)⁠.
To find
∫f(x) dx\int f(x)\,dx⁠.
Plan
(1) Note where ff is defined. (2) Expand the product. (3) Use formulae (iv) and (vi) of Section 7.2. (4) Differentiate the answer to check it.

Basics you need

1Integration undoes differentiation

∫f(x) dx=F(x)+C\int f(x)\,dx = F(x) + C means F′(x)=f(x)F'(x) = f(x)⁠. Basics: integration undoes differentiation

2Secant and tangent

sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x} and tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}⁠; both exist exactly when cos⁡x≠0\cos x \ne 0⁠, that is x≠(2n+1)π2x \ne (2n+1)\frac{\pi}{2}⁠, n∈Zn \in \mathbb{Z}⁠. Basics: trigonometric facts for integrals

3Two standard integrals

(iv) ∫sec⁡2x dx=tan⁡x+C\int \sec^2 x\,dx = \tan x + C and (vi) ∫sec⁡xtan⁡x dx=sec⁡x+C\int \sec x\tan x\,dx = \sec x + C (list in Section 7.2). Basics: trigonometric facts for integrals

4Sums

∫(f+g) dx=∫f dx+∫g dx\int (f + g)\,dx = \int f\,dx + \int g\,dx (Property III, Section 7.2.1). Lesson: integration as anti-differentiation

Solution

  1. Where is the integrand defined?

    sec⁡x\sec x and tan⁡x\tan x both have cos⁡x\cos x in the denominator, so the integrand is defined exactly when

    cos⁡x≠0,i.e.x≠(2n+1)π2, n∈Z.\cos x \ne 0, \quad\text{i.e.}\quad x \ne (2n+1)\tfrac{\pi}{2},\ n \in \mathbb{Z}.
    The domain is a string of open intervals such as (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠, (π2,3π2)\left(\frac{\pi}{2}, \frac{3\pi}{2}\right)⁠, and so on. The answer is an antiderivative on each of them. (Strictly the constant may differ from one interval to the next; like the textbook we write one CC⁠.)
    The Note in Section 7.2: always keep the interval of definition in mind.
  2. Expand the product

    sec⁡x (sec⁡x+tan⁡x)=sec⁡2x+sec⁡xtan⁡x.\sec x\,(\sec x + \tan x) = \sec^2 x + \sec x\tan x.
    There is no product rule for integrals, but after multiplying out, each term is one of the derivatives in the list of Section 7.2. Spotting that is the whole problem.
  3. Integrate each term

    ∫(sec⁡2x+sec⁡xtan⁡x) dx=∫sec⁡2x dx+∫sec⁡xtan⁡x dx=tan⁡x+sec⁡x+C.\begin{aligned} &\int (\sec^2 x + \sec x\tan x)\,dx \\ &\quad = \int \sec^2 x\,dx + \int \sec x\tan x\,dx \\ &\quad = \tan x + \sec x + C. \end{aligned}
    Property III splits the sum. Formula (iv) holds because ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x⁠; formula (vi) holds because ddxsec⁡x=sec⁡xtan⁡x\frac{d}{dx}\sec x = \sec x\tan x⁠. The two constants combine into one CC⁠.
    Formulae (iv) and (vi), Section 7.2. The textbook's Example 3(ii) is the same problem with cosec and cot: ∫cosec⁡x(cosec⁡x+cot⁡x) dx\int \operatorname{cosec} x(\operatorname{cosec} x + \cot x)\,dx =−cot⁡x−cosec⁡x+C= -\cot x - \operatorname{cosec} x + C⁠.
  4. Check: differentiate the answer back

    ddx(tan⁡x+sec⁡x+C)=sec⁡2x+sec⁡xtan⁡x=sec⁡x (sec⁡x+tan⁡x).\begin{aligned} \frac{d}{dx}(\tan x + \sec x + C) &= \sec^2 x + \sec x\tan x \\ &= \sec x\,(\sec x + \tan x). \end{aligned}

    This is the integrand at every xx with cos⁡x≠0\cos x \ne 0⁠, so the answer is correct.

    The last line takes out the common factor sec⁡x\sec x⁠, which reverses Step 2. Both derivatives exist exactly where cos⁡x≠0\cos x \ne 0⁠, the same set on which the integrand is defined.
    Derivatives (iv) and (vi) in the list of Section 7.2; Property I, Section 7.2.1. Basics: integration undoes differentiation
Result

Wherever cos⁡x≠0\cos x \ne 0⁠,

∫sec⁡x (sec⁡x+tan⁡x) dx=tan⁡x+sec⁡x+C.\int \sec x\,(\sec x + \tan x)\,dx = \tan x + \sec x + C.

(Textbook answer: tan⁡x+sec⁡x+C\tan x + \sec x + C⁠.)

Check it with numbers

At x=π4x = \frac{\pi}{4}⁠, sec⁡x=2\sec x = \sqrt2 and tan⁡x=1\tan x = 1⁠, so the integrand is 2(2+1)=2+2≈3.4142136\sqrt2(\sqrt2 + 1) = 2 + \sqrt2 \approx 3.4142136⁠. With F(x)=tan⁡x+sec⁡xF(x) = \tan x + \sec x⁠: F ⁣(π4+0.001)≈2.41763190F\!\left(\frac{\pi}{4} + 0.001\right) \approx 2.41763190 and F ⁣(π4−0.001)≈2.41080346F\!\left(\frac{\pi}{4} - 0.001\right) \approx 2.41080346⁠, so the slope of FF there is about

2.41763190−2.410803460.002≈3.4142,\frac{2.41763190 - 2.41080346}{0.002} \approx 3.4142,

which matches 2+22 + \sqrt2 to four decimal places.

(Each value of FF is rounded to 8 decimal places, so the slope is reliable to about 4 decimal places.)

Common mistakes
  1. Mixing up the pairs. sec⁡2x\sec^2 x integrates to tan⁡x\tan x and sec⁡xtan⁡x\sec x\tan x integrates to sec⁡x\sec x⁠, not the other way round.
  2. Trying ∫sec⁡x dx⋅∫(sec⁡x+tan⁡x) dx\int \sec x\,dx\cdot\int(\sec x + \tan x)\,dx⁠. There is no product rule for integrals; expand instead.
  3. Forgetting where cos⁡x=0\cos x = 0⁠. The answer is not valid at odd multiples of π2\frac{\pi}{2}⁠.
What to take away
  1. Learn the six trigonometric derivatives of Section 7.2 well enough to recognise them inside an integrand.
  2. sec⁡x(sec⁡x+tan⁡x)\sec x(\sec x + \tan x) is the derivative of sec⁡x+tan⁡x\sec x + \tan x⁠: a neat identity worth remembering.
  3. State the domain: cos⁡x≠0\cos x \ne 0⁠.

Every fact used, and where it comes from

FactUsed inSource
sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}⁠, tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x}⁠; defined when cos⁡x≠0\cos x \ne 0Step 1Trigonometric functions (Class XI)
∫(f+g) dx=∫f dx+∫g dx\int (f+g)\,dx = \int f\,dx + \int g\,dxStep 3Property III, Section 7.2.1 (Lesson: integration as anti-differentiation)
∫sec⁡2x dx=tan⁡x+C\int \sec^2 x\,dx = \tan x + CStep 3Formula (iv), Section 7.2
∫sec⁡xtan⁡x dx=sec⁡x+C\int \sec x\tan x\,dx = \sec x + CStep 3Formula (vi), Section 7.2
Same pattern with cosec and cotStep 3Example 3(ii), Section 7.2.1
(tan⁡x)′=sec⁡2x(\tan x)' = \sec^2 x⁠, (sec⁡x)′=sec⁡xtan⁡x(\sec x)' = \sec x\tan xStep 4Derivatives column, list in Section 7.2; Property 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 →