Professional Documents
Culture Documents
Triple Integral
Triple Integral
Triple Integral
HCMC— 2017.
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 1 / 86
OUTLINE
6 MATL AB
∗
where the sample point (xijk ∗
, yijk ∗
, zijk ) ∈ Ωijk .
DEFINITION 1.1
The triple integral of f (x, y, z) over the box Ω is
Ñ Ñ
f (x, y, z)dV = f (x, y, z)dxdydz =
Ω Ω
DEFINITION 1.1
The triple integral of f (x, y, z) over the box Ω is
Ñ Ñ
f (x, y, z)dV = f (x, y, z)dxdydz =
Ω Ω
m X
X p
n X
∗ ∗ ∗
= lim f (xijk , yijk , zijk )∆x∆y.∆z.
m,n,p→∞
i=1 j=1 k=1
THEOREM 2.1
If f (x, y, z) is continuous on the rectangular
box Ω : a É x É b, c É y É d, r É z É s, then
Ñ Zb Zd Z s
f (x, y, z)dV = f (x, y, z)dxdydz =
Ω a c r
Zb Zd Z s
EXAMPLE 2.1Ñ
Evaluate I = xyz2 dV , where Ω is the
Ω
rectangular box given by
Ω : 0 É x É 1, −1 É y É 2, 0 É z É 3
EXAMPLE 2.1Ñ
Evaluate I = xyz2 dV , where Ω is the
Ω
rectangular box given by
Ω : 0 É x É 1, −1 É y É 2, 0 É z É 3
Z3 Z2 Z1 Z3 Z2 Z1
Z3 Z2 · 2 ¸x=1 Z3 Z2 2
x yz
= yz2 · dydz = dydz =
2 x=0 2
0 −1 0 −1
Z3 Z2 2 Z3 · 2 2 ¸y=2 Z3 2
yz z y 3z
= dy dz = dz = dz =
2 4 y=−1 4
0 −1 0 0
3 ¸3
z
·
27
= = ·
4 0 4
EXAMPLE 2.2
Evaluate Ñ
I= (x + 2y)dV ,
Ω
where Ω is the solid bounded by
x2 É y É x, 0 É z É x.
x
Ï Z Ï
£ ¤z=x
I= (x + 2y)dz dA = xz + 2yz z=0 dA =
D 0 D
Ï
= (x2 + 2yx)dA
D
x
Ï Z Ï
£ ¤z=x
I= (x + 2y)dz dA = xz + 2yz z=0 dA =
D 0 D
Ï
= (x2 + 2yx)dA
D
x
Ï Z Ï
£ ¤z=x
I= (x + 2y)dz dA = xz + 2yz z=0 dA =
D 0 D
Ï
= (x2 + 2yx)dA
D
x
Ï Z Ï
£ ¤z=x
I= (x + 2y)dz dA = xz + 2yz z=0 dA =
D 0 D
Ï
= (x2 + 2yx)dA
D
1¡
2
Z
x3 − x4 + x3 − x5 dx = ·
¢
=
0 15
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 14 / 86
Triple Integrals in rectangular (Cartesian) coordinate system The Triple Integral over a general bounded region
EXAMPLE 2.3
Evaluate
Ñ p
I= x2 + z2 dV ,
Ω
Z4 p
Ï
I= x2 + z2 dy dA =
D x2 +z2
Z4 p
Ï
I= x2 + z2 dy dA =
D x2 +z2
Ï hp iy=4
= x2 + z2 .y dA =
y=x2 +z2
D
Ï p
= (4 − x2 − z2 ) x2 + z2 dA
D
Z4 p
Ï
I= x2 + z2 dy dA =
D x2 +z2
Ï hp iy=4
= x2 + z2 .y dA =
y=x2 +z2
D
Ï p
= (4 − x2 − z2 ) x2 + z2 dA
D
where D = {(x, z) : x2 + z2 É 4}.
Convert to polar coordinates in xz−plane:
x = r cos ϕ, z = r sin ϕ. This gives
D = {(r, ϕ) : 0 É r É 2, 0 É ϕ É 2π}.
Z2π Z2
I = 4 − r 2 r.rdr dϕ =
¡ ¢
0 0
Z2π Z2
I = 4 − r 2 r.rdr dϕ =
¡ ¢
0 0
Z2π Z2
= 4r 2 − r 4 dr dϕ =
¡ ¢
0 0
Z2π Z2
I = 4 − r 2 r.rdr dϕ =
¡ ¢
0 0
Z2π Z2
= 4r 2 − r 4 dr dϕ =
¡ ¢
0 0
¸2
4r 3 r 5
·
128π
= 2π. − = ·
3 5 0 15
DEFINITION 3.1
In the cylindrical coordinate system, a
point M(x, y, z) in three-dimensional space is
represented by the ordered triple (r, ϕ, z),
where r and ϕ are polar coordinates of the
projection of M onto the xy−plane and z is
the directed distance from the xy−plane to
M.
EXAMPLE 3.1
Evaluate the triple integral with cylindrical
coordinates
Ñ
I= 2xdV ,
Ω
where
Ω = {(x, y, z) : 0 É y É 2; 0 É x É
p
4 − y 2 ; 0 É z É x}
Ω = {(x, y, z) : 0 É y É 2; 0 É x É
p
4 − y 2 ; 0 É z É x}
1
The lower surface of Ω is z = 0.
1
The lower surface of Ω is z = 0.
2
The upper surface of Ω is z = x.
1
The lower surface of Ω is z = 0.
2
The upper surface of Ω is z = x.
3
of Ω onto xy−plane is
The projection p
0 É y É 2; 0 É x É 4 − y2.
Therefore
x
Ï Z Ï h iz=x Ï
I= 2xdz dA = 2xz dA = 2x2 dA
z=0
D 0 D D
n p o
where D = (x, y) : 0 É y É 2; 0 É x É 4 − y 2 .
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 28 / 86
Triple Integrals in Cylindrical Coordinates Evaluating Triple Integrals with Cylindrical Coordinates
Zπ/2 Zπ/2
sin(2ϕ) π/2
· ¸
2
8 cos ϕdϕ = 4(1 + cos(2ϕ))dϕ = 4. ϕ +
2 0
0 0
Zπ/2 Zπ/2
sin(2ϕ) π/2
· ¸
2
8 cos ϕdϕ = 4(1 + cos(2ϕ))dϕ = 4. ϕ +
2 0
0 0
= 2π.
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 29 / 86
Triple Integrals in Cylindrical Coordinates Evaluating Triple Integrals with Cylindrical Coordinates
EXAMPLE 3.2
Evaluate the triple integral with cylindrical
coordinates Ñ
I= zdV ,
Ω
where Ω is the solid that lies within the
cylinder x2 + y 2 = 1, above the paraboloid
z = x2 + y 2 and below the paraboloid
z = 2x2 + y 2 .
I= zdz dA =
D x2 +y 2
I= zdz dA =
D x2 +y 2
(2x2 + y 2 )2 (x2 + y 2 )2
Ï · ¸
= − dA =
2 2
D
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 32 / 86
Triple Integrals in Cylindrical Coordinates Evaluating Triple Integrals with Cylindrical Coordinates
Z2π Z1 2
r cos2 ϕ(r 2 cos2 ϕ + 2r 2 )
I = dϕ rdr =
2
0 0
Z2π Z1 2
r cos2 ϕ(r 2 cos2 ϕ + 2r 2 )
I = dϕ rdr =
2
0 0
Z2π· ¸
1 11π
= cos2 ϕ(cos2 ϕ + 2) dϕ = ·
12 48
0
EXAMPLE 3.3
Evaluate the triple integral with cylindrical
coordinates
1
Ñ
I= dV ,
x2 + y 2
Ω
DEFINITION 4.1
In the spherical coordinate system, a point
M(x, y, z) in three-dimensional space is
represented by the ordered triple (θ, ϕ, ρ),
where ρ is the distance from the origin to M,
ϕ is the same angle as in cylindrical
coordinates, and θ is the angle between the
positive z−axis and the line segment OM.
c É θ É d},
where ρ 1 Ê 0, β − α É 2π, d − c É π.
3
We convert a triple integral from
rectangular coordinates to spherical
coordinates
x = ρ. sin θ cos ϕ
y = ρ. sin θ sin ϕ
z = ρ. cos θ
(
x2 + y 2 + z2 = ρ 2
⇒ p 2
x + y 2 = ρ. sin θ.
4
Usually, spherical coordinates are used
in triple integrals when surfaces such
cones and spheres form the boundary of
the solid of integration.
EXAMPLE 4.1
Evaluate the triple integral with spherical
coordinates
Ñ
I= (x + z)dV ,
Ω
The solid Ω in
spherical coordinate is
0ÉθÉπ
bounded by 0 É ϕ É 2π
0 É ρ É 1.
Zπ Z2π Z1
I= dθ dϕ (ρ cos ϕ sin θ + ρ cos θ)ρ 2 sin θdρ
0 0 0
Zπ Z2π Z1
I= dθ dϕ (ρ cos ϕ sin θ + ρ cos θ)ρ 2 sin θdρ
0 0 0
Zπ Z2π
1
= dθ (cos ϕ sin θ + cos θ) sin θdϕ =
4
0 0
Zπ Z2π Z1
I= dθ dϕ (ρ cos ϕ sin θ + ρ cos θ)ρ 2 sin θdρ
0 0 0
Zπ Z2π
1
= dθ (cos ϕ sin θ + cos θ) sin θdϕ =
4
0 0
Zπ
1 ¡ 2 ¢ ¯¯ϕ=2π
= sin θ. sin ϕ + sin θ cos θ.ϕ ¯ dθ =
4 ϕ=0
0
Zπ Z2π Z1
I= dθ dϕ (ρ cos ϕ sin θ + ρ cos θ)ρ 2 sin θdρ
0 0 0
Zπ Z2π
1
= dθ (cos ϕ sin θ + cos θ) sin θdϕ =
4
0 0
Zπ
1 ¡ 2 ¢ ¯¯ϕ=2π
= sin θ. sin ϕ + sin θ cos θ.ϕ ¯ dθ =
4 ϕ=0
0
1 ¯π
= · π (− cos 2θ) ¯ = 0.
¯
8 0
EXAMPLE 4.2
Evaluate the triple integral with spherical
coordinates
Ñ
I= (x2 + y 2 )dV ,
Ω
The solid Ω in
spherical coordinate is
π
0 É θ É
2
bounded by 0 É ϕ É 2π
0 É ρ É 1.
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 48 / 86
Triple Integrals in Spherical Coordinates Evaluating Triple Integrals with Spherical Coordinates
Zπ/2 Z2π Z1
I = dθ dϕ [(ρ cos ϕ sin θ)2 +(ρ sin ϕ sin θ)2 ]ρ 2 sin θdρ =
0 0 0
Zπ/2 Z2π Z1
I = dθ dϕ [(ρ cos ϕ sin θ)2 +(ρ sin ϕ sin θ)2 ]ρ 2 sin θdρ =
0 0 0
Zπ/2
1 4π
= · 2π. sin3 θdθ = ·
5 15
0
EXAMPLE 4.3
Evaluate the triple integral with spherical
coordinates
Ñ
I= (x2 + y 2 + z2 )dV ,
Ω
The solid Ω in
spherical coordinate is
π
0 É θ É
2
π
bounded by 0 É ϕ É
2
1 É ρ É 2.
The solid Ω in
spherical coordinate is
π
0 É θ É
2
π
bounded by 0 É ϕ É
2
1 É ρ É 2.
x2 + y 2 + z2 =
(ρ cos ϕ sin θ)2 + (ρ sin ϕ sin θ)2 + (ρ cos θ)2 = ρ 2
The solid Ω in
spherical coordinate is
π
0 É θ É
2
π
bounded by 0 É ϕ É
2
1 É ρ É 2.
x2 + y 2 + z2 =
(ρ cos ϕ sin θ)2 + (ρ sin ϕ sin θ)2 + (ρ cos θ)2 = ρ 2
Zπ/2 Zπ/2 Z2 Zπ/2
2 2 31 π 31π
I = dθ dϕ ρ ρ sin θdρ = · · sin θdθ = ·
5 2 10
0 0 1 0
EXAMPLE 4.4
Evaluate the triple integral with spherical
coordinates
1
Ñ
I= dV ,
x2 + y 2 + z2
Ω
n o
Ω = (x, y, z) : x + y + z É 4, z Ê x2 + y 2
p 2 2 2
n o
Ω = (x, y, z) : x + y + z É 4, z Ê x2 + y 2
p 2 2 2
The solid Ω in
spherical coordinate is
π
0 É θ É
4
bounded by 0 É ϕ É 2π
0 É ρ É 2.
The solid Ω in
spherical coordinate is
π
0 É θ É
4
bounded by 0 É ϕ É 2π
0 É ρ É 2.
Zπ/4 Z2π Z2
1 2
I = dθ dϕ ρ sin θdρ =
ρ2
0 0 0
Zπ/4 p
= 2.2π. sin θdθ = (4 − 2 2)π.
0
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 56 / 86
Applications of Triple Integrals Evaluating the volume of a solid
THEOREM 5.1
If f (x, y, z) = 1 for all points in Ω, then the
triple integral represent the volume of Ω
Ñ
V= 1.dV (1)
Ω
EXAMPLE 5.1
Use spherical coordinates to find the volume
of the
p solid that lies above the cone
z = x2 + y 2 and below the sphere
x2 + y 2 + z2 = z.
n o
Ω = (x, y, z) : x + y + z É z, z Ê x + y
2 2 2
p
2 2
Zπ/4 Z2π Z θ
cos
V = dθ dϕ ρ 2 sin θdρ =
0 0 0
Zπ/4 Z2π Z θ
cos
V = dθ dϕ ρ 2 sin θdρ =
0 0 0
Zπ/4 Z2π Z θ
cos
V = dθ dϕ ρ 2 sin θdρ =
0 0 0
Zπ/4 4 ¸π/4
θ π
·
2π 2π cos
= · sin θ cos3 θdθ = − = ·
3 3 4 0 8
0
TOTAL MASS
TOTAL CHARGE
[X , Y ] = meshgrid(x, y)
x = [−1 0 1]; y = [−2 − 1 0 1 2];
[X , Y ] = meshgrid(x, y);
−1 0 1 −2 −2 −2
−1 0 1 −1 −1 −1
X = −1 0 1 , Y = 0 0 0
−1 0 1 1 1 1
−1 0 1 2 2 2
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 64 / 86
MatLab Sketch the solid in the Cartesian Coordinate System
x = [−1 0 1];
[X ] = meshgrid(x);
−1 0 1
X = −1 0 1
−1 0 1
1
Use [X , Y ] = meshgrid(x, y) to receive
projection onto xy−plane
1
Use [X , Y ] = meshgrid(x, y) to receive
projection onto xy−plane
2
Sketch the upper and lower surfaces.
EXAMPLE 6.1
Sketch the solid bounded by
z = 0, z = 3, −1 É x É 1, −2 É y É 2
Code
x = linspace(−1, 1, 50); y = linspace(−2, 2, 50);
z = linspace(0, 3, 50); [X , Y ] = meshgrid(x, y);
surf (X , Y , 3 + 0 ∗ X ) (or mesh(X , Y , Z) or surfc(X , Y , Z))
hold on
mesh(X , Y , 0 ∗ X )
[X , Z] = meshgrid(x, z);
surf (X , 2 + 0 ∗ X , Z,
0
FaceColor 0 ,0 g 0 ,0 EdgeColor 0 ,0 b0 ,0 FaceAlpha0 , 0.1);
surf (X , −2 + 0 ∗ X , Z,
0
FaceColor 0 ,0 g 0 ,0 EdgeColor 0 ,0 g 0 ,0 FaceAlpha0 , 0.1);
[Y , Z] = meshgrid(y, z);
surf (−1 + 0 ∗ Y , Y , Z,
0
FaceColor 0 ,0 b0 ,0 EdgeColor 0 ,0 g 0 ,0 FaceAlpha0 , 0.1);
surf (1 + 0 ∗ Y , Y , Z,
0
FaceColor 0 ,0 b0 ,0 EdgeColor 0 ,0 g 0 ,0 FaceAlpha0 , 0.1);
xlabel(0 x0 ); ylabel(0 y 0 ); zlabel(0 z0 );
axis([−1 1 − 2 2 0 8])
view(120,12)
grid on
rotate3d on
EXAMPLE 6.2
Sketch the solid bounded by
z = 0, z = 1 − y, −1 É x É 1, x2 É y É 1
EXAMPLE 6.2
Sketch the solid bounded by
z = 0, z = 1 − y, −1 É x É 1, x2 É y É 1
Code
clf
s = linspace(−1, 1, 30);
s1 = meshgrid(s); t1 = [];
for i=1:length(s)
tam = linspace(s(i)b2, 1, 30);
t1 = [t1 tam0 ];
end
x = s1; y = t1; z = 1 − y; z1 = 0 ∗ x;
hold on
surf (x, y, z,0 FaceColor 0 ,0 g 0 ,0 FaceAlpha0 , 0.3);
surf (x, y, z1,0 FaceColor 0 ,0 r 0 ,0 EdgeColor 0 ,0 none0 );
EXAMPLE 6.3
Sketch the solid bounded by
z = 0, z = 4 − x2 − y 2 , x2 + y 2 = 2
EXAMPLE 6.3
Sketch the solid bounded by
z = 0, z = 4 − x2 − y 2 , x2 + y 2 = 2
Code
clf
hold on
phi=linspace(0,2*pi,30);
r=linspace(0,sqrt(2),30);
[r phi] = meshgrid(r, phi);
x=r.*cos(phi); y=r.*sin(phi);
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 75 / 86
MatLab Sketch the solid in the Cylindrical Coordinate System
z = 4 − x.b2 − y.b2; z1 = 0 ∗ x;
surf(x,y,z,’FaceColor’,’g’,’FaceAlpha’,0.3);
surf(x,y,z1,’FaceColor’,’b’,’FaceAlpha’,0.3);
phi=linspace(0,2*pi,30);
z2=linspace(0,2,30);
[z2 phi] = meshgrid(z2, phi);
x1=sqrt(2).*cos(phi); y1=sqrt(2).*sin(phi);
surf(x1,y1,z2,’FaceColor’,’r’,’FaceAlpha’,0.3);
grid on; view (13,28); rotate3d on
xlabel(’x’); ylabel(’y’); zlabel(’z’);
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 76 / 86
MatLab Sketch the solid in the Cylindrical Coordinate System
EXAMPLE 6.4
Sketch the solid that lies between the spheres
x2 + y 2 + z2 = 1 and x2 + y 2 + z2 = 4 in the first
octant.
EXAMPLE 6.4
Sketch the solid that lies between the spheres
x2 + y 2 + z2 = 1 and x2 + y 2 + z2 = 4 in the first
octant.
Code
clf
phi=linspace(0,pi/2,30);
theta=linspace(0,pi/2,30);
[p t]=meshgrid(phi,theta);
x=sin(t).*cos(p); y=sin(t).*sin(p); z=cos(t);
mesh(x,y,z,’FaceColor’,’r’,’FaceAlpha’,0.3);
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 78 / 86
MatLab Sketch the solid in the Spherical Coordinate System
hold on
x2=2*sin(t).*cos(p);
y2=2*sin(t).*sin(p);
z2=2*cos(t);
mesh(x2,y2,z2,’FaceColor’,’g’,’FaceAlpha’,0.3);
r=linspace(1,2,30)
[r th]=meshgrid(r,theta);
x3=sin(th).*r.*cos(0);
y3=sin(th).*r.*sin(0);
z3=r.*cos(th);
mesh(x3,y3,z3,’FaceColor’,’b’,’FaceAlpha’,0.3);
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 79 / 86
MatLab Sketch the solid in the Spherical Coordinate System
x4=sin(th).*r.*cos(pi/2);
y4=sin(th).*r.*sin(pi/2);
z4=r.*cos(th);
mesh(x4,y4,z4,’FaceColor’,’b’,’FaceAlpha’,0.3);
[r phi]=meshgrid(r,phi);
x5=sin(pi/2).*r.*cos(phi);
y5=sin(pi/2).*r.*sin(phi);
z5=r.*cos(pi/2);
mesh(x5,y5,z5,’FaceColor’,’r’,’FaceAlpha’,0.3);
rotate3d on
xlabel(’x’); ylabel(’y’); zlabel(’z’);
Dr. Lê Xuân Đại (HCMUT-OISP) TRIPLE INTEGRALS HCMC— 2017. 80 / 86
MatLab Sketch the solid in the Spherical Coordinate System