Plotting 3-D Gradient Fields

First define a scalar field to take the gradient of:

> gpot:=1/sqrt(x^2+y^2+z^2);

[Maple Math]

Maple's "gradplot3d" command will take the gradient of this scalar field and plot the resulting vector field:

> gradplot3d(gpot,x=-2..2,y=-2..2,z=-2..2,scaling=constrained,thickness=2,arrows=SLIM,shading=zhue,axes=frame,orientation=[30,75]);

[Maple Plot]

If this looks the same as the gravitational vector field, that's because it is! gpot is the gravitational potential, who's gradient gives the gravitational force field!

>