Gradient, Divergence, and Curl
To access gradient, divergence, and curl first input
<<Calculus`VectorAnalysis`
To do computations in rectangular coordinates:
SetCoordinates[Cartesian[x,y,z]]
Gradient
To determine the gradient of f(x,y) = (x^2+y^2)^(1/2):
Grad[Sqrt[x^2+y^2]]
To plot the contours of f:
To make the picture smoother:
Divergence
To determine the divergence of v = <x y z, 1/(x^2-y^2), x^2 z>:
Div[{x y z, 1/(x^2 - y^2), x^2 z}]
Curl
To determine the divergence of v = <x y z, 1/(x^2-y^2), x^2 z>:
Curl[{x y z, 1/(x^2 - y^2), x^2 z}]