Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/Gradient
compute the gradient of a function from R^n to R
Gradient(f, c)
Del(f, c)
Nabla(f, c)
Nabla()
(optional) list(name) or name[name, name, ...]; specify the list of variable names or coordinate system indexed by coordinate names
The Gradient(f, c) command computes the gradient of the expression f. The result is a vector field.
If c is a list of names, the gradient is taken in the current default coordinate system by using the names in c as the coordinate names. If the number of given names is not compatible with this coordinate system, an error is raised.
If c is a name indexed by other names, the gradient is computed in this coordinate system by using the indices as the coordinate names. If the number of names is not compatible with the coordinate system, an error is raised.
If c is not specified, the current default coordinates are used. The default coordinates must be indexed by coordinate names, otherwise an error is raised.
The command Del(f, c) is just a synonym for Gradient(f, c). However, Del is also recognized as the Vector differential operator that is used with DotProduct and CrossProduct as shortcuts for Curl, Divergence, Gradient, and Laplacian.
The Gradient() command returns the differential form of the gradient operator in the current coordinate system. For more information, see SetCoordinates.
Nabla is a synonym for Del.
g1 ≔ Gradient⁡x2&plus;y2&comma;x&comma;y
g1≔2⁢xe&lowbar;x&plus;2⁢ye&lowbar;y
attributes⁡g1
vectorfield,coords=cartesianx,y
g2 ≔ Gradient⁡r2&comma;&apos;polar&apos;r&comma;&theta;
g2≔2⁢re&lowbar;r&plus;0e&lowbar;&theta;
attributes⁡g2
vectorfield,coords=polarr,θ
SetCoordinates⁡&apos;spherical&apos;r&comma;&phi;&comma;&theta;
g3 ≔ Gradient⁡r2⁢&phi;
g3≔2⁢r⁢φe&lowbar;r&plus;re&lowbar;&phi;&plus;0e&lowbar;&theta;
attributes⁡g3
vectorfield,coords=sphericalr,φ,θ
Del⁡r2⁢&phi;
2⁢r⁢φe&lowbar;r&plus;re&lowbar;&phi;&plus;0e&lowbar;&theta;
Gradient⁡
∂∂rSF ⁡r&comma;φ&comma;θe&lowbar;r&plus;∂∂φSF ⁡r&comma;φ&comma;θre&lowbar;&phi;&plus;∂∂θSF ⁡r&comma;φ&comma;θr⁢sin⁡φe&lowbar;&theta;
SetCoordinates⁡&apos;cartesian&apos;x&comma;y&comma;z
Del⁡x2&plus;y2&plus;z2
2⁢xe&lowbar;x&plus;2⁢ye&lowbar;y&plus;2⁢ze&lowbar;z
n1 ≔ Nabla⁡x2&plus;y2&plus;z2
n1≔2⁢xe&lowbar;x&plus;2⁢ye&lowbar;y&plus;2⁢ze&lowbar;z
`.`⁡Del&comma;n1
Del &x VectorField⁡y&comma;−x&comma;0
0e&lowbar;x&plus;0e&lowbar;y&plus;−2e&lowbar;z
L ≔ VectorField⁡x&comma;y&comma;z &x Del
L≔e↦&x⁡xe&lowbar;x&plus;ye&lowbar;y&plus;ze&lowbar;z&comma;Gradient⁡e
L⁡sin⁡x⁢y⁢z
y2⁢x⁢cos⁡x⁢y⁢z−z2⁢x⁢cos⁡x⁢y⁢ze&lowbar;x&plus;−x2⁢y⁢cos⁡x⁢y⁢z+z2⁢y⁢cos⁡x⁢y⁢ze&lowbar;y&plus;x2⁢z⁢cos⁡x⁢y⁢z−y2⁢z⁢cos⁡x⁢y⁢ze&lowbar;z
L ≔ Del &x Del
L≔Curl@Gradient
L⁡f⁡x&comma;y&comma;z
0e&lowbar;x&plus;0e&lowbar;y&plus;0e&lowbar;z
VectorCalculus[Divergence]
VectorCalculus[Laplacian]
Vectors/Gradient
Home : Support : Online Help : Mathematics : Vector Calculus : VectorCalculus/Gradient
compute the gradient of a function from R^n to R
Gradient(f, c)
Del(f, c)
Nabla(f, c)
Nabla()
(optional) list(name) or name[name, name, ...]; specify the list of variable names or coordinate system indexed by coordinate names
The Gradient(f, c) command computes the gradient of the expression f. The result is a vector field.
If c is a list of names, the gradient is taken in the current default coordinate system by using the names in c as the coordinate names. If the number of given names is not compatible with this coordinate system, an error is raised.
If c is a name indexed by other names, the gradient is computed in this coordinate system by using the indices as the coordinate names. If the number of names is not compatible with the coordinate system, an error is raised.
If c is not specified, the current default coordinates are used. The default coordinates must be indexed by coordinate names, otherwise an error is raised.
The command Del(f, c) is just a synonym for Gradient(f, c). However, Del is also recognized as the Vector differential operator that is used with DotProduct and CrossProduct as shortcuts for Curl, Divergence, Gradient, and Laplacian.
The Gradient() command returns the differential form of the gradient operator in the current coordinate system. For more information, see SetCoordinates.
Nabla is a sy
nonym for Del.
g1 ≔ Gradient⁡x2&plus;y2&comma;x&comma;y
g1≔2⁢xe&lowbar;x&plus;2⁢ye&lowbar;y
attributes⁡g1
vectorfield,coords=cartesianx,y
g2 ≔ Gradient⁡r2&comma;&apos;polar&apos;r&comma;&theta;
g2≔2⁢re&lowbar;r&plus;0e&lowbar;&theta;
attributes⁡g2
vectorfield,coords=polarr,θ
SetCoordinates⁡&apos;spherical&apos;r&comma;&phi;&comma;&theta;
g3 ≔ Gradient⁡r2⁢&phi;
g3≔2⁢r⁢φe&lowbar;r&plus;re&lowbar;&phi;&plus;0e&lowbar;&theta;
attributes⁡g3
vectorfield,coords=sphericalr,φ,θ
Del⁡r2⁢&phi;
2⁢r⁢φe&lowbar;r&plus;re&lowbar;&phi;&plus;0e&lowbar;&theta;
Gradient⁡
∂∂rSF ⁡r&comma;φ&comma;θe&lowbar;r&plus;∂∂φSF ⁡r&comma;φ&comma;θre&lowbar;&phi;&plus;∂∂θSF ⁡r&comma;φ&comma;θr⁢sin⁡φe&lowbar;&theta;
SetCoordinates⁡&apos;cartesian&apos;x&comma;y&comma;z
Del⁡x2&plus;y2&plus;z2
2⁢xe&lowbar;x&plus;2⁢ye&lowbar;y&plus;2⁢ze&lowbar;z
n1 ≔ Nabla⁡x2&plus;y2&plus;z2
n1≔2⁢xe&lowbar;x&plus;2⁢ye&lowbar;y&plus;2⁢ze&lowbar;z
`.`⁡Del&comma;n1
Del &x VectorField⁡y&comma;−x&comma;0
0e&lowbar;x&plus;0e&lowbar;y&plus;−2e&lowbar;z
L ≔ VectorField⁡x&comma;y&comma;z &x Del
L≔e↦&x⁡xe&lowbar;x&plus;ye&lowbar;y&plus;ze&lowbar;z&comma;Gradient⁡e
L⁡sin⁡x⁢y⁢z
y2⁢x⁢cos⁡x⁢y⁢z−z2⁢x⁢cos⁡x⁢y⁢ze&lowbar;x&plus;−x2⁢y⁢cos⁡x⁢y⁢z+z2⁢y⁢cos⁡x⁢y⁢ze&lowbar;y&plus;x2⁢z⁢cos⁡x⁢y⁢z−y2⁢z⁢cos⁡x⁢y⁢ze&lowbar;z
L ≔ Del &x Del
L≔Curl@Gradient
L⁡f⁡x&comma;y&comma;z
0e&lowbar;x&plus;0e&lowbar;y&plus;0e&lowbar;z
VectorCalculus[Divergence]
VectorCalculus[Laplacian]
Vectors/Gradient