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

Exercise 7.3 · Q18: ∫cos⁡2x+2sin⁡2xcos⁡2x dx\int\frac{\cos 2x+2\sin^2x}{\cos^2x}\,dx

Exercise 7.3Integration using trigonometric identities · Section 7.3.2
The question

Find the integral of the function

cos⁡2x+2sin⁡2xcos⁡2x.\frac{\cos 2x + 2\sin^2 x}{\cos^2 x}.
Exam answer

Let I=∫cos⁡2x+2sin⁡2xcos⁡2x dxI = \displaystyle\int\frac{\cos 2x + 2\sin^2 x}{\cos^2 x}\,dx⁠.

Using cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x⁠,

I=∫1−2sin⁡2x+2sin⁡2xcos⁡2x dx=∫1cos⁡2x dx=∫sec⁡2x dx\begin{aligned} I &= \int\frac{1 - 2\sin^2 x + 2\sin^2 x}{\cos^2 x}\,dx \\ &= \int\frac{1}{\cos^2 x}\,dx = \int\sec^2 x\,dx \end{aligned}

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

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

The one idea this problem is built on

One of the forms of the double-angle identity is cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x⁠. Then the numerator is 1−2sin⁡2x+2sin⁡2x=11 - 2\sin^2 x + 2\sin^2 x = 1⁠, the whole integrand collapses to 1cos⁡2x=sec⁡2x\frac{1}{\cos^2 x} = \sec^2 x⁠, and ∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + C⁠.

Given, to find, and the plan
Given
f(x)=cos⁡2x+2sin⁡2xcos⁡2xf(x) = \dfrac{\cos 2x + 2\sin^2 x}{\cos^2 x}⁠, defined wherever cos⁡x≠0\cos x \ne 0⁠.
To find
∫cos⁡2x+2sin⁡2xcos⁡2x dx\displaystyle\int \frac{\cos 2x + 2\sin^2 x}{\cos^2 x}\,dx⁠.
Plan
(1) Find the domain. (2) Simplify the numerator with cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x⁠. (3) Integrate sec⁡2x\sec^2 x⁠. (4) Differentiate back.

Basics you need

1The three forms of cos⁡2x\cos 2x

cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2 x - \sin^2 x⁠, which also equals 2cos⁡2x−12\cos^2 x - 1 and 1−2sin⁡2x1 - 2\sin^2 x⁠. Pick the form that matches the rest of the expression; here the numerator already has 2sin⁡2x2\sin^2 x⁠. Basics: trigonometric identities for integrals

2∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + C

Standard formula (iv), Section 7.2, because ddxtan⁡x=sec⁡2x\frac{d}{dx}\tan x = \sec^2 x⁠. Basics: integration undoes differentiation

