MX Calculus Path-Independent Vector Fields and the Fundamental Theorem of Calculus for Line Integrals

Section 12.4Path-Independent Vector Fields and the Fundamental Theorem of Calculus for Line Integrals

Motivating Questions
  • What characteristic of a vector field \(\vF\) will make \(\int_C\vF\cdot d\vr\) have the same value for every oriented curve from a point \(P\) to a point \(Q\)?

  • What special properties do gradient vector fields have?

  • Given a gradient vector field \(\vF\), how can we efficiently find a potential function \(f\) so that \(\vF = \grad f\)?

In Activity 12.3.4, Example 12.3.4, and Activity 12.3.5, we encountered situations where \(C_1\) and \(C_2\) are different oriented curves from a point \(P\) to a point \(Q\) and \(\int_{C_1}\vF\cdot d\vr = \int_{C_2}\vF\cdot d\vr\). In this section, we explore vector fields which have the property that for all points \(P\) and \(Q\), if \(C_1\) and \(C_2\) are oriented paths from \(P\) to \(Q\), then \(\int_{C_1}\vF\cdot d\vr = \int_{C_2}\vF\cdot d\vr\).

Preview Activity 12.4.1

In Activity 12.3.4, we considered the vector field \(\vF(x,y) = \langle y^2,2xy+3\rangle\) and two different oriented curves from \((-2,5)\) to \((3,30)\). We found that the value of the line integral of \(\vF\) was the same along those two oriented curves.

a)

Verify that \(\vF(x,y) = \langle y^2,2xy+3\rangle\) is a gradient vector field by showing that \(\vF = \nabla f\) for the function \(f(x,y) = xy^2 + 3y\).

Since \( \frac{\partial f}{\partial x}=y^2\) and \( \frac{\partial f}{\partial y}=2xy+3\), \(\vF=\nabla f\).

b)

Calculate the change in the output of the scalar function \(f\) over the curves \(C_1\) and \(C_2\). In other words, what is the difference in the output of \(f\) at the start of the curve and the end of the curve? How does this value compare to the value of the line integral \(\int_{C_1}\vF\cdot d\vr\) you found in Activity 12.3.4?

Algebraically, \(f(3,30)-f(-2,5)=3\cdot 30^2+3\cdot 30-(-2\cdot 5^2+3\cdot 5) = 2825\). The line integral is also \(2825\).

c)

Let \(C_3\) be the line segment from \((1,1)\) to \((3,4)\). Calculate \(\int_{C_3}\vF\cdot d\vr\) as well as \(f(3,4)-f(1,1)\). Write a sentence that compares your answer to this part to your result for here.

The line segment \(C_3\) is given by \(\vr(t)=\langle 1+2t,1+3t\rangle\) as \(0\leq t \leq 1\). Thus, \[ \int_{C_3} \vF \cdot d\vr = \int_0^1 \langle (1+3t)^2,2(1+2t)(1+3t)\rangle \cdot \langle 2,3\rangle \enspace dt=56 \] Note here that \(f(3,4)-f(1,1)=60-4=56\) which is the same as the result of the line integral.

Path-Independent Vector Fields

Hopefully Preview Activity 12.4.1 has prompted you to wonder about the phenomenon of the value of a line integral depending only on the initial and terminal points of the oriented path (rather than the oriented path itself) and how a potential function comes into play. We say that a vector field \(\vF\) defined on a region \(D\) is path-independent if \(\int_{C_1}\vF\cdot d\vr = \int_{C_2}\vF\cdot d\vr\) whenever \(C_1\) and \(C_2\) are oriented paths in \(D\) such that both curves start at point \(P\) and end at point \(Q\).

In Activity 12.3.4 and Example 12.3.4, we encountered situations where we had evidence that a vector field was path-independent. However, since the definition of path-independence requires that the value of the line integral be the same for every possible path from one point to the other (regardless of choice for the initial and final points), it doesn't appear that verifying a vector field is path-independent is an easy task.

Fortunately, one familiar class of vector fields can be shown to be path-independent. Let \(f\colon \R^3\to \R\) be a function for which \(\nabla f\) is continuous on a region \(D\). Suppose that \(P\) and \(Q\) are points in \(D\) and let \(C\) be a smooth oriented path from \(P\) to \(Q\) that is also contained in our region \(D\). We consider \(\int_C\nabla f \cdot d\vr\) by fixing an arbitrary parametrization \(\vr(t)\) of \(C\), \(a\leq t \leq b\). Since we can write \(x\), \(y\), and \(z\) in terms of \(t\), along \(C\), the gradient of \(f\) is given by \[ \nabla f(\vr(t)) = \langle f_x(\vr(t)),f_y(\vr(t)),f_z(\vr(t))\rangle\]. Hence, we can write the line integral of the vector field \(\vF = \nabla f\) over \(C\) in the following way: \[\begin{aligned}\int_C\nabla f\cdot d\vr & = \int_a^b \nabla f(\vr(t))\cdot \vr'(t)\, dt \\ & = \int_a^b \langle f_x(\vr(t)), f_y(\vr(t)), f_z(\vr(t))\rangle \cdot \vr'(t)\, dt\end{aligned}\]

