Skip to main content

Section 6.3 Conservative Vector Fields

Updated 2025-04-15.

References.

Topics.

Subsection 6.3.1 The Fundamental Theorem for Path Integrals

For a function of a single variable \(f(x)\text{,}\) the Fundamental Theorem of Calculus says that its definite integral over interval \([a,b]\) can be evaluated by finding an anti-derivative \(F\) (i.e. a function whose derivative is \(f\)) and the simple calculation:
\begin{equation*} \int_a^b f(x) \, dx = F(b) - F(a) = [F(x)]_a^b \end{equation*}
This can be extended first to line integrals of a vector field \(\vec{F}\) along a smooth curve, with the role of the anti-derivative now played by a potential \(f\text{:}\)

Proof.

This comes from results in [cross-reference to target(s) "section-line-integrals" missing or not unique] along with the Chain Rule.
For the 3D case, and a smooth curve \(C\text{,}\)
\begin{align*} \int_C \nabla f \cdot d \vec{r} \amp= \int_a^b \nabla \, f(r(t)) \cdot \frac{d\vec{r}}{dt} \, dt\\ \amp= \int_a^b \left[ \frac{\partial f}{\partial x} \frac{dx}{dt} + \frac{\partial f}{\partial y} \frac{dy}{dt} + \frac{\partial f}{\partial z} \frac{dz}{dt} \right] dt\\ \amp= \int_a^b \frac{d}{dt} f(\vec{r}(t)) dt = \big[ f(\vec{r}(t)) \big]_a^b \end{align*}
For integrals along paths (piecewise smooth curves) we get the same result by adding up the integrals over each of the smooth pieces. For example, if smooth curve \(C_1\) goes from point \(A_1\) [position vector \(\vec{r}_1\)] to \(A_2\) [\(\vec{r}_2\)] and smooth curve \(C_2\) goes from point \(A_2\) to \(A_3\) [\(\vec{r}_3\)], they combine to form a path \(C=C_1+C_2\) from \(A_1\) to \(A_3\text{,}\) and
\begin{align*} \int_C \nabla f \, ds \amp= \int_{C_1} \nabla f \, ds + \int_{C_2} \nabla f \, ds\\ \amp= f(\vec{r}_2)-f(\vec{r}_1) + f(\vec{r}_3)-f(\vec{r}_2)\\ \amp= f(\vec{r}_3)-f(\vec{r}_1), \end{align*}
which is still the change in the value of \(f\) between the initial and final points, as advertised.

Subsection 6.3.2 Independence of Path for Integrals of Gradient Fields

The above results says that the value of the path integral of a gradient field depends only on the endpoints, not the curve used to connect those points. Thus for any other path \(P_2\) with the same initial and final points, the path integral of \(\nabla f\) has the same value.

Definition 6.3.2.

We say that \(\int_C \vec{F} \cdot d\vec{r}\) is independent of path in domain \(D\) if this path integral has the same value for any two paths with the same initial and final points that stay within \(D\text{.}\)
In this case we can write
\begin{equation*} \int_A^B \vec{F} \cdot d\vec{r} \end{equation*}
for the common value of the integral along any path in \(D\) from point \(A\) to point \(B\text{.}\)

Subsection 6.3.3 Closed Paths

One simple and important case is that of a closed path \(C\text{:}\) one whose initial and final points are the same, so that it is a "loop".
An integral \(\int_C\) around a closed path is also denoted \(\oint_C\) to emphasize this property of the path.
Clearly the path integral of a gradient field over a closed path is zero. In fact,

Proof.

If the integral of \(\vec{F}\) around any closed path in \(D\) is zero and \(C_1\text{,}\) \(C_2\) are two paths in \(D\) from point \(A\) to point \(B\text{,}\) then the path consisting of \(C_1\) followed by \(-C_2\) is a closed path in \(D\text{,}\) going from \(A\) to \(B\) and back again.
Thus the integral around this path is 0, and so
\begin{equation*} 0 = \int_{C_1} \vec{F} \cdot d\vec{r} + \int_{-C_2} \vec{F} \cdot d\vec{r} = \int_{C_1} \vec{F} \cdot d\vec{r} - \int_{C_2} \vec{F} \cdot d\vec{r}. \end{equation*}
So the integral is the same along either path: path independence.
Conversely, suppose the integral is path independent in \(D\text{.}\)
For any closed path \(C\) in \(D\) its initial and final point is the same.
The path integral on \(C\) is the same as on the path \(C_2\) which just stays at that point.
Clearly the path integral along this "trivial" path \(C_2\) is zero, so the integral along the closed path \(C\) is also zero.

Subsection 6.3.4 Independence of Path Implies that a Field is Conservative

Not only are the path integrals of a conservative field path independent, but the converse is also true, at least in domains that are open and where any two points can be connected by a path.

Definition 6.3.4.

A set in \(\mathbb{R}^2\) or \(\mathbb{R}^3\) is connected (or path connected) if any two points in the set are connected by a path that stays within that set.

Proof.

We already know one half of this, so it only remains to show that path independence implies existence of such an \(f\text{,}\) which is is like finding an anti-derivative for \(\vec{F}\text{.}\)
For simplicity of notation this will be done only in 2D, so \(\vec{F}(x,y) = \vector{F_1(x,y),F_2(x,y)}\text{.}\) (As usual nothing much changes in 3D.)
Taking some point \(A(a,b)\) as a "starting point", then for any suitable function \(f\)
\begin{equation*} f(x,y) - f(a,b) = \int_A^{(x,y)} \nabla f \cdot d\vec{r} = \int_A^{(x,y)} \vec{F} \cdot d\vec{r} \end{equation*}
for any path \(C\) from \(A\) to \(P(x,y)\text{.}\)
Such paths exist due to connectedness, and any such path gives the same value due to path independence.
Choosing \(f\) to have value zero at \(A\) (this is a like choosing a constant of integration), the only possibility is
\begin{equation*} f(x,y) = \int_A^{(x,y)} \vec{F} \cdot d\vec{r} \end{equation*}
But does this function have the correct partial derivatives?
Consider such a path that ends by coming in to point \(P\) from the left parallel to the \(x\)-axis, so the last part of the path is the straight line segment from \((c,y)\) to \((x,y)\) for some \(c \lt x\text{.}\)
Parameterizing the final straight part as \(\vec{r}(t)=(t,y)\text{,}\) \(c \leq t \leq x\text{,}\)
\begin{align*} f(x,y) \amp= \int_A^{(c,y)} \vec{F} \cdot d\vec{r} + \int_{(c,y)}^{(x,y)} \vec{F} \cdot d\vec{r}\\ \amp= K(y) + \int_c^x \vec{F}(t,y) \cdot \frac{d\vec{r}(t)}{dt}\, dt, \; \mbox{with } K(y)=\int_A^{(c,y)} \vec{F} \cdot d\vec{r}\\ \amp= K(y) + \int_c^x \vector{F_1(t,y),F_2(t,y)} \cdot \vector{1,0} \, dt\\ \amp= K(y) + \int_c^x F_1(t,y) \, dt \end{align*}
Differentiating with respect to \(x\text{,}\) and using Part 1 of the Fundamental Theorem of Calculus gives
\begin{equation*} \ds \frac{\partial f}{\partial x} = F_1(x,y)\text{.} \end{equation*}
Similarly, \(\ds \frac{\partial f}{\partial y} = F_2(x,y)\text{,}\) so \(\nabla f = \vector{F_1,F_2} = \vec{F}\text{,}\) as needed.

Subsection 6.3.5 Testing if a Vector Field is Conservative

It would be nice to be able to check if a vector field is conservative without computing an infinite number of path integrals! Fortunately this can be done: here only the 2D case will be described.
First, there is a simple condition that must be true for \(\vec{F}\) to be conservative.

Proof.

If \(\vec{F}\) is conservative, \(\ds P=\frac{\partial f}{\partial x}\text{,}\) \(\ds Q=\frac{\partial f}{\partial x}\text{,}\) so using Clairaut’s Theorem,
\begin{equation*} \frac{\partial P}{\partial y} = \frac{\partial f}{\partial y \partial x} = \frac{\partial f}{\partial x \partial y} = \frac{\partial Q}{\partial x}. \end{equation*}
We will see soon that the converse is also true under a restriction on the shape of the domain, but it is not true in every situation, as this exercise shows.