Solution

  1. Where is the integrand defined?

    The denominator is cos⁡2x\cos^2 x⁠, so we need cos⁡x≠0\cos x \ne 0⁠:

    x≠π2+nπ,n an integer.x \ne \frac{\pi}{2} + n\pi, \quad n \text{ an integer}.
    The numerator is defined for every xx⁠; only the denominator can fail. The answer will be valid on each interval between consecutive such points, for example (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)⁠.
  2. Simplify the numerator

    Use cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x⁠:

    cos⁡2x+2sin⁡2x=(1−2sin⁡2x)+2sin⁡2x=1.\begin{aligned} \cos 2x + 2\sin^2 x &= (1 - 2\sin^2 x) + 2\sin^2 x \\ &= 1. \end{aligned}

    Therefore

    cos⁡2x+2sin⁡2xcos⁡2x=1cos⁡2x=sec⁡2x.\frac{\cos 2x + 2\sin^2 x}{\cos^2 x} = \frac{1}{\cos^2 x} = \sec^2 x.
    The numerator contains 2sin⁡2x2\sin^2 x⁠, so the form of cos⁡2x\cos 2x written with sin⁡2x\sin^2 x is the natural choice: the two sin⁡2x\sin^2 x terms cancel exactly. (Using cos⁡2x−sin⁡2x\cos^2 x - \sin^2 x also works: the numerator becomes cos⁡2x+sin⁡2x=1\cos^2 x + \sin^2 x = 1⁠.)
    cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 x (Class XI; compare Example 7(i), Section 7.3.2); sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}⁠. Basics: trigonometric identities for integrals
  3. Integrate

    ∫cos⁡2x+2sin⁡2xcos⁡2x dx=∫sec⁡2x dx=tan⁡x+C.\begin{aligned} \int \frac{\cos 2x + 2\sin^2 x}{\cos^2 x}\,dx &= \int\sec^2 x\,dx \\ &= \tan x + C. \end{aligned}
    After the simplification the integrand is a standard derivative: tan⁡x\tan x differentiates to sec⁡2x\sec^2 x⁠, so tan⁡x\tan x is an antiderivative, and adding CC gives them all.
    Standard formula (iv), Section 7.2. Lesson: integration as anti-differentiation
  4. Check: differentiate the answer back

    ddxtan⁡x=sec⁡2x=1cos⁡2x=(1−2sin⁡2x)+2sin⁡2xcos⁡2x=cos⁡2x+2sin⁡2xcos⁡2x.\begin{aligned} \frac{d}{dx}\tan x &= \sec^2 x = \frac{1}{\cos^2 x} \\ &= \frac{(1 - 2\sin^2 x) + 2\sin^2 x}{\cos^2 x} \\ &= \frac{\cos 2x + 2\sin^2 x}{\cos^2 x}. \end{aligned}

    The middle line writes 11 as (1−2sin⁡2x)+2sin⁡2x(1 - 2\sin^2 x) + 2\sin^2 x⁠, and the last uses 1−2sin⁡2x=cos⁡2x1 - 2\sin^2 x = \cos 2x⁠. This is the integrand, so the answer is correct on every interval where cos⁡x≠0\cos x \ne 0⁠.

    List in Section 7.2, (iv); Property (I), Section 7.2.1. Basics: integration undoes differentiation
Result ∫cos⁡2x+2sin⁡2xcos⁡2x dx=tan⁡x+C,\int\frac{\cos 2x + 2\sin^2 x}{\cos^2 x}\,dx = \tan x + C,

valid on any interval on which cos⁡x≠0\cos x \ne 0⁠. (Textbook answer: tan⁡x+C\tan x + C⁠.)

Check it with numbers

Let F(x)=tan⁡xF(x) = \tan x and look near x=0.4x = 0.4 with h=0.0001h = 0.0001⁠:

  • F(0.4001)≈0.422911099133F(0.4001) \approx 0.422911099133 and F(0.3999)≈0.422675348311F(0.3999) \approx 0.422675348311⁠.
  • Slope estimate: F(0.4001)−F(0.3999)0.0002≈1.178754\dfrac{F(0.4001) - F(0.3999)}{0.0002} \approx 1.178754⁠.
  • Integrand at x=0.4x = 0.4⁠: cos⁡0.8+2sin⁡20.4cos⁡20.4≈1.178754\dfrac{\cos 0.8 + 2\sin^2 0.4}{\cos^2 0.4} \approx 1.178754⁠, the same as sec⁡20.4\sec^2 0.4⁠.

They agree.

Common mistakes
  1. Splitting first and integrating cos⁡2xcos⁡2x\frac{\cos 2x}{\cos^2 x} on its own. It can be done, but it is far longer. Simplify the numerator before integrating.
  2. Using cos⁡2x=2sin⁡2x−1\cos 2x = 2\sin^2 x - 1⁠. The sign is wrong; the correct form is 1−2sin⁡2x1 - 2\sin^2 x⁠.
  3. Writing ∫sec⁡2x dx=sec⁡x\int\sec^2 x\,dx = \sec x or sec⁡3x3\frac{\sec^3 x}{3}⁠. The power rule does not apply to sec⁡2x\sec^2 x⁠; the standard formula gives tan⁡x\tan x⁠.
What to take away
  1. Always look for simplification before integrating: here the whole numerator is the constant 1.
  2. Choose the form of cos⁡2x\cos 2x that cancels with the terms already present.

Every fact used, and where it comes from

FactUsed inSource
cos⁡2x=1−2sin⁡2x\cos 2x = 1 - 2\sin^2 xSteps 2, 4Class XI trigonometry; compare Example 7(i), Section 7.3.2 (Basics: trigonometric identities)
sec⁡x=1cos⁡x\sec x = \frac{1}{\cos x}Step 2Definition
∫sec⁡2x dx=tan⁡x+C\int\sec^2 x\,dx = \tan x + CStep 3Standard formula (iv), Section 7.2
Differentiation undoes integrationStep 4Property (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 →