If \(\vr(t) = \langle x(t), y(t), z(t)\rangle\), then the integrand above is \[\begin{aligned} & \phantom{=} \langle f_x(\vr(t)), f_y(\vr(t)), f_z(\vr(t))\rangle\cdot \langle x'(t),y'(t),z'(t)\rangle \\ &= f_x\left( x(t),y(t),z(t) \right) \, x'(t) + f_y \left( x(t),y(t),z(t) \right) \, y'(t) \\ &\phantom{=} + f_z \left( x(t),y(t),z(t) \right) \, z'(t) \end{aligned}\]. Or more simply, \[ \nabla f \cdot \frac{d \vr}{dt}= \frac{\partial f}{\partial x} \frac{dx}{dt}+\frac{\partial f}{\partial y} \frac{dy}{dt}+\frac{\partial f}{\partial z} \frac{dz}{dt} = \frac{d}{dt}\left(f(\vr(t))\right) \].

Notice that this is exactly what the chain rule tells us \(\frac{d}{dt} f(\vr(t))\) is equal to. Therefore, we may apply the Fundamental Theorem of Calculus to obtain \[ \int_C\nabla f\cdot d\vr = \int_a^b \frac{d}{dt} f(\vr(t))\, dt = f(\vr(b)) - f(\vr(a)) = f(Q) - f(P) \].

In other words, gradient vector fields are path-independent vector fields, and we can evaluate line integrals of gradient vector fields by using a potential function.

Technically the argument above assumed that \(C\) was smooth, but we can replace \(C\) by a piecewise smooth curve by splitting the line integral up into the sum of finitely many line integrals along smooth curves.

This result is so important that it is frequently called the Fundamental Theorem of Calculus for Line Integrals, because of its similarity to the Fundamental Theorem of Calculus, which can be written as \[ \int_a^b \frac{df}{dx} (x)\, dx = f(b) - f(a) \].

Theorem

Let \(f\) be a function for which \(\nabla f\) is continuous on a region \(D\). If \(P\) and \(Q\) are points in \(D\) and \(C\) is a piecewise smooth oriented path from \(P\) to \(Q\) in \(D\), then \[ \int_C \nabla f\cdot d\vr = f(Q) - f(P) \].

Example 12.4.1

Suppose we need to calculate the line integral of \(\vF= \langle 2xy-2, x^2+3e^y \rangle\) over the path from \((2,0)\) to \((4,-2)\) along the curve given by \( (x-2)^2=-y/2\). If we use Theorem to solve this, we would need to parameterize the curve, take a derivative of the parameterization, substitute into the line integral formula, and finally integrate the result. Fortunately, Theorem allows us to be more efficient in how we approach this.

In order to use Theorem, we first need to verify that there exists a potential function \(f(x,y)\) such that \(\nabla f = \langle 2xy-2, x^2+3e^y \rangle\). We will soon learn techniques in Activity 12.4.3 for finding a protential function, but for now, you should be able to verify for yourself that \(f\) will be of the form \(f(x,y) = x^2y-2x-3e^y+k\), where \(k\) is a constant. Note that \(f(4,-2)- f(2,0)= (-32-8+3e^{-2}+k)-(0-4-3+k)= 3e^{-2}-41\), regardless of what value we choose for \(k\). By Theorem, \[ \int_C \vF \cdot d\vr = f(4,-2)- f(2,0)= 3e^{-2}-41 \]

If we changed the path in our line integral to be any other path between \((2,0)\) and \((4,-2)\), then the result would still be \(3e^{-2}-41\).

If we changed the path in our line integral to be some path \(C_1\) from \((1,-1)\) to \((-1,4)\) but did not change the vector field being used, then we would only need to evaluate \(f(-1,4)- f(1,-1)\). So for our new path \(C_1\), \[\begin{aligned}\int_{C_1} \vF \cdot d\vr & = f(-1,4)- f(1,-1) \\ & = (4-(-2)+3e^4)-(-1-2+3e^{-1}) \\ & =9+3(e^4+e^{-1})\end{aligned}\].

Sometimes, we know that the vector field we need to compute a line integral in is the gradient vector field of a given function, in which case evaluation of the line integral is very efficient. Before investigating how to find a potential function, we have an activity to practice applying Theorem when we are given the potential function.

Activity 12.4.2

Calculate each of the following line integrals.

a)

\(\int_C \nabla f\cdot d\vr\) if \(f(x,y) = 3xy^2 - \sin(x) + e^y\) and \(C\) is the top half of the unit circle oriented from \((-1,0)\) to \((1,0)\).

Because \(f(-1,0)=-\sin(-1)+1\) and \(f(1,0)=sin(1)+1\), then \(\int_C \nabla f\cdot d\vr=(\sin(1)+1)-(-\sin(-1)+1)=0\).

b)

\(\int_C \nabla g\cdot d\vr\) if \(g(x,y,z) = xz^2 - 5y^3\cos(z) + 6\) and \(C\) is the portion of the helix \(\vr(t) = \langle 5\cos(t),5\sin(t),3t\rangle\) from \((5,0,0)\) to \((0,5,9\pi/2)\).

Because \(g(5,0,0)=0-0+6\) and \(g(0,5,\frac{9\pi}{2})=0-0+6\), then \(\int_C \nabla g\cdot d\vr=(6)-(6)=0\).

c)

\(\int_C \nabla h\cdot d\vr\) if \(h(x,y,z) = 3y^2e^{y^3} - 5x\sin(x^3z) + z^2\) and \(C\) is the curve consisting of the line segment from \((0,0,0)\) to \((1,1,1)\), followed by the line segment from \((1,1,1)\) to \((-1,3,-2)\), followed by the line segment from \((-1,3,-2)\) to \((0,0,10)\).

Because \(h(0,0,0)=0\) and \(h(0,0,10)=0-0+100\), then \(\int_C \nabla h\cdot d\vr=(100)-(0)=100\).

In Activity 12.3.2, we used Clairaut's Theorem to argue that a vector field in \(\R^2\) is not a gradient vector field when \(\partial F_1/\partial y\neq \partial F_2/\partial x\). In Preview Activity 12.4.1, you verified that a given vector field was the gradient of a particular function of two variables. Clairaut's Theorem holds for functions of three variables. However, in that case there are six mixed partials to calculate, and thus it can be rather tedious. Activity 12.4.3 suggest a process for determining if a vector field in \(\R^3\) is a gradient vector field as well as finding a potential function for the vector field.

Activity 12.4.3

Let \(\vG(x,y,z) = \langle 3e^{y^2}+z\sin(x),6xy e^{y^2} - z,3z^2-y-\cos(x)\rangle\) and \(\vH(x,y,z) = \langle 3x^2 y,x^3+2yz^3,xz+3y^2z^2\rangle\).

a)

If \(\vG\) and \(\vH\) are to be gradient vector fields, then there are functions \(g\) and \(h\) for which \(\vG = \nabla g\) and \(\vH=\nabla h\). If such functions \(g\) and \(h\) exist, what would \(g_y\), \(g_z\), \(h_x\), \(h_y\), and \(h_z\) be?

Each of the partial derivatives of \(g\) and \(h\) would have to be as follows: \(g_x=3e^{y^2}+z\sin(x)\), \(g_y=,6xy e^{y^2} - z\), \(g_z=3z^2-y-\cos(x)\), \(h_x=x^2 y\), \(h_y=x^3+2yz^3\), and \(h_z=xz+3y^2z^2\).

b)

Let \(g_1(x,y,z)=3xe^{y^2}+xyz-z\sin(x)\). Calculate \(\partial g_1/\partial x\). Could \(g_1\) be a potential function for the vector field \(\vG\)?

The partial of \(g_1\) with respect to \(x\) would be \(3e^{y^2}+yz-z\cos(x)\). Since the partial of \(g_1\) with respect to \(x\) is not the same as the \(x\)-component of \(\vG\), \(g_1\) cannot be a potential function for \(\vG\).

c)

Find a function \(g\) so that \(\partial g/\partial x = 3e^{y^2}+z\sin(x)\). Find a function \(h\) so that \(\partial h/\partial x = 3x^2y\).

\(g(x,y,z)=3xe^{y^2}-z\cos(x)\) and \(h(x,y,z)= x^3y\) but can be different by any function of \(y\) and \(z\).

d)

When finding the most general anti-derivative for a function of one variable, we add a constant of integration (usually denoted by \(C\)) to capture the fact that any constant will become \(0\) through differentiation.

e)

Now calculate \(\partial g/\partial y\) and \(\partial h/\partial y\) based on your choices for here. Write a few sentences to explain why this tells you that we must have \[ g(x,y,z) = 3xe^{y^2}-z\cos(x)-yz+m_1(z) \] and \[ h(x,y,z) = x^3y+y^2z^3+m_2(z) \] for some functions \(m_1\) and \(m_2\) depending only on \(z\).

We find that \(\frac{\partial g}{\partial y} = 6xye^{y^2}+\frac{\partial C_1}{\partial y}\) and \(\frac{\partial h}{\partial y}=x^3+\frac{\partial C_2}{\partial y}\). This means that we need to add terms to \(g\) and \(h\) in \(y\) and \(z\) such that the partial with respect to \(y\) will correspond to the second component of \(\vG\) and \(\vH\).

f)

