43. Vector Fields
(PDF)

A vector field is a function F that assigns to each ordered pair (x, y) in R2 a vector of the form 〈M(x, y), N(x, y)〉. We write

F(x, y) = 〈M(x, y), N(x, y)〉.

This can be extended into higher dimensions. For example. In R3, we would write

F(x, y, z) = 〈M(x, y, z), N(x, y, z), P(x, y, z)〉.

• • • • • • • •

Example 43.1: Sketch F(x, y) = 〈x, y〉.

Solution: Using an input−output table, we can show some of the vectors in the vector field F:

Ordered pair (x,y)	Vector 〈x,y〉		Ordered pair (x,y)	Vector 〈x,y〉
(0,0)			〈0,0〉			(−1,0)			〈−1,0〉
(1,0)			〈1,0〉			(−1,1)			〈−1,1〉
(1,1)			〈1,1〉			(1,−1)			〈1,−1〉
(0,1)			〈0,1〉			(2,1)			〈2,1〉
(1,2)			〈1,2〉			(2,2)			〈2,2〉

The vector 〈x, y〉 is drawn so that its foot is at the point described by the ordered pair (x, y). Below (left) are a sample of vectors of F, and at right, a slightly-more complete rendering of the vector field. In this example, the vectors point radially (along straight lines) away from the origin.

It is time consuming to sketch a vector field. Also, the vectors themselves "cover up" other vectors, resulting in a cluttered, unreadable image. Artistic liberties are allowed. For example, the vectors may be scaled down in size to show relative magnitudes rather than true magnitudes. Often, it is more important to see the "flow" created by the vectors, rather than the actual magnitudes.

• • • • • • • •

Example 43.2: Sketch F(x, y) = 〈y, −x〉.

Solution: An input−output table shows some of the vectors, followed by an image of the vector field.

Ordered pair (x,y)	Vector 〈x,y〉		Ordered pair (x,y)	Vector 〈x,y〉
(0,0)			〈0,0〉			(−1,0)			〈0,1〉
(1,0)			〈0,−1〉			(−1,1)			〈1,1〉
(1,1)			〈1,−1〉			(1,−1)			〈−1,−1〉
(0,1)			〈1,0〉			(2,1)			〈1,−2〉
(1,2)			〈2,−1〉			(2,2)			〈2,−2〉

The vectors suggest a clockwise rotation around the origin.

• • • • • • • •

Example 43.3: Sketch F(x, y) = 〈1, 2〉.

Solution: This is a constant vector field. All vectors are identical in magnitude and orientation. In the image below, each vector is shown at half−scale so as not to clutter the image too severely.

This vector field is not radial nor does it suggest any rotation.

• • • • • • • •

Example 43.4: Sketch F(x, y) = 〈x + y, yx〉.

Solution: The vector field is shown below:

This vector field appears to have both radial and rotational aspects in its appearance.

• • • • • • • •

Gradient Vector Fields

Given a function z = f (x, y), its gradient is ∇f = 〈 fx (x, y), fy (x, y)〉. This is called a gradient vector field (or just gradient field). It is also called a conservative vector field and is discussed in depth in Section 47. In such a case, the vector field is written as F(x, y) = ∇f = 〈 fx, fy 〉.

Gradient vector fields have an interesting visual property: the vectors in the vector field lie orthogonal to the contours of f.

• • • • • • • •

Example 43.5: Given f (x, y) = (1/2)x2 + (1/2)y2, find F(x, y) = ∇f and sketch it along with the contour map of f.

Solution: The vector field is F(x, y) = ∇f = 〈 fx (x, y), fy (x, y) 〉 = 〈x, y〉. The contours of f are concentric circles of the form (1/2)x2 + (1/2)y2 = k centered at the origin, the surface being a paraboloid with its vertex at (0,0,0) and opening upward. Note that the vectors in F are orthogonal to the contours of f. This is the same vector field as seen in Example 43.1. The vectors point in the direction of increasing z.

• • • • • • • •

Example 43.6: Given f (x, y) = x + 2y, find F(x, y) = ∇f and sketch it along with the contour map of f.

Solution: The vector field is F(x, y) = ∇f = 〈 fx (x, y), fy (x, y) 〉 = 〈1, 2〉. The surface of f is a plane tilting "upward" as x and y both increase in value. Note that the contours of f are all lines of the form x + 2y = k, or y = (−1/2)x + k/2, and that the vectors in F are orthogonal to the contours of f, pointing in the direction of increasing z. This is the same vector field as in Example 43.3.

• • • • • • • •