Exercise 6.3.7.

Consider
\begin{equation*} \vec{F}(x,y) = P\veci + Q\vecj = \frac{-y}{x^2+y^2}\veci + \frac{x}{x^2+y^2}\vecj \end{equation*}
on its natural domain, all of \(\mathbb{R}^2\) except the origin.
Show that this satisfies the cross-partials condition Equation (6.3.2) but its path integral along the circle of radius one going anti-clockwise around the origin is not zero, so \(\vec{F}\) is not conservative.
The above cross-partials condition Equation (6.3.2) does guarantee that a vector field is conservative under the restriction that, loosely speaking, the domain has no holes in it.
This excludes the domain in Exercise 6.3.7 which has a hole at the origin.
More precisely, we say a domain is simply connected if for any closed path, all the point inside the path are in the domain \(D\text{.}\) Then The proof can only be sketched in this course, and this will be done in Subsection 6.4.2, as a consequence of Green’s Theorem (Circulation Form). There is also a corresponding result in 3D, which will be seen in the section Stokes’ Theorem.

Example 6.3.9.

For the vector field \(\vec{F}\) in the previous exercise, but restricted to domain \(x \gt 0\text{,}\) note that this domain is simply connected and verify that \(\vec{F}\) is the gradient of \(\arctan(y/x)\) on that domain.
Thus, the integrals of this vector field around any closed path in this domain is zero. In fact the same is true so long as the path does not go around the hole at the origin. Roughly, the function \(f\) is the angle \(\theta\) in polar coordinates, and the integral along a path is the change in this angle between the endpoints of the path. For a closed path that loops around the origin, this can be any multiple of \(2\pi\text{.}\)
(Aside: the value of this integral along a closed path divided by \(2\pi\) is called the winding number of the path around the origin.)

Subsection 6.3.6 Conservation of Energy

Perhaps the most important example of path integrals is the work done by a force \(\vec{F}\) as an object moves along a path \(C\) given by \(\vec{r}\text{,}\) \(a \leq t \leq b\text{,}\)
\begin{equation*} W = \int_C \vec{F}\cdot d\vec{r} \end{equation*}
This force also produces an acceleration \(\vec{r}''\text{,}\) with \(\vec{F}(\vec{r}) = m\vec{r}''\text{,}\) so the work done by the force as the object moves along the path is
\begin{equation*} W = \int_C \vec{F}\cdot d\vec{r} = \int_a^b m\vec{r}'' \cdot \vec{r}' dt = \frac{m}{2}\int_a^b \frac{d}{dt}\left(\vec{r}' \cdot \vec{r}'\right) dt = \frac{m}{2} \big[ \vec{r}' \cdot \vec{r}' \big]_a^b = \frac{m |v(b)|^2}{2} - \frac{m |v(a)|^2}{2} \end{equation*}
Here \(\vec{v}=\vec{r}'\) is the velocity so \(|\vec{v}|\) is the speed and \(\ds\frac{m |v(t)|^2}{2}\) is half the mass times the speed squared: the kinetic energy. Thus, the work done by the force is the change in the kinetic energy of the object.
If the force is conservative, it is a gradient, so for a suitable function \(P\text{,}\) \(\ds \vec{F} = -\nabla P \text{.}\)
Thus work is also given by
\begin{equation*} W = \int_C \vec{F}\cdot d\vec{r} = \int_C -\nabla P \cdot d\vec{r} = -[P(\vec{r}(b)-P(\vec{r}(a)], \end{equation*}
so the change in the potential energy is \(-W\text{.}\)
Defining the total energy as kinetic energy plus potential energy, its change is the sum of these changes, \(W + (-W)=0\text{:}\) The total energy is conserved.

Study Guide.

Study Section 6.3 of OSC3
 9 
openstax.org/books/calculus-volume-3/pages/6-3-conservative-vector-fields
; in particular
  • All the Definitions and Theorems.
  • The Problem Solving Strategy for calculating a Potential for a vector field.
  • All Examples (and the Checkpoints following each).
  • The true/false exercises 99–102.
  • The following exercises (for pairs and ranges, do at least one in each): 103, 106–111, 112&113, , 126&129.