Calculus3Integration Techniques2 of 5
Integration Techniques · 2

Trigonometric Integrals

1

Odd powers of sine and cosine

To integrate ∫sin⁡2x cos⁡x dx\int \sn{\sin^2x}\,\kd{\cos x}\,dx, we let u=sin⁡x\sn{u = \sin x}, and du=cos⁡x dx\kd{du = \cos x\,dx} is already sitting in the integral. But what if there's no cos⁡x\kd{\cos x} to go with dxdx? Let's start with an integral that has only sines.

Find ∫sin⁡3x dx\int \sn{\sin^3x}\,dx
∫sin⁡3x dx\displaystyle \int \sn{\sin^3x}\,dx =  ?\displaystyle = \;?
Text solution
Keep one sin⁡x\kd{\sin x} with dx\kd{dx}There's no cosine, so we split one sine off and pair it with dxdx. With u=cos⁡x\cn{u = \cos x}, that pair is −du\kd{-du}.
sin⁡3x dx\displaystyle \sn{\sin^3x}\,dx =sin⁡2x⋅sin⁡x dx\displaystyle = \sn{\sin^2x}\cdot\kd{\sin x\,dx}
sin⁡x dx=−du\displaystyle \kd{\sin x\,dx = -du}
Write the other sines in uuThe two sines left make sin⁡2x\sn{\sin^2x}, and sin⁡2x+cos⁡2x=1\sin^2x + \cos^2x = 1 turns that into 1−u2\sn{1 - u^2}, a polynomial.
∫sin⁡3x dx\displaystyle \int \sn{\sin^3x}\,dx =−∫(1−u2) du\displaystyle = \kd{-}\int \sn{(1-u^2)}\,\kd{du} =−cos⁡x+cos⁡3x3+C\displaystyle = -\cos x + \frac{\cos^3x}{3} + C

That worked because once one sine went with dxdx, the sines left over came as a square, and a square of sine turns into cosines. Now suppose both sine and cosine appear. Which one should give up a factor to go with dxdx?

Find ∫sin⁡2x cos⁡3x dx\int \sn{\sin^2x}\,\cn{\cos^3x}\,dx
∫sin⁡2x cos⁡3x dx\displaystyle \int \sn{\sin^2x}\,\cn{\cos^3x}\,dx =  ?\displaystyle = \;?
Text solution
Keep one cos⁡x\kd{\cos x} with dx\kd{dx}Cosine has the odd power, so taking one cos⁡x\kd{\cos x} out leaves cos⁡2x\cn{\cos^2x}, an even power. With u=sin⁡x\sn{u = \sin x}, that's 1−u2\cn{1 - u^2}.
u=sin⁡x\displaystyle \sn{u = \sin x}
du=cos⁡x dx\displaystyle \kd{du = \cos x\,dx}
cos⁡2x=1−u2\displaystyle \cn{\cos^2x = 1 - u^2}
∫u2 (1−u2) du\displaystyle \int \sn{u^2}\,\cn{(1-u^2)}\,\kd{du} =sin⁡3x3−sin⁡5x5+C\displaystyle = \frac{\sin^3x}{3} - \frac{\sin^5x}{5} + C
Why not keep a sin⁡x\kd{\sin x}?Sine has the even power, so taking one sin⁡x\kd{\sin x} out leaves a single sin⁡x\rt{\sin x}. With u=cos⁡x\cn{u = \cos x}, where sin⁡x\sin x is positive, that's 1−u2\rt{\sqrt{1 - u^2}}: a square root, not a polynomial.
−∫u3 1−u2 du\displaystyle \kd{-}\int \cn{u^3}\,\rt{\sqrt{1-u^2}}\,\kd{du}

So the factor we keep with dxdx comes from the odd power. Try both choices yourself, and see what's left over each time.

What remains after substitution?

If both powers are odd, like in ∫sin⁡3x cos⁡3x dx\int \sn{\sin^3x}\,\cn{\cos^3x}\,dx, either choice works: keep a sin⁡x\kd{\sin x} and set u=cos⁡x\cn{u = \cos x}, or keep a cos⁡x\kd{\cos x} and set u=sin⁡x\sn{u = \sin x}. But if both are even, like in ∫sin⁡2x cos⁡2x dx\int \sn{\sin^2x}\,\cn{\cos^2x}\,dx, either choice leaves one factor on its own, and with it a square root. That case needs a different idea, which is next.

∫sin⁡2x cos⁡2x dx\displaystyle \int \sn{\sin^2x}\,\cn{\cos^2x}\,dx
u=sin⁡x\sn{u = \sin x}cos⁡x dx=du\kd{\cos x\,dx = du}
sin⁡2x cos⁡x⋅cos⁡x dx\displaystyle \sn{\sin^2x}\,\rt{\cos x}\cdot\kd{\cos x\,dx} =u2 1−u2 du\displaystyle = \sn{u^2}\,\rt{\sqrt{1-u^2}}\,\kd{du}
u=cos⁡x\cn{u = \cos x}sin⁡x dx=−du\kd{\sin x\,dx = -du}
sin⁡x cos⁡2x⋅sin⁡x dx\displaystyle \rt{\sin x}\,\cn{\cos^2x}\cdot\kd{\sin x\,dx} =−u2 1−u2 du\displaystyle = \kd{-}\cn{u^2}\,\rt{\sqrt{1-u^2}}\,\kd{du}
2

Even powers of sine and cosine

With ∫sin⁡2x dx\int \sn{\sin^2x}\,dx, there's no odd power to take a factor from. Instead, we lower the power. Starting from the double-angle identity cos⁡2x=cos⁡2x−sin⁡2x\cos 2x = \cos^2x - \sin^2x, we can write each square as a first power of cos⁡2x\cos 2x:

cos⁡2x\displaystyle \cos 2x =cos⁡2x−sin⁡2x\displaystyle = \cos^2x - \sin^2x
cos⁡2x\displaystyle \cos 2x =1−2sin⁡2x\displaystyle = 1 - 2\sn{\sin^2x}
sin⁡2x=1−cos⁡2x2\displaystyle \sn{\sin^2x = \frac{1-\cos 2x}{2}}
cos⁡2x\displaystyle \cos 2x =2cos⁡2x−1\displaystyle = 2\cn{\cos^2x} - 1
cos⁡2x=1+cos⁡2x2\displaystyle \cn{\cos^2x = \frac{1+\cos 2x}{2}}

