Chapter4 Handout 2022-2023
Chapter4 Handout 2022-2023
Chapter 4: Integration
CALCULUS I
Lecturer: Nguyen Thi Thu Van, PhD
Slides are adapted based on the lecture slides of Dr. Nguyen Minh Quan
4 Techniques of Integration
5 Approximate Integration
6 Improper Integrals
7 Homework
Introduction
In Chapter 2 we learnt about differentiation. Given a total quantity,
differentiation allows us to find its rate of change by taking its
derivative.
Assume that a car was moving with constant velocity v (m/s) during
the time t1 and t2 . Then the distance that this car traveled on [t1 , t2 ]
is S = v × (t2 − t1 ).
When the velocity of the car is not constant; that is, v varies in time
v = v (t). What is the distance traveled by this car?
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 4 / 79
Areas under Curves
The idea behind the computing this area is that we can effectively
compute such quantities by breaking it into small pieces and then
summing the contributions from each piece.
We divide [a, b] into N closed subinterval so that
a = x0 < x1 < x2 < ... < xn−1 < xN = b
and
∆x := xk − xk−1 = (b − a)/N → 0 as N → ∞.
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 6 / 79
Areas under Curves
Definition
The area S of the region under a nonnegative, continuous function f is the
limit of the sum of the areas of approximating rectangles:
N
X
S = lim SP = lim f (xi∗ ) ∆x
N→∞ n→∞
i=1
Definition
The definite integral of a nonnegative, continuous function f over [a, b] is
the limit of Riemann sums (that is, the limit of the sum of the areas of
approximating rectangles) and is denoted by the integral sign:
Zb N
X
f (x)dx = lim SP = lim f (xi∗ ) ∆x
N→∞ N→∞
a i=1
Solution
Choose xi∗ = xi = i/N, ∆x = 1/N, i = 1, .., N (xi∗ are right endpoints).
N
f Ni N1 . Therefore,
P
The Riemann sum is
i=1
Z1 N N
X i 1 X i 1
xdx = lim f = lim
N→∞ N N N→∞ NN
0 i=1 i=1
Thus,
Z1 N
1 X N (N + 1) 1
xdx = lim i = lim =
N→∞ N 2 N→∞ 2N 2 2
0 i=1
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 10 / 79
The Definite Integral and its properties
Zb
f (x)dx = net area
Nguyen Thi Thu Van a Chapter 4: Integration VNUHCM–IU 2022 – 2023 11 / 79
The Definite Integral and its properties
Theorem
If f is continuous on [a, b] then f is integrable on [a, b].
Definition
The definite integral of an integrable function f over [a, b] is the limit of
Riemann sums (that is, the limit of the sum of the areas of approximating
rectangles) and is denoted by the integral sign:
Zb N
X
f (x)dx = lim SP = lim f (ci ) ∆xi
N→∞ N→∞
a i=1
Example
Use the properties of integrals to evaluate
Z3
1 + x 3 dx
−3
Solution
Z3 Z3 Z3
3
x 3 dx = 6
1+x dx = 1dx +
−3 −3 −3
Since the first integral is the area of the rectangle of the sides 6 and 1. the
second integral is zero due to the the fact that x 3 is an odd function.
Theorem
If f is continuous on [a, b] then there exists c ∈ [a, b] such that
Z b
f (x)dx = f (c)(b − a)
a
Definition
The value f (c) is called the average value or mean value of f on [a, b],
Zb
1
fav = f (c) = f (x)dx.
b−a
a
Example
Find the mean (average) value of the function f (x) = 1 + x 3 on the
interval [−3, 3].
Solution
The average value is
Z3
1
1 + x 3 dx = 1
3 − (−3)
−3
Zb
f (x)dx = G (b) − G (a) := G (x)|ba
a
Example
(a) Find the average value of f (x) = 1 + x on [−3, 3].
Rx 2
(b) Find the derivatives of A (x) = e −t dt.
2
Rx 3 2
(c) Find the derivatives of B (x) = e −t dt.
0
Solution
(a) The average value is
Z3
1
(1 + x) dx = 1
3 − (−3)
−3
Solution (Cont.)
2 2
(b) Using FTC for f (t) = e −t , we have A′ (x) = e −x .
2 Rx 2
(c) Let F be an antiderivative of e −t , i.e, F (x) = e −t dt for any
a
2
constant a. We have F ′ (x) = e −x and
Zx 3
2
B (x) = e −t dt = F (x 3 ).
0
d d 6
F x 3 = 3x 2 F ′ x 3 = 3x 2 e −x .
Thus, B(x) =
dx dx
Example
R 1 5 √
(a) Find 0 (2x + 2 x − 1) dx.
(b) Find the area under the curve y = 1/x 2 and above y = 0 between
x = 1 and x = 2.
Zb Zb
dF
f (x)dx = dx = F (b) − F (a)
dx
a a
Zt2
dP
dt = P (t2 ) − P (t1 )
dt
t1
3. If an object move along a straight line with position function s(t), then
its velocity is v (t) = s ′ (t), so the change of position (displacement) of the
object during the time period from t1 to t2 is
Zt2
v (t) dt = s (t2 ) − s (t1 )
t1
Solution
Let T (t) be the temperature of the corpse at time t. We have
T (t) = Ts + (T (0) − Ts ) e −kt . Thus, at t = 2:
1 75 − 60
T (2) = 60 + (80 − 60) e −2k = 75 ⇒ k = − ln = 0.1438
2 80 − 60
−ktd = 98.6.
− 60) e
At time of death: T (td) = 60 + (80
98.6 − 60
Therefore, td = − k1 ln = −4.57 hours.
80 − 60
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 29 / 79
Techniques of Integration
Substitution Method
Substitution Rule
Z Z
′
f (u (x)) u (x)dx = f (u) du =F (u (x)) + C
Example
3x 2 cos x 3 dx.
R
Evaluate
Solution
Let u = x 3 ⇒ du = 3x 2 dx.
Applying the substitution rule:
Z Z
3x cos x dx = cos (u) du = sin u + C = sin x 3 + C .
2 3
Substitution Method
Example
5
2x x 2 + 9
R
Evaluate dx.
Solution
Step 1. Choose the function u and compute du.
Let u = x 2 + 9 then du = 2xdx.
Step 2. Rewrite the integral in terms of u and du , and evaluate
Z Z
5 1
2x x + 9 dx = u 5 du = u 6 + C
2
6
Step 3. Express the final answer in terms of x
Z
5 1 2 6
2x x 2 + 9 dx = x + 9 + C.
6
Substitution Method
Example
√ x
R
Evaluate 1−4x 2
dx.
Solution
1
Let u = 1 − 4x 2 . Thus du = −8xdx, so xdx = − du
8
1 √
Z Z Z
x 1 1 1
√ dx = − √ du = − u −1/2 du = − 2 u + C
1 − 4x 2 8 u 8 8
Therefore, Z
x 1p
√ dx = − 1 − 4x 2 + C .
1 − 4x 2 4
Substitution Method
Exercises
Using substitution method to evaluate
R 3x 2 + 6x
1. dx
(x 3 + 3x 2 + 9)4
R 2 4
x + 2x x 3 + 3x 2 + 1 dx
2.
3. e 3x dx
R
2
4. xe x +1 dx
R
R √
5. x 5 1 + x 2 dx
6. cos3 x sin xdx
R
R tan−1 x
7. dx
1 + x2
R (ln x)2
8. dx. [u = ln x]
x Thi Thu Van
Nguyen Chapter 4: Integration VNUHCM–IU 2022 – 2023 33 / 79
Techniques of Integration
Solution
Let u = x 3 +√ 1, thus du 1= 3x 2 dx.
2 √
We have x x 3 + 1 = 3 udu.
x = 0 ⇒ u (0) = 1
x = 2 ⇒ u (2) = 9
Therefore,
Z2 9
9
1 √
Z
p
2 2 52
x x 3 + 1dx = udu = u 3/2 =
3 9 1 9
0 1
R4 √
2. x x 2 + 9dx.
0
π/2
cos3 x sin xdx.
R
3.
0
Re 4 dx
4. √ .
e x ln x
1
R1 dt Ra dt
5. Prove that = .
a 1 + t2 1 1+t
2
1
R1 dt Ra du
Hint:Nguyen
Let Thi
u= Van →
Thu 1/t 2
= .
Chapter 4: Integration
2 VNUHCM–IU 2022 – 2023 36 / 79
Techniques of Integration
Integration by parts
Integration by parts
Z Z
u (x) v ′ (x) dx = u (x) v (x) − u ′ (x) v (x) dx
Or Z Z
udv = uv − vdu
Integration by parts
Example
R
Evaluate x sin xdx
Solution
u=x du = dx
Let ⇒
dv = sin xdx v = − cos x
Z Z Z
x sin xdx = udv = uv − vdu
Thus,
Z Z
x sin xdx = −x cos x + cos xdx = −x cos x + sin x + C
Integration by parts
Example
R
Evaluate ln xdx
Solution
du = x1 dx
u = ln x
Let ⇒
dv = dx v =x
Z Z Z
ln xdx = udv = uv − vdu
Thus, Z Z
ln xdx = x ln x − dx = x ln x − x + C
Integration by parts
Example
x 2 e x dx
R
Evaluate
Solution
u = x2
du = 2xdx
Let ⇒
dv = e x dx v = ex
Z Z Z
2 x
x e dx = udv = uv − vdu
Z Z
2 x 2 x
x e dx = x e − 2 xe x dx
Integration by parts
Solution(Cont.)
xe x dx
R
Evaluate
u=x du = dx
Let ⇒
dv = e x dx v = ex
Z Z Z
x
xe dx = udv = uv − vdu
Z Z
x x
xe dx = xe − e x dx = xe x − e x + C
Therefore, Z
x 2 e x = x 2 e x − 2xe x + 2e x + C1
Integration by parts
Example
Find the area of the region bounded by the curve y = tan−1 x, the x-axis,
and the lines x = 0 and x = 1.
Trigonometric Integrals
Trigonometric Substitution
Evaluate Z
sinm x cosn xdx
Method:
If either m or n is odd, positive integer, the integral can be done
easily by substitution.
If the power of sin x and cos x are both even, then we can make use
of the double-angle formulae
1 + cos 2x 1 − cos 2x
cos2 x = , and sin2 x =
2 2
Trigonometric Integrals
Examples
Evaluate the following integrals:
Z
1. sin4 x cos3 xdx
Z
2. sin4 x dx
Z
3. tan xdx
Z
cos x + sin 2x
4. dx
sin x
cos5 x
Z
5. √ dx
sin x
√
sin3 x
Z
6. √ dx
x
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 44 / 79
Techniques of Integration
Trigonometric Integrals
Example: Trigonometric Inverse Substitutions
Example
1. Evaluate
Z1/2 p
x 2 1 − x 2 dx
0
2. Z
dx
√
4 + x2
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 45 / 79
Techniques of Integration
P (x) R (x)
= S (x) +
Q (x) Q (x)
In this case the partial fraction theorem states that there exist constants
A1 , .., Ak such that
R (x) A1 A2 Ak
= + + ... +
Q (x) a1 x + b1 a2 x + b2 ak x + bk
Example
Z
x +5
Evaluate
x2 +x −2
Solution
Note that
x +5 x +5 A B
= := +
x2
+x −2 (x − 1) (x + 2) x −1 x +2
A+B =1
x + 5 = A (x + 2) + B (x − 1) .This implies
2A − B = 5
⇒ A = 2, B = −1
Thus, Z Z
x +5 2 1
dx = − dx =
x2 + x − 2 x −1 x +2
= 2 ln |x − 1| − ln |x + 2| + C .
Exercises
Evaluate Z
cos xdx
2
sin x − 3 sin x + 2
Example
x 4 − 2x 2 + 4x + 1
Z
Evaluate dx
x3 − x2 − x + 1
Hint:
x 4 − 2x 2 + 4x + 1 4x
=x +1+ 3
x3 − x2 − x + 1 x − x2 − x + 1
4x 4x A B C
3 2
= 2
= + 2
+
x −x −x +1 (x − 1) (x + 1) x − 1 (x − 1) x +1
A = 1, B = 2, C = −1
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 50 / 79
Techniques of Integration
Answer:
1
− ln x 2 + 1 − 3 arctan (x) + ln |x − 1| + C
2
Approximate Integration
Z1
sin x 2 dx =?
The 2
√ antiderivatives of some functions, like sin(x ), 1/ln(x), and
4
1 + x , have no elementary formulas. When we cannot find a
workable antiderivative for a function f that we have to integrate. We
can partition the interval of integration, replace f by a closely fitting
polynomial on each subinterval, integrate the polynomials, and add
the results to approximate the integral of f .
Midpoint Rule
Rb
Assume we want to approximate the following integral f (x)dx. We
a
b−a
divide [a, b] into n subintervals of equal length ∆x = n . Denoting
xk = a + i∆x, i = 0, 1, 2, .., n.
Midpoint Rule
Zb
f (x)dx ≈ Mn = ∆x [f (x̄1 ) + f (x̄2 ) + ... + f (x̄n )]
a
1
where x̄i = 2 (xi−1 + xi ) = midpoint of [xi−1 , xi ]
Midpoint Rule
Example
R2 dx
Use the Midpoint Rule with n = 5 to approximate the integral x .
1
Solution
Noting that a = 1, b = 2, n = 5, ∆x = 0.2; x0 = 1, x1 = 1.2, x2 = 1.4, x3 =
1.6, x4 = 1.8, x5 = 2.
Z2
dx
≈ ∆x [f (1.1) + f (1.3) + f (1.5) + f (1.7) + f (1.9)] ≈ 0.69191
x
1
Example
R2
Use the Trapezoidal Rule with n = 4 to approximate the integral x 2 dx.
1
Solution
Noting that a = 1, b = 2, n = 4, ∆x = 1/4; x0 = 1, x1 = 5/4, x2 =
6/4, x3 = 7/4, x4 = 2.
1
[f (x0 ) + 2f (x1 ) + 2f (x2 ) + 2f (x3 ) + f (x4 )]
T4 =
8
1 25 36 49 75
T4 = 1+2 +2 +2 +4 = = 2.34375
8 16 16 16 32
Zb
The Simpson’s Rule approximation to f (x)dx based on an even number
a
n of subintervals of equal length is
∆x
Sn = [f (x0 ) + 4f (x1 ) + 2f (x2 ) + .. + 2f (xn−2 ) + 4f (xn−1 ) + f (xn )]
3
b−a
where ∆x = and xi = a + i∆x.
n
In other words,
∆x
Sn = [f (xend ) + 4f (xodd ) + 2f (xeven )]
3
Example
R2
Use the Simpson’s Rule with n = 4 to approximate the integral 5x 2 dx.
0
Solution
a = 0, b = 2, n = 4, ∆x = 1/2; x0 = 0, x1 = 1/2, x2 = 1, x3 = 3/2, x4 = 2.
∆x
S4 = [f (x0 ) + 4f (x1 ) + 2f (x2 ) + 4f (x3 ) + f (x4 )]
3
1 5 45 40
S4 = 0+4 + 2 (5) + 4 + 20 = .
6 4 4 3
Approximate Integration
Exercises
R2 dx
1. Calculate the Trapezoid Rule approximations T4 , T8 and T16 for .
1 x
R2 dx
2. Calculate the Simpson’s Rule approximations S4 , S8 and S16 for .
1 x
Compute the exact errors if we know the value of the integral
R2 dx
= ln 2 = 0.69314718....
1 x
Improper Integrals
Up to now, we have required definite integrals to have two properties.
First, that the domain of integration [a, b] be finite. Second, that the
range of the integrand be finite on this domain.
The integral for the area under the curve y = 1/x 2 from x = 1 to
x = ∞ is an example for which the domain is infinite.
Definition
Integrals with infinite limits of integration are improper integrals of Type I .
R∞ Rb
If f is continuous on [a, ∞), then f (x)dx = lim f (x)dx.
a b→∞ a
Rb Rb
If f is continuous on [−∞, b), then f (x)dx = lim f (x)dx.
−∞ a→−∞ a
Example
R∞
Evaluate I = e −x/2 dx.
0
Solution
By definition
Zb
b
−x/2 −x/2
I = lim e dx = lim −2e = lim 2 − 2e −b/2 = 2.
b→∞ b→∞ 0 b→∞
0
Example
Z∞
2x − 1
Evaluate I = dx.
e 3x
0
Solution
Applying the technique of integration by parts and by the definition of
improper integral, we obtain:
Z∞ Zt
2x − 1 −3x 1 − 2t 2 1
dx = lim (2x − 1)e dx = lim − 3t −
e 3x t→∞ t→∞ 3e 3t 9e 9
0 0
1
Therefore, I = − .
9
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 64 / 79
Improper Integrals
Example
+∞
R 2 arctan 2x
Evaluate I = dx
0 1 + 4x 2
Solution
Applying the technique of substitution, we obtain:
Zt Z 2t
arctan
2 arctan 2x
u = arctan 2x, I = lim dx = lim udu
t→+∞ 1 + 4x 2 t→+∞
0 0
arctan 2t
( )
u2 π2
= lim = .
t→+∞ 2 0 8
Example
Z∞
ln x
Evaluate dx.
x3
1
Hint Using the technique of integration by parts
Example
Z∞
Evaluate xe −x dx.
0
Hint Using the technique of integration by parts
Z∞
dx
2. Evaluate √ .
x
1
Hint
Z∞
∞, if p = 1
dx
1−p − 1
= t
xp lim , if p ̸= 1
1 t→∞ 1 − p
R∞ dx
Thus, p
is convergent for p > 1 and divergent if p ≤ 1.
1 x
Theorem
Z∞
1
dx if p > 1
p
= p−1
x ∞ if p ≤ 1
1
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 69 / 79
Improper Integrals
Z1 Z1
dx dx √
√ = lim √ = lim 2 − 2 a = 2
x a→0+ x a→0+
0 a
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 70 / 79
Improper Integrals
Zb Zc Zb
f (x)dx = f (x)dx + f (x)dx.
a a c
Solution
Z5 Z5 √ √
1 1 5
√ dx = lim+ √ dx = lim+ 2 x − 2 b = 2 3
x −2 b→2 x −2 b→2
2 b
Solution
1
Observe that the integrand has an infinite discontinuity at x = 1.
x −1
R3 dx R1 dx R3 dx
By definition c: = + . On the other hand,
0 x −1 0 x −1 1 x −1
R1 dx Rt dx
= lim = lim ln |x − 1||t0
0 x − 1 −
t→1 0 x − 1 t→1−
1
R dx
⇒ = lim (ln |t − 1| − ln |−1|) = −∞.
0 x −1 t→1−
R1 dx R3 dx
Thus, diverges and hence x−1 diverges.
0 x −1 0
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 73 / 79
Improper Integrals
Example (Cont.)
Warning The following "solution" is NOT correct.
Z3
dx
= ln |x − 1||30 = ln 2
x −1
0
Z1
dx
2. Evaluate √ .
1 − x2
0
Z1
dx
3. Evaluate √ .
x
0
Z1
dx
4. Evaluate .
x2
0
Z1
5. Evaluate ln xdx.
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 75 / 79
Improper Integrals
Comparison Test
Theorem
Suppose that f and g are continuous functions with f (x) ⩾ g (x) ⩾ 0 for
x ⩾ a.
Z∞ Z∞
If f (x) dx is convergent, then g (x) dx is convergent.
a a
Z∞ Z∞
If g (x) dx is divergent, then f (x) dx is divergent.
a a
Note: The Comparison Test is also valid for improper integrals of type 2.
Comparison Test
Example
Z∞
2
Show that e −x dx is convergent.
0
Solution
Z∞ Z1 Z∞
−x 2 −x 2 2
e dx = e dx + e −x dx
0 0 1
R1 2 R1 R1 2
e −x dx ⩽ e 0 dx = 1 ⇒ e −x dx is convergent.
0 0 0
2
We note that e −x ⩽ e −x (∀x ⩾ 1) and
R∞ −x Rt
e dx = lim e −x dx = e −1 : convergent.
1 t→∞ 1
R∞ 2 R∞ 2
By Comparison Theorem, e −x dx is convergent, so is e −x dx.
Nguyen Thi Thu Van 1 Chapter 4: Integration VNUHCM–IU
0 2022 – 2023 77 / 79
Improper Integrals
Exercises
Determine whether each integral is convergent or divergent.
Z∞
sin2 x sin2 (x) 1
1. 2
dx. Hint: 0 ⩽ 2 ⩽ 2.
x +1 x +1 x
1
Z∞
2
2. xe −x dx. Hint: Substitution.
0
Z∞
x +1
3. dx. Hint: Divergent by the Comparison Test.
x 2 + 2x
1
Z∞
ln x
4. dx. Hint: Integration by parts.
x
1
Z∞
dx
5. . Answer: π/4.
4x 2 + 4x + 5
−∞
–End of Chapter 4. Thank you!–
Nguyen Thi Thu Van Chapter 4: Integration VNUHCM–IU 2022 – 2023 78 / 79
Homework
HOMEWORK
(4) Fundamental theorem of Calculus: Exs. 7–18, page 327 (see 4.3)