Fundamental Theorem and Conservative Fields
The Fundamental Theorem for Line Integrals
The fundamental theorem for line integrals is the multivariable generalization of the Fundamental Theorem of Calculus. Just as the single-variable FTC lets you evaluate a definite integral by finding an antiderivative at two endpoints, this theorem lets you evaluate a line integral through a vector field by evaluating a potential function at two endpoints.
Here's the precise statement: if is a conservative vector field with potential function (meaning ), and is a smooth curve parameterized by for , then
The line integral depends only on the values of at the endpoints of . You don't need to parameterize the curve or set up a complicated integral. Find the potential function, plug in the endpoints, subtract.
Conservative Vector Fields and Path Independence
A vector field is conservative if there exists a scalar function such that . Conservative fields have a powerful property: path independence. This means the line integral of between two points gives the same value regardless of which path you take between them.
A direct consequence of path independence is that the line integral over any closed curve is zero:
This makes sense if you think about the fundamental theorem: on a closed curve, the start and end points are the same, so .
Gravitational and electrostatic force fields are classic physical examples of conservative fields. In both cases, the work done moving an object between two points depends only on where you start and where you end, not on the route you take.

Scalar Fields and Their Relationship to Vector Fields
A scalar field assigns a single number to each point in space. Temperature distribution across a room is a good example: every point has a temperature value, but that value isn't a vector.
When you take the gradient of a scalar field , you get a vector field . If a given vector field happens to equal for some scalar function , then is called a potential function for , and is conservative. This relationship is what makes the fundamental theorem work: the potential function is the bridge that lets you convert a line integral into a simple endpoint calculation.
Gradients and Potential Functions

Gradients and Their Properties
The gradient of a scalar function is a vector field written . In Cartesian coordinates:
Two key geometric facts about the gradient:
- It points in the direction of greatest rate of increase of at each point.
- Its magnitude equals the rate of change of in that direction.
Think of a topographic map. At any point on the surface, the gradient tells you which direction is the steepest uphill climb and how steep that climb is. Where , you're at a critical point (a peak, valley, or saddle).
Potential Functions and Their Relationship to Vector Fields
A potential function (or scalar potential) for a vector field is a scalar function satisfying . A potential function exists if and only if is conservative.
One thing to watch: the potential function is never unique. If is a potential function for , then for any constant is also a valid potential function, since the gradient of a constant is zero. This parallels the "+C" ambiguity in single-variable antiderivatives.
Physical examples include gravitational potential energy (whose gradient gives the gravitational force field) and electric potential (whose gradient gives the electric field).
Finding a Potential Function
Finding a potential function is the multivariable analog of finding an antiderivative. If is conservative, you need a function satisfying:
Here's the standard process:
-
Integrate one component. Start by integrating with respect to : . The "constant" of integration here is a function since it could depend on the other variables.
-
Determine the unknown function. Differentiate your result with respect to and set it equal to : . This lets you solve for , which you then integrate with respect to to get .
-
Pin down the last piece. Differentiate with respect to and set it equal to to find .
-
Assemble . Combine everything into a single expression for .
Example: Suppose . Integrate with respect to to get . Differentiate with respect to : , so , giving . Differentiate with respect to : , so and . The potential function is .
Once you have , any line integral of reduces to evaluating at the endpoints and subtracting.