On a graph, sin⁡2x\sn{\sin^2x} is a wave centred on y=12y = \frac12, and it's exactly the curve 12−12cos⁡2x\frac12 - \frac12\cos 2x.

y=sin⁡2x\htmlClass{lc-violet}{y = \sin^2 x}
00
π2\dfrac{\pi}{2}
π\pi
12\dfrac{1}{2}
11
xx
yy
sin⁡2x=12−12cos⁡2x\displaystyle \sn{\sin^2x = \frac12 - \frac12\cos 2x}

Let's use that to find the integral, and the area under one hump.

Find ∫sin⁡2x dx\int \sn{\sin^2x}\,dx and the area under y=sin⁡2xy = \sn{\sin^2x} from x=0x = 0 to x=πx = \pi
y=sin⁡2x\htmlClass{lc-violet}{y = \sin^2 x}
00
π2\dfrac{\pi}{2}
π\pi
12\dfrac{1}{2}
11
xx
yy
Text solution
Lower the powerReplace sin⁡2x\sn{\sin^2x} with 1−cos⁡2x2\sn{\frac{1-\cos 2x}{2}}. Don't drop the 12\frac12 in ∫cos⁡2x dx=12sin⁡2x\int \cos 2x\,dx = \frac12\sin 2x.
∫sin⁡2x dx\displaystyle \int \sn{\sin^2x}\,dx =12∫(1−cos⁡2x) dx\displaystyle = \frac12\int \sn{(1-\cos 2x)}\,dx =x2−sin⁡2x4+C\displaystyle = \frac{x}{2} - \frac{\sin 2x}{4} + C
The area from 00 to π\piOver a full cycle, the cos⁡2x\cos 2x part adds up to 00, so only the 12\frac12 is left: 12⋅π\frac12\cdot\pi.
∫0πsin⁡2x dx\displaystyle \int_0^{\pi}\sn{\sin^2x}\,dx =[x2−sin⁡2x4]0π\displaystyle = \Big[\frac{x}{2} - \frac{\sin 2x}{4}\Big]_0^{\pi} =π2\displaystyle = \frac{\pi}{2}

Higher even powers work the same way, but we may need the identity more than once.

Find ∫cos⁡4x dx\int \cn{\cos^4x}\,dx
∫cos⁡4x dx\displaystyle \int \cn{\cos^4x}\,dx =  ?\displaystyle = \;?
Text solution
Square the identityWrite cos⁡4x\cn{\cos^4x} as (cos⁡2x)2\cn{(\cos^2x)^2} and lower the inside square.
cos⁡4x\displaystyle \cn{\cos^4x} =(1+cos⁡2x2)2\displaystyle = \cn{\Big(\frac{1+\cos 2x}{2}\Big)^2} =14(1+2cos⁡2x+cos⁡22x)\displaystyle = \frac14\big(1 + 2\cos 2x + \cn{\cos^2 2x}\big)
Lower again, and double the anglecos⁡22x\cn{\cos^2 2x} is a square again. The identity doubles the angle inside, so 2x2x becomes 4x4x.
cos⁡22x=1+cos⁡4x2\displaystyle \cn{\cos^2 2x = \frac{1+\cos 4x}{2}}
cos⁡4x\displaystyle \cn{\cos^4x} =38+12cos⁡2x+18cos⁡4x\displaystyle = \frac38 + \frac12\cos 2x + \frac18\cos 4x
Integrate term by term
∫cos⁡4x dx\displaystyle \int \cn{\cos^4x}\,dx =3x8+sin⁡2x4+sin⁡4x32+C\displaystyle = \frac{3x}{8} + \frac{\sin 2x}{4} + \frac{\sin 4x}{32} + C
3

Products of tangent and secant

Tangent and secant work the same way as sine and cosine. The one change is that each derivative has two factors, so we keep a pair with dxdx for du\kd{du}. Dividing sin⁡2x+cos⁡2x=1\sin^2x + \cos^2x = 1 by cos⁡2x\cos^2x gives the identity that turns the rest into uu.

(tan⁡x)′\displaystyle (\sn{\tan x})' =sec⁡2x\displaystyle = \kd{\sec^2x}
(sec⁡x)′\displaystyle (\cn{\sec x})' =sec⁡xtan⁡x\displaystyle = \kd{\sec x\tan x}
sin⁡2xcos⁡2x+cos⁡2xcos⁡2x\displaystyle \frac{\sin^2x}{\cos^2x} + \frac{\cos^2x}{\cos^2x} =1cos⁡2x\displaystyle = \frac{1}{\cos^2x}
tan⁡2x+1\displaystyle \tan^2x + 1 =sec⁡2x\displaystyle = \sec^2x

Side by side with sine and cosine, the pieces line up like this:

u=sin⁡x ⁣:    cos⁡x dx=du\displaystyle \sn{u = \sin x}\colon\;\; \kd{\cos x\,dx = du}
u=tan⁡x ⁣:    sec⁡2x dx=du\displaystyle \sn{u = \tan x}\colon\;\; \kd{\sec^2x\,dx = du}
u=cos⁡x ⁣:    sin⁡x dx=−du\displaystyle \cn{u = \cos x}\colon\;\; \kd{\sin x\,dx = -du}
u=sec⁡x ⁣:    sec⁡xtan⁡x dx=du\displaystyle \cn{u = \sec x}\colon\;\; \kd{\sec x\tan x\,dx = du}
sin⁡2x+cos⁡2x\displaystyle \sin^2x + \cos^2x =1\displaystyle = 1
tan⁡2x+1\displaystyle \tan^2x + 1 =sec⁡2x\displaystyle = \sec^2x

Which pair we keep depends on the powers. Let's see it on two integrals.

