Maple Tutorial 17:
Vector Calculus

M.M. Yovanovich

TUTORIAL17.MWS

Vector calculus.

> restart:

> with(linalg):

Warning, new definition for norm

Warning, new definition for trace

Define the function f and the vector g.

> f:= exp(-a*y)*cos(a*x); g:= [y, 2 + x + z, z*exp(x)];

[Maple Math]

[Maple Math]

Gradient of the function f(x,y)

> gradf:= grad(f, [x,y,z]);

[Maple Math]

Components of the gradient of f(x,y).

> fx:= gradf[1]; fy:= gradf[2]; fz:= gradf[3];

[Maple Math]

[Maple Math]

[Maple Math]

Laplacian of the function f(x,y).

> laplacian(f, [x,y,z]);

[Maple Math]

The function is called a harmonic function because the Laplacian is zero.

Divergence of vector g.

> diverge(g, [x,y,z]);

[Maple Math]

Curl of vector g.

> curl(g, [x,y,z]);

[Maple Math]

>