Chapter4 Integration PDF
Chapter4 Integration PDF
Chapter 4: Integration
Calculus 1
Lecturer: Nguyen Minh Quan, PhD
[email protected]
4 Techniques of Integration
5 Approximate Integration
6 Improper Integrals
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?
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 (ci ) ∆xi
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 (ci ) ∆xi
N→∞ N→∞
a i=1
Zb
f (x)dx = net area
a
Nguyen Minh Quan (HCMIU-VNU) Chapter 4: Integration Fall 2013 10 / 78
2. The Definite Integral
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
Z3
1 + x 3 dx
−3
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.
Nguyen Minh Quan (HCMIU-VNU) Chapter 4: Integration Fall 2013 14 / 78
The Mean Value Theorem for Integrals
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 (x)dx.
b−a
a
Example
Find the mean value of the function f (x) = 1 + x 3 on the interval
[−3, 3].
Zb
f (x)dx = G (b) − G (a) := G (x)|ba
a
Example
(a) Find the average value of f (x) = e −x + cosx on − π2 , 0 .
R2 2
(b) Find the derivatives of A (x) = e −t dt.
x
Rx 3 2
(c) Find the derivatives of B (x) = e −t dt.
x2
Example
(a) Find the average value of f (x) = e −x + cosx on − π2 , 0 .
R2 2
(b) Find the derivatives of A (x) = e −t dt.
x
Rx 3 2
(c) Find the derivatives of B (x) = e −t dt.
x2
Solution
(a) The average value is
Z0 0
1 2 2
e −x −e −x + sin x = e π/2
+ cos x dx =
0 − − π2
π −π π
− π2 2
Solution (Cont.)
Rx 2 2
(b) A (x) = − e −t dt ⇒ F 0 (x) = −e −x .
2
Solution (Cont.)
Rx 2 2
(b) A (x) = − e −t dt ⇒ F 0 (x) = −e −x .
2
2 Rx 2
(c) Let F be an antiderivative of e −t , i.e, F (x) = e −t dt for any a.
a
Zx 3 Zx 2
2 2
B (x) = e −t dt − e −t dt = F (x 3 ) − F (x 2 ).
0 0
d d d
F x3 − F x2 =
Thus, B(x) =
dx dx dx
2 0 0 2 −x 6 4
3
3x F x − 2xF x = 3x e2
− 2xe −x .
(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
v (t) dt = s (t2 ) − s (t1 )
t1
Rt2
Note that the total distance travelled during t1 and t2 is |v (t) |dt.
t1
dT
Z Z
= k dt ⇒ ln (T − Ts ) = −kt + ln (T (0) − Ts )
T − Ts
This implies
T (t) = Ts + (T (0) − Ts ) e −kt
Example
R
Evaluate 3x 2 cos (x 3 ) dx.
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
Example
√ x
R
Evaluate 1−4x 2
dx.
Example
√ x
R
Evaluate 1−4x 2
dx.
Solution
1
Let u = 1 − 4x 2 . Thus du = −8xdx, so xdx = − du
8
x 1 1 1 1 √
Z Z Z
√ dx = − √ du = − u −1/2 du = − 2 u + C
1 − 4x 2 8 u 8 8
Therefore,
x 1√
Z
√ dx = − 1 − 4x 2 + C .
1 − 4x 2 4
Zb Zu(b)
f (u (x)) u 0 (x) dx = f (u) du
a u(a)
x = 0 ⇒ u (0) = 1
x = 2 ⇒ u (2) = 9
Therefore,
Z2 √ Z9 9
2 1 √ 2 3/2 52
x x 3 + 1dx = udu = u =
3 9 1 9
0 1
Nguyen Minh Quan (HCMIU-VNU) Chapter 4: Integration Fall 2013 35 / 78
Substitution Method For Definite Integrals
Examples
Use the Change of Variables Formula to evaluate the definite integral
1-4.
R6 √
1. x + 3dx.
1
R4 √
2. x x 2 + 9dx.
0
π/2
R
3. cos3 x sin xdx.
0
Re 4 dx
4. √
x ln x
.
e
1
R1 dt
Rx dt
5. Prove that 1+t 2
= 1+t 2
.
x 1
Integration by parts
Z Z
0
u (x) v (x) dx = u (x) v (x) − u 0 (x) v (x) dx
Or Z Z
udv = uv − vdu
Example
R
Evaluate x sin xdx
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
Example
R
Evaluate ln xdx
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
Example
R
Evaluate x 2 e x dx
Example
R
Evaluate x 2 e x dx
Solution
u = x2
du = 2xdx
Let x ⇒
dv = e 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
Therefore, Z
x 2 e x = x 2 e x − 2xe x + 2e x + C1
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 Substitution
Evaluate
(a) R sin4 x cos3 xdx
R
(b) R sin4 x dx
(c) R tan xdx
dx
(d) sin x
.
Example
1.Evaluate
Z1/2 √
x 2 1 − x 2 dx
0
2.
dx
Z
√
4 + x2
Nguyen Minh Quan (HCMIU-VNU) Chapter 4: Integration Fall 2013 45 / 78
The Method of Partial Fractions
R P(x)
Find Q(x)
dx where P(x) and Q(x) are polynomials (a ratio of
P(x)
polynomials)? We rewrite Q(x)
as
P (x) R (x)
= S (x) +
Q (x) Q (x)
Example
x3 + x
Z
2
Z
dx = x2 + x + 2 + dx
x −1 x −1
x3 x2
= + + 2x + 2 ln |x − 1| + C
3 2
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 a k x + bk
Example
x+5
R
Evaluate x 2 +x−2
Example
x 4 −2x 2 +4x+1
R
Evaluate x 3 −x 2 −x+1
dx
Hint:
x 4 − 2x 2 + 4x + 1 4x
3 2
=x +1+ 3 2
x −x −x +1 x −x −x +1
4x 4x A B C
= 2 = + 2 +
x3 − x2 − x + 1 (x − 1) (x + 1) x − 1 (x − 1) x +1
A = 1, B = 2, C = −1
Z1
sin x 2 dx =?
Z1
sin x 2 dx =?
2
The
√ antiderivatives of some functions, like sin(x ), 1/ln(x), and
1 + x 4 , 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 .
This procedure is an example of numerical integration.
Z2
dx
≈ ∆x [f (1.1) + f (1.3) + f (1.5) + f (1.7) + f (1.9)]
x
1
Zb
∆x
f (x)dx ≈ Tn = [f (x0 ) + 2f (x1 ) + ... + 2f (xn−1 ) + f (xn )]
2
a
b−a
where ∆x = n
and xi = a + i∆x.
Example
Use the Trapezoidal Rule with n = 4 to approximate the integral
R2 2
x dx.
1
Example
Use the Trapezoidal Rule with n = 4 to approximate the integral
R2 2
x 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
T4 = [f (x0 ) + 2f (x1 ) + 2f (x2 ) + 2f (x3 ) + f (x4 )]
8
1 25 36 49 75
T4 = 1+2 +2 +2 +4 = = 2.34375
8 16 16 16 32
Rb
The Simpson’s Rule approximation to f (x)dx based on an even
a
number 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 = n
and xi = a + i∆x. In other words,
∆x
Sn = [f (xend ) + 4f (xodd ) + 2f (xeven )]
3
Example
Use the Simpson’s Rule with n = 4 to approximate the integral
R2 2
5x dx.
0
Example
Use the Simpson’s Rule with n = 4 to approximate the integral
R2 2
5x dx.
0
Solution
a = 0, b = 2, n = 4, ∆x = 1/2; x0 = 0, x1 = 1/2, x2 = 3/2, x3 = 2.
∆x
S4 = [f (x0 ) + 4f (x1 ) + 2f (x2 ) + 4f (x3 ) + f (x4 )]
3
1 5 405 1
S4 = 0+4 + 2 (5) + 4 + (80) = 32
6 16 16 2
Exercise
1. Calculate the Trapezoid Rule approximations T4 , T8 and T16 for
R2 dx
x
.
1
Example
R∞
Evaluate I = e −x/2 dx.
0
Example
R∞
Evaluate I = e −x/2 dx.
0
Solution
By definition
Zb
−x/2 b
−2e −x/2 0 = lim 2 − 2e −b/2 = 2
I = lim e dx = lim
b→∞ b→∞ b→∞
0
Example
R∞ 2x−1
Evaluate I = e 3x
dx
0
Example
R∞ 2x−1
Evaluate I = e 3x
dx
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
Therefore, I = − 91
Example
+∞
2 arctan 2x
R
Evaluate I = 1+4x 2
dx
0
Example
+∞
2 arctan 2x
R
Evaluate I = 1+4x 2
dx
0
Solution
Applying the technique of substitution, we obtain:
Zt arctan
Z 2t
2 arctan 2x
u = arctan 2x, I = lim dx = lim udu
t→+∞ 1 + 4x 2 t→+∞
0 0
( arctan 2t )
u 2 π2
= lim = .
t→+∞ 2 0 8
Example
R∞ ln x
Evaluate x3
dx.
1
Example
R∞ ln x
Evaluate x3
dx.
1
Hint Using the technique of integration by parts
Example
R∞
Evaluate xe −x dx.
0
Example
R∞
Evaluate xe −x dx.
0
Hint Using the technique of integration by parts
Example
R∞
1. Evaluate dx
1+x 2
. Hint: lim arctan x|t−t = π.
−∞ t→∞
R∞ dx
2. Evaluate √
x
.
1
Theorem
Z∞ 1
dx p−1
if p > 1
=
xp ∞ if p ≤ 1
1
Nguyen Minh Quan (HCMIU-VNU) Chapter 4: Integration Fall 2013 68 / 78
Improper Integrals of Type 2
Another type of improper integral arises when the integrand has a
vertical asymptote at a limit of integration.
Example
Consider
√ the region in the first quadrant that lies under the curve
y = 1/ x from x = 0 to x = 1.
Z1 Z1
dx dx √
√ = lim+ √ = lim+ 2 − 2 a = 2
x a→0 x a→0
0 a
Z1 Z1
dx dx √
√ = lim+ √ = lim+ 2 − 2 a = 2
x a→0 x a→0
0 a
Nguyen Minh Quan (HCMIU-VNU) Chapter 4: Integration Fall 2013 70 / 78
Definition of Improper Integrals of Type 2
Integrals of functions that become infinite at a point within the
interval of integration are improper integrals of Type II.
If f is continuous on (a, b] and discontinuous at a, then
Rb Rb
f (x)dx = lim+ f (x)dx.
a c→a c
Zb Zc Zb
f (x)dx = f (x)dx + f (x)dx.
a a c
Z5 Z5 √
√
5
1 1
√ dx = lim+ √ dx = lim+ 2 x − 2 = 2 3
x −2 b→2 x −2 b→2 b
2 b
Example (Cont.)
Warning The following "solution" is NOT correct.
Z3
dx
= ln |x − 1||30 = ln 2
x −1
0
R1
2. Evaluate √ dx .
1−x 2
0
R1 dx
3. Evaluate √
x
.
0
R1 dx
4. Evaluate x2
.
0
R1
5. Evaluate lnxdx.
0
Theorem
Suppose that f and g are continuous functions with
f (x) > g (x) > 0 for x > a.
R∞ R∞
If f (x) dx is convergent, then g (x) dx is convergent.
a a
Theorem
Suppose that f and g are continuous functions with
f (x) > g (x) > 0 for x > a.
R∞ R∞
If f (x) dx is convergent, then g (x) dx is convergent.
a a
R∞ R∞
If g (x) dx is divergent, then f (x) dx is divergent.
a a
R1 2 R1 2
e −x dx 6 1 ⇒ e −x dx is convergent.
0 0
R1 2 R1 2
e −x dx 6 1 ⇒ e −x dx is convergent.
0 0
−x 2
We note that e 6 e −x (∀x > 1) and
∞
R −x t
e dx = lim e −x dx = e −1 : convergent.
R
1 t→∞ 1
R∞ 2 R∞ 2
By Comparison Theorem, e −x dx is convergent, so is e −x dx.
1 0