Evaluate ∫tan⁡2x sec⁡4x dx\int \sn{\tan^2x}\,\cn{\sec^4x}\,dx and ∫tan⁡3x sec⁡3x dx\int \sn{\tan^3x}\,\cn{\sec^3x}\,dx
∫tan⁡2x sec⁡4x dx\displaystyle \int \sn{\tan^2x}\,\cn{\sec^4x}\,dx =  ?\displaystyle = \;?
∫tan⁡3x sec⁡3x dx\displaystyle \int \sn{\tan^3x}\,\cn{\sec^3x}\,dx =  ?\displaystyle = \;?
Text solution
Secant power even: keep sec⁡2x dx\kd{\sec^2x\,dx}In ∫tan⁡2x sec⁡4x dx\int \sn{\tan^2x}\,\cn{\sec^4x}\,dx, the secants left after sec⁡2x dx\kd{\sec^2x\,dx} make sec⁡2x=1+u2\cn{\sec^2x = 1 + u^2}, with u=tan⁡x\sn{u = \tan x}.
∫u2 (1+u2) du\displaystyle \int \sn{u^2}\,\cn{(1+u^2)}\,\kd{du} =tan⁡3x3+tan⁡5x5+C\displaystyle = \frac{\tan^3x}{3} + \frac{\tan^5x}{5} + C
Tangent power odd: keep sec⁡xtan⁡x dx\kd{\sec x\tan x\,dx}In ∫tan⁡3x sec⁡3x dx\int \sn{\tan^3x}\,\cn{\sec^3x}\,dx, keeping sec⁡2x dx\kd{\sec^2x\,dx} would leave a lone sec⁡x\rt{\sec x}, which is 1+u2\rt{\sqrt{1+u^2}}. So we set u=sec⁡x\cn{u = \sec x}, and the tangents left make tan⁡2x=u2−1\sn{\tan^2x = u^2 - 1}.
∫(u2−1) u2 du\displaystyle \int \sn{(u^2-1)}\,\cn{u^2}\,\kd{du} =sec⁡5x5−sec⁡3x3+C\displaystyle = \frac{\sec^5x}{5} - \frac{\sec^3x}{3} + C

Cotangent and cosecant work the exact same way. Their derivatives just carry a minus sign, so du\kd{du} picks one up too.

(cot⁡x)′\displaystyle (\cot x)' =−csc⁡2x\displaystyle = -\csc^2x
(csc⁡x)′\displaystyle (\csc x)' =−csc⁡xcot⁡x\displaystyle = -\csc x\cot x
1+cot⁡2x\displaystyle 1 + \cot^2x =csc⁡2x\displaystyle = \csc^2x

Now try choosing the pair yourself.

Keep a pair with dx
4

Integrating tan⁡2x\tan^2x, tan⁡x\tan x, and sec⁡x\sec x

So far, every integral with tangents and secants had a sec⁡2x\kd{\sec^2x} or a sec⁡xtan⁡x\kd{\sec x\tan x} to keep with dxdx. These three don't, so each one needs its own idea.

Find ∫tan⁡2x dx\int \sn{\tan^2x}\,dx, ∫tan⁡x dx\int \sn{\tan x}\,dx, and ∫sec⁡x dx\int \cn{\sec x}\,dx
∫tan⁡2x dx\displaystyle \int \sn{\tan^2x}\,dx =  ?\displaystyle = \;?
∫tan⁡x dx\displaystyle \int \sn{\tan x}\,dx =  ?\displaystyle = \;?
∫sec⁡x dx\displaystyle \int \cn{\sec x}\,dx =  ?\displaystyle = \;?
Text solution
∫tan⁡2x dx\int \sn{\tan^2x}\,dx: use the identity
∫tan⁡2x dx\displaystyle \int \sn{\tan^2x}\,dx =∫(sec⁡2x−1) dx\displaystyle = \int \sn{(\sec^2x - 1)}\,dx =tan⁡x−x+C\displaystyle = \tan x - x + C
∫tan⁡x dx\int \sn{\tan x}\,dx: write it as sin⁡xcos⁡x\frac{\sin x}{\cos x}The sin⁡x dx\kd{\sin x\,dx} on top is −du\kd{-du} for u=cos⁡x\cn{u = \cos x}. Both forms of the answer are correct.
∫sin⁡xcos⁡x dx\displaystyle \int \frac{\kd{\sin x}}{\cn{\cos x}}\,\kd{dx} =−ln⁡∣cos⁡x∣+C\displaystyle = -\ln|\cos x| + C =ln⁡∣sec⁡x∣+C\displaystyle = \ln|\sec x| + C

The one to remember is ∫sec⁡x dx\int \cn{\sec x}\,dx. Its trick is that the derivative of sec⁡x+tan⁡x\sec x + \tan x is sec⁡x\sec x times sec⁡x+tan⁡x\sec x + \tan x itself:

(sec⁡x+tan⁡x)′=sec⁡xtan⁡x+sec⁡2x=sec⁡x (sec⁡x+tan⁡x)sec⁡x=sec⁡x (sec⁡x+tan⁡x)sec⁡x+tan⁡x=(sec⁡x+tan⁡x)′sec⁡x+tan⁡x∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle \begin{aligned}\kd{(\sec x + \tan x)'} &= \kd{\sec x\tan x + \sec^2x} = \kd{\sec x\,(\sec x + \tan x)}\\[4pt] \cn{\sec x} &= \frac{\kd{\sec x\,(\sec x + \tan x)}}{\sec x + \tan x} = \frac{\kd{(\sec x + \tan x)'}}{\sec x + \tan x}\\[4pt] \int \cn{\sec x}\,dx &= \ln|\sec x + \tan x| + C\end{aligned}
(sec⁡x+tan⁡x)′=sec⁡xtan⁡x+sec⁡2x=sec⁡x (sec⁡x+tan⁡x)sec⁡x=sec⁡x (sec⁡x+tan⁡x)sec⁡x+tan⁡x=(sec⁡x+tan⁡x)′sec⁡x+tan⁡x∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle \begin{aligned}&\kd{(\sec x + \tan x)'}\\[5pt] &\quad= \kd{\sec x\tan x + \sec^2x}\\[5pt] &\quad= \kd{\sec x\,(\sec x + \tan x)}\\[12pt] &\cn{\sec x} = \frac{\kd{\sec x\,(\sec x + \tan x)}}{\sec x + \tan x}\\[5pt] &\quad= \frac{\kd{(\sec x + \tan x)'}}{\sec x + \tan x}\\[12pt] &\int \cn{\sec x}\,dx\\[5pt] &\quad= \ln|\sec x + \tan x| + C\end{aligned}
5

