A vector field is a function that associates a point with a vector. An example is Earth’s gravitational field:
Sketch
The Earth exerts an attractive force on a point-mass located anywhere inthe universe. At every point , wer draw a vector pointing in the direction of the attractive force with length equal to the magnitude of the force.
(according to Newton, the magnitude of the force is inversely proportional to the distance from the point to the Earth.)
Vector fields are convenient for problems involving Flow. Consider the problem of water flowing through a stream:
Sketch
At every point in the stream, we can assign a vector whivh tells use the direction the water is moving. The magnitude of the vector tells us the velocity of the water at that point.
Notation
The vector field has the notation:
Where and are scalar functions.
Example
Sketch the vector field
Solution
When we input the point , outputs the vector . Meaning: at the point , we sketch the position vector .
Sketch
Remark
The initial points of the vector are drawn from the point ; e.g. at we draw the vector
Observe
The vectors in this field “diverge” from a source, such as the velocity of air in an explosion
Sketch the field
\vec{F} = -y \vec{i}+x \vec{j} =\langle-y,x\rangle
Sketch
This sketch comes from plotting a few example vectors until we notice that pattern:
Observe:
The vector field “rotates”, such as air in a tornado
Vector Fields in Mathematica
Sketching vector fields by hand is very tedious, especially if the vector field is 3-dimensional, e.g. .
MUST SEE: the Mathematica file called “vector fields” for a demo of the VectorPlot
and VectorPlot3D
commands
EXTRA: we can also use MatPlotLib to do the same
note: my code interpreter does not allow for a dynamic canvas just yet, so if you want the full render run this code on your own machine.
Gradient Vector Fields
Recall that . Thus, the gradient vector is really a vector field.
Graph
Example
The gradient vector field for , superimposed on the contour map. As we would expect, the gradient vectors are perpendicular to the contours.
Conservative Vector Fields
We say is a conservative vector field if for some scalar function . In this context, is called a potential function for . Conservative vector fields will be important to us soon…