Calculate \(\frac{\partial g}{\partial z}\) and \(\frac{\partial h}{\partial z}\) for the functions in the part above. Notice that \(m_1\) and \(m_2\) are functions of \(z\) alone, so taking a partial derivative with respect to \(z\) is the same as taking an ordinary derivative, and thus you may use the notation \(m'_1(z)\) and \(m'_2(z)\).

\(\frac{\partial g}{\partial z}=-\cos(x)-y+\frac{\partial m_1}{\partial z}\) and \(\frac{\partial h}{\partial z}=3y^2 z^2+\frac{\partial m_2}{\partial z}\)

g)

Explain why \(\vG\) is a gradient vector field but \(\vH\) is not a gradient vector field. Find a potential function for \(\vG\).

If \(g(x,y,z)=3xe^{y^2}-z\cos(x)-yz+z^3\), then \( \nabla g = \vG\). There is no \(m_2(z)\) that will have a partial with respect to \(z\) of \(xz\) since \(m_2(z)\) cannot have a dependence on \(x\).

By following the methodology laid out in Activity 12.4.3 to show that a given vector field is a gradient vector field, the Theorem makes evaluating some line integrals much simpler now.

Activity 12.4.4

Calculate each of the following line integrals.

a)

\(\int_C \vF\cdot d\vr\) if \(\vF(x,y) = \langle 2x,2y\rangle\) and \(C\) is the line segment from \((1,2)\) to \((-1,0)\).

We can choose \(f(x,y)=x^2+y^2\) and note that \(\nabla f = \vF\). so by the Fundamental Theorem of Calculus for Line Integrals, \(\int_C \vF\cdot d\vr = f(1,2)-f(-1,0)=5-1=4\).

b)

\(\int_C \vG\cdot d\vr\) if \(\vG(x,y) = \langle 4x^3-12y\cos(xy),9y^2-12x\cos(xy)\rangle\) and \(C\) is the portion of the unit circle from \((0,-1)\) to \((0,1)\).

We can choose \(g(x,y)=x^4-12\sin(xy)+3y^3\) and note that \(\nabla g = \vG\). so by the Fundamental Theorem of Calculus for Line Integrals, \(\int_C \vG\cdot d\vr = g(0,1)-g(0,-1)=3-(-3)=6\).

c)

\(\int_C \vH\cdot d\vr\) if \(\vH(x,y,z) = \langle H_1,H_2,H_3\rangle\) with \[\begin{aligned}H_1(x,y,z) & = e^{z^2}+2xy^3z+\cos(x)-y^3\sin(x) \\ H_2(x,y,z) & = 2ye^{y^2}+3x^2y^2z+3y^2z^2+3y^2\cos(x) \\ H_3(x,y,z) & = x^2y^3+2xze^{z^2}+2y^3z-4z^3\end{aligned}\] and \(C\) is the curve consisting of the line segment from \((1,1,1)\) to \((3,0,3)\), followed by the line segment from \((3,0,3)\) to \((1,5,-1)\), followed by the line segment from \((1,5,-1)\) to \((0,0,0)\).

We can choose \(h(x,y,z)=xe^{z^2}+x^2y^3z+\sin(x)+y^3\cos(x)+y^3z^2+e^{y^2}-z^4\) and note that \(\nabla h = \vH\). By the Fundamental Theorem of Calculus for Line Integrals, \[\begin{aligned}\int_C \vH\cdot d\vr & = h(0,0,0)-h(1,1,1) \\ & =1-(e+1+\sin(1)+\cos(1)+1+e-1) \\ & =1-(2e+1+\sin(1)+\cos(1))\end{aligned}\].

Line Integrals Along Closed Curves

Recall that an oriented curve \(C\) is closed if the curve has the same initial and terminal point. A typical example of a closed curve would be a circle (with an orientation of which way to go around), but we could also consider something like the square with vertices \((1,1)\), \((-1,1)\), \((-1,-1)\), and \((1,-1)\), oriented clockwise (or counterclockwise). Recall that we sometimes use the symbol \(\oint\) for a line integral when the curve is closed and that if \(C=C_1+C_2\), then \(\int_C\vF\cdot d\vr=\int_{C_1}\vF\cdot d\vr+ \int_{C_2}\vF\cdot d\vr\).

Activity 12.4.5

Suppose that \(\vF\) is a continuous path-independent vector field (in \(\R^2\) or \(\R^3\)) on some region \(D\).

a)

Let \(P\) and \(Q\) be points in \(D\) and let \(C_1\) and \(C_2\) be oriented curves from \(P\) to \(Q\). What can you say about \(\int_{C_1}\vF\cdot d\vr\) and \(\int_{C_2}\vF\cdot d\vr\)?

Because \(\vF\) is a path-independent vector field and both \(C_1\) and \(C_2\) start at \(P\) and end at \(Q\), \(\int_{C_1}\vF\cdot d\vr = \int_{C_2}\vF\cdot d\vr\).

b)

Let \(C = C_1 - C_2\). Explain why \(C\) is a closed curve.

The curve \(C\) is closed because the end of \(C_1\) is the start of \(-C_2\) and the end of \(-C_2\) is the start of \(C_1\), thus \(C\) starts and ends at \(P\).

c)

Calculate \(\oint_C\vF\cdot d\vr\).

\(\oint_C\vF\cdot d\vr=\int_{C_1}\vF\cdot d\vr+ \int_{-C_2}\vF\cdot d\vr=\int_{C_1}\vF\cdot d\vr- \int_{C_2}\vF\cdot d\vr\) and by here, this difference is zero.

d)

Write a sentence that summarizes what we can conclude about line integrals of \(\vF\) at this point in the activity.

The line integral along every closed curve in a path-independent vector field is \(0\).

e)

Now let us suppose that \(\vG\) is a continuous vector field on a region \(D\) for which \(\oint_C\vG\cdot d\vr = 0\) for all closed curves \(C\). Pick two points \(P\) and \(Q\) in \(D\). Let \(C_1\) and \(C_2\) be oriented curves from \(P\) to \(Q\). What type of curve is \(C = C_1 - C_2\)?

We have that \(C\) is a closed curve (from \(P\) to \(P\)) because \(C_1\) will go from \(P\) to \(Q\) and \(-C_2\) will go from \(Q\) back to \(P\).

f)

What is \(\oint_C\vG\cdot d\vr\)? Why?

We see that \(\oint_C\vG\cdot d\vr=0\) because (as stated above) \(\vG\) is a continuous vector field on a region \(D\) for which \(\oint_C\vG\cdot d\vr = 0\) for all closed curves \(C\).

g)

What does that tell you about the relationship between \(\int_{C_1}\vG\cdot d\vr\) and \(\int_{C_2}\vG\cdot d\vr\)?

Since \(\oint_C\vG\cdot d\vr=0=\int_{C_1} \vG\cdot d\vr+ \int_{-C_2} \vG\cdot d\vr=\int_{C_1} \vG\cdot d\vr- \int_{C_2} \vG\cdot d\vr\), \(\int_{C_1}\vG\cdot d\vr = \int_{C_2}\vG\cdot d\vr\).

h)

Explain why this shows that \(\vG\) is path-independent.

The argument above relies only on the fact that the two paths have the same initial and terminal points.

We summarize the result of Activity 12.4.5 with the theorem below. Although this theorem is not a terribly useful way to show that a vector field is path-independent, it can be a useful way to show that a vector field is not path-independent: If you can find a closed curve around which the circulation is not zero, then the vector field is not path independent.

Theorem

Let \(\vF\) be a continuous vector field on a region \(D\). Suppose that \(C\) is a closed curve in \(D\). The circulation of \(\vF\) along \(C\), given by \(\oint_C\vF\cdot d\vr\), is zero if and only if \(\vF\) is path-independent.

The following activity gives you a chance to reason about path-independence based purely on a graphical representation of a vector field.

Activity 12.4.6

Explain why neither of the vector fields in Figure 12.4.1 is path-independent.

Figure 12.4.1 — Two vector fields that are not path-independent.

What other vector fields are path-independent?

Recall that in single variable calculus, The Second Fundamental Theorem of Calculus tells us that given a constant \(c\) and a continuous function \(f\), there is a unique function \(A(x)\) for which \(A(c) = 0\) and \(\frac{dA}{dx} (x) = f(x)\). In particular, \(A(x) = \int_c^x f(t)\, dt\) is this function. We are about to investigate an analog of this result for path-independent vector fields, but first we require two additional definitions.

If \(D\) is a subset of \(\R^2\) or \(\R^3\), we say that \(D\) is open provided that for every point in \(D\), there is a disc (in \(\R^2\)) or ball (in \(\R^3\)) centered at that point such that every point of the disc/ball is contained in \(D\). For example, the set of points \((x,y)\) in \(\R^2\) for which \(x^2+y^2 \lt 1\) is open, since we can always surround any point in this set by a tiny disc contained in the set (as illustrated by point \(P\) in Figure 12.4.4). However, if we change the inequality to \(x^2+y^2\leq 1\), then the set is not open, as any point on the circle \(x^2+y^2=1\) cannot be surrounded by a disc contained in the set; any disc surrounding a point on that circle will contain points outside the set, that is with \(x^2+y^2>1\) (as illustrated by the point \(Q\) in Figure 12.4.4). We will also say that a region \(D\) is path-connected provided that for every pair of points in \(D\), there is a path from one to the other contained in \(D\).

Figure 12.4.4 — The open set \(\{(x,y)| x^2+y^2 \lt 1\}\) is plotted in yellow with a point \(Q\) on the boundary that shows why \(\{(x,y)| x^2+y^2 \leq 1\}\) is not open
Activity 12.4.7

Let \(\vF=\langle F_1,F_2\rangle\) be a continuous, path-independent vector field on an open, path-connected region \(D\). We will assume that \(D\) is in \(\R^2\) and \(\vF\) is a two-dimensional vector field, but the ideas below generalize completely to \(\R^3\). We want to define a function \(f\) on \(D\) by using the vector field \(\vF\) and line integrals, much like the Second Fundamental Theorem of Calculus allows us to define an antiderivative of a continuous function using a definite integral. To that end, we assign \(f(x_0,y_0)\) an arbitrary value. (Setting \(f(x_0,y_0)=0\) is probably convenient, but we won't explicitly tie our hands. Just assume that \(f(x_0,y_0)\) is defined to be some number.) Now for any other point \((x,y)\) in \(D\), define \[ f(x,y) = f(x_0,y_0) + \int_C\vF\cdot d\vr \], where \(C\) is any oriented path from \((x_0,y_0)\) to \((x,y)\). Since \(D\) is path-connected, such an oriented path must exist. Since \(\vF\) is path-independent, \(f\) is well-defined. If different paths from \((x_0,y_0)\) to \((x,y)\) gave different values for the line integral, then we would not be sure what \(f(x,y)\) really is.

To better understand this mysterious function \(f\) we've now defined, let's start looking at its partial derivatives.

a)

Since \(D\) is open, there is a disc (perhaps very small) surrounding \((x,y)\) that is contained in \(D\), so fix a point \((a,b)\) in that disc. Since \(D\) is path-connected, there is a path \(C_1\) from \((x_0,y_0)\) to \((a,b)\). Let \(C_y\) be the line segment from \((a,b)\) to \((a,y)\) and let \(C_x\) be the line segment from \((a,y)\) to \((x,y)\). (See Figure 12.4.5.) Rewrite \(f(x,y)\) as a sum of \(f(x_0,y_0)\) and line integrals along \(C_1\), \(C_y\), and \(C_x\).

Figure 12.4.5 — A piecewise smooth oriented curve from \((x_0,y_0)\) to \((x,y)\).

Because \(C = C_1 + C_y+C_x\), we have that \[\begin{aligned}f(x,y)&= f(x_0,y_0) + \int_C\vF\cdot d\vr \\ & = f(x_0,y_0)+\int_{C_1} \vF \cdot d\vr+\int_{C_y} \vF \cdot d\vr+\int_{C_x} \vF \cdot d\vr \end{aligned}\].

b)

Notice that we can parametrize \(C_y\) by \(\langle a,t\rangle\) for \(b\leq t\leq y\). Find a similar parametrization for \(C_x\).

The curve \(C_x\) can be given by \(\vr(t)=\langle t,y\rangle \) for \(a \leq t\leq x\), since only the \(x\)-coordinate of points on \(C_x\) varies.

c)

Use the parametrization from above to write \(\int_{C_y}\vF\cdot d\vr\) and \(\int_{C_x}\vF\cdot d\vr\) as single variable integrals in the manner of Section 12.3. Use the fact that \(\vF(x,y) = \langle F_1(x,y),F_2(x,y)\rangle\) to express your integrals in terms of \(F_1\) and \(F_2\) without any dot products.

Using the parametrization of \(C_x\) and \(C_y\) from the previous part, we notice that \(\frac{d \vr}{dt}(t)\) has only one nonzero component in each case. Thus, we have \[\int_{C_y}\vF\cdot d\vr = \int_b^y 0+ F_2(a,t)\, dt\] and \[\int_{C_x}\vF\cdot d\vr= \int_a^x F_1(t,y) +0\, dt\].

d)

Rewrite your expression for \(f(x,y)\) using a line integral along \(C_1\) and the single variable integrals above.

Combining the previous parts, we have \[\begin{aligned} f(x,y)&= f(x_0,y_0)+\int_{C_1} \vF \cdot d\vr+\int_{C_y} \vF \cdot d\vr+\int_{C_x} \vF \cdot d\vr \\ &= f(x_0,y_0)+\int_{C_1} \vF \cdot d\vr+\int_b^y F_2(a,t)\,dt+ \int_a^x F_1(t,y)\, dt\end{aligned}\].

e)

Notice that your expression for \(f(x,y)\) from the previous part only depends on \(x\) as the upper limit of an single variable integral. Use the Second Fundamental Theorem of Calculus to calculate \(f_x(x,y)\).

The first three terms in our expression for \(f(x,y)\) do not depend on \(x\), and thus when taking the partial derivative with respect to \(x\), they vanish. By the Second Fundamental Theorem of Calculus (treating \(a,y\) as constants), \[\frac{\partial}{\partial x}\int_a^x F_1(t,y)\, dt = F_1(x,y)\]. Therefore, \(f_x(x,y) = F_1(x,y)\).

f)

