Chapter 9: Vector Calculus
Section 9.8: Divergence Theorem
|
Example 9.8.5
|
|
Apply the Divergence theorem to the vector field and , the region bounded by two spheres centered at the origin, one with radius 1, the other with radius .
|
|
|
|
Solution
|
|
|
Mathematical Solution
|
|
Figure 9.8.5(a) contains a sketch of the region and representative outward normals on the two surfaces bounding .
>
|
use plots, VectorCalculus in
module()
local p1,p2,p3,p4,p5,p6,p7,N1,N2;
N1:=RootedVector(root=[.4,-.4,sqrt(.68)],<.4,-.4,sqrt(.68)>);
N2:=RootedVector(root=[.2,-.2,sqrt(.17)],<-.2,.2,-sqrt(.17)>);
p1:=sphereplot(1,theta=Pi/2..2*Pi, phi=0..Pi,color=red):
p2:=sphereplot(1/2,theta=Pi/2..2*Pi, phi=0..Pi,color=cyan):
p3:=PlotVector([N1,N2],color=black,width=.1);
p4:=plot3d([r,Pi/2,phi],r=1/2..1,phi=0..Pi,coords=spherical,color=black, style=hidden, grid=[5,25]):
p5:=plot3d([r,2*Pi,phi],r=1/2..1,phi=0..Pi,coords=spherical,color=black, style=hidden, grid=[5,25]):
p6:=display([p1,p2,p3,p4,p5], scaling=constrained, orientation=[45,70],tickmarks=[3,3,3],axes=frame,lightmodel=none):
print(p6);
end module:
end use:
|
|
Figure 9.8.5(a) Region and outward normals
|
|
|
The divergence of F:
Implement the integral of over the interior of in spherical coordinates:
=
To compute the flux through , note that there are two boundaries, the outer and inner spheres. To compute the flux through the outer sphere, note that on that surface
=
Anticipating that this will be integrated over the sphere using spherical coordinates, write
as the equivalent for on the surface of the outer sphere. If this be integrated over the sphere in spherical coordinates, the result is
=
On the inner sphere, , , and becomes
The flux through the inner sphere is then = , so the total flux through the boundaries of is then .
|
|
Maple Solution - Interactive
|
|
The Student VectorCalculus package is needed for calculating the divergence, but it then conflicts with any multidimensional integral set from the Calculus palette. Hence, the Student MultivariateCalculus package is installed to gain Context Panel access to the MultiInt command.
Initialize
|
•
|
Tools≻Load Package: Student Vector Calculus
|
|
Loading Student:-VectorCalculus
|
•
|
Tools≻Tasks≻Browse: Calculus - Vector≻
Vector Algebra and Settings≻
Display Format for Vectors
|
•
|
Press the Access Settings button and select
"Display as Column Vector"
|
|
Display Format for Vectors
|
|
|
|
|
Define the vector field F
|
•
|
Enter the components of F in a free vector.
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Student Vector Calculus≻Conversions≻To Vector Field
|
•
|
Context Panel: Assign to a Name≻F
|
|
=
|
Obtain , the divergence of F, and represent it parametrically
|
•
|
Context Panel: Assign name
|
|
|
|
|
|
|
|
•
|
Expression palette: Evaluation template
|
•
|
Common Symbols palette: Del and dot-product operators
|
•
|
Context Panel: Evaluate and Display Inline
|
•
|
Context Panel: Assign to a Name≻
|
|
=
|
Use spherical coordinates to obtain the volume integral of the divergence of F
|
•
|
Tools≻Load Package:
Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
•
|
Write the name given to the divergence and press the Enter key.
|
•
|
Context Panel: Student Multivariate Calculus≻Integrate≻Iterated
Complete the dialogs as per the figures below.
|
•
|
Context Panel: Evaluate Integral
|
|
|
|
|
|
|
There are two parts to the boundary of , the surface of the outer sphere, and the surface of the inner sphere. For the flux through the outer surface surface, use a task template.
Tools≻Tasks≻Browse:
Calculus - Vector≻Integration≻Flux≻3-D≻Through a Sphere
|
Flux through a Sphere
|
For the Vector Field:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
On the inner sphere, the normal that is outward on is inward for this smaller sphere. The same task template can be used to obtain the flux through this smaller sphere.
Tools≻Tasks≻Browse:
Calculus - Vector≻Integration≻Flux≻3-D≻Through a Sphere
|
Flux through a Sphere
|
For the Vector Field:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The total flux through is then , the same value that is obtained for the volume integral of the divergence in .
|
|
Maple Solution - Coded
|
|
Initialize
|
•
|
Install the Student VectorCalculus package.
|
|
|
|
|
|
|
Obtain , the divergence of F
|
|
|
Use the int command to integrate the divergence of F over
|
|
Use the Flux command to obtain the flux of F through the outer sphere
|
=
|
Use the Flux command to obtain the flux of F through the inner sphere
|
=
|
|
|
The total flux through is then , the same value that is obtained for the volume integral of the divergence in .
|
|
|
<< Previous Example Section 9.8
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
|