Lesson 1 of 8 · 16 min

Integrating with trigonometric identities

Establish ∫sec⁡2(x) dx=tan⁡(x)+c\int \sec^2(x)\,dx = \tan(x) + c, then integrate sin⁡2\sin^2, cos⁡2\cos^2, tan⁡2\tan^2 and cot⁡2\cot^2 by rewriting each one with an identity first.

What you will be able to do

  • Show that ddxtan⁡(x)=sec⁡2(x)\frac{d}{dx}\tan(x) = \sec^2(x) and use ∫sec⁡2(ax+b) dx=1atan⁡(ax+b)+c\int \sec^2(ax + b)\,dx = \frac{1}{a}\tan(ax + b) + c.
  • Rewrite sin⁡2(ax)\sin^2(ax) and cos⁡2(ax)\cos^2(ax) with the double-angle identity and integrate them.
  • Rewrite tan⁡2(x)\tan^2(x) and cot⁡2(x)\cot^2(x) with the Pythagorean identities and integrate them.
  • Evaluate definite integrals of these functions exactly.

You can integrate sin⁡(x)\sin(x) and cos⁡(2x)\cos(2x). But what about sin⁡2(x)\sin^2(x)? The power rule does not apply, because the base is sin⁡(x)\sin(x), not xx. And there is no "reverse chain rule" to try either, because there is no cos⁡(x)\cos(x) beside it.

The way in is to stop treating sin⁡2(x)\sin^2(x) as a square. An identity can rewrite it as something with no powers at all, and that you can integrate.

First, one new standard integral. You know ddxtan⁡(x)=sec⁡2(x)\frac{d}{dx}\tan(x) = \sec^2(x) from Methods, where it was written 1cos⁡2(x)\frac{1}{\cos^2(x)}. Read it backwards:

∫sec⁡2(x) dx=tan⁡(x)+c\int \sec^2(x)\,dx = \tan(x) + c
Establishing ∫sec⁡2(x) dx=tan⁡(x)+c\int \sec^2(x)\,dx = \tan(x) + c

Write tan⁡(x)=sin⁡(x)cos⁡(x)\tan(x) = \frac{\sin(x)}{\cos(x)} and use the quotient rule:

ddxtan⁡(x)=cos⁡(x)cos⁡(x)−sin⁡(x)(−sin⁡(x))cos⁡2(x)=cos⁡2(x)+sin⁡2(x)cos⁡2(x)=1cos⁡2(x)=sec⁡2(x)\frac{d}{dx}\tan(x) = \frac{\cos(x)\cos(x) - \sin(x)(-\sin(x))}{\cos^2(x)} = \frac{\cos^2(x) + \sin^2(x)}{\cos^2(x)} = \frac{1}{\cos^2(x)} = \sec^2(x)

Every derivative is an integral read backwards, so ∫sec⁡2(x) dx=tan⁡(x)+c\int \sec^2(x)\,dx = \tan(x) + c, on any interval where cos⁡(x)≠0\cos(x) \neq 0.

The same method gives ddxcot⁡(x)=−sin⁡2(x)−cos⁡2(x)sin⁡2(x)=−cosec⁡2(x)\frac{d}{dx}\cot(x) = \frac{-\sin^2(x) - \cos^2(x)}{\sin^2(x)} = -\operatorname{cosec}^2(x), so ∫cosec⁡2(x) dx=−cot⁡(x)+c\int \operatorname{cosec}^2(x)\,dx = -\cot(x) + c.

Key idea

Two new standard integrals

∫sec⁡2(ax+b) dx=1atan⁡(ax+b)+c∫cosec⁡2(ax+b) dx=−1acot⁡(ax+b)+c\int \sec^2(ax + b)\,dx = \frac{1}{a}\tan(ax + b) + c \qquad \int \operatorname{cosec}^2(ax + b)\,dx = -\frac{1}{a}\cot(ax + b) + c

Divide by aa, as for every function of ax+bax + b. The first is on the formula book; the second is not.

Determine ∫6sec⁡2(3x) dx\int 6\sec^2(3x)\,dx.

Reads asYour answer shows here as maths.

Now the squares. Look at the graph of y=sin⁡2(x)y = \sin^2(x) below. It never goes negative, it repeats every π\pi, and it rocks evenly about the line y=12y = \frac{1}{2}. That is exactly the shape of 12−12cos⁡(2x)\frac{1}{2} - \frac{1}{2}\cos(2x): a cosine wave with period π\pi, flipped, shrunk by half and lifted by 12\frac{1}{2}.

Interactive

The area under sin²(x)

Increase nn. The area under one arch of y=sin⁡2(x)y = \sin^2(x) settles on π2\frac{\pi}{2}: half of the π×1\pi \times 1 rectangle, because the curve rocks evenly about y=12y = \frac{1}{2}.

Key idea

Rewrite, then integrate

From cos⁡(2x)=1−2sin⁡2(x)=2cos⁡2(x)−1\cos(2x) = 1 - 2\sin^2(x) = 2\cos^2(x) - 1:

sin⁡2(x)=12(1−cos⁡(2x))cos⁡2(x)=12(1+cos⁡(2x))\sin^2(x) = \tfrac{1}{2}\big(1 - \cos(2x)\big) \qquad \cos^2(x) = \tfrac{1}{2}\big(1 + \cos(2x)\big)

so

∫sin⁡2(x) dx=x2−sin⁡(2x)4+c∫cos⁡2(x) dx=x2+sin⁡(2x)4+c\int \sin^2(x)\,dx = \frac{x}{2} - \frac{\sin(2x)}{4} + c \qquad \int \cos^2(x)\,dx = \frac{x}{2} + \frac{\sin(2x)}{4} + c

From 1+tan⁡2(x)=sec⁡2(x)1 + \tan^2(x) = \sec^2(x) and cot⁡2(x)+1=cosec⁡2(x)\cot^2(x) + 1 = \operatorname{cosec}^2(x):

∫tan⁡2(x) dx=∫(sec⁡2(x)−1) dx=tan⁡(x)−x+c\int \tan^2(x)\,dx = \int \big(\sec^2(x) - 1\big)\,dx = \tan(x) - x + c ∫cot⁡2(x) dx=∫(cosec⁡2(x)−1) dx=−cot⁡(x)−x+c\int \cot^2(x)\,dx = \int \big(\operatorname{cosec}^2(x) - 1\big)\,dx = -\cot(x) - x + c

Worked example

Integrate sin⁡2(3x)\sin^2(3x)

  • Simple familiar
  • Technology free

Determine ∫sin⁡2(3x) dx\int \sin^2(3x)\,dx.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Replace sin⁡2(ax)\sin^2(ax) with 12(1−cos⁡(2ax))\frac{1}{2}(1 - \cos(2ax)).

  2. Integrate: x2−sin⁡(2ax)4a\frac{x}{2} - \frac{\sin(2ax)}{4a}.

  3. Add + c+\,c and check by differentiating.

Watch out for

  • Writing cos⁡(3x)\cos(3x) instead of cos⁡(6x)\cos(6x) in the identity: the angle doubles.

  • Dividing by 33 instead of 66 when integrating cos⁡(6x)\cos(6x).

Determine ∫cos⁡2(x) dx\int \cos^2(x)\,dx.

Reads asYour answer shows here as maths.

Common mistake

The double halving

In ∫sin⁡2(3x) dx\int \sin^2(3x)\,dx there are two separate halvings to keep track of. The identity gives 12(1−cos⁡(6x))\frac{1}{2}(1 - \cos(6x)); note the angle doubles to 6x6x. Then integrating cos⁡(6x)\cos(6x) divides by 66. The result is x2−sin⁡(6x)12+c\frac{x}{2} - \frac{\sin(6x)}{12} + c. Write the identity line in full and the factors take care of themselves.

Which of these is ∫tan⁡2(x) dx\int \tan^2(x)\,dx?

Choose one answer

Definite integrals work the same way: rewrite, integrate, then substitute the limits. At limits that are multiples of π4\frac{\pi}{4} or π6\frac{\pi}{6}, the sin⁡(2x)\sin(2x) terms give exact values.

Worked example

Evaluate ∫0π/4cos⁡2(x) dx\int_0^{\pi/4} \cos^2(x)\,dx exactly

  • Complex familiar
  • Technology free

Evaluate ∫0π4cos⁡2(x) dx\int_0^{\frac{\pi}{4}} \cos^2(x)\,dx, giving an exact answer.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Rewrite with the identity.

  2. Integrate, then substitute both limits.

  3. Use exact values; check the size against a rough bound.

Watch out for

  • Evaluating sin⁡(π4)\sin\left(\frac{\pi}{4}\right) instead of sin⁡(π2)\sin\left(\frac{\pi}{2}\right).

Exam tip

What the formula book gives you

The formula book lists the double-angle and Pythagorean identities and ∫sec⁡2(x) dx\int \sec^2(x)\,dx. It does not give sin⁡2(x)=12(1−cos⁡(2x))\sin^2(x) = \frac{1}{2}(1 - \cos(2x)) in that form. Write the rearrangement as your first line of working: it earns the method mark, and it is where most errors start.

Summary

  • ∫sec⁡2(ax+b) dx=1atan⁡(ax+b)+c\int \sec^2(ax + b)\,dx = \frac{1}{a}\tan(ax + b) + c, because ddxtan⁡(x)=sec⁡2(x)\frac{d}{dx}\tan(x) = \sec^2(x).

  • Squared trig functions are rewritten before integrating: never use the power rule on them.

  • sin⁡2(x)=12(1−cos⁡(2x))\sin^2(x) = \frac{1}{2}(1 - \cos(2x)) and cos⁡2(x)=12(1+cos⁡(2x))\cos^2(x) = \frac{1}{2}(1 + \cos(2x)); the angle doubles.

  • tan⁡2(x)=sec⁡2(x)−1\tan^2(x) = \sec^2(x) - 1 and cot⁡2(x)=cosec⁡2(x)−1\cot^2(x) = \operatorname{cosec}^2(x) - 1.

  • Check each answer by differentiating it.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 1 of 80% read

Save your progress with a free account