To calculate \(f_y(x,y)\), we continue to consider a path \(C_1\) from \((x_0,y_0)\) to \((a,b)\), but now let \(L_x\) be the line segment from \((a,b)\) to \((x,b)\) and let \(L_y\) be the line segment from \((x,b)\) to \((y,b)\). Modify the process you used to find \(f_x(x,y)\) to find \(f_y(x,y)\).

Proceeding as above, we find that \[\begin{aligned}f(x,y) &= f(x_0,y_0) + \int_{C_1}\vF\cdot d\vr + \int_{L_x} \vF\cdot d\vr + \int_{L_y}\vF\cdot d\vr \\ & = f(x_0,y_0) + \int_{C_1}\vF\cdot d\vr + \int_a^x F_1(t,b)\, dt + \int_b^y F_2(x,t)\, dt\end{aligned}\]. Only the last term of this expression depends on \(y\), so the first three terms vanish when calculating \(f_y(x,y)\). By the Second Fundamental Theorem of Calculus, \[\frac{\partial}{\partial y}\int_b^y F_2(x,t)\, dt = F_2(x,y)\]. Therefore, \(f_y(x,y) = F_2(x,y)\).

g)

What can you conclude about the relationship between \(\grad f\) and \(\vF\)? What does this tell you about \(\vF\) beyond that it is path-independent and continuous?

Since \(f_x(x,y) = F_1(x,y)\) and \(f_y(x,y) = F_2(x,y)\), we can conclude that \(\grad f = \vF\). Therefore, we know that \(\vF\) is a gradient vector field.

We summarize the result of Activity 12.4.7 below. Much like the Second Fundamental Theorem of Calculus, which tells us that a function is an antiderivative for another function, but leaves the antiderivative in terms of a definite integral, this theorem tells us that a function is a potential function for a vector field, but the definnition of the potential function is in terms of a line integral.

Theorem

If \(\vF\) is a path-independent vector field on an open, path-connected region \(D\), then \(\vF\) is a gradient vector field on \(D\). Furthermore, if \(P\) is a point in \(D\) and \(f(P)\) is fixed, then for a point \(Q\) in \(D\) and an oriented curve \(C\) from \(P\) to \(Q\) in \(D\), the function \[ f(Q) = f(P) + \int_C\vF\cdot d\vr \] is a potential function for \(\vF\).

Summary

Exercises

1

Let \({\nabla f} = -2xe^{-x^{2}}\sin\mathopen{}\left(5y\right)\,\vec i + 5e^{-x^{2}}\cos\mathopen{}\left(5y\right)\, \vec j\). Find the change in \(f\) between \((0,0)\) and \((1,\pi/2)\) in two ways.

(a) First, find the change by computing the line integral \(\int_C \nabla f\cdot d\vec r\), where \(C\) is a curve connecting \((0,0)\) and \((1,\pi/2)\).

The simplest curve is the line segment joining these points. Parameterize it:

with \(0\le t\le 1\), \(\vec r(t) =\) _______________\(\vec i +\) _______________\(\vec j\)

So that \(\int_C\nabla f\cdot d\vec r = \int_0^1\) _____________________________________________ \(dt\)

Note that this isn't a very pleasant integral to evaluate by hand (though we could easily find a numerical estimate for it). It's easier to find \(\int_C\nabla f\cdot d\vec r\) as the sum \(\int_{C_1}\nabla f\cdot d\vec r + \int_{C_2}\nabla f\cdot d\vec r\), where \(C_1\) is the line segment from \((0,0)\) to \((1,0)\) and \(C_2\) is the line segment from \((1,0)\) to \((1,\pi/2)\). Calculate these integrals to find the change in \(f\).

\(\int_{C_1}\nabla f\cdot d\vec r =\) _____________________________________________

\(\int_{C_2}\nabla f\cdot d\vec r =\) _____________________________________________

So that the change in \(f = \int_C\nabla f\cdot\vec r = \int_{C_1}\nabla f\cdot d\vec r + \int_{C_2}\nabla f\cdot d\vec r =\) ___________________________________

(b) By computing values of \(f\). To do this,

First find \(f(x,y) =\) _____________________________________________

Thus

\(f(0,0) =\) _________________________ and \(f(1,\pi/2) =\) _________________________,

and the change in \(f\) is ___________________________________.

\(t\), \(\frac{\pi t}{2}\), \(5\frac{\pi }{2}e^{-t^{2}}\cos\mathopen{}\left(\frac{5\pi t}{2}\right)-2te^{-t^{2}}\sin\mathopen{}\left(\frac{5\pi t}{2}\right)\), \(0\), \(1e^{-1}\sin\mathopen{}\left(\frac{5\pi }{2}\right)\), \(1e^{-1}\sin\mathopen{}\left(\frac{5\pi }{2}\right)\), \(e^{-x^{2}}\sin\mathopen{}\left(5y\right)\), \(0\), \(1\cdot 1e^{-1}\), \(1e^{-1}\sin\mathopen{}\left(\frac{5\pi }{2}\right)-0\)