Integrating sec⁡3x\sec^3x

Neither pair works for ∫sec⁡3x dx\bk{\int \sec^3x\,dx}. Keeping sec⁡2x dx\kd{\sec^2x\,dx} leaves a lone sec⁡x\rt{\sec x}, and there's no tangent to make sec⁡xtan⁡x dx\kd{\sec x\tan x\,dx}. So we write sec⁡3x\bk{\sec^3x} as sec⁡x⋅sec⁡2x\sec x\cdot\sec^2x and use integration by parts, with one piece we can integrate and one we can differentiate:

∫sec⁡2x dx\displaystyle \int \sec^2x\,dx =tan⁡x\displaystyle = \tan x
(sec⁡x)′\displaystyle (\sec x)' =sec⁡xtan⁡x\displaystyle = \sec x\tan x
Find ∫sec⁡3x dx\bk{\int \sec^3x\,dx}
∫sec⁡3x dx\displaystyle \bk{\int \sec^3x\,dx} =  ?\displaystyle = \;?
Text solution
Integrate sec⁡2x\sec^2x, differentiate sec⁡x\sec x
∫sec⁡3x dx\displaystyle \bk{\int \sec^3x\,dx} =sec⁡xtan⁡x−∫sec⁡x tan⁡2x dx\displaystyle = \sec x\tan x - \int \sec x\,\sn{\tan^2x}\,dx
The integral comes backUsing tan⁡2x=sec⁡2x−1\sn{\tan^2x = \sec^2x - 1} brings ∫sec⁡3x dx\bk{\int \sec^3x\,dx} back with a minus sign, as ∫exsin⁡x dx\int e^x\sin x\,dx did. Call it I\bk{I}.
I\displaystyle \bk{I} =sec⁡xtan⁡x−I+ln⁡∣sec⁡x+tan⁡x∣\displaystyle = \sec x\tan x - \bk{I} + \ln|\sec x + \tan x|
Solve for I\bk{I}Add I\bk{I} to both sides and divide by 22.
∫sec⁡3x dx\displaystyle \bk{\int \sec^3x\,dx} =12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle = \frac12\sec x\tan x + \frac12\ln|\sec x + \tan x| + C
6

Products with different angles

Last, a product of a sine and a cosine whose angles don't match, like ∫sin⁡3x cos⁡2x dx\int \sn{\sin 3x}\,\cn{\cos 2x}\,dx. If we try u=sin⁡3x\sn{u = \sin 3x}, we'd need cos⁡3x dx\kd{\cos 3x\,dx}, but the integral has cos⁡2x dx\cn{\cos 2x}\,dx. So we turn the product into a sum first, with the addition formulas for sine:

sin⁡(3x+2x)=sin⁡3x cos⁡2x+cos⁡3xsin⁡2xsin⁡(3x−2x)=sin⁡3x cos⁡2x−cos⁡3xsin⁡2x\displaystyle \begin{aligned}\sin(3x + 2x) &= \sn{\sin 3x}\,\cn{\cos 2x} + \cos 3x\sin 2x\\[5pt] \sin(3x - 2x) &= \sn{\sin 3x}\,\cn{\cos 2x} - \cos 3x\sin 2x\end{aligned}
sin⁡(3x+2x)=sin⁡3x cos⁡2x+cos⁡3xsin⁡2xsin⁡(3x−2x)=sin⁡3x cos⁡2x−cos⁡3xsin⁡2x\displaystyle \begin{aligned}&\sin(3x + 2x)\\[5pt] &\qquad = \sn{\sin 3x}\,\cn{\cos 2x} + \cos 3x\sin 2x\\[10pt] &\sin(3x - 2x)\\[5pt] &\qquad = \sn{\sin 3x}\,\cn{\cos 2x} - \cos 3x\sin 2x\end{aligned}
Evaluate ∫sin⁡3x cos⁡2x dx\int \sn{\sin 3x}\,\cn{\cos 2x}\,dx
∫sin⁡3x cos⁡2x dx\displaystyle \int \sn{\sin 3x}\,\cn{\cos 2x}\,dx =  ?\displaystyle = \;?
Text solution
Add the two formulasThe cos⁡3xsin⁡2x\cos 3x\sin 2x terms have opposite signs, so they cancel.
sin⁡5x+sin⁡x\displaystyle \sin 5x + \sin x =2 sin⁡3x cos⁡2x\displaystyle = 2\,\sn{\sin 3x}\,\cn{\cos 2x}
Integrate term by term
∫sin⁡3x cos⁡2x dx\displaystyle \int \sn{\sin 3x}\,\cn{\cos 2x}\,dx =12∫(sin⁡5x+sin⁡x) dx\displaystyle = \frac12\int (\sin 5x + \sin x)\,dx =−cos⁡5x10−cos⁡x2+C\displaystyle = -\frac{\cos 5x}{10} - \frac{\cos x}{2} + C

Two cosines or two sines work the same way, from the cosine addition formulas:

2cos⁡Acos⁡B=cos⁡(A−B)+cos⁡(A+B)2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)\displaystyle \begin{aligned}2\cos A\cos B &= \cos(A - B) + \cos(A + B)\\[5pt] 2\sin A\sin B &= \cos(A - B) - \cos(A + B)\end{aligned}
2cos⁡Acos⁡B=cos⁡(A−B)+cos⁡(A+B)2sin⁡Asin⁡B=cos⁡(A−B)−cos⁡(A+B)\displaystyle \begin{aligned}2\cos A\cos B &= \cos(A - B)\\[5pt] &\qquad + \cos(A + B)\\[5pt] 2\sin A\sin B &= \cos(A - B)\\[5pt] &\qquad - \cos(A + B)\end{aligned}

Summary

Odd powers of sine or cosine
∫sin⁡2x cos⁡3x dx\displaystyle \int \sn{\sin^2x}\,\cn{\cos^3x}\,dx =∫u2 (1−u2) du\displaystyle = \int \sn{u^2}\,\cn{(1-u^2)}\,\kd{du}
u=sin⁡x\displaystyle \sn{u = \sin x}
cos⁡x dx=du\displaystyle \kd{\cos x\,dx = du}
cos⁡2x=1−u2\displaystyle \cn{\cos^2x = 1 - u^2}

