Vector Fields in 2 and 3 Dimensions

Since a vector field assigns vectors to points, they can be written as 3 dimensional vector-valued functions:

F ( x,y,z ) = `<,>`(M(x,y,z),N(x,y,z), P(x,y,z))

If P(x,y,z) = 0  for all ( x,y,z ) and M,N do not depend on z , then the vector field is 2-dimensional, and we write either

F ( x,y ) = `<,>`(M(x,y),N(x,y), 0)        or       F ( x,y ) = `<,>`(M(x,y),N(x,y))

For example, the vector field F ( x,y ) = `<,>`(-y,x)   assigns the vector `<,>`(-y,x)  to the point ( x,y ).  To illustrate, the vector F = `<,>`(-3,4)  is assigned to the point (4,3).

Let's look at this vector field with Maple .  To begin with, we must define coordinates with the SetCoordinates  command.  A vector field is then defined with the VectorField command in terms of the coordinate variables defined in SetCoordinates.  

>    SetCoordinates(cartesian[x,y]);
F:=VectorField(<-y,x>);

>   

The fieldplot command is then used to graph the vector-field.

>    fieldplot(F,x=-1..1,y=-1..1,color=red,arrows=slim);

>   

To plot 2-dimensional vector fields with Maple , we use the fieldplot3d  command. First, however, we must change our coordinates to 3-dimensional cartesian.

>    SetCoordinates(cartesian[x,y,z]):
fieldplot3d([-y,x,z],x=-5..5,y=-5..5,z=-5..5,arrows=THICK,color=red,grid=[5,5,5]);

>   

A vector field  is often studied with the concept of a flow , where a set of curves is a flow  of a 2-dimensional vector field F ( x,y ) = `<,>`(M(x,y),N(x,y))  if for every point ( x, y) in the plane, there is a curve r ( t ) in the flow that satisfies

dr/dt  = F    and r (0) = ( x,y )

For example, the set of concentric circles centered at the origin is the flow of the 2-dimensional vector field F ( x,y ) = `<,>`(-y,x) , as is shown in the animated figure below:  

[Maple Plot]

(commands used to create the animation above)

We will return to this example in the last section.