01 / 21

Vector Fields
& Field Lines

Discover how vector-valued functions assign arrows to every point in space, and learn to read the field lines that reveal flow, force, and direction.

Calculus 3

What Is a Vector Field?

A vector field is a function that assigns a vector to every point in a region of space. In two dimensions we write:

Each component \(P\) and \(Q\) is a scalar function. At every point \((x,y)\), the field tells you which direction and how strongly something pushes.

Visualizing Arrows in the Plane

We draw a small arrow at each sample point. The arrow's direction shows where the field points; its length shows the magnitude.

Extending to Three Dimensions

In 3D, a vector field assigns a vector to every point \((x,y,z)\):

Gravitational Field
Points radially inward: \(\mathbf{g} = -\frac{GM}{r^2}\,\hat{\mathbf{r}}\)
Fluid Flow
Velocity at each point describes how a fluid moves through space
Electric Field
Field from a point charge: \(\mathbf{E} = \frac{kq}{r^2}\,\hat{\mathbf{r}}\)

What Are Field Lines?

A field line (or flow line) is a curve whose tangent vector at every point equals the vector field there. Formally, a curve \(\mathbf{r}(t)\) is a field line of \(\mathbf{F}\) if:

Field lines never cross (except where \(\mathbf{F}=\mathbf{0}\)), and their density indicates the field's strength: closer lines mean stronger field.

Reading Field Line Diagrams

Direction
Arrows show which way the field pushes at each point
Density
Closer lines = stronger field; farther apart = weaker
No Crossing
Two field lines never intersect except at a zero of \(\mathbf{F}\)

The Field Line ODE

To find field lines of \(\mathbf{F} = \langle P(x,y),\, Q(x,y) \rangle\), we solve the system of ordinary differential equations:

Equivalently, eliminate the parameter \(t\) to get:

This single ODE describes the slope of each field line at every point where \(P \neq 0\).

Vector Field vs. Field Lines vs. Gradient

Vector Field Field Lines Gradient Field
Definition Function \(\mathbf{F}(x,y)\) assigning a vector to each point Curves tangent to \(\mathbf{F}\) everywhere A field where \(\mathbf{F} = \nabla f\) for some scalar \(f\)
Visual Collection of arrows Smooth curves with arrowheads Arrows perpendicular to level curves of \(f\)
Key property Defined pointwise Never cross Path-independent line integrals
Example \(\langle -y, x \rangle\) Circles centered at origin \(\nabla(x^2+y^2) = \langle 2x,2y \rangle\)

How to Sketch Field Lines

1
Write the ODE. Set up \(\dfrac{dy}{dx} = \dfrac{Q}{P}\) from the components of \(\mathbf{F}\).
2
Separate or solve. Solve the ODE analytically (separation of variables, exact, etc.) or use a numerical method.
3
Plot several curves. Choose different initial conditions to get a family of field lines that fill the plane.
4
Add arrows. Place arrowheads in the direction of \(\mathbf{F}\) so the flow direction is clear.
5
Check zeros. Identify points where \(\mathbf{F}=\mathbf{0}\): field lines converge to or diverge from these equilibria.

Example 1: Radial Field

Find the field lines of \(\mathbf{F}(x,y) = \langle x,\, y \rangle\).

Example 2: Rotational Field

Find the field lines of \(\mathbf{F}(x,y) = \langle -y,\, x \rangle\).

Example 3: A Gradient Field

Let \(f(x,y) = x^2 - y^2\). Its gradient field is \(\nabla f = \langle 2x,\, -2y \rangle\). Find the field lines.

Divergence & Curl: Field Line Clues

Two important operations on vector fields tell us about the geometry of field lines:

Divergence \(\nabla \cdot \mathbf{F}\)
Measures how much field lines spread out (source) or converge (sink) at a point. Positive = source, negative = sink.
Curl \(\nabla \times \mathbf{F}\)
Measures how much field lines circulate around a point. For a 2D field, this is the scalar value \(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\).

Sources, Sinks, & Saddles

Source
Field lines radiate outward. \(\nabla \cdot \mathbf{F} > 0\) at that point.
Sink
Field lines converge inward. \(\nabla \cdot \mathbf{F} < 0\) at that point.
Saddle
Lines approach along one axis and diverge along the other. \(\nabla \cdot \mathbf{F} = 0\).

Common Mistakes

✕ Drawing Crossing Lines
Field lines never cross (except at zeros of \(\mathbf{F}\)). If your sketch has crossings, the tangent direction would be ambiguous.
✕ Confusing Arrows with Lines
A vector field plot shows individual arrows at sample points. Field lines are continuous curves derived from those arrows.
✕ Forgetting the Direction
Field lines must carry arrowheads. Without them, you lose the sign information: is it a source or a sink?

Summary of Key Concepts

Concept Formula / Rule Visual Signature
2D Vector Field \(\mathbf{F} = \langle P, Q \rangle\) Arrows at each point
Field Line ODE \(\dfrac{dy}{dx} = \dfrac{Q}{P}\) Tangent curves
Gradient Field \(\mathbf{F} = \nabla f\) Lines perpendicular to level curves
Divergence \(\nabla \cdot \mathbf{F} = \frac{\partial P}{\partial x} + \frac{\partial Q}{\partial y}\) Spreading / converging lines
Curl (2D) \(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\) Circulating lines

Question 1 of 5

What are the field lines of the vector field \(\mathbf{F}(x,y) = \langle 2, 3 \rangle\)?

Question 2 of 5

If field lines in a region are getting closer together, what does this indicate about the field?

Question 3 of 5

What is the divergence of \(\mathbf{F}(x,y) = \langle x^2,\, 3xy \rangle\)?

Question 4 of 5

Which of the following is not a property of field lines?

Question 5 of 5

For the gradient field \(\nabla f\), field lines are always perpendicular to: