Section 2.3 Path independence, conservative fields, potential functions
Subsection 2.3.1 Gradient vector fields and the fundamental theorem of line integrals
Definition 2.3.1. Gradient vector fields and potential functions.
A vector field \(\boldF\colon \R^n\rightarrow \R^n\) is a gradient vector field if there is a scalar function \(f\colon \R^n\rightarrow \R\) such that
A function \(f\) satisfying (2.3.1) is a potential function of \(\boldF\text{.}\)
Example 2.3.2. Gradient vector fields.
The vector field
is a gradient vector field. Indeed, we have \(\boldF=\nabla f\text{,}\) where
Thus \(f\) is a potential function for \(\boldF\text{.}\) The function \(g(x,y,z)=xyz+5\) is another potential function of \(\boldF\text{.}\)
The vector field
is a gradient vector field, with potential function
Gradient vector fields \(\boldF=\nabla f\) are nice to compute with, as the following theorem indicates.
Theorem 2.3.3. Fundamental theorem of line integrals.
Let \(\boldr\colon [a,b]\rightarrow \R^n\) be a smooth parametrization of the curve \(\mathcal{C}\subseteq\R^n\) with initial point \(P=\boldr(a)\) and end point \(Q=\boldr(b)\text{,}\) and assume the vector field \(\boldF\colon \R^n\rightarrow \R^n\) is continuous on a set containing \(\mathcal{C}\text{.}\) If \(\boldF=\nabla f\) for some function \(f\text{,}\) then
Proof.
We have
Corollary 2.3.4. Integral of gradient field over closed curve.
If \(\mathcal{C}\subseteq\R^n\) is a smooth closed curve, and if \(\boldF=\nabla f\) is a gradient vector field that is continuous on a set containing \(\mathcal{C}\text{,}\) then
Proof.
Let \(P\) be the initial and end point of the closed curve \(\mathcal{C}\text{.}\) According to Theorem 2.3.3 we have
Corollary 2.3.4 provides a potential way of showing a vector field \(\boldF\) is not a gradient field: namely, show that \(\oint_\mathcal{C}\boldF\cdot d\boldr\ne 0\) for a suitably chosen closed curve \(\mathcal{C}\text{.}\)
Example 2.3.5. A non-gradient vector field.
Use Corollary 2.3.4 to show that \(\boldF=\angvec{-y,x}\) is not a gradient vector field.
Let \(\mathcal{C}\) be the unit circle \(x^2+y^2=1\text{,}\) with parametrization \(\boldr(t)=(\cos t, \sin t)\text{.}\) We have
Since \(\oint_\mathcal{C}\boldF\cdot d\boldr\ne 0\text{,}\) Corollary 2.3.4 implies that we cannot have \(\boldF=\nabla f\text{.}\)
Example 2.3.6. Work done by gravity.
Given a point particle of mass M at the origin in \(\R^3\text{,}\) the gravitational force \(\boldF(x,y,z)\) acting on a point particle of mass \(m\) at position \((x,y,z)\) is
where \(G\) is the gravitational constant and \(\boldx=\angvec{x,y,z}\) is the position vector of the object. Compute the work done by gravity if the point particle of mass \(m\) travels from position \(P=(x_1,y_1,z_1)\) to position \(Q=(x_2,y_2,z_2)\) along a smooth curve \(\mathcal{C}\text{.}\)
As suggested by the setup, we suspect \(\boldF\) is a gradient vector field. Indeed, we have \(\boldF=\nabla f\text{,}\) where
as you can easily check. According to Theorem 2.3.3, we have
Observe that this expression for the work \(W\) is equal to the change in the object's kinetic energy the object undergoes as it moves from position \(P\) to \(Q\text{.}\)
Subsection 2.3.2 Conservative vector fields
Theorem 2.3.3 can be summarized by saying that if \(\boldF=\nabla f\) is a gradient vector field, then the line integrals along any two paths connecting points \(P\) and \(Q\) are always equal: i.e. that the line integral from \(P\) to \(Q\) of \(\boldF\) is independent of the path.
Definition 2.3.7. Conservative vector field.
Let \(\boldF\) be a continuous vector field on the open set \(D\text{.}\) We say \(\boldF\) is conservative if for any points \(P, Q\in D\text{,}\) and any piecewise smooth curves \(\mathcal{C}_1, \mathcal{C}_2\subseteq D\) starting at \(P\) and ending at \(Q\text{,}\) we have
When (2.3.3) holds, we say that line integrals of \(\boldF\) between points in \(D\) are path independent.
Theorem 2.3.8. Loop property of conservative fields.
If \(\boldF\) is a continuous vector field on the open set \(D\text{,}\) then \(\boldF\) is conservative if and only if \(\oint_\mathcal{C}\boldF\cdot d\boldr=0\) for all piecewise smooth closed curves \(\mathcal{C}\subseteq D\text{.}\) Using logical shorthand:
Proof: conservative \(\ \implies \oint_\mathcal{C}\boldF\cdot d\boldr=0\).
Assume \(\boldF\) is conservative. Given a closed curve \(\mathcal{C}\text{,}\) pick two points \(P, Q\in \mathcal{C}\) and consider \(\mathcal{C}\) as a parametrize curve \(\mathcal{C}_1\) from \(P\) to \(Q\) followed by a parametrized curve \(\mathcal{C}_2\) from \(Q\) to \(P\text{.}\) We have
How is the conservative property used in the penultimate equality? The parametrizations \(\mathcal{C}_1\) and \(-\mathcal{C}_2\) both start at \(P\) and end at \(Q\text{;}\) since \(\boldF\) is conservative, the corresponding line integrals are equal.
Proof: \(\oint_\mathcal{C}\boldF\cdot d\boldr=0 \implies\) conservative.
The proof is very similar to the first implication. Given any two curves \(\mathcal{C}_1, \mathcal{C}_2\) connecting points \(P,Q\text{,}\) the curve \(\mathcal{C}\) obtained by first travelling along \(\mathcal{C}_1\) and then along the reverse\(-\mathcal{C}_2\) of \(\mathcal{C}_2\) is closed. We have
and hence
Theorem 2.3.9. Gradient implies conservative.
If \(\boldF=\nabla f\) is a continuous gradient vector field on the open set \(D\text{,}\) then \(\boldF\) is conservative on \(D\text{.}\) Using logical shorthand:
Proof.
Take any piecewise smooth curve \(\mathcal{C}\subseteq D\) from point \(P\) to \(Q\text{,}\) and let \(P=P_0, P_1,\dots, P_{n-1}, P_n=Q\) be a partition of \(\mathcal{C}\) into \(n\) smooth curve segments \(\mathcal{C}_k\) from \(P_{k-1}\) to \(P_k\text{.}\) We have
This shows that the line integral of \(\boldF\) between any two points in \(D\) is path independent, and hence that \(\boldF\) is conservative on \(D\text{.}\)
Definition 2.3.10. Open connected sets.
An open set \(D\subseteq\R^n\) is connected if for any two points \(P, Q\in D\) there is a piecewise smooth curve \(\mathcal{C}\subseteq D\) from \(P\) to \(Q\text{.}\)
Theorem 2.3.11. Gradient iff conservative (connected domain).
If \(\boldF\) is a continuous vector field on the open connected set \(D\text{,}\) then \(\boldF\) is conservative if and only if \(\boldF=\nabla f\) for some function \(f\) defined on \(D\text{.}\) Using logical shorthand:
Proof of implication \(\boldF=\nabla f\implies \boldF\) conservative.
This implication follows directly from Theorem 2.3.9.
Proof of implication \(\boldF\) conservative \(\implies \boldF=\nabla f\).
Our proof will assume \(n=2\) for simplicity of notation; it works just as well for \(n=3\text{.}\) Assume \(\boldF=\angvec{F_1, F_2}\) is conservative. We define the scalar function \(f\) as follows: fix any \(P=(x_0,y_0)\) in \(D\text{;}\) for any \((x,y)\in D\) define
where the notation \(\int_P^{(x,y)}\boldF\cdot d\boldr\) is understood to mean the line integral of \(\boldF\) over any choice of piecewise smooth curve \(\mathcal{C}\subseteq D\text{.}\) That \(f(x,y)\) is a well-defined function follows from the fact that (a) there is some choice of curve \(\mathcal{C}\) from \(P\) to \((x,y)\) (\(D\) is connected), and (b) the value of the line integral does not depend on this choice (\(\boldF\) is conservative). Next, we claim that \(f\) is a potential function for \(\boldF\text{:}\) i.e., \(\nabla f=\boldF\text{.}\) Indeed, we have
This proves \(f_x=F_1\text{;}\) the argument that \(f_y=F_2\) is exactly similar. We conclude \(\nabla f=\angvec{F_1, F_2}=\boldF\text{.}\)
Subsection 2.3.3 Curl test for conservative fields
Definition 2.3.12. Curl of a vector field.
Let \(\boldF=\angvec{F_1, F_2, F_3}\) be a vector field on the set \(D\subseteq \R^3\text{,}\) and assume the first order partial derivatives of the component functions exist. We define the curl of \(\boldF\text{,}\) denoted \(\curl \boldF\) or \(\nabla \times \boldF\text{,}\) as the vector field
We will study curl in more detail later, but for now we observe that it provides a partial check for whether a vector field is a gradient field.
Theorem 2.3.13. Gradient implies zero curl.
Let \(\boldF\colon \R^3\rightarrow \R^3\) be a vector field whose component functions have continuous partial derivatives on the set \(D\text{.}\) If \(\boldF=\nabla f\) for some scalar function \(f\text{,}\) then \(\curl \boldF(x,y,z)=\nabla\times \boldF(x,y,z)=\angvec{0,0,0}\) for all \((x,y,z)\in D\) . Using logical shorthand:
Proof.
If \(\boldF=\angvec{F_1,F_2,F_3}=\nabla f\) for some some \(f\text{,}\) then
This shows the first component of \(\nabla\times \boldF\) is the zero function. Similar reasoning shows the same is true for the second and third components.
Corollary 2.3.14. Gradient implies zero curl (\(n=2\)).
Let \(\boldF(x,y)=\angvec{F_1(x,y), F_2(x,y)}\) be a vector field whose component functions have continuous partial derivatives on the set \(D\text{.}\) If \(\boldF=\nabla f\) for some scalar function, then \(\partial F_2/\partial x(x,y)-\partial F_1/\partial y(x,y)=0\) for all \((x,y)\in D\text{.}\)
By way of shorthand, we will understand the statement \(\nabla\times \boldF=\boldzero\) to mean \(\partial F_2/\partial x-\partial F_1/\partial y=0\) when \(\boldF=\angvec{F_1, F_2}\) is a 2-dimensional vector field.
Proof.
Identify \(\boldF(x,y)=\angvec{F_1(x,y), F_2(x,y)}\) with the 3-dimensional vector field \(\boldF(x,y,z)=\angvec{F_1(x,y),F_2(x,y),0}\text{.}\) The result follows easily from Theorem 2.3.13.
Example 2.3.15. Curl test: conclusive.
Show that \(\boldF(x,y,z)=\angvec{x+xy^2,z,y}\) is not a gradient vector field.
The curl of \(\boldF\) is the vector field
Thus \(\boldF\) is not a gradient vector field by Theorem 2.3.13.
Example 2.3.16. Curl test: inconclusive.
Let \(\boldF=\angvec{-y/(x^2+y^2), x/(x^2+y^2)}\text{.}\) Show that (a) \(\nabla\times \boldF=\boldzero\text{,}\) but (b) \(\boldF\) is not a gradient vector field.
The curl computation in (a) is straightforward. To see that \(\boldF\) is not a gradient vector field, we find a closed curve \(\mathcal{C}\) for which \(\int_\mathcal{C}\boldF\cdot d\boldr\ne 0\text{.}\) Take \(\mathcal{C}\) to be the unit circle with parametrization \(\boldr(t)=(\cos t, \sin t)\text{,}\) \(0\leq t\leq 2\pi\text{.}\) We have
Example 2.3.16 shows that the implication (2.3.7) is not an equivalence. In other words, it is possible to have \(\nabla\times \boldF=\boldzero\) and yet \(\boldF\) is not a gradient vector field. However, we do get an equivalence if the domain under consideration is assumed to be nice enough: namely, connected and simply connected.
Definition 2.3.17. Simply connected sets.
A set \(D\subseteq \R^n\) is simply connected if each closed curve in \(D\) can be contracted to a point without leaving \(D\text{.}\)
Theorem 2.3.18. Gradient iff zero curl (connected and simply connected domain).
Let \(D\subseteq \R^n\) be open, connected and simply connected. If the component functions of \(\boldF\colon \R^n\rightarrow \R^n\) have continuous partial derivatives on \(D\) then \(\boldF=\nabla f\) if and only if \(\curl\times \boldF=\boldzero\text{.}\) Using logical shortand:
Note: if \(n=2\text{,}\) we understand \(\nabla\times \boldF=\boldzero\) to mean \(\partial F_2/\partial x-\partial F_1/\partial y=0\text{.}\)
As you see, depending on how nice the domain \(D\) of a vector field is, we get weaker or stronger statements about the relationship between conservative vector fields, gradient vector fields, and curl-zero vector fields. We summarize this with some logical housekeeping.
Theorem 2.3.19. Logical housekeeping.
Let \(\boldF\) be a vector field on the set \(D\subseteq\R^n\text{.}\) We use the abbreviations ‘o’, ‘c’, ‘sc’ for open, connected, and simply connected. For statements involving curl, assume the partial derivatives of the component functions of \(\boldF\) are continuous.
Additionally, for any domain \(D\) we always have the following loop property equivalence:
Example 2.3.20. Curl test: complete.
Let \(\boldF(x,y,z)=\angvec{y, z\cos(yz)+x, y\cos(yz)}\text{.}\) Decide whether \(\boldF\) is a gradient vector field. If yes, find a potential function for \(\boldF\text{.}\)
It is straightforward, if somewhat tiresome, to show \(\nabla\times \boldF=\angvec{0,0,0}\text{.}\) Since the domain of \(\boldF\) is \(\R^3\text{,}\) which is connected and simply connected, we conclude from Theorem 2.3.11 that \(\boldF\) is a gradient vector field. Let \(f\) be a potential function for \(\boldF\text{.}\)
Looking at the partial formula for \(f\) in our last line, we observe that setting \(H(z)=0\) results in the function \(f(x,y,z)=xy+\sin(yz)\text{,}\) which satisfies \(\nabla f=\boldF\text{.}\)
Sage example 2.3.1. Computing curl.
Sage allows us to easily compute the curl of vector fields. Below we compute the curl of the vector field from Example 2.3.20. The command vector
in the cell below turns our symbolic list into a vector object.
The same command works for vector fields of dimension 2: for \(\boldF=\angvec{F_1,F_2}\text{,}\) the curl
method returns \(\partial F_2/\partial x-\partial F_1/\partial y\text{.}\)