The following are examples of scalar potential with the standard basis variables.
Vector Calculus + Scalar Potential
(x, y, z), Scalar potential isz2 +
y2 +
x2
(x, z, y), Scalar potential is yz +x2
(y, z, x), Scalar potential does not exist
In the next example, choose Evaluate, and then from the Vector Calculus submenu choose Scalar Potential. Because the vector field is a gradient, it has the original function as a scalar potential.
Evaluate, Vector Calculus + Scalar Potential
∇xy2 + yz3
=
y2, 2xy + z3, 3yz2
, Scalar potential is xy2 + yz3
Note When the vector field is a gradient, it has the original function as a scalar potential.
You would normally expect the scalar potential of the vector field
cv, cu + 2vw, v2
to be ucv + v2w; that is, you expect c to
be treated as a constant. When the number of variables differs from the
number of components in the field vector, a dialog box asks for the field
variables. In this case, you can enter UserInputu,v,w to get the
expected result. The dialog box also appears when you ask for the scalar
potential of a vector field that specifies fewer than three variables, such
as
y, x, 0
. Enter UserInputx,y,z in the dialog box to
get the expected result xy for the scalar potential of this vector field.