Save one factor from the odd power to go with dxdx as du\kd{du}. That leaves an even power behind, which we can rewrite in terms of the other trig function using sin⁡2x+cos⁡2x=1\sin^2x + \cos^2x = 1. If both powers are even, saving a factor leaves a square root, so lower the powers instead.

Lowering even powers
sin⁡2x=1−cos⁡2x2\displaystyle \sn{\sin^2x = \frac{1-\cos 2x}{2}}
cos⁡2x=1+cos⁡2x2\displaystyle \cn{\cos^2x = \frac{1+\cos 2x}{2}}
cos⁡22x=1+cos⁡4x2\displaystyle \cn{\cos^2 2x = \frac{1+\cos 4x}{2}}

When both powers of sine and cosine are even, use the double-angle identities to replace sin⁡2x\sn{\sin^2x} or cos⁡2x\cn{\cos^2x} with a first power of cos⁡2x\cos 2x. If another square appears, like cos⁡22x\cn{\cos^2 2x}, use the identity again and double the angle to 4x4x.

Products of tangent and secant
tan⁡2x+1\displaystyle \tan^2x + 1 =sec⁡2x\displaystyle = \sec^2x
u=tan⁡x ⁣:    sec⁡2x dx=duu=sec⁡x ⁣:    sec⁡xtan⁡x dx=du\displaystyle \begin{aligned}\sn{u = \tan x}\colon &\;\; \kd{\sec^2x\,dx = du}\\[5pt] \cn{u = \sec x}\colon &\;\; \kd{\sec x\tan x\,dx = du}\end{aligned}
u=tan⁡x ⁣:sec⁡2x dx=duu=sec⁡x ⁣:sec⁡xtan⁡x dx=du\displaystyle \begin{aligned}&\sn{u = \tan x}\colon\\[5pt] &\quad \kd{\sec^2x\,dx = du}\\[12pt] &\cn{u = \sec x}\colon\\[5pt] &\quad \kd{\sec x\tan x\,dx = du}\end{aligned}

If the power of secant is even, save sec⁡2x dx\kd{\sec^2x\,dx} for du\kd{du}, set u=tan⁡x\sn{u = \tan x}, and turn any remaining even power of secant into tangents using sec⁡2x=1+tan⁡2x\cn{\sec^2x = 1 + \tan^2x}. If the power of tangent is odd and you have at least one secant, save sec⁡xtan⁡x dx\kd{\sec x\tan x\,dx} for du\kd{du}, set u=sec⁡x\cn{u = \sec x}, and turn the remaining even power of tangent into secants using tan⁡2x=sec⁡2x−1\sn{\tan^2x = \sec^2x - 1}. The same pairs work for cotangent and cosecant, with a minus sign in each derivative.

Tangent and secant on their own
∫tan⁡x dx=ln⁡∣sec⁡x∣+C∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣+C∫sec⁡3x dx=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle \begin{aligned}\int \sn{\tan x}\,dx &= \ln|\sec x| + C\\[5pt] \int \cn{\sec x}\,dx &= \ln|\sec x + \tan x| + C\\[5pt] \bk{\int \sec^3x\,dx} &= \frac12\sec x\tan x + \frac12\ln|\sec x + \tan x| + C\end{aligned}
∫tan⁡x dx\displaystyle \int \sn{\tan x}\,dx =ln⁡∣sec⁡x∣+C\displaystyle = \ln|\sec x| + C
∫sec⁡x dx\displaystyle \int \cn{\sec x}\,dx =ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle = \ln|\sec x + \tan x| + C
∫sec⁡3x dx=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle \begin{aligned}&\bk{\int \sec^3x\,dx}\\[5pt] &\quad= \frac12\sec x\tan x\\[5pt] &\quad\quad + \frac12\ln|\sec x + \tan x|\\[5pt] &\quad\quad + C\end{aligned}

When an integral has no extra factor of sec⁡2x\kd{\sec^2x} or sec⁡xtan⁡x\kd{\sec x\tan x}, rewrite it. For tan⁡2x\sn{\tan^2x}, use tan⁡2x=sec⁡2x−1\sn{\tan^2x = \sec^2x - 1} to split the integral. For tan⁡x\sn{\tan x}, write it as sin⁡xcos⁡x\frac{\kd{\sin x}}{\cn{\cos x}} and let u=cos⁡x\cn{u = \cos x}. For sec⁡x\cn{\sec x}, multiply top and bottom by sec⁡x+tan⁡x\sec x + \tan x so the numerator is the derivative of the denominator. For sec⁡3x\bk{\sec^3x}, integrate by parts with u=sec⁡xu = \sec x and dv=sec⁡2x dxdv = \sec^2x\,dx. Using tan⁡2x=sec⁡2x−1\sn{\tan^2x = \sec^2x - 1} brings −∫sec⁡3x dx-\bk{\int \sec^3x\,dx} back on the right side, so add ∫sec⁡3x dx\bk{\int \sec^3x\,dx} to both sides and divide by 22.

Products with different angles
sin⁡3x cos⁡2x=12(sin⁡5x+sin⁡x)\displaystyle \begin{aligned}\sn{\sin 3x}\,\cn{\cos 2x} = \frac12(\sin 5x + \sin x)\end{aligned}
sin⁡3x cos⁡2x=12(sin⁡5x+sin⁡x)\displaystyle \begin{aligned}&\sn{\sin 3x}\,\cn{\cos 2x}\\[5pt] &\quad= \frac12(\sin 5x + \sin x)\end{aligned}

When the angles in a product don't match, our usual sine and cosine substitutions don't work directly. Add or subtract the angle addition formulas to turn the product into separate sine or cosine terms with one angle each.

7

Practice

Enter exact values, and include +C+ C for antiderivatives.

1
Evaluate ∫0π2cos⁡3x dx\displaystyle\int_0^{\frac{\pi}{2}} \cos^3x\,dx.

The power of sin⁡x\sin x is 00 and the power of cos⁡x\cos x is 33. Which power is odd?

If u=sin⁡xu = \sin x, what is uu when x=π2x = \frac{\pi}{2}?

