BUILT-IN MATHEMATICA SYMBOL

gives the gradient in the coordinates chart.

DetailsDetails

• All quantities that do not explicitly depend on the variables given are taken to have zero partial derivative.
• If f is an array of dimensions , then Grad[f, {x1, ..., xm}] yields an array of dimensions .
• If f is a scalar, Grad[f, {x1, x2, ..., xn}, chart] returns a vector in the orthonormal basis associated with chart.
• In Grad[f, {x1, ..., xn}, chart], if f is an array, it must have dimensions . The components of f are interpreted as being in the orthonormal basis associated with chart.
• Coordinate charts in the third argument of Grad can be specified as triples in the same way as in the first argument of CoordinateChartData. The short form in which dim is omitted may be used.
• Grad works with SparseArray and StructuredArray objects.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

The gradient in three-dimensional Cartesian coordinates:

 Out[1]=

The gradient using an orthonormal basis for three-dimensional cylindrical coordinates:

 Out[1]=

 Out[1]=