2

Consider the vector field \(\mathbf{F} \left( x, y, z \right) = \left( 4 z+ y\right) \mathbf{i} + \left( z+ x \right) \mathbf{j} + \left( y+ 4 x \right) \mathbf{k}\).

a) Find a function \(f\) such that \(\mathbf{F} = \nabla f\) and \(f(0,0,0) = 0\).

\(f(x,y,z) =\) ________________________________________

b) Suppose C is any curve from \(\left( 0, 0, 0 \right)\) to \(\left( 1, 1, 1 \right).\) Use part a) to compute the line integral \(\int_{C} \mathbf{F} \cdot d\mathbf{r}\).

________________________________________

\(4zx+1yx+1zy\), \(6\)

3

For each of the following line integrals:

  • Determine if the Theorem applies.

  • If the Theorem applies, then find the potential function and use this to evaluate the line integral

  • If the Theorem does not apply, then describe where the process laid out in Preview Activity 12.4.1 fails.

a)

The line integral of \(\vF=\langle yz,xz,y\rangle\) along the helix of radius of 3 given by \(\vr(t) =\langle 3\sin(t), 3\cos(t), \frac{4}{\pi} t\rangle \) as \(-\pi\leq t\leq \pi\).

The Theorem does not apply to this problem because the vector field is not a gradient vector field. The process described in the Preview Activity breaks down in the \(z\)-component because there is not a term of the form \(xyz\).

b)

The line integral of \(\vF=\langle \sin(yz), xz\cos(yz)-z\sin(y),xy\cos(yz)+\cos(y)\rangle\) along the line segment from \((0,\pi,3)\) to \((2,-1,2\pi)\).

The Theorem does apply to this problem because the vector field is a gradient vector field. The potential functions are of the form \(f(x,y,z)=x\sin(yz)+z\cos(y)+C\). Hence, the line integral evaluates as \(f(2,-1,2\pi)-f(0,\pi,3)=(0+2\pi\cos(-1))-(0-3)=2\pi\cos(-1)+3\).

c)

The integral\(\int_C y^2\, dx +2xy\, dy\) where \(C\) is the parabolic path along \(y=x^2\) from \((-1,1)\) to \((4,16)\).

The Fundamental Theorem of Line Integrals does apply to this problem because the vector field is a gradient vector field. The potential functions are of the form \(f(x,y,z)=xy^2+C\). Hence, the line integral evaluates as \(f(4,16)-f(-1,1)=(1024)-(-1)=1025\).

4

Let \(\vF=\langle F_1,F_2,F_3\rangle\), where \(F_1= 3xy^2+z\) and \(F_3 = yz^2+\cos(z)\).

a)

Give a component function \(F_2\) such that \(\vF\) is a gradient vector field.

Based on the \(x\) and \(z\) component functions of \(\vF\), the potential function will need to be of the form \( f(x,y,z)=xz+\frac{3}{2}x^2y^2+\frac{1}{3}yz^3+\sin(z)+C(y)\). This means that any \(F_2\) of the form \(3x^2y+\frac{1}{3}z^3+g(y)\) (where \(g(y)\) is an integrable function of \(y\)) will make \(\vF\) a gradient vector field.

b)

Give a component function \(F_2\) such that \(\vF\) is not a gradient vector field.

Based on the \(x\) and \(z\) component functions of \(\vF\), the potential function will need to be of the form \( f(x,y,z)=xz+\frac{3}{2}x^2y^2+\frac{1}{3}yz^3+\sin(z)+C(y)\). This means that any \(F_2\) that is not of the form \(3x^2y+\frac{1}{3}z^3+g(y)\) (where \(g(y)\) is an integrable function of \(y\)) will prevent \(\vF\) from being a conservative vector field.

5

This exercise focuses on reasoning graphically about line integrals and vector fields.

a)

Find a closed curve on which the line integral of the vector field pictured below will not be zero. Be sure to clearly define your curve and explain why the line integral over your curve is non-zero.

Figure 12.4.6 — A vector field

Using the path of line segments from \((0,0)\) to \((1,0)\) to \((0,1)\) to \((0,0)\), you can see the only part of the path where the vector field is not orthogonal to the path is from \((1,0)\) to \((0,1)\). On the segment \((1,0)\) to \((0,1)\) the vector field will have a strictly positive dot product with the direction of travel and the line integral over the segment \((1,0)\) to \((0,1)\) will necessarily be positive.

b)

Explain why you think the following vector field is path independent or not.

Figure 12.4.7 — Another vector field

Any closed path will have a balanced amount of the vector field in the direction of travel and against the direction of travel. This argument is easiest to see using paths that are symmetric.

6

Compute \(\int_C ye^z\, dx +xe^z\, dy+xye^z\, dz\) where \(C\) is given by \(\langle t^2,t^3,t-1\rangle\) for \(1\leq t\leq 2\).