Choose the substitutionThe power of cos⁡x\cn{\cos x} is odd, so save one factor of cos⁡x\kd{\cos x} for du\kd{du} and turn the remaining cos⁡2x\cn{\cos^2x} into 1−sin⁡2x\cn{1 - \sin^2x}.
u=sin⁡x\displaystyle \sn{u = \sin x}
du=cos⁡x dx\displaystyle \kd{du = \cos x\,dx}
cos⁡2x=1−u2\displaystyle \cn{\cos^2x = 1 - u^2}
Change the boundsConvert the xx-bounds to uu-bounds using u=sin⁡x\sn{u = \sin x}.
x\displaystyle x =0→u\displaystyle = 0 \to u =sin⁡0\displaystyle = \sin 0 =0\displaystyle = 0
x\displaystyle x =π2→u\displaystyle = \frac{\pi}{2} \to u =sin⁡π2\displaystyle = \sin\frac{\pi}{2} =1\displaystyle = 1
IntegrateSubstitute uu and integrate from 00 to 11.
∫0π2cos⁡2x⋅cos⁡x dx\displaystyle \int_0^{\frac{\pi}{2}}\cn{\cos^2x}\cdot\kd{\cos x\,dx} =∫01(1−u2) du\displaystyle = \int_0^1 \cn{(1-u^2)}\,\kd{du} =[u−u33]01\displaystyle = \Big[u - \frac{u^3}{3}\Big]_0^1 =23\displaystyle = \frac23
2
Evaluate ∫sin⁡3xcos⁡3x dx\displaystyle\int \sin^3x\cos^3x\,dx.

The powers of sin⁡x\sin x and cos⁡x\cos x are both odd, so which single factor do you want to save for dudu?

Save one factor of cos⁡x\kd{\cos x}Since both powers are odd, we can save cos⁡x dx\kd{\cos x\,dx} for du\kd{du} and write the remaining cos⁡2x\cn{\cos^2x} in terms of sine.
u=sin⁡x\displaystyle \sn{u = \sin x}
du=cos⁡x dx\displaystyle \kd{du = \cos x\,dx}
cos⁡2x=1−u2\displaystyle \cn{\cos^2x = 1 - u^2}
Integrate with u=sin⁡x\sn{u = \sin x}Substitute u=sin⁡x\sn{u = \sin x}, integrate, and put xx back.
∫sin⁡3x cos⁡2x⋅cos⁡x dx\displaystyle \int \sn{\sin^3x}\,\cn{\cos^2x}\cdot\kd{\cos x\,dx} =∫u3 (1−u2) du\displaystyle = \int \sn{u^3}\,\cn{(1-u^2)}\,\kd{du} =sin⁡4x4−sin⁡6x6+C\displaystyle = \frac{\sin^4x}{4} - \frac{\sin^6x}{6} + C
Another wayIf you save sin⁡x dx\kd{\sin x\,dx} instead, set u=cos⁡x\cn{u = \cos x} and use sin⁡x dx=−du\kd{\sin x\,dx = -du}.
u=cos⁡x\displaystyle \cn{u = \cos x}
sin⁡x dx=−du\displaystyle \kd{\sin x\,dx = -du}
∫sin⁡2x cos⁡3x⋅sin⁡x dx\displaystyle \int \sn{\sin^2x}\,\cn{\cos^3x}\cdot\kd{\sin x\,dx} =−∫(1−u2) u3 du\displaystyle = \kd{-}\int \sn{(1-u^2)}\,\cn{u^3}\,\kd{du} =−cos⁡4x4+cos⁡6x6+C\displaystyle = -\frac{\cos^4x}{4} + \frac{\cos^6x}{6} + C
Compare the two answersThe two antiderivatives look different, but using sin⁡2x=1−cos⁡2x\sin^2x = 1 - \cos^2x shows they only differ by the constant 112\frac{1}{12}, which is part of +C+ C.
sin⁡4x4−sin⁡6x6\displaystyle \frac{\sin^4x}{4} - \frac{\sin^6x}{6} =112−cos⁡4x4+cos⁡6x6\displaystyle = \frac{1}{12} - \frac{\cos^4x}{4} + \frac{\cos^6x}{6}
3
Evaluate ∫sin⁡2xcos⁡2x dx\displaystyle\int \sin^2x\cos^2x\,dx.

Both powers are even. How can you rewrite sin⁡xcos⁡x\sin x\cos x as a single sine term?

How do you lower the power of sin⁡22x\sin^2 2x?

If you got x8−sin⁡4x8+C\dfrac{x}{8} - \dfrac{\sin 4x}{8} + C Check the antiderivative of cos⁡4x\cos 4x. The integral of cos⁡4x\cos 4x is 14sin⁡4x\frac14\sin 4x, not sin⁡4x\sin 4x. Times 18\frac18, that makes the second term −sin⁡4x32-\frac{\sin 4x}{32}.

Use the double-angle identityBoth powers are even, so combine sin⁡xcos⁡x\sin x\cos x into 12sin⁡2x\frac12\sin 2x and square it.
sin⁡xcos⁡x\displaystyle \sin x\cos x =12sin⁡2x\displaystyle = \frac12\sin 2x
sin⁡2x cos⁡2x\displaystyle \sn{\sin^2x}\,\cn{\cos^2x} =14sin⁡22x\displaystyle = \frac14\sn{\sin^2 2x}
Lower the powerUse the half-angle identity on sin⁡22x\sn{\sin^2 2x}, doubling the angle from 2x2x to 4x4x.
sin⁡22x=1−cos⁡4x2\displaystyle \sn{\sin^2 2x = \frac{1-\cos 4x}{2}}
sin⁡2x cos⁡2x\displaystyle \sn{\sin^2x}\,\cn{\cos^2x} =1−cos⁡4x8\displaystyle = \frac{1-\cos 4x}{8}
IntegrateIntegrate each term, remembering to divide by 44 when integrating cos⁡4x\cos 4x.
∫cos⁡4x dx\displaystyle \int \cos 4x\,dx =14sin⁡4x\displaystyle = \frac14\sin 4x
∫1−cos⁡4x8 dx\displaystyle \int \frac{1-\cos 4x}{8}\,dx =x8−sin⁡4x32+C\displaystyle = \frac{x}{8} - \frac{\sin 4x}{32} + C
4
Evaluate ∫sec⁡4x dx\displaystyle\int \sec^4x\,dx.

