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

Exercise 7.4 · Q9: ∫sec⁡2xtan⁡2x+4 dx\int\frac{\sec^2 x}{\sqrt{\tan^2 x+4}}\,dx

Exercise 7.4Integrals of some particular functions · Section 7.4
The question

Integrate the function (Exercise 7.4, "Integrate the functions in Exercises 1 to 23"):

sec⁡2xtan⁡2x+4\frac{\sec^2 x}{\sqrt{\tan^2 x + 4}}
Exam answer

Let I=∫sec⁡2xtan⁡2x+4 dxI = \displaystyle\int\frac{\sec^2 x}{\sqrt{\tan^2 x + 4}}\,dx⁠.

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

I=∫dtt2+22I = \int\frac{dt}{\sqrt{t^2 + 2^2}}

[Using ∫dtt2+a2\displaystyle\int\frac{dt}{\sqrt{t^2 + a^2}} =log⁡∣t+t2+a2∣+C= \log\left|t + \sqrt{t^2 + a^2}\right| + C]

I=log⁡∣t+t2+4∣+CI = \log\left|t + \sqrt{t^2 + 4}\right| + C

∴ I=log⁡∣tan⁡x+tan⁡2x+4∣\therefore\ I = \log\left|\tan x + \sqrt{\tan^2 x + 4}\right| +C+ C⁠.

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

The one idea this problem is built on

The numerator sec⁡2x dx\sec^2 x\,dx is exactly d(tan⁡x)d(\tan x)⁠, and the root contains (tan⁡x)2+22(\tan x)^2 + 2^2⁠. So t=tan⁡xt = \tan x turns a trigonometric integral into the algebraic one ∫dtt2+22\int\frac{dt}{\sqrt{t^2 + 2^2}}⁠, which is formula 7.4 (6).

Given, to find, and the plan
Given
f(x)=sec⁡2xtan⁡2x+4f(x) = \dfrac{\sec^2 x}{\sqrt{\tan^2 x + 4}}⁠.
To find
∫f(x) dx\int f(x)\,dx⁠, and where the answer is valid.
Plan
(1) Find where ff is defined. (2) Substitute t=tan⁡xt = \tan x⁠. (3) Use formula 7.4 (6) with a=2a = 2⁠. (4) Return to xx⁠. (5) Differentiate back.

Basics you need

1Derivative of tan⁡x\tan x

ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x⁠, so with t=tan⁡xt = \tan x⁠, dt=sec⁡2x dxdt = \sec^2 x\,dx⁠. Basics: trigonometric facts

2Substitution

A factor g′(x) dxg'(x)\,dx becomes dtdt when t=g(x)t = g(x)⁠. Basics: substitution (the chain rule backwards)

3Formula 7.4 (6)

∫dxx2+a2=log⁡∣x+x2+a2∣+C\int\frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + C⁠. Lesson: integrals of particular functions

Solution

  1. Where is the integrand defined?

    sec⁡x\sec x and tan⁡x\tan x need cos⁡x≠0\cos x \ne 0⁠, that is, x≠(2n+1)π2x \ne (2n + 1)\frac\pi2 for integers nn⁠. Where they exist, tan⁡2x+4≥4>0\tan^2 x + 4 \ge 4 > 0⁠, so the root is fine. The integrand is defined on each interval

    (2n−1)π2<x<(2n+1)π2.(2n - 1)\frac\pi2 < x < (2n + 1)\frac\pi2.
    The only restriction comes from sec⁡\sec and tan⁡\tan themselves; the root never causes trouble. The answer holds on each such interval (with its own constant on each).
  2. Substitute t=tan⁡xt = \tan x

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

    ∫sec⁡2x dxtan⁡2x+4=∫dtt2+4.\int\frac{\sec^2 x\,dx}{\sqrt{\tan^2 x + 4}} = \int\frac{dt}{\sqrt{t^2 + 4}}.
    The whole numerator sec⁡2x dx\sec^2 x\,dx is used up as dtdt⁠, and the rest is a function of tan⁡x\tan x alone. On each interval of Step 1, t=tan⁡xt = \tan x runs over all real numbers.
    Integration by substitution, Section 7.3.1. Lesson: integration by substitution
  3. Use formula 7.4 (6) with a=2a = 2

    ∫dtt2+22=log⁡∣t+t2+4∣+C.\int\frac{dt}{\sqrt{t^2 + 2^2}} = \log\left|t + \sqrt{t^2 + 4}\right| + C.
    "Square plus a positive constant, under a root", with 4=224 = 2^2⁠: formula 7.4 (6), valid for every real tt⁠.
  4. Return to xx

    ∫sec⁡2xtan⁡2x+4 dx=log⁡∣tan⁡x+tan⁡2x+4∣+C.\int\frac{\sec^2 x}{\sqrt{\tan^2 x + 4}}\,dx = \log\left|\tan x + \sqrt{\tan^2 x + 4}\right| + C.

    The quantity inside the modulus is always positive, because tan⁡2x+4>∣tan⁡x∣\sqrt{\tan^2 x + 4} > |\tan x|⁠.

    Replace tt by tan⁡x\tan x⁠. The modulus is kept as in the book, though it changes nothing here.
  5. Check: differentiate the answer back

    Let s=tan⁡2x+4s = \sqrt{\tan^2 x + 4}⁠. Chain rule: s′=2tan⁡xsec⁡2x2s=tan⁡xsec⁡2xss' = \frac{2\tan x\sec^2 x}{2s} = \frac{\tan x\sec^2 x}{s}⁠. With F(x)=log⁡(tan⁡x+s)F(x) = \log(\tan x + s)⁠,

    F′(x)=sec⁡2x+tan⁡xsec⁡2xstan⁡x+s=sec⁡2x (s+tan⁡x)s (tan⁡x+s)=sec⁡2xtan⁡2x+4. ✓\begin{aligned} F'(x) &= \frac{\sec^2 x + \frac{\tan x\sec^2 x}{s}}{\tan x + s} \\ &= \frac{\sec^2 x\,(s + \tan x)}{s\,(\tan x + s)} \\ &= \frac{\sec^2 x}{\sqrt{\tan^2 x + 4}}. \ \checkmark \end{aligned}
    Factor sec⁡2x\sec^2 x out of the numerator; the bracket s+tan⁡xs + \tan x then cancels with the denominator. This holds at every xx with cos⁡x≠0\cos x \ne 0⁠.
