Vector Fields and Line Integrals
Defining and Visualizing Vector Fields
A vector field assigns a vector to each point in a subset of space. In 2D, you might write ; in 3D, . Vector fields model physical phenomena like fluid flow, electromagnetic fields, and gravitational fields.
Two common ways to visualize them:
- Arrow plots show the direction and magnitude of vectors at sampled points. Longer arrows mean larger magnitude.
- Streamlines are curves that are tangent to the vector field at every point, tracing out the flow pattern. A particle released into the field would follow a streamline.
The Line Integral of a Vector Field
The central object here is the line integral of a vector field along a curve , written:
This measures the accumulated component of along the direction of travel. Physically, if is a force, this integral gives the work done by the force on an object moving along .
To compute it, parametrize the curve as for , then:
The dot product at each point picks out how much of points along the curve's tangent direction. Where is perpendicular to the curve, the contribution is zero.
Circulation and Flux
Circulation measures the tendency of a vector field to push along a closed curve :
- Positive circulation indicates net counterclockwise rotation; negative indicates clockwise.
- If circulation is zero around every closed curve, the field has no rotational tendency.
Flux across a curve (in 2D) or through a surface (in 3D) measures how much of the field passes through:
- In 2D, flux across a closed curve is , where is the outward unit normal.
- Positive flux means net outward flow; negative means net inward flow.
These two quantities capture complementary information: circulation is about flow along a curve, while flux is about flow across it.

Path Independence and Conservative Fields
A vector field is path independent if the line integral between any two points depends only on the endpoints, not on which curve connects them. This is a strong condition with a direct physical meaning: the work done by moving an object from point to point is the same no matter what route you take.
A vector field with this property is called conservative. Conservative fields have a potential function such that . The potential function acts like a stored-energy landscape: the field always points "downhill" on that landscape, and the work between two points is just the difference in potential values.
Conservative Vector Fields
Properties and Conditions
Conservative vector fields satisfy two equivalent properties:
- Path independence: depends only on the endpoints of .
- Zero circulation on closed loops: for every closed curve in the domain.
These are genuinely equivalent: if every closed-loop integral is zero, you can show any two paths between the same endpoints give the same integral (subtract them to form a closed loop).
For a vector field with continuous first partial derivatives, the component test checks whether could be conservative:
This is equivalent to requiring (the curl is zero). But there's a catch: the domain must be simply connected (no holes). On a domain with holes, a field can pass the component test yet still fail to be conservative. The classic example is the angle field around the origin in 2D.

Potential Functions and Gradients
If is conservative, there exists a scalar function with:
The Fundamental Theorem for Line Integrals then gives you a powerful shortcut:
No parametrization needed. Just evaluate at two points and subtract.
Finding the potential function step by step:
- Integrate with respect to : , where is an unknown function (it plays the role of the "constant" of integration, but it can depend on the other variables).
- Differentiate your result with respect to and set it equal to . This lets you solve for .
- Integrate to update , where is still unknown.
- Differentiate with respect to and set equal to to find .
- Combine everything. The potential is determined up to an additive constant.
Applications and Examples
Gravitational and electrostatic fields are the classic conservative fields. The gravitational field has potential function , and the work done moving a mass between two points depends only on the change in gravitational potential energy.
Non-conservative fields, like friction or magnetic forces on moving charges, do not have potential functions. For these fields, the work done genuinely depends on the path, and closed-loop integrals can be nonzero.
Green's Theorem
Statement and Formulation
Green's theorem connects a line integral around a closed curve to a double integral over the region it encloses. It's a 2D result that converts between two types of computation, letting you pick whichever is easier.
For a vector field where and have continuous partial derivatives on an open region containing and its boundary :
The curve must be positively oriented (counterclockwise) and simple (no self-intersections). The left side is the circulation of around . The right side integrates the scalar curl over the enclosed region.
Notice that if is conservative, the scalar curl is zero everywhere, so the double integral is zero, confirming that circulation around any closed curve vanishes.
Applications and Examples
Green's theorem is useful in several ways:
- Simplifying line integrals: When the boundary curve is complicated but the region has a simple shape, convert to a double integral.
- Computing areas: Choosing and so that turns the double integral into the area of . A common choice is , , giving .
Example: Find the circulation of around the unit circle.
-
Compute the scalar curl: .
-
Apply Green's theorem: .
-
Over the unit disk, is an odd function in and the region is symmetric about the -axis, so the integral is .
Green's theorem is a special case of the more general Stokes' theorem, which relates the surface integral of over a surface to the line integral of around the surface's boundary. In 2D with a flat region, Stokes' theorem reduces exactly to Green's theorem.