Packages for Symbolic Mathematics

There are many Mathematica packages that 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 of in the coordinate system chosen
Div[f]evaluate the divergence of the list
Curl[f]evaluate the curl of the list
Laplacian[f]evaluate the Laplacian of

Vector analysis.

This loads the vector analysis package. In some versions of Mathematica, you may not need to load the package explicitly.
In[2]:=
Click for copyable input
This specifies that a spherical coordinate system with coordinate names , , and should be used.
In[3]:=
Click for copyable input
Out[3]=
This evaluates the gradient of in the spherical coordinate system.
In[4]:=
Click for copyable input
Out[4]=

Variational Methods

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

Variational methods.

This loads the variational methods package.
In[5]:=
Click for copyable input
This finds the functional derivative of .
In[6]:=
Click for copyable input
Out[6]=

Quaternions

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

Quaternions.

This loads the quaternions package.
In[7]:=
Click for copyable input
This finds the principal square root of a quaternion.
In[8]:=
Click for copyable input
Out[8]=
New to Mathematica? Find your learning path »
Have a question? Ask support »