Overview of the Physics[Vectors] Subpackage
<Text-field style="Heading 2" layout="Heading 2" bookmark="info">Description</Text-field>
The Physics[Vectors] subpackage introduces an algebraic (not matricial) representation for abstract vectors, that is, vectors or vector functions not projected onto any particular vector basis, as well as for cartesian, cylindrical and spherical curvilinear unit vectors, so that it is possible to do algebraic and differential calculus with both nonprojected and projected vector functions. For examples of the use of the subpackage in applications see Physics, examples (this page opens only in the Standard Graphical User Interface).
The vectors represented in the Vectors subpackage are the standard mathematical objects used in Physics that have magnitude and direction and are defined up to parallel translation, sometimes referred to as free vectors. These vectors can also represent 3D-vectorial noncommutative quantum operators - see for instance the Quantum Mechanics section, of Physics, examples.
Regarding projected vectors, the Vectors subpackage is designed to work only with cartesian, cylindrical and spherical orthonormal basis and the related systems of coordinates (see Identify), according to
(NiVJI19pRzYiSSNfakdGJEkjX2tHRiQ=)=cartesian unit vectors,(NiMtSSVtcm93RzYkSSpwcm90ZWN0ZWRHRiYvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0c2JEYmSShfc3lzbGliR0YpNictSSNtaUc2JEYmL0YoRio2I1EnXyZyaG87RiktSSNtb0c2JEYmL0YoRio2I1EoJmNvbW1hO0YpLUYvNiNRJ18mcGhpO0YpRjQtRi82I1EjX2tGKQ==)=cylindrical unit vectors,(NiMtSSVtcm93RzYkSSpwcm90ZWN0ZWRHRiYvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0c2JEYmSShfc3lzbGliR0YpNictSSNtaUc2JEYmL0YoRio2I1EjX3JGKS1JI21vRzYkRiYvRihGKjYjUSgmY29tbWE7RiktRi82I1EpXyZ0aGV0YTtGKUY0LUYvNiNRJ18mcGhpO0Yp)=spherical unit vectors(NiVJInhHNiJJInlHRiRJInpHRiQ=)=cartesian coordinates,(NiMtSSVtcm93RzYkSSpwcm90ZWN0ZWRHRiYvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0c2JEYmSShfc3lzbGliR0YpNictSSNtaUc2JEYmL0YoRio2I1EmJnJobztGKS1JI21vRzYkRiYvRihGKjYjUSgmY29tbWE7RiktRi82I1EmJnBoaTtGKUY0LUYvNiNRInpGKQ==)=cylindrical coordinates,(NiMtSSVtcm93RzYkSSpwcm90ZWN0ZWRHRiYvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0c2JEYmSShfc3lzbGliR0YpNictSSNtaUc2JEYmL0YoRio2I1EickYpLUkjbW9HNiRGJi9GKEYqNiNRKCZjb21tYTtGKS1GLzYjUSgmdGhldGE7RilGNC1GLzYjUSYmcGhpO0Yp)=spherical coordinates
where NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSgmdGhldGE7Rik= is the angle down from the z-axis, ranging from NiMiIiE= to NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSUmcGk7Rik=, and NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSYmcGhpO0Yp is the angle around the z-axis ranging from NiMiIiE= to NiMtSSVtcm93RzYkSSpwcm90ZWN0ZWRHRiYvSSttb2R1bGVuYW1lRzYiSSxUeXBlc2V0dGluZ0c2JEYmSShfc3lzbGliR0YpNiUtSSNtbkc2JEYmL0YoRio2I1EiMkYpLUkjbW9HNiRGJi9GKEYqNiNRMSZJbnZpc2libGVUaW1lcztGKS1JI21pRzYkRiYvRihGKjYjUSUmcGk7Rik=.
Regarding non-projected vectors and vector functions, the key idea is to identify them by a postfix in the name, as a computer mimicry of "the arrow on top" you use to represent them when working with paper and pencil. This postfix identifier is by default the underscore _ but can be set to be any valid sequence of characters (see Physics[Setup]).
Mathematical vector notation: When Physics[Vectors] is loaded in the Standard Graphical User Interface, and the Typesetting level is set to Extended (the default), non-projected vectors and unit vectors are respectively displayed with an arrow and a hat on top, and the differential operators (Nabla, Laplacian, etc.) with an upside down triangle as in textbooks. You can also set this notation by entering Physics[Setup](mathematicalnotation = true). You can also set this notation from the Options Dialog: go to Tools > Options, select the Display tab, and set the Typesetting level to Extended.
NOTE: these variables x, y, z, NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSYmcmhvO0Yp, NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSYmcGhpO0Yp, r and NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSgmdGhldGE7Rik=, as well as _i, _j, _k, NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSdfJnJobztGKQ==, NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSdfJnBoaTtGKQ==, _r and NiMtSSNtaUc2JEkqcHJvdGVjdGVkR0YmL0krbW9kdWxlbmFtZUc2IkksVHlwZXNldHRpbmdHNiRGJkkoX3N5c2xpYkdGKTYjUSlfJnRoZXRhO0Yp, respectively used to represent the coordinates and the unit vectors, are automatically protected when the Physics[Vectors] subpackage is loaded.
Some examples illustrating the use of the Physics[Vectors] subpackage in Mechanics and Electrodynamics are found in examples/Physics.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk0">List of Physics[Vectors] Subpackage Commands</Text-field>
The following is a list of available commands.
&x+.ChangeBasisComponentCurlDirectionalDiffDivergenceGradientIdentifyLaplacianNablaNormSetupdiff
Inert forms of these commands, representing the operations, including their mathematical properties under differentiation, expansion etc., but holding the computations, consist of the same command's names prefixed by the % character. The inert computations constructed with these commands can be activated when desired using the value command.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk1">Brief description of each command</Text-field>
+, -, . and &x performs the addition, subtraction, dot product and cross product of vector functions, respectively.
ChangeBasis changes the projection basis of a given vector function.
Component evaluates the component of a vector function.
DirectionalDiff evaluates the directional derivative of a (vectorial) expression.
Gradient, Divergence, Curl, and Laplacian, as well as the corresponding inert forms (starting with a Capital letter) respectively compute (or represent) the gradient, divergence, curl and Laplacian of a given (vector) function. As a handy mnemonics rule, these differential commands as well as the main one, Nabla (for nabla), are entered using just the first three letters.
Nabla is a command representation for the nabla differential operator. Thus, Nabla alone can also be used to calculate the gradient, divergence, curl or Laplacian of a function.
Norm evaluates the norm of a vector functions (note that Maple has also a command called norm not related to Vectors).
diff is a differentiation command which takes into account the relation between geometrical cartesian, cylindrical and spherical coordinates (and curvilinear unit vectors) when evaluating derivatives. It uses the same syntax (calling sequence) and display as the standard diff command, (diff and diff derivatives evaluated over one function at the same time are displayed separately).
Setup this is actually the Physics[Setup] command, there is only one, used to set abbreviations for some Vectors subpackage commands, and, in the Standard Maple GUI, used to turn ON/OFF the mathematical notation for the vectorial differential operators as well as the vector display with an arrow on top (default), etc.
<Text-field style="Heading 2" layout="Heading 2" bookmark="seealso">See Also</Text-field>convert,VectorCalculus, Physics, Physics conventions, Physics examples, Physics Updates, Tensors - a complete guide, Mini-Course Computer Algebra for Physicists, Student/VectorCalculus, VectorCalculus
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk2">References</Text-field>
Cheb-Terrab, E.S. and Nisembaum, M. "Vector Analysis and Symbolic Computation in Physics Education." Workshop: Computers in Education, EDAI - UERJ. Rio de Janeiro, Brazil, 1995.