The power of sec⁡x\sec x is even. Which factor can you save to go with dxdx?

How can you write the remaining sec⁡2x\sec^2x in terms of tan⁡x\tan x?

If you got tan⁡3x3+C\dfrac{\tan^3x}{3} + C Check the identity used for the remaining sec⁡2x\sec^2x. It equals 1+tan⁡2x1 + \tan^2x, not just tan⁡2x\tan^2x.

Save one factor of sec⁡2x\kd{\sec^2x}The power of sec⁡x\cn{\sec x} is even, so save sec⁡2x dx\kd{\sec^2x\,dx} for du\kd{du} and convert the remaining sec⁡2x\cn{\sec^2x} into 1+tan⁡2x\cn{1 + \tan^2x}.
sec⁡4x\displaystyle \cn{\sec^4x} =sec⁡2x⋅sec⁡2x\displaystyle = \cn{\sec^2x}\cdot\kd{\sec^2x} =(1+tan⁡2x) sec⁡2x\displaystyle = \cn{(1+\tan^2x)}\,\kd{\sec^2x}
Substitute and integrateLet u=tan⁡x\sn{u = \tan x}, integrate 1+u2\cn{1 + u^2}, and put tan⁡x\tan x back.
u=tan⁡x\displaystyle \sn{u = \tan x}
du=sec⁡2x dx\displaystyle \kd{du = \sec^2x\,dx}
∫(1+u2) du\displaystyle \int \cn{(1+u^2)}\,\kd{du} =tan⁡x+tan⁡3x3+C\displaystyle = \tan x + \frac{\tan^3x}{3} + C
5
Evaluate ∫tan⁡3x dx\displaystyle\int \tan^3x\,dx.

There is no secant factor. How can you rewrite tan⁡2x\tan^2x using secant?

What is the antiderivative of tan⁡x\tan x?

If you got 12tan⁡2x+ln⁡∣sec⁡x∣+C\dfrac12\tan^2x + \ln|\sec x| + C Check the sign in front of the integral of tan⁡x\tan x. The term is −∫tan⁡x dx-\int \tan x\,dx, so the minus sign stays in front of ln⁡∣sec⁡x∣\ln|\sec x|.

Split into two termsWrite tan⁡3x\sn{\tan^3x} as tan⁡x⋅tan⁡2x\sn{\tan x}\cdot\sn{\tan^2x} and use tan⁡2x=sec⁡2x−1\sn{\tan^2x = \sec^2x - 1} to split the integral into two parts.
tan⁡3x\displaystyle \sn{\tan^3x} =tan⁡x⋅tan⁡2x\displaystyle = \sn{\tan x}\cdot\sn{\tan^2x} =tan⁡x (sec⁡2x−1)\displaystyle = \sn{\tan x}\,\sn{(\sec^2x - 1)} =tan⁡xsec⁡2x−tan⁡x\displaystyle = \tan x\sec^2x - \tan x
Integrate the first partFor tan⁡x sec⁡2x\sn{\tan x}\,\kd{\sec^2x}, the derivative of tan⁡x\sn{\tan x} is sec⁡2x\kd{\sec^2x}, so let u=tan⁡x\sn{u = \tan x}.
u=tan⁡x\displaystyle \sn{u = \tan x}
du=sec⁡2x dx\displaystyle \kd{du = \sec^2x\,dx}
∫tan⁡x sec⁡2x dx\displaystyle \int \sn{\tan x}\,\kd{\sec^2x\,dx} =∫u du\displaystyle = \int \sn{u}\,\kd{du} =12tan⁡2x\displaystyle = \frac12\tan^2x
Integrate the second partSubtract the integral of tan⁡x\tan x, which is ln⁡∣sec⁡x∣\ln|\sec x|.
∫tan⁡x dx\displaystyle \int \tan x\,dx =ln⁡∣sec⁡x∣\displaystyle = \ln|\sec x|
∫tan⁡3x dx\displaystyle \int \sn{\tan^3x}\,dx =12tan⁡2x−ln⁡∣sec⁡x∣+C\displaystyle = \frac12\tan^2x - \ln|\sec x| + C
6
Evaluate ∫tan⁡2xsec⁡x dx\displaystyle\int \tan^2x\sec x\,dx.

The power of secant is odd and the power of tangent is even. Can you save sec⁡2x dx\sec^2x\,dx or sec⁡xtan⁡x dx\sec x\tan x\,dx?

How can you rewrite tan⁡2x\tan^2x in terms of secant?

If you got 12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣+C\dfrac12\sec x\tan x + \dfrac12\ln|\sec x + \tan x| + C Check the second term. Make sure to subtract ∫sec⁡x dx=ln⁡∣sec⁡x+tan⁡x∣\int \sec x\,dx = \ln|\sec x + \tan x|.

Rewrite in terms of secantReplace tan⁡2x\sn{\tan^2x} with sec⁡2x−1\sn{\sec^2x - 1} to split the integral into known secant integrals.
tan⁡2xsec⁡x\displaystyle \sn{\tan^2x}\sec x =(sec⁡2x−1)sec⁡x\displaystyle = \sn{(\sec^2x - 1)}\sec x =sec⁡3x−sec⁡x\displaystyle = \bk{\sec^3x} - \sec x
Recall the two integralsWe know the antiderivatives of both sec⁡3x\bk{\sec^3x} and sec⁡x\sec x.
∫sec⁡3x dx\displaystyle \bk{\int \sec^3x\,dx} =12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣\displaystyle = \frac12\sec x\tan x + \frac12\ln|\sec x + \tan x|
∫sec⁡x dx\displaystyle \int \sec x\,dx =ln⁡∣sec⁡x+tan⁡x∣\displaystyle = \ln|\sec x + \tan x|
Combine the log termsSubtract ln⁡∣sec⁡x+tan⁡x∣\ln|\sec x + \tan x| from 12ln⁡∣sec⁡x+tan⁡x∣\frac12\ln|\sec x + \tan x|.
∫tan⁡2xsec⁡x dx=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣−ln⁡∣sec⁡x+tan⁡x∣+C=12sec⁡xtan⁡x−12ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle \begin{aligned}\int \sn{\tan^2x}\sec x\,dx &= \frac12\sec x\tan x + \frac12\ln|\sec x + \tan x| - \ln|\sec x + \tan x| + C\\[5pt] &= \frac12\sec x\tan x - \frac12\ln|\sec x + \tan x| + C\end{aligned}
∫tan⁡2xsec⁡x dx=12sec⁡xtan⁡x+12ln⁡∣sec⁡x+tan⁡x∣−ln⁡∣sec⁡x+tan⁡x∣+C=12sec⁡xtan⁡x−12ln⁡∣sec⁡x+tan⁡x∣+C\displaystyle \begin{aligned}\int \sn{\tan^2x}\sec x\,dx &= \frac12\sec x\tan x\\[5pt] &\qquad + \frac12\ln|\sec x + \tan x|\\[5pt] &\qquad - \ln|\sec x + \tan x| + C\\[5pt] &= \frac12\sec x\tan x\\[5pt] &\qquad - \frac12\ln|\sec x + \tan x| + C\end{aligned}
7
Evaluate ∫sin⁡2xcos⁡4x dx\displaystyle\int \sin 2x\cos 4x\,dx.