Result

∫sec⁡2xtan⁡2x+4 dx=log⁡∣tan⁡x+tan⁡2x+4∣+C,\begin{aligned} &\int\frac{\sec^2 x}{\sqrt{\tan^2 x + 4}}\,dx \\ &= \log\left|\tan x + \sqrt{\tan^2 x + 4}\right| + C, \end{aligned} valid wherever cos⁡x≠0\cos x \ne 0⁠. (Textbook answer: log⁡∣tan⁡x+tan⁡2x+4∣+C\log\left|\tan x + \sqrt{\tan^2 x + 4}\right| + C⁠, the same.)

Check it with numbers

Take x=0.5x = 0.5 and h=0.001h = 0.001⁠:

  • F(0.501)=0.96363751F(0.501) = 0.96363751 and F(0.499)=0.96238495F(0.499) = 0.96238495⁠,
  • slope ≈0.96363751−0.962384950.002=0.6263\approx \frac{0.96363751 - 0.96238495}{0.002} = 0.6263⁠,
  • integrand: sec⁡20.5=1.29845\sec^2 0.5 = 1.29845 and tan⁡20.5+4=2.07327\sqrt{\tan^2 0.5 + 4} = 2.07327⁠, so the integrand is 1.298452.07327=0.6263\frac{1.29845}{2.07327} = 0.6263⁠. ✓
Common mistakes
  1. Trying to simplify sec⁡2x\sec^2 x with 1+tan⁡2x1 + \tan^2 x⁠. That is true but leads nowhere here; sec⁡2x dx\sec^2 x\,dx is wanted as dtdt⁠.
  2. Using a=4a = 4 instead of a=2a = 2⁠. The formula is written with a2a^2 under the root.
  3. Forgetting to return to xx⁠. The answer must be in terms of tan⁡x\tan x⁠, not tt⁠.
What to take away
  1. sec⁡2x dx\sec^2 x\,dx next to a function of tan⁡x\tan x signals t=tan⁡xt = \tan x⁠.
  2. After a substitution, a trigonometric integral can become one of the algebraic forms of Section 7.4.
  3. The domain is set by sec⁡x\sec x and tan⁡x\tan x⁠: cos⁡x≠0\cos x \ne 0⁠.

Every fact used, and where it comes from

FactUsed inSource
tan⁡x\tan x⁠, sec⁡x\sec x defined where cos⁡x≠0\cos x \ne 0Step 1Trigonometric functions (Class XI, Chapter 3)
ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 xSteps 2, 5Standard formula (iv), Section 7.2
Substitution t=tan⁡xt = \tan xStep 2Section 7.3.1 (Lesson: substitution)
∫dxx2+a2=log⁡∣x+x2+a2∣+C\int\frac{dx}{\sqrt{x^2 + a^2}} = \log\left|x + \sqrt{x^2 + a^2}\right| + CStep 3Formula 7.4 (6), Section 7.4
Chain rule; F′=fF' = f checks the answerStep 5Theorem 4, Section 5.3.1; 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 →