Calculus: Indefinite Integration by Substitution and Trigonometric Functions 7.3 Integration by Substitution General Principle:
Some indefinite integrals, such as ∫ 1 ( 2 x + 1 ) 6 d x \int \frac{1}{(2x+1)^6} dx ∫ ( 2 x + 1 ) 6 1 d x and ∫ x 2 x − 1 d x \int x \sqrt{2x-1} dx ∫ x 2 x − 1 d x , cannot be evaluated directly using basic direct integration theorems.
In these instances, the method of integration by substitution (Theorem 7.4) is used.
Theorem 7.4 (Integration by Substitution):
Proof of Theorem 7.4:
Suppose F ( u ) F(u) F ( u ) is a primitive function of f ( u ) f(u) f ( u ) , where u = g ( x ) u = g(x) u = g ( x ) .
This implies d d u [ F ( u ) ] = f ( u ) \frac{d}{du} [F(u)] = f(u) d u d [ F ( u )] = f ( u ) (Equation 1).
And ∫ f ( u ) d u = F ( u ) + C \int f(u) du = F(u) + C ∫ f ( u ) d u = F ( u ) + C (Equation 2).
By the chain rule, we have:
d d x F ( u ) = d d u F ( u ) ⋅ d u d x \frac{d}{dx} F(u) = \frac{d}{du} F(u) \cdot \frac{du}{dx} d x d F ( u ) = d u d F ( u ) ⋅ d x d u
d d x F ( u ) = f ( u ) ⋅ d u d x \frac{d}{dx} F(u) = f(u) \cdot \frac{du}{dx} d x d F ( u ) = f ( u ) ⋅ d x d u (By Equation 1)
d d x F ( u ) = f ( g ( x ) ) g ′ ( x ) \frac{d}{dx} F(u) = f(g(x)) g'(x) d x d F ( u ) = f ( g ( x )) g ′ ( x )
By the definition of the indefinite integral:
Example: Finding ∫ ( 3 x + 2 ) 7 d x \int (3x+2)^7 dx ∫ ( 3 x + 2 ) 7 d x via Theorem 7.4:
Let u = g ( x ) = 3 x + 2 u = g(x) = 3x+2 u = g ( x ) = 3 x + 2 and f ( x ) = x 7 f(x) = x^7 f ( x ) = x 7 .
Then f ( g ( x ) ) = ( 3 x + 2 ) 7 f(g(x)) = (3x+2)^7 f ( g ( x )) = ( 3 x + 2 ) 7 and g ′ ( x ) = 3 g'(x) = 3 g ′ ( x ) = 3 .
∫ ( 3 x + 2 ) 7 d x = ∫ 1 3 ( 3 x + 2 ) 7 ⋅ 3 d x \int (3x+2)^7 dx = \int \frac{1}{3} (3x+2)^7 \cdot 3 dx ∫ ( 3 x + 2 ) 7 d x = ∫ 3 1 ( 3 x + 2 ) 7 ⋅ 3 d x
= 1 3 ∫ u 7 d u = \frac{1}{3} \int u^7 du = 3 1 ∫ u 7 d u
= 1 3 ⋅ u 8 8 + C = \frac{1}{3} \cdot \frac{u^8}{8} + C = 3 1 ⋅ 8 u 8 + C
= 1 24 ( 3 x + 2 ) 8 + C = \frac{1}{24} (3x+2)^8 + C = 24 1 ( 3 x + 2 ) 8 + C
Standard Steps for Substitution:
Step 1: Choose a suitable substitution u = g ( x ) u = g(x) u = g ( x ) . Note that d u = g ′ ( x ) d x du = g'(x) dx d u = g ′ ( x ) d x . Rewrite d x dx d x in terms of d u du d u .
Step 2: Rewrite the entire integral in terms of x x x as an integral in terms of u u u .
Step 3: Integrate with respect to u u u .
Step 4: Substitute back to write the result in terms of the original variable x x x .
Practical Examples of Integration by Substitution Advanced Substitution Techniques 7.4 Integration of Trigonometric Functions Fundamental Formulas (Theorem 7.5):
∫ cos x d x = sin x + C \int \cos x \, dx = \sin x + C ∫ cos x d x = sin x + C
∫ sin x d x = − cos x + C \int \sin x \, dx = -\cos x + C ∫ sin x d x = − cos x + C
∫ sec 2 x d x = tan x + C \int \sec^2 x \, dx = \tan x + C ∫ sec 2 x d x = tan x + C
Essential Trigonometric Relations:
(i) sec A = 1 cos A \sec A = \frac{1}{\cos A} sec A = c o s A 1
(ii) tan A = sin A cos A \tan A = \frac{\sin A}{\cos A} tan A = c o s A s i n A
(iii) sin 2 A + cos 2 A = 1 \sin^2 A + \cos^2 A = 1 sin 2 A + cos 2 A = 1
(iv) 1 + tan 2 A = sec 2 A 1 + \tan^2 A = \sec^2 A 1 + tan 2 A = sec 2 A
Double Angle Formulas:
(i) sin 2 A = 2 sin A cos A \sin 2A = 2 \sin A \cos A sin 2 A = 2 sin A cos A
(ii) cos 2 A = 2 cos 2 A − 1 ⟹ cos 2 A = 1 2 ( 1 + cos 2 A ) \cos 2A = 2 \cos^2 A - 1 \implies \cos^2 A = \frac{1}{2}(1 + \cos 2A) cos 2 A = 2 cos 2 A − 1 ⟹ cos 2 A = 2 1 ( 1 + cos 2 A )
(iii) cos 2 A = 1 − 2 sin 2 A ⟹ sin 2 A = 1 2 ( 1 − cos 2 A ) \cos 2A = 1 - 2 \sin^2 A \implies \sin^2 A = \frac{1}{2}(1 - \cos 2A) cos 2 A = 1 − 2 sin 2 A ⟹ sin 2 A = 2 1 ( 1 − cos 2 A )
Trigonometric Integrals via Identities (Example 7.12 & 7.13):
Find ∫ tan 2 x d x \int \tan^2 x \, dx ∫ tan 2 x d x :
Find ∫ tan x sin 2 x d x \int \frac{\tan x}{\sin 2x} dx ∫ s i n 2 x t a n x d x :
Using sin 2 x = 2 sin x cos x \sin 2x = 2 \sin x \cos x sin 2 x = 2 sin x cos x and tan x = sin x cos x \tan x = \frac{\sin x}{\cos x} tan x = c o s x s i n x .
∫ sin x cos x 2 sin x cos x d x = ∫ 1 2 cos 2 x d x = 1 2 ∫ sec 2 x d x = 1 2 tan x + C \int \frac{\frac{\sin x}{\cos x}}{2 \sin x \cos x} dx = \int \frac{1}{2 \cos^2 x} dx = \frac{1}{2} \int \sec^2 x \, dx = \frac{1}{2} \tan x + C ∫ 2 s i n x c o s x c o s x s i n x d x = ∫ 2 c o s 2 x 1 d x = 2 1 ∫ sec 2 x d x = 2 1 tan x + C
Trigonometric Integration by Substitution Integration Using Product-to-Sum Formulas Formulas for products where m m m and n n n are constants:
(i) sin A cos B = 1 2 [ sin ( A + B ) + sin ( A − B ) ] \sin A \cos B = \frac{1}{2} [\sin(A + B) + \sin(A - B)] sin A cos B = 2 1 [ sin ( A + B ) + sin ( A − B )]
(ii) cos A sin B = 1 2 [ sin ( A + B ) − sin ( A − B ) ] \cos A \sin B = \frac{1}{2} [\sin(A + B) - \sin(A - B)] cos A sin B = 2 1 [ sin ( A + B ) − sin ( A − B )]
(iii) cos A cos B = 1 2 [ cos ( A + B ) + cos ( A − B ) ] \cos A \cos B = \frac{1}{2} [\cos(A + B) + \cos(A - B)] cos A cos B = 2 1 [ cos ( A + B ) + cos ( A − B )]
(iv) sin A sin B = − 1 2 [ cos ( A + B ) − cos ( A − B ) ] \sin A \sin B = -\frac{1}{2} [\cos(A + B) - \cos(A - B)] sin A sin B = − 2 1 [ cos ( A + B ) − cos ( A − B )]
Example 7.16: Find ∫ sin 2 x cos 4 x d x \int \sin 2x \cos 4x \, dx ∫ sin 2 x cos 4 x d x .
sin 2 x cos 4 x = 1 2 [ sin ( 2 x + 4 x ) + sin ( 2 x − 4 x ) ] = 1 2 [ sin 6 x − sin 2 x ] \sin 2x \cos 4x = \frac{1}{2} [\sin(2x + 4x) + \sin(2x - 4x)] = \frac{1}{2} [\sin 6x - \sin 2x] sin 2 x cos 4 x = 2 1 [ sin ( 2 x + 4 x ) + sin ( 2 x − 4 x )] = 2 1 [ sin 6 x − sin 2 x ] .
1 2 ∫ ( sin 6 x − sin 2 x ) d x = 1 2 [ − 1 6 cos 6 x + 1 2 cos 2 x ] + C = − 1 12 cos 6 x + 1 4 cos 2 x + C \frac{1}{2} \int (\sin 6x - \sin 2x) dx = \frac{1}{2} [-\frac{1}{6} \cos 6x + \frac{1}{2} \cos 2x] + C = -\frac{1}{12} \cos 6x + \frac{1}{4} \cos 2x + C 2 1 ∫ ( sin 6 x − sin 2 x ) d x = 2 1 [ − 6 1 cos 6 x + 2 1 cos 2 x ] + C = − 12 1 cos 6 x + 4 1 cos 2 x + C
Integrands in the form ∫ sin m x cos n x d x \int \sin^m x \cos^n x \, dx ∫ sin m x cos n x d x Rules for Substitution:
(i) When m m m (power of sin) is odd: Substitute u = cos x u = \cos x u = cos x (i.e., sin x d x = − d ( cos x ) \sin x \, dx = -d(\cos x) sin x d x = − d ( cos x ) ).
(ii) When n n n (power of cos) is odd: Substitute u = sin x u = \sin x u = sin x (i.e., cos x d x = d ( sin x ) \cos x \, dx = d(\sin x) cos x d x = d ( sin x ) ).
(iii) When both m m m and n n n are even: Use double angle formulas to reduce powers.
(iv) When both are odd: Either substitution works, but picking the one with the higher power for u u u is usually easier.
Example 7.17 (Case n n n is odd): ∫ sin 2 x cos 3 x d x \int \sin^2 x \cos^3 x \, dx ∫ sin 2 x cos 3 x d x
∫ sin 2 x cos 2 x d ( sin x ) = ∫ sin 2 x ( 1 − sin 2 x ) d ( sin x ) \int \sin^2 x \cos^2 x \, d(\sin x) = \int \sin^2 x (1 - \sin^2 x) d(\sin x) ∫ sin 2 x cos 2 x d ( sin x ) = ∫ sin 2 x ( 1 − sin 2 x ) d ( sin x )
= ∫ ( sin 2 x − sin 4 x ) d ( sin x ) = 1 3 sin 3 x − 1 5 sin 5 x + C = \int (\sin^2 x - \sin^4 x) d(\sin x) = \frac{1}{3} \sin^3 x - \frac{1}{5} \sin^5 x + C = ∫ ( sin 2 x − sin 4 x ) d ( sin x ) = 3 1 sin 3 x − 5 1 sin 5 x + C
Example 7.18 (Both odd): ∫ sin 3 2 θ cos 5 2 θ d θ \int \sin^3 2\theta \cos^5 2\theta \, d\theta ∫ sin 3 2 θ cos 5 2 θ d θ
Tip: Since the power of sin 2 θ \sin 2\theta sin 2 θ is smaller, use sin 2 θ d θ = − 1 2 d ( cos 2 θ ) \sin 2\theta \, d\theta = -\frac{1}{2} d(\cos 2\theta) sin 2 θ d θ = − 2 1 d ( cos 2 θ ) .
∫ sin 2 2 θ cos 5 2 θ sin 2 θ d θ = ∫ ( 1 − cos 2 2 θ ) cos 5 2 θ [ − 1 2 d ( cos 2 θ ) ] \int \sin^2 2\theta \cos^5 2\theta \sin 2\theta \, d\theta = \int (1 - \cos^2 2\theta) \cos^5 2\theta [-\frac{1}{2} d(\cos 2\theta)] ∫ sin 2 2 θ cos 5 2 θ sin 2 θ d θ = ∫ ( 1 − cos 2 2 θ ) cos 5 2 θ [ − 2 1 d ( cos 2 θ )]
= − 1 2 ∫ ( cos 5 2 θ − cos 7 2 θ ) d ( cos 2 θ ) = − 1 2 [ 1 6 cos 6 2 θ − 1 8 cos 8 2 θ ] + C = -\frac{1}{2} \int (\cos^5 2\theta - \cos^7 2\theta) d(\cos 2\theta) = -\frac{1}{2} [\frac{1}{6} \cos^6 2\theta - \frac{1}{8} \cos^8 2\theta] + C = − 2 1 ∫ ( cos 5 2 θ − cos 7 2 θ ) d ( cos 2 θ ) = − 2 1 [ 6 1 cos 6 2 θ − 8 1 cos 8 2 θ ] + C
Result: 1 16 cos 8 2 θ − 1 12 cos 6 2 θ + C \frac{1}{16} \cos^8 2\theta - \frac{1}{12} \cos^6 2\theta + C 16 1 cos 8 2 θ − 12 1 cos 6 2 θ + C
Example 7.19 (Both even): ∫ sin 2 x cos 2 x d x \int \sin^2 x \cos^2 x \, dx ∫ sin 2 x cos 2 x d x
sin 2 x cos 2 x = ( sin x cos x ) 2 = ( 1 2 sin 2 x ) 2 = 1 4 sin 2 2 x \sin^2 x \cos^2 x = (\sin x \cos x)^2 = (\frac{1}{2} \sin 2x)^2 = \frac{1}{4} \sin^2 2x sin 2 x cos 2 x = ( sin x cos x ) 2 = ( 2 1 sin 2 x ) 2 = 4 1 sin 2 2 x
= 1 4 [ 1 2 ( 1 − cos 4 x ) ] = 1 8 ( 1 − cos 4 x ) = \frac{1}{4} [\frac{1}{2} (1 - \cos 4x)] = \frac{1}{8} (1 - \cos 4x) = 4 1 [ 2 1 ( 1 − cos 4 x )] = 8 1 ( 1 − cos 4 x )
∫ 1 8 ( 1 − cos 4 x ) d x = 1 8 [ x − 1 4 sin 4 x ] + C = 1 8 x − 1 32 sin 4 x + C \int \frac{1}{8} (1 - \cos 4x) dx = \frac{1}{8} [x - \frac{1}{4} \sin 4x] + C = \frac{1}{8}x - \frac{1}{32} \sin 4x + C ∫ 8 1 ( 1 − cos 4 x ) d x = 8 1 [ x − 4 1 sin 4 x ] + C = 8 1 x − 32 1 sin 4 x + C
Integrands in the form tan m x sec n x \tan^m x \sec^n x tan m x sec n x Condition: If n n n (power of sec) is even.
Substitution: Use u = tan x u = \tan x u = tan x , implying sec 2 x d x = d ( tan x ) \sec^2 x \, dx = d(\tan x) sec 2 x d x = d ( tan x ) .
Example 7.20: Find ∫ tan 2 x sec 4 x d x \int \tan^2 x \sec^4 x \, dx ∫ tan 2 x sec 4 x d x .
∫ tan 2 x sec 2 x ⋅ sec 2 x d x = ∫ tan 2 x ( tan 2 x + 1 ) d ( tan x ) \int \tan^2 x \sec^2 x \cdot \sec^2 x \, dx = \int \tan^2 x (\tan^2 x + 1) d(\tan x) ∫ tan 2 x sec 2 x ⋅ sec 2 x d x = ∫ tan 2 x ( tan 2 x + 1 ) d ( tan x )
= ∫ ( tan 4 x + tan 2 x ) d ( tan x ) = 1 5 tan 5 x + 1 3 tan 3 x + C = \int (\tan^4 x + \tan^2 x) d(\tan x) = \frac{1}{5} \tan^5 x + \frac{1}{3} \tan^3 x + C = ∫ ( tan 4 x + tan 2 x ) d ( tan x ) = 5 1 tan 5 x + 3 1 tan 3 x + C
Questions & Discussion Tips for Students:
When performing substitution, every expression in x x x must be replaced by an expression in u u u . If an integral contains both variables (e.g., ∫ x u d u \int x u \, du ∫ xu d u ), the substitution is incomplete.
For ∫ e x e x + 1 d x \int \frac{e^x}{e^x+1} dx ∫ e x + 1 e x d x , the absolute value sign in ln \ln ln is not strictly required because e x + 1 e^x+1 e x + 1 is always positive.
When dealing with sin m x cos n x \sin^m x \cos^n x sin m x cos n x where both are even, always use double angle formulas to reduce the powers before integrating.
Think Further:
Check correctness of ∫ sin 2 x d x = ∫ sin 2 x 1 2 d ( 2 x ) = 1 2 [ − cos 2 x ] + C \int \sin 2x \, dx = \int \sin 2x \, \frac{1}{2} d(2x) = \frac{1}{2} [-\cos 2x] + C ∫ sin 2 x d x = ∫ sin 2 x 2 1 d ( 2 x ) = 2 1 [ − cos 2 x ] + C .
Alternatively, ∫ sin 2 x d x = ∫ 2 sin x cos x d x = ∫ 2 sin x d ( sin x ) = sin 2 x + C \int \sin 2x \, dx = \int 2 \sin x \cos x \, dx = \int 2 \sin x \, d(\sin x) = \sin^2 x + C ∫ sin 2 x d x = ∫ 2 sin x cos x d x = ∫ 2 sin x d ( sin x ) = sin 2 x + C .
Are these the same? Yes, because sin 2 x = 1 − cos 2 x 2 = − 1 2 cos 2 x + 1 2 \sin^2 x = \frac{1 - \cos 2x}{2} = -\frac{1}{2} \cos 2x + \frac{1}{2} sin 2 x = 2 1 − c o s 2 x = − 2 1 cos 2 x + 2 1 . The constant discrepancy is absorbed into C C C .