Chapter 9: Vector Calculus
Section 9.8: Divergence Theorem
|
Example 9.8.3
|
|
Apply the Divergence theorem to the vector field and , the rectangular box defined by .
|
|
|
|
Solution
|
|
|
Mathematical Solution
|
|
•
|
Figure 9.8.3(a) shows the box with outward normals on each face, and arrows of the field F.
|
•
|
The integral of over the interior of the box:
|
= 3
|
>
|
use Student:-VectorCalculus in
module()
local F,p;
F:=VectorField(<x,y,z>);
p:=Flux(F,Box(1..2,3..4,5..6),output=plot,caption="",axes=frame,labels=[x,y,z],tickmarks=[2,2,2],orientation=[-35,75,0],fieldoptions=[grid=[5,5,5]]);
print(p);
end module:
end use:
|
|
Figure 9.8.3(a) Box and field F
|
|
|
|
|
|
The flux must be computed through each of the six faces of the box. To begin, note that
so that, by pairing opposing faces, the following three integrals represent the flux through the faces of the box.
= 3
|
|
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
|
•
|
Common Symbols palette:
Del and dot-product operators
|
•
|
Context Panel: Evaluate and Display Inline
|
|
=
|
Integrate over the interior of the box
|
•
|
Tools≻Load Package:
Student Multivariate Calculus
|
|
Loading Student:-MultivariateCalculus
|
•
|
Context Panel: Student Multivariate Calculus≻Integrate≻Iterated
Complete the dialogs as per the figures below.
|
•
|
Context Panel: Evaluate Integral
|
|
|
|
|
Use a task template to compute the flux of F through the boundaries of
|
Tools≻Tasks≻Browse:
Calculus - Vector≻Integration≻Flux≻3-D≻Through a Box
|
Flux through a Box
|
For the Vector Field:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In the Divergence theorem, the volume integral on the left and the flux on the right both have the value 3.
|
|
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 boundaries of
|
=
|
|
|
In the Divergence theorem, the volume integral on the left and the flux on the right both have the value 3.
Figure 9.8.3(a) is drawn with he Flux command by including the option "output = plot". The actual code for the figure is hidden behind the table cell in which the figure appears.
|
|
|
<< 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
|