The divergence of a vector, as defined by the usual formula in vector calculus, is not an intrinsic operator which can be defined in a coordinate independent manner. Still, for a number of purposes it is helpful to have this simple procedure.
The command Divergence is part of the DifferentialGeometry:-Tools package, and so can be used in the form Divergence(...) only after executing the commands with(DifferentialGeometry) and with(Tools) in that order. It can always be used in the long form DifferentialGeometry:-Tools:-Divergence.
First initialize a 3-dimensional manifold M with coordinates [x, y, z].
X ≔ DGzip⁡a,b,c⁡x,y,z,D_x,D_y,D_z,plus
X ≔ a⁡x,y,z⁢D_x+b⁡x,y,z⁢D_y+c⁡x,y,z⁢D_z
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.