Not all vector fields are gradient fields. Those in Examples 43.2 and 43.4 are not gradient fields. There do not exist functions z = f (x, y) such that F(x, y) = ∇f in these two examples.

If F is a gradient field, then there exists a function f such that F(x, y) = ∇f. This function f is called a potential function, discussed later in Section 47.

All constant vector fields F(x, y) = 〈a, b〉 are gradient fields, where f (x, y) = ax + by is a potential function. In R3, we would have F(x, y, z) = 〈a, b, c〉, with potential function f (x, y, z) = ax + by + cz.

Vector fields of the form F(x, y) = 〈M(x), N(y)〉 are gradient fields, with potential function f (x, y) = ∫ M(x) dx + ∫ N(y) dy.

• • • • • • • •

Example 43.7: Find the potential functions for F(x, y, z) = 〈−1, 4, 2〉 and for G(x, y) = 〈2x, y4〉.

Solution: For F, a potential function is f (x, y, z) = ∫ (−1) dx + ∫ 4 dy + ∫ 2 dz = −x + 4y + 2z, and for G, a potential function is g(x, y) = ∫ 2x dx + ∫ y4 dy = x2 + (1/5)y5.

Constants of integration are not necessary. If F is a gradient field, then it has infinitely−many potential functions, all equivalent up to its constant of integration. Note that for F above, f (x, y, z) = −x + 4y + 2z + 7 is also a valid potential function. Usually, we let any such constant be 0.

• • • • • • • •

Paths that are orthogonal to the contours for each point in the path are called streams, or streamlines. In Example 43.5, streamlines would be of the form y = kx, and in Example 43.6, of the form y = 2x + k. On a surface, a stream of water would flow orthogonally to the contours of the surface, always in the direction of steepest descent.

• • • • • • • •

Example 43.8: Given f (x, y) = x3 + y3 − 3x − 3y, find F(x, y) = ∇f and sketch it along with the contour map of f.

Solution: The vector field is

F(x, y) = ∇f = 〈 fx, fy 〉 = 〈 3x2 − 3, 3y2 − 3 〉.

The vector field F is shown below with the contours of f:

Using techniques of unconstrained optimization (Section 29), there are four critical points. They are: (1,1,−4), a minimum; (−1,−1,4), a maximum; and (1,−1,0) and (−1,1,0), both saddle points. Observe a few things:

  • The vectors in F always point in the direction of increasing z, or "up".
  • Note that the vectors point "up" toward the maximum at (−1,−1,4) and "up" away from the minimum at (1,1,−4).
  • At each critical point, ∇f = 〈0, 0〉. In the image above, the vectors near these points have very small magnitudes, while the vectors at these critical points have no magnitude.

• • • • • • • •

Example 43.9: Sketch F(x, y, z) = 〈x, y, z〉.

Solution: The vector field is sketched below, for x > 0, y > 0 and z > 0:

The vectors in F all point radially away from the origin, increasing in magnitude the farther away from the origin.

Sketching a vector field in R3 is nearly impossible to do manually. A computer program is an essential tool to render such fields.

• • • • • • • •

Given a function w = f (x, y, z), then a gradient field in R3 can be defined by the gradient of f:

F(x, y, z) = ∇f = 〈 fx, fy, fz 〉.

A function such as w = f (x, y, z) exists in R4 (three independent variables, one dependent variable). Its contours will be surfaces in R3, and the vectors in the gradient field given by ∇f will be orthogonal to the contours, which in this case are surfaces.

• • • • • • • •

Example 43.10: Show that w = f (x, y, z) = (1/2)x2 + (1/2)y2 + (1/2)z2 is a potential function of F(x, y, z) = 〈x, y, z〉. Discuss how the vectors in F compare to the contours of f.

Solution: The gradient of f is shown below:

f = 〈 fx, fy, fz 〉 = 〈x, y, z〉.

The contours of f are found by setting w equal to various constants. For example, when w = 1, then we have

1 = (1/2)x2 + (1/2)y2 + (1/2)z2, so that x2 + y2 + z2 = 2.

This is a sphere centered at the origin with radius √(2). In fact, all contours of f are spheres. As w increases in value, its contour at w = k is given by the sphere x2 + y2 + z 2 = 2k.

For example, the vector whose foot lies at (1,2,3) is given by 〈1,2,3〉. The point (1,2,3) itself lies on a sphere with radius √(14). The vector 〈1,2,3〉 has its foot on this sphere, oriented orthogonally to this sphere, pointing directly away from the origin.

 

 

 

By Scott Surgent. Please send feedback or error notification to me at scott dot surgent at gmail.