Trigonometric Integrals
Trigonometric Integrals
We shall now obtain the formulas for the indefinite integrals of the
tangent, cotangent,secant, and cosecant functions.
Z Z
sin u
tan u du = du
cos u
We let v = cos u, dv = − sin u du and we obtain
Z Z
dv
tan u du = −
v
= − ln |v| + C
= − ln | cos u| + C
= ln |(cos u)−1 | + C
= ln | sec u| + C
Z Z
cos u
cot u du = du
sin u
We let v = sin u, dv = cos u du and we obtain
Z Z
dv
cot u du =
v
= ln |v| + C
= ln | sin u| + C
Z Z
sec u(sec u + tan u)
sec u du = du
sec u + tan u
(sec2 u + sec u tan u) du
Z
=
sec u + tan u
21 Analytic Geometry and Calculus II
Solution:
Z
1
(1) tan x dx
3
We let u = 31 x, du = 1
3
dx or 3du = dx. We obtain
Z Z
1
tan x dx = 3 tan u du
3
= 3 ln | sec u| + C
1
= 3 ln | sec x| + C
3
Z
1 1
Therefore, tan x dx = 3 ln | sec x| + C.
3 3
Z
sec(ln x)
(2) dx
x
We let u = ln x, du = x1 dx. We obtain
Z Z
sec(ln x)
dx = sec u du
x
= ln | sec u + tan u| + C
= ln | sec(ln x) + tan(ln x)| + C
Z
sec(ln x)
Therefore, dx = ln | sec(ln x) + tan(ln x)| + C.
x
Z
cos 3x + 3
(3) dx
sin 3x
Z Z Z
cos 3x + 3 cos 3x dx dx
dx = +3
sin 3x sin 3x sin 3x
Z Z
= cot 3x dx + 3 csc 3x dx
Solution:
Z
(1) sin3 x dx
Z Z
3
sin x dx = sin2 x sin x dx
Z
= (1 − cos2 x) sin x dx
Z Z
= sin x dx − cos2 x sin x dx
We let u = cos x, du = − sin x dx. We obtain
Z Z Z
sin x dx = − du + u2 du
3
u3
= −u + +C
3
1
= − cos x + cos3 x + C
3
Z
(2) cos5 2x dx
Z Z
5
cos 2x dx = cos4 2x cos 2x dx
Z
= (cos2 2x)2 cos 2x dx
Z
= (1 − sin2 2x)2 cos 2x dx
Z
= (1 − 2 sin2 2x + sin4 2x) cos 2x dx
Z Z Z
= cos 2x dx − 2 sin 2x cos 2x dx + sin4 2x cos 2x dx
2
Solution:
Z
(1) cos2 x dx
Z Z Z Z
2 1 + cos 2x 1 1
cos x dx = dx = dx + cos 2x dx
2 2 2
1 1
= x + sin 2x + C
2 4
Z
1
(2) sin4 x dx
2
Z Z
4 1 1
sin x dx = (sin2 x)2 dx
2 2
Z 2
1 − cosx
= dx
2
Z Z Z
1 1 1
= dx − cos x dx + cos2 x dx
4 2 4
Z
1 1 1 1 + cos 2x
= x − sin x + C1 + dx
4 2 4 2
1 1 1 1
= x − sin x + x + sin 2x + C
4 2 8 16
Z
1 3 1 1
Therefore, sin4 x dx = x − sin x + sin 2x + C. J
2 8 2 16
Z
Case 3: sinn u cosm u du where at least one of the exponents is odd.
The solution to this case is similar to the method used in Case 1.
Solution:
Z
(1) sin2 x cos3 x dx
Z Z
2 3
sin x cos x dx = sin2 x cos2 x cos x dx
Z
= sin2 x(1 − sin2 x) cos x dx
Z Z
= sin x cos x dx − sin4 cos x dx
2
u3 u5
= − +C
3 5
Z
1 3 1
Therefore, sin2 x cos3 x dx = sin x − sin5 x + C.
3 5
Z
(2) ex sin3 (ex ) cos5 (ex ) dx
Let u = ex , du = ex dx.
Z Z
x 3 x 5 x
e sin (e ) cos (e ) dx = sin3 u cos5 u du
Z
= sin2 u cos5 u sin u du
Z
= (1 − cos2 u) cos5 u sin u du
Z Z
= cos u sin u du − cos7 sin u du
5
We let v = cos u, dv = − sin u du. Thus,
Z Z Z
x 3 x 5 x
e sin (e ) cos (e ) dx = cos u sin u du − cos7 sin u du
5
Z Z
= − v dv + v 7 dv
5
v6 v8
= − + +C
6 8
1 1
= − cos6 u + cos8 u + C
6 8
Z
1 1
Therefore, ex sin3 (ex ) cos5 (ex ) dx = − cos6 (ex ) + cos8 (ex ) + C. J
6 8
Z
Case 4: sinn u cosm u du where both exponents is even.
This integral is evaluated using a method similar to Case 2.
Z
Example Evaluate the following integrals: sin4 x cos2 x dx
Solution:
Z 2
1 − cos 2x
Z
4 2 1 + cos 2x
sin x cos x dx = dx
2 2
1 − cos 2x − cos2 2x + cos3 2x
Z
= dx
8
Z Z Z
1 1 1 1 + cos 4x
= dx − cos 2x dx − dx
8 8 8 2
Z
1
+ (1 − sin2 2x) cos 2x dx
8
1 1 1 1
= x− sin 2x − x − sin 4x
8 16 16 64
1 1 sin3 2x
+ sin 2x − · +C
16 16 3
Z
x 1 1
Therefore, sin4 x cos2 x dx = − sin 4x − sin3 2x + C. J
16 64 48
Integration of Powers of Tangent, Cotangent, Secant and Cosecant
integer.
The integrand is factored into
or
Solution:
Z
(1) cot3 2t dt
Z Z
3
cot 2t dt = cot 2t(cot2 2t) dt
Z
= cot 2t(csc2 2t − 1) dt
Z Z
2
= cot 2t csc 2t dt − cot 2t dt
We let u = cot 2t, du = − csc2 2t 2dt or − 21 = csc2 2t dt. We obtain
Z Z
3 1 1
cot 2t dt = − u du − ln | sin 2t| + C1
2 2
1 1
= − u2 − ln | sec 2t| + C
4 2
Z
1 1
Therefore, cot3 2t dt = − cot2 2t − ln | sin 2t| + C.
4 2
√
tan4 x
Z
(2) √ dx
x √
Letting u = x, du = 2√1 x dx or 2du = √dxx .
√
tan4 x
Z Z
√ dx = 2 tan2 u tan2 u du
x
Z
= 2 tan2 u(sec2 u − 1) du
Z Z
= 2 tan u sec du − 2 tan2 u du
2 2
even integer.
We write
n−2
secn u = secn−2 u sec2 u = (tan2 u + 1) 2 sec2 u
n−2
or, cscn u = cscn−2 u csc2 u = (cot2 u + 1) 2 csc2 u
Example Evaluate the following integrals:
Z
(1) sec4 x dx
Z
(2) x csc6 x2 dx
Solution:
Z
(1) sec4 x dx
Z Z
4
sec x dx = sec2 x sec2 x dx
Z
= (tan2 x + 1) sec2 x dx
Z Z
= (tan x sec x dx + sec2 x dx
2 2
Solution:
Z
(1) tan6 x sec4 x dx
Z Z
6 4
tan x sec x dx = tan6 x sec2 x sec2 x dx
Z
= tan6 x(tan2 x + 1) sec2 x dx
Z Z
= tan x sec x dx + tan6 x sec2 x dx
8 2
u9 u7
= + +C
9 7
Z
1 1
Therefore, tan6 x sec4 x dx = tan9 x + tan7 x + C.
9 7
Z
(2) cot3 3x csc6 3x dx
Z Z
3 6
cot 3x csc 3x dx = cot3 3x csc4 3x csc2 3x dx
Z
cot3 3x(cot2 3x + 1)2 csc2 3x dx
=
Z Z Z
3 2
= cot 3x csc 3x dx + cot 3x csc 3x dx + cot3 3x csc2 3x
5 2
dx
2 2 2
We let u = cot 3x, du = − csc 3x · 3dx or − 3 du = csc 3x dx. We obtain
Z Z Z Z
3 6 1 7 1 5 1
cot 3x csc 3x dx = − u du − u du − u3 du
3 3 3
1 u8 1 u6 1 u4
= − · − · − · +C
3 8 3 6 3 4
Z
1 1 1
Therefore, cot8 3x− cot6 3x− cot4 3x+
cot3 3x csc6 3x dx = −
24 18 12
C. J
Z Z
m n
Case 4: Integrals of the form tan sec u du or cotm u cscn u du, where
m is a positive odd integer.
The method is illustrated in the following example.
Z
Example 3.16 Evaluate tan7 x sec5 x dx
Solution:
Z Z
7 5
tan x sec x dx = tan6 x sec4 x tan x sec x dx
Z
= (sec2 x − 1)3 sec4 x tan x sec x dx
Z
= (sec6 x − 3 sec4 x + 3 sec2 x − 1) sec4 x tan x sec x dx
We let u = sec x, du = sec x tan x dx. We obtain
Z Z
7 5
tan x sec x dx = (u6 − 3u4 + 3u2 − 1)u4 du
Z
= (u10 − 3u8 + 3u6 − u4 ) du
u11 3u9 3u7 u5
= − + − +C
11 9 7 5
sec11 x sec9 x 3 sec7 x sec5 x
Z
Therefore, tan7 x sec5 x dx = − + − + C. J
11 3 7 5
Remark For integrals of the form tanm u secn u du or cotm u cscn u du where m
is a positive even integer and n is a positive odd integer, we have to integrate
them using integration by parts, a technique that will be introduced at a later
chapter.