The angles inside sine and cosine are different. What does adding sin⁡(2x+4x)\sin(2x + 4x) and sin⁡(2x−4x)\sin(2x - 4x) give?

Sine is an odd function, so what is sin⁡(−2x)\sin(-2x) in terms of sin⁡2x\sin 2x?

If you got −cos⁡6x12−cos⁡2x4+C-\dfrac{\cos 6x}{12} - \dfrac{\cos 2x}{4} + C Check the sign of sin⁡(−2x)\sin(-2x). Because sine is odd, sin⁡(−2x)=−sin⁡2x\sin(-2x) = -\sin 2x.

Use the product-to-sum identityThe two angles are different, so use the product-to-sum identity with A=2xA = 2x and B=4xB = 4x.
sin⁡(2x+4x)+sin⁡(2x−4x)\displaystyle \sin(2x + 4x) + \sin(2x - 4x) =2 sin⁡2x cos⁡4x\displaystyle = 2\,\sn{\sin 2x}\,\cn{\cos 4x}
Simplify the negative angleSince sin⁡(−2x)=−sin⁡2x\sin(-2x) = -\sin 2x, the sum becomes sin⁡6x−sin⁡2x\sin 6x - \sin 2x.
sin⁡(−2x)\displaystyle \sin(-2x) =−sin⁡2x\displaystyle = -\sin 2x
2 sin⁡2x cos⁡4x\displaystyle 2\,\sn{\sin 2x}\,\cn{\cos 4x} =sin⁡6x−sin⁡2x\displaystyle = \sin 6x - \sin 2x
IntegrateIntegrate each sine term, dividing by 66 and 22.
12∫(sin⁡6x−sin⁡2x) dx\displaystyle \frac12\int (\sin 6x - \sin 2x)\,dx =12(−cos⁡6x6+cos⁡2x2)+C\displaystyle = \frac12\Big(-\frac{\cos 6x}{6} + \frac{\cos 2x}{2}\Big) + C =−cos⁡6x12+cos⁡2x4+C\displaystyle = -\frac{\cos 6x}{12} + \frac{\cos 2x}{4} + C
8
The region under y=sin⁡2xy = \sin^2x from x=0x = 0 to x=πx = \pi is rotated about the xx-axis. Find the volume of the solid. (Challenge)

Slicing perpendicular to the xx-axis gives circular disks. What is the radius of the disk at xx?

Write sin⁡4x\sin^4x as (sin⁡2x)2(\sin^2x)^2. What do you get when you lower the power in sin⁡2x\sin^2x, and then lower the power in cos⁡22x\cos^2 2x?

Set up the volume integralA thin disk at xx has radius r=sin⁡2x\sn{r = \sin^2x}, so its area is πr2=πsin⁡4x\pi r^2 = \pi\sn{\sin^4x}.
r=sin⁡2x\displaystyle \sn{r = \sin^2x}
V\displaystyle V =π∫0π(sin⁡2x)2 dx\displaystyle = \pi\int_0^{\pi}\sn{(\sin^2x)^2}\,dx =π∫0πsin⁡4x dx\displaystyle = \pi\int_0^{\pi}\sn{\sin^4x}\,dx
Lower the power of sineWrite sin⁡4x\sn{\sin^4x} as (sin⁡2x)2\sn{(\sin^2x)^2}, replace sin⁡2x\sn{\sin^2x} with 1−cos⁡2x2\sn{\frac{1-\cos 2x}{2}}, and expand the square.
sin⁡4x\displaystyle \sn{\sin^4x} =(1−cos⁡2x2)2\displaystyle = \sn{\Big(\frac{1-\cos 2x}{2}\Big)^2} =14(1−2cos⁡2x+cos⁡22x)\displaystyle = \frac14\big(1 - 2\cos 2x + \cn{\cos^2 2x}\big)
Lower the remaining squared cosineReplace cos⁡22x\cn{\cos^2 2x} with 1+cos⁡4x2\cn{\frac{1+\cos 4x}{2}} and combine the constant terms.
cos⁡22x=1+cos⁡4x2\displaystyle \cn{\cos^2 2x = \frac{1+\cos 4x}{2}}
sin⁡4x\displaystyle \sn{\sin^4x} =38−12cos⁡2x+18cos⁡4x\displaystyle = \frac38 - \frac12\cos 2x + \frac18\cos 4x
Evaluate the definite integralSince sin⁡2x\sin 2x and sin⁡4x\sin 4x are zero at both 00 and π\pi, only the constant term contributes to the volume.
sin⁡2π\displaystyle \sin 2\pi =sin⁡4π\displaystyle = \sin 4\pi =sin⁡0\displaystyle = \sin 0 =0\displaystyle = 0
V\displaystyle V =π[3x8−sin⁡2x4+sin⁡4x32]0π\displaystyle = \pi\Big[\frac{3x}{8} - \frac{\sin 2x}{4} + \frac{\sin 4x}{32}\Big]_0^{\pi} =π⋅3π8\displaystyle = \pi\cdot\frac{3\pi}{8} =3π28\displaystyle = \frac{3\pi^2}{8}