Divergence
A vector field is a vector-valued function. If
F(x, y, z) =
p(x, y, z), q(x, y, z), r(x, y, z)
is a vector field, then the scalar
∇⋅
F =

a,
b,
c
+

a,
b,
c
+

a,
b,
c
is the
divergence of F at the point
a, b, c
. The dot product notation is used because the symbol ∇
can be thought of as the vector operator
∇ = 
,
,
. The default is that the field variables are x, y,
and z, in that order. If you wish to label the field variables
differently, reset the default with Set Basis Variables on
the Vector Calculus submenu.
For the following example, use Define + New Definition to define
the following vector fields.
F |
= |
[yz, 2xz, xy] G = (xz, 2yz, z2) |
|
H |
= |
  J =    |
|
where F and G are represented as 3-tuples, H is represented as a
×3 matrix, and J as a 3×1 matrix. Compute divergence with
Evaluate.
Evaluate
∇⋅F = 0
∇⋅G = 5z
∇⋅(xz, 2yz, z2) = 5z
∇⋅(xy, x, 0) = y
∇⋅H = 0
∇⋅J = 5x
∇⋅
a, b, c
= 0
∇⋅
ax, bxy, cz2
= a + bx + 2cz