Gradient, Divergence, and Curl
One approach for implementing differential operators is to use association. Here we associate the standard definitions of the gradient, divergence, and curl (in three-dimensional Cartesian coordinates) to the symbol :
![[Graphics:../Images/index_gr_23.gif]](../Images/index_gr_23.gif)
![[Graphics:../Images/index_gr_24.gif]](../Images/index_gr_24.gif)
![[Graphics:../Images/index_gr_25.gif]](../Images/index_gr_25.gif)
We use the symbol instead of ( ), because is a prefix operator, and instead of ( ).
The set of buttons,
can be converted into a palette using Generate Palette from Selection under the File menu. Using buttons or palettes simplifies standard vector operator computations. Here we prove that the curl of the gradient of an arbitrary (differentiable) scalar field, , vanishes.
![[Graphics:../Images/index_gr_37.gif]](../Images/index_gr_37.gif)
![[Graphics:../Images/index_gr_38.gif]](../Images/index_gr_38.gif)
For an arbitrary (differentiable) vector field:
![[Graphics:../Images/index_gr_39.gif]](../Images/index_gr_39.gif)
it is easy to prove vector identities such as
![[Graphics:../Images/index_gr_40.gif]](../Images/index_gr_40.gif)
![[Graphics:../Images/index_gr_41.gif]](../Images/index_gr_41.gif)
and
![[Graphics:../Images/index_gr_42.gif]](../Images/index_gr_42.gif)
![[Graphics:../Images/index_gr_43.gif]](../Images/index_gr_43.gif)
This approach is advantageous because
1. it is easy to define rules that closely correspond to usual mathematical notation;
2. the use of a palette or buttons makes application of the rules easy;
3. it is simple to modify these rules to implement operators in different coordinate systems.
An alternative approach is to use the <<Utilities`Notation` package. See the Notation Maker documentation included with the Notebook Demos in the Help Browser.
Converted by Mathematica
September 30, 1999
[Prev Page][Next Page] |