This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Packages for Symbolic Mathematics

There are many Mathematica packages which implement symbolic mathematical operations. Here are a few examples drawn from the standard set of packages distributed with Mathematica. As discussed in "Mathematica Packages", some copies of Mathematica may be set up so that the functions described here are automatically loaded into Mathematica if they are ever needed.

Vector Analysis

<<VectorAnalysis`load the vector analysis package
SetCoordinates[system[names]]specify the coordinate system to be used (Cartesian, Cylindrical, Spherical, etc.), giving the names of the coordinates in that system
Grad[f]evaluate the gradient f of f in the coordinate system chosen
Div[f]evaluate the divergence f of the list f
Curl[f]evaluate the curl f of the list f
Laplacian[f]evaluate the Laplacian 2f of f

Vector analysis.

This loads the vector analysis package. In some versions of Mathematica, you may not need to load the package explicitly.
Click for copyable input
This specifies that a spherical coordinate system with coordinate names r, theta and phi should be used.
Click for copyable input
This evaluates the gradient of r2sin () in the spherical coordinate system.
Click for copyable input

Variational Methods

load the variational methods package
VariationalD[f,y[x],x]find the variational derivative of f

Variational methods.

This loads the variational methods package.
Click for copyable input
This finds the functional derivative of .
Click for copyable input


<<Quaternions`load the quaternions package
Quaternion[a,b,c,d]the quaternion a+bi+cj+dk


This loads the quaternions package.
Click for copyable input
This finds the principal square root of a quaternion.
Click for copyable input