Section 6.2Line Integrals
We are familiar with single-variable integrals of the form \({∫}_{a}^{b}f(x)dx,\) where the domain of integration is an interval \([a,b].\) Such an interval can be thought of as a curve in the xy-plane, since the interval defines a line segment with endpoints \((a,0)\) and \((b,0)\) —in other words, a line segment located on the x-axis. Suppose we want to integrate over any curve in the plane, not just over a line segment on the x-axis. Such a task requires a new kind of integral, called a line integral.
Line integrals have many applications to engineering and physics. They also allow us to make several useful generalizations of the Fundamental Theorem of Calculus. And, they are closely connected to the properties of vector fields, as we shall see.
Scalar Line Integrals
A line integral gives us the ability to integrate multivariable functions and vector fields over arbitrary curves in a plane or in space. There are two types of line integrals: scalar line integrals and vector line integrals. Scalar line integrals are integrals of a scalar function over a curve in a plane or in space. Vector line integrals are integrals of a vector field over a curve in a plane or in space. Let’s look at scalar line integrals first.
A scalar line integral is defined just as a single-variable integral is defined, except that for a scalar line integral, the integrand is a function of more than one variable and the domain of integration is a curve in a plane or in space, as opposed to a curve on the x-axis.
For a scalar line integral, we let C be a smooth curve in a plane or in space and let \(f\) be a function with a domain that includes C. We chop the curve into small pieces. For each piece, we choose point P in that piece and evaluate \(f\) at P. (We can do this because all the points in the curve are in the domain of \(f.\) ) We multiply \(f(P)\) by the arc length of the piece \(\Delta s,\) add the product \(f(P)\Delta s\) over all the pieces, and then let the arc length of the pieces shrink to zero by taking a limit. The result is the scalar line integral of the function over the curve.
For a formal description of a scalar line integral, let \(C\) be a smooth curve in space given by the parameterization \(\text{r}(t)=\langle x(t),y(t),z(t)\rangle ,\) \(a\le t\le b.\) Let \(f(x,y,z)\) be a function with a domain that includes curve \(C.\) To define the line integral of the function \(f\) over \(C,\) we begin as most definitions of an integral begin: we chop the curve into small pieces. Partition the parameter interval \([a,b]\) into n subintervals \([{t}_{i-1},{t}_{i}]\) of equal width for \(\text{l}\le i\le n,\) where \({t}_{0}=a\) and \({t}_{n}=b\) (Figure 1). Let \({t}_{i}^{*}\) be a value in the ith interval \([{t}_{i-\text{l}},{t}_{i}].\) Denote the endpoints of \(\text{r}({t}_{0}),\text{r}({t}_{1})\text{,…},\text{r}({t}_{n})\) by \({P}_{0}\text{,…},{P}_{n}.\) Points Pi divide curve \(C\) into \(n\) pieces \({C}_{1},{C}_{2}\text{,…},{C}_{n,}\) with lengths \(\Delta {s}_{1},\Delta {s}_{2}\text{,…},\Delta {s}_{n},\) respectively. Let \({P}_{i}^{*}\) denote the endpoint of \(\text{r}({t}_{i}^{*})\) for \(1\le i\le n.\) Now, we evaluate the function \(f\) at point \({P}_{i}^{*}\) for \(1\le i\le n.\) Note that \({P}_{i}^{*}\) is in piece \({C}_{i},\) and therefore \({P}_{i}^{*}\) is in the domain of \(f.\) Multiply \(f({P}_{i}^{*})\) by the length \(\Delta {s}_{i}\) of \({C}_{i},\) which gives the area of the “sheet” with base \({C}_{i},\) and height \(f({P}_{i}^{*}).\) This is analogous to using rectangles to approximate area in a single-variable integral. Now, we form the sum \(∑i=1nf({P}_{i}^{*})\Delta {s}_{i}.\) Note the similarity of this sum versus a Riemann sum; in fact, this definition is a generalization of a Riemann sum to arbitrary curves in space. Just as with Riemann sums and integrals of form \({∫}_{a}^{b}g(x)dx,\) we define an integral by letting the width of the pieces of the curve shrink to zero by taking a limit. The result is the scalar line integral of \(f\) along \(C.\)

You may have noticed a difference between this definition of a scalar line integral and a single-variable integral. In this definition, the arc lengths \(\Delta {s}_{1},\Delta {s}_{2}\text{,…},\Delta {s}_{n}\) aren’t necessarily the same; in the definition of a single-variable integral, the curve in the x-axis is partitioned into pieces of equal length. This difference does not have any effect in the limit. As we shrink the arc lengths to zero, their values become close enough that any small difference becomes irrelevant.
Let \(f\) be a function with a domain that includes the smooth curve \(C\) that is parameterized by \(\text{r}(t)=\langle x(t),y(t),z(t)\rangle ,\) \(a\le t\le b.\) The scalar line integral of \(f\) along \(C\) is
\[{∫}_{C}f(x,y,z)ds=\underset{n\to \infty }{\text{lim}}∑i=1nf({P}_{i}^{*})\Delta {s}_{i}\]
if this limit exists \(({t}_{i}^{*}\) and \(\Delta {s}_{i}\) are defined as in the previous paragraphs). If C is a planar curve, then C can be represented by the parametric equations \(x=x(t),y=y(t),\) and \(a\le t\le b.\) If C is smooth and \(f(x,y)\) is a function of two variables, then the scalar line integral of \(f\) along C is defined similarly as
\[{∫}_{C}f(x,y)ds=\underset{n\to \infty }{\text{lim}}∑i=1nf({P}_{i}^{*})\Delta {s}_{i},\]
if this limit exists.
If \(f\) is a continuous function on a smooth curve C, then \({∫}_{C}fds\) always exists. Since \({∫}_{C}fds\) is defined as a limit of Riemann sums, the continuity of \(f\) is enough to guarantee the existence of the limit, just as the integral \({∫}_{a}^{b}g(x)dx\) exists if g is continuous over \([a,b].\)
Before looking at how to compute a line integral, we need to examine the geometry captured by these integrals. Suppose that \(f(x,y)\ge 0\) for all points \((x,y)\) on a smooth planar curve \(C.\) Imagine taking curve \(C\) and projecting it “up” to the surface defined by \(f(x,y),\) thereby creating a new curve \({C}^{\prime }\) that lies in the graph of \(f(x,y)\) (Figure 2). Now we drop a “sheet” from \({C}^{\prime }\) down to the xy-plane. The area of this sheet is \({∫}_{C}f(x,y)ds.\) If \(f(x,y)\le 0\) for some points in \(C,\) then the value of \({∫}_{C}f(x,y)ds\) is the area above the xy-plane less the area below the xy-plane. (Note the similarity with integrals of the form \({∫}_{a}^{b}g(x)dx.)\)

From this geometry, we can see that line integral \({∫}_{C}f(x,y)ds\) does not depend on the parameterization \(\text{r}(t)\) of C. As long as the curve is traversed exactly once by the parameterization, the area of the sheet formed by the function and the curve is the same. This same kind of geometric argument can be extended to show that the line integral of a three-variable function over a curve in space does not depend on the parameterization of the curve.
Find the value of integral \({∫}_{C}2ds,\) where \(C\) is the upper half of the unit circle.
Since the integrand is the constant \(f(x,y)=2\), the integral is just 2 times the arc length of \(C\).
The integrand is \(f(x,y)=2.\) Figure 3 shows the graph of \(f(x,y)=2,\) curve C, and the sheet formed by them. Notice that this sheet has the same area as a rectangle with width \(\pi\) and length 2. Therefore, \({∫}_{C}2ds=2\pi .\)

To see that \({∫}_{C}2ds=2\pi\) using the definition of line integral, we let \(\text{r}(t)\) be a parameterization of C. Then, \(f(\text{r}({t}_{i}))=2\) for any number \({t}_{i}\) in the domain of r. Therefore,
\[\begin{array}{ll}{∫}_{C}fds & =\underset{n\to \infty }{\text{lim}}∑i=1nf(\text{r}({t}_{i}^{*}))\Delta {s}_{i} \\ & =\underset{n\to \infty }{\text{lim}}∑i=1n2\Delta {s}_{i} \\ & =2\underset{n\to \infty }{\text{lim}}∑i=1n\Delta {s}_{i} \\ & =2(\text{length of C}) \\ & =2\pi .\end{array}\]
Find the value of \({∫}_{C}(x+y)ds,\) where \(C\) is the curve parameterized by \(x=t,\) \(y=t,\) \(0\le t\le 1.\)
\(\sqrt{2}\)
Note that in a scalar line integral, the integration is done with respect to arc length s, which can make a scalar line integral difficult to calculate. To make the calculations easier, we can translate \({∫}_{C}fds\) to an integral with a variable of integration that is t.
Let \(\text{r}(t)=\langle x(t),y(t),z(t)\rangle\) for \(a\le t\le b\) be a parameterization of \(C.\) Since we are assuming that \(C\) is smooth, \({r}^{\prime }(t)=\langle {x}^{\prime }(t),{y}^{\prime }(t),{z}^{\prime }(t)\rangle\) is continuous for all \(t\) in \([a,b].\) In particular, \(x\prime (t),y\prime (t),\) and \(z\prime (t)\) exist for all \(t\) in \([a,b].\) According to the arc length formula, we have
\[\text{length}({C}_{i})=\Delta {s}_{i}={∫}_{{t}_{i-1}}^{{t}_{i}}\Vert {r}^{\prime }(t)\Vert dt.\]
If width \(\Delta {t}_{i}={t}_{i}-{t}_{i-1}\) is small, then function \({∫}_{{t}_{i-1}}^{{t}_{i}}\Vert {r}^{\prime }(t)\Vert dt\approx \Vert {r}^{\prime }({t}_{i}^{*})\Vert \Delta {t}_{i},\) \(\Vert {r}^{\prime }(t)\Vert\) is almost constant over the interval \([{t}_{i-1},{t}_{i}].\) Therefore,
\[{∫}_{{t}_{i-1}}^{{t}_{i}}\Vert {r}^{\prime }(t)\Vert dt\approx \Vert {r}^{\prime }({t}_{i}^{*})\Vert \Delta {t}_{i},\]
and we have
\[∑i=1nf(\text{r}({t}_{i}^{*}))\Delta {s}_{i}=∑i=1nf(\text{r}({t}_{i}^{*}))\Vert {r}^{\prime }({t}_{i}^{*})\Vert \Delta {t}_{i}.\]
See Figure 4.

Note that
\[\underset{n\to \infty }{\text{lim}}∑i=1nf(\text{r}({t}_{i}^{*}))\Vert {r}^{\prime }({t}_{i}^{*})\Vert \Delta {t}_{i}={∫}_{a}^{b}f(\text{r}(t))\Vert {r}^{\prime }(t)\Vert dt.\]
In other words, as the widths of intervals \([{t}_{i-1},{t}_{i}]\) shrink to zero, the sum \(∑i=1nf(\text{r}({t}_{i}^{*}))\Vert {r}^{\prime }({t}_{i}^{*})\Vert \Delta {t}_{i}\) converges to the integral \({∫}_{a}^{b}f(\text{r}(t))\Vert {r}^{\prime }(t)\Vert dt.\) Therefore, we have the following theorem.
Let \(f\) be a continuous function with a domain that includes the smooth curve \(C\) with parameterization \(\text{r}(t),a\le t\le b.\) Then
\[{∫}_{C}fds={∫}_{a}^{b}f(\text{r}(t))\Vert {r}^{\prime }(t)\Vert dt.\]
Although we have labeled Equation 6 as an equation, it is more accurately considered an approximation because we can show that the left-hand side of Equation 6 approaches the right-hand side as \(n\to \infty .\) In other words, letting the widths of the pieces shrink to zero makes the right-hand sum arbitrarily close to the left-hand sum. Since
\[\Vert {r}^{\prime }(t)\Vert =\sqrt{{(x\prime (t))}^{2}+{(y\prime (t))}^{2}+{(z\prime (t))}^{2},}\]
we obtain the following theorem, which we use to compute scalar line integrals.
Let \(f\) be a continuous function with a domain that includes the smooth curve C with parameterization \(\text{r}(t)=\langle x(t),y(t),z(t)\rangle ,a\le t\le b.\) Then
\[{∫}_{C}f(x,y,z)ds={∫}_{a}^{b}f(\text{r}(t))\sqrt{{({x}^{\prime }(t))}^{2}+{({y}^{\prime }(t))}^{2}+{({z}^{\prime }(t))}^{2}}dt.\]
Similarly,
\[{∫}_{C}f(x,y)ds={∫}_{a}^{b}f(\text{r}(t))\sqrt{{({x}^{\prime }(t))}^{2}+{({y}^{\prime }(t))}^{2}}dt\]
if C is a planar curve and \(f\) is a function of two variables.
Note that a consequence of this theorem is the equation \(ds=\Vert {r}^{\prime }(t)\Vert dt.\) In other words, the change in arc length can be viewed as a change in the t domain, scaled by the magnitude of vector \({r}^{\prime }(t).\)
Find the value of integral \({∫}_{C}({x}^{2}+{y}^{2}+z)ds,\) where \(C\) is part of the helix parameterized by \(\text{r}(t)=\langle \text{cos}\,t,\text{sin}\,t,t\rangle ,\) \(0\le t\le 2\pi .\)
Convert to the variable t by writing \(f(\text{r}(t))\) and \(\Vert{r}^{\prime}(t)\Vert\), then integrate over \(t\).
To compute a scalar line integral, we start by converting the variable of integration from arc length s to t. Then, we can use Equation 10 to compute the integral with respect to t. Note that \(f(\text{r}(t))={\text{cos}}^{2}t+{\text{sin}}^{2}t+t=1+t\) and
\[\begin{array}{ll}\sqrt{{({x}^{\prime }(t))}^{2}+{({y}^{\prime }(t))}^{2}+{({z}^{\prime }(t))}^{2}} & =\sqrt{{(\text{-}\text{sin}(t))}^{2}+{\text{cos}}^{2}(t)+1} \\ & =\sqrt{2}.\end{array}\]
Therefore,
\[{∫}_{C}({x}^{2}+{y}^{2}+z)ds={∫}_{0}^{2\pi }(1+t)\sqrt{2}dt.\]
Notice that Equation 10 translated the original difficult line integral into a manageable single-variable integral. Since
\[\begin{array}{ll}{∫}_{0}^{2\pi }(1+t)\sqrt{2}dt & ={[\sqrt{2}t+\frac{\sqrt{2}{t}^{2}}{2}]}_{0}^{2\pi } \\ & =2\sqrt{2}\pi +2\sqrt{2}{\pi }^{2},\end{array}\]
we have
\[{∫}_{C}({x}^{2}+{y}^{2}+z)ds=2\sqrt{2}\pi +2\sqrt{2}{\pi }^{2}.\]
Evaluate \({∫}_{C}({x}^{2}+{y}^{2}+z)ds,\) where C is the curve with parameterization \(\text{r}(t)=⟨\text{sin}(3t),\text{cos}(3t)\text{,t}⟩,0\le t\le 2\pi .\)
\(2\sqrt{10}\pi +2\sqrt{10}{\pi }^{2}\)
Find the value of integral \({∫}_{C}({x}^{2}+{y}^{2}+z)ds,\) where \(C\) is part of the helix parameterized by \(\text{r}(t)=\langle \text{cos}(2t),\text{sin}(2t),2t\rangle ,0\le t\le \pi .\) Notice that this function and curve are the same as in the previous example; the only difference is that the curve has been reparameterized so that time runs twice as fast.
As in the previous example, write \(f(\text{r}(t))\) and \(\Vert{r}^{\prime}(t)\Vert\) for this new parameterization, then compare the result.
As with the previous example, we use Equation 10 to compute the integral with respect to t. Note that \(f(\text{r}(t))={\text{cos}}^{2}(2t)+{\text{sin}}^{2}(2t)+2t=2t+1\) and
\[\begin{array}{ll}\sqrt{{({x}^{'}(t))}^{2}+{({y}^{'}(t))}^{2}+{(z'(t))}^{2}} & =\sqrt{{\left(\text{-2sin}\left(\text{2}t\right)\right)}^{2}+{\left(2\text{cos}\left(\text{2}t\right)\right)}^{2}+{2}^{2}} \\ & \sqrt{4{\text{sin}}^{2}\left(2t\right)+4{\text{cos}}^{2}\left(2t\right)+4} \\ & =2\sqrt{2}\end{array}\]
so we have
\[\begin{array}{ll}{∫}_{C}({x}^{2}+{y}^{2}+z)ds & =2\sqrt{2}{∫}_{0}^{\pi }(1+2t)dt \\ & =2\sqrt{2}{[t+{t}^{2}]}_{0}^{\pi } \\ & =2\sqrt{2}(\pi +{\pi }^{2}).\end{array}\]
Notice that this agrees with the answer in the previous example. Changing the parameterization did not change the value of the line integral. Scalar line integrals are independent of parameterization, as long as the curve is traversed exactly once by the parameterization.
Evaluate line integral \({∫}_{C}({x}^{2}+yz)ds,\) where \(C\) is the line with parameterization \(\text{r}(t)=\langle 2t,5t,\text{-}t\rangle ,0\le t\le 10.\) Reparameterize C with parameterization \(\text{s}(t)=\langle 4t,10t,-2t\rangle ,0\le t\le 5,\) recalculate line integral \({∫}_{C}({x}^{2}+yz)ds,\) and notice that the change of parameterization had no effect on the value of the integral.
Both line integrals equal \(-\frac{1000\sqrt{30}}{3}.\)
Now that we can evaluate line integrals, we can use them to calculate arc length. If \(f(x,y,z)=1,\) then
\[\begin{array}{ll}{∫}_{C}f(x,y,z)ds & =\underset{n\to \infty }{\text{lim}}∑i=1nf({P}_{i}^{*})\Delta {s}_{i} \\ & =\underset{n\to \infty }{\text{lim}}∑i=1n\Delta {s}_{i} \\ & =\underset{n\to \infty }{\text{lim}}\text{length}(C) \\ & =\text{length}(C).\end{array}\]
Therefore, \({∫}_{C}1ds\) is the arc length of \(C.\)
A wire has a shape that can be modeled with the parameterization \(\text{r}(t)=⟨\text{cos}\,t,\text{sin}\,t,\frac{2}{3}{t}^{3/2}⟩,0\le t\le 4\pi .\) Find the length of the wire.
The length of the wire is \({∫}_{C}1ds={∫}_{a}^{b}\Vert{r}^{\prime}(t)\Vert dt\); start by computing \({r}^{\prime}(t)\).
The length of the wire is given by \({∫}_{C}1ds,\) where C is the curve with parameterization r. Therefore,
\[\begin{array}{ll}\text{The length of the wire} & ={∫}_{C}1ds \\ & ={∫}_{0}^{4\pi }\Vert {r}^{\prime }(t)\Vert dt \\ & ={∫}_{0}^{4\pi }\sqrt{{(\text{-}\text{sin}\,t)}^{2}+{\text{cos}}^{2}t+t}dt \\ & ={∫}_{0}^{4\pi }\sqrt{1+t}dt \\ & ={[\frac{2{(1+t)}^{3\text{/}2}}{3}]}_{0}^{4\pi } \\ & =\frac{2}{3}({(1+4\pi )}^{3\text{/}2}-1).\end{array}\]
Find the length of a wire with parameterization \(\text{r}(t)=\langle 3t+1,4-2t,5+2t\rangle ,0\le t\le 4.\)
\(4\sqrt{17}\)
Vector Line Integrals
The second type of line integrals are vector line integrals, in which we integrate along a curve through a vector field. For example, let
\[\text{F}(x,y,z)=P(x,y,z)\text{i}+Q(x,y,z)\text{j}+R(x,y,z)\text{k}\]
be a continuous vector field in \({ℝ}^{3}\) that represents a force on a particle, and let C be a smooth curve in \({ℝ}^{3}\) contained in the domain of \(\text{F}.\) How would we compute the work done by \(\text{F}\) in moving a particle along C?
To answer this question, first note that a particle could travel in two directions along a curve: a forward direction and a backward direction. The work done by the vector field depends on the direction in which the particle is moving. Therefore, we must specify a direction along curve C; such a specified direction is called an orientation of a curve. The specified direction is the positive direction along C; the opposite direction is the negative direction along C. When C has been given an orientation, C is called an oriented curve (Figure 5). The work done on the particle depends on the direction along the curve in which the particle is moving.
A closed curve is one for which there exists a parameterization \(\text{r}(t),\) \(a\le t\le b,\) such that \(\text{r}(a)=\text{r}(b),\) and the curve is traversed exactly once. In other words, the parameterization is one-to-one on the domain \((a,b).\)

Let \(\text{r}(t)\) be a parameterization of C for \(a\le t\le b\) such that the curve is traversed exactly once by the particle and the particle moves in the positive direction along C. Divide the parameter interval \([a,b]\) into n subintervals \([{t}_{i-1},{t}_{i}],0\le i\le n,\) of equal width. Denote the endpoints of \(\text{r}({t}_{0}),\text{r}({t}_{1})\text{,…},\text{r}({t}_{n})\) by \({P}_{0}\text{,…},{P}_{n}.\) Points Pi divide C into n pieces. Denote the length of the piece from Pi−1 to Pi by \(\Delta {s}_{i}.\) For each i, choose a value \({t}_{i}^{*}\) in the subinterval \([{t}_{i-1},{t}_{i}].\) Then, the endpoint of \(\text{r}({t}_{i}^{*})\) is a point in the piece of C between \({P}_{i-1}\) and Pi (Figure 6). If \(\Delta {s}_{i}\) is small, then as the particle moves from \({P}_{i-1}\) to \({P}_{i}\) along C, it moves approximately in the direction of \(\text{T}({P}_{i}),\) the unit tangent vector at the endpoint of \(\text{r}({t}_{i}^{*}).\) Let \({P}_{i}^{*}\) denote the endpoint of \(\text{r}({t}_{i}^{*}).\) Then, the work done by the force vector field in moving the particle from \({P}_{i-1}\) to Pi is \(\text{F}({P}_{i}^{*})·(\Delta {s}_{i}\text{T}({P}_{i}^{*})),\) so the total work done along C is
\[∑i=1n\text{F}({P}_{i}^{*})·(\Delta {s}_{i}\text{T}({P}_{i}^{*}))=∑i=1n\text{F}({P}_{i}^{*})·\text{T}({P}_{i}^{*})\Delta {s}_{i}.\]

Letting the arc length of the pieces of C get arbitrarily small by taking a limit as \(n\to \infty\) gives us the work done by the field in moving the particle along C. Therefore, the work done by F in moving the particle in the positive direction along C is defined as
\[W={∫}_{C}\text{F}·\text{T}ds,\]
which gives us the concept of a vector line integral.
The vector line integral of vector field F along oriented smooth curve C is
\[{∫}_{C}\text{F}·\text{T}ds=\underset{n\to \infty }{\text{lim}}∑i=1n\text{F}({P}_{i}^{*})·\text{T}({P}_{i}^{*})\Delta {s}_{i}\]
if that limit exists.
With scalar line integrals, neither the orientation nor the parameterization of the curve matters. As long as the curve is traversed exactly once by the parameterization, the value of the line integral is unchanged. With vector line integrals, the orientation of the curve does matter. If we think of the line integral as computing work, then this makes sense: if you hike up a mountain, then the gravitational force of Earth does negative work on you. If you walk down the mountain by the exact same path, then Earth’s gravitational force does positive work on you. In other words, reversing the path changes the work value from negative to positive in this case. Note that if C is an oriented curve, then we let −C represent the same curve but with opposite orientation.
As with scalar line integrals, it is easier to compute a vector line integral if we express it in terms of the parameterization function r and the variable t. To translate the integral \({∫}_{C}\text{F}·\text{T}ds\) in terms of t, note that unit tangent vector T along C is given by \(\text{T}=\frac{{r}^{\prime }(t)}{\Vert {r}^{\prime }(t)\Vert }\) (assuming \(\Vert {r}^{\prime }(t)\Vert \ne 0).\) Since \(ds=\Vert {r}^{\prime }(t)\Vert dt,\) as we saw when discussing scalar line integrals, we have
\[\text{F}·\text{T}ds=\text{F}(\text{r}(t))·\frac{{r}^{\prime }(t)}{\Vert {r}^{\prime }(t)\Vert }\Vert {r}^{\prime }(t)\Vert dt=\text{F}(\text{r}(t))·{r}^{\prime }(t)dt.\]
Thus, we have the following formula for computing vector line integrals:
\[{∫}_{C}\text{F}·\text{T}ds={∫}_{a}^{b}\text{F}(\text{r}(t))·{r}^{\prime }(t)dt.\]
Because of Equation 25, we often use the notation \({∫}_{C}\text{F}·d\text{r}\) for the line integral \({∫}_{C}\text{F}·\text{T}ds.\)
If \(\text{r}(t)=\langle x(t),y(t),z(t)\rangle ,\) then dr denotes vector differential \(\langle {x}^{\prime }(t),{y}^{\prime }(t),{z}^{\prime }(t)\rangle dt.\)
Find the value of integral \({∫}_{C}\text{F}·d\text{r},\) where \(C\) is the semicircle parameterized by \(\text{r}(t)=\langle \text{cos}\,t,\text{sin}\,t\rangle ,\) \(0\le t\le \pi\) and \(\text{F}=\langle \text{-}y,x\rangle .\)
Rewrite \(\text{F}(\text{r}(t))\) and \({r}^{\prime}(t)\) in terms of t, then integrate their dot product.
We can use Equation 25 to convert the variable of integration from r to t. We then have
\[\text{F}(\text{r}(t))=\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle \,\text{and}\,{r}^{\prime }(t)=\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle .\]
Therefore,
\[\begin{array}{ll}{∫}_{C}\text{F}·d\text{r} & ={∫}_{0}^{\pi }\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle ·\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle dt \\ & ={∫}_{0}^{\pi }{\text{sin}}^{2}t+{\text{cos}}^{2}tdt \\ & ={∫}_{0}^{\pi }1dt=\pi .\end{array}\]
See Figure 7.
![A vector field in two dimensions. The closer the arrows are to the origin, the smaller they are. The further away they are, the longer they are. The arrows surround the origin in a radial pattern. A single curve is plotted and follows the radial pattern in quadrants 1 and 2 over the interval [-1,1]. It is a concave down arch that looks like a downward opening parabola.](https://raw.githubusercontent.com/openstax/osbooks-calculus-bundle/main/media/CNX_Calc_Figure_16_02_007.jpg)
Find the value of integral \({∫}_{C}\text{F}·d\text{r},\) where \(C\) is the semicircle parameterized by \(\text{r}(t)=\langle \text{cos}\,(t+\pi ),\text{sin}\,t\rangle ,0\le t\le \pi\) and \(\text{F}=\langle \text{-}y,x\rangle .\)
Notice this is Example 5's curve with reversed orientation; compute \(\text{F}(\text{r}(t))·{r}^{\prime}(t)\) for this new parameterization.
Notice that this is the same problem as Example 5, except the orientation of the curve has been reversed. In this example, the parameterization starts at \(\text{r}(0)=\langle -1,0\rangle\) and ends at \(\text{r}(\pi )=\langle 1,0\rangle .\) By Equation 25,
\[\begin{array}{ll}{∫}_{C}\text{F}·d\text{r} & ={∫}_{0}^{\pi }\langle \text{-}\text{sin}\,t,\text{cos}\,(t+\pi )\rangle ·\langle \text{-}\text{sin}\,(t+\pi ),\text{cos}\,t\rangle dt \\ & ={∫}_{0}^{\pi }\langle \text{-}\text{sin}\,t,\text{-}\text{cos}\,t\rangle ·\langle \text{sin}\,t,\text{cos}\,t\rangle dt \\ & ={∫}_{0}^{\pi }(\text{-}{\text{sin}}^{2}t-{\text{cos}}^{2}t)dt \\ & ={∫}_{0}^{\pi }-1dt \\ & =\text{-}\pi .\end{array}\]
Notice that this is the negative of the answer in Example 5. It makes sense that this answer is negative because the orientation of the curve goes against the “flow” of the vector field.
Let C be an oriented curve and let −C denote the same curve but with the orientation reversed. Then, the previous two examples illustrate the following fact:
\[{∫}_{-C}\text{F}·d\text{r}=\text{-}{∫}_{C}\text{F}·d\text{r}.\]
That is, reversing the orientation of a curve changes the sign of a line integral.
Let \(\text{F}=x\text{i}+y\text{j}\) be a vector field and let C be the curve with parameterization \(\langle t,{t}^{2}\rangle\) for \(0\le t\le 2.\) Which is greater: \({∫}_{C}\text{F}·\text{T}ds\) or \({∫}_{\text{-}C}\text{F}·\text{T}ds?\)
\({∫}_{C}\text{F}·\text{T}ds\)
Another standard notation for integral \({∫}_{C}\text{F}·d\text{r}\) is \({∫}_{C}Pdx+Qdy+Rdz.\) In this notation, P, Q, and R are functions, and we think of dr as vector \(\langle dx,dy,dz\rangle .\) To justify this convention, recall that \(d\text{r}=\text{T}ds={r}^{\prime }(t)dt=\langle \frac{dx}{dt},\frac{dy}{dt},\frac{dz}{dt}\rangle dt.\) Therefore,
\[\text{F}·d\text{r}=\langle P,Q,R\rangle ·\langle dx,dy,dz\rangle =Pdx+Qdy+Rdz.\]
If \(d\text{r}=\langle dx,dy,dz\rangle ,\) then \(\frac{d\text{r}}{dt}=\langle \frac{dx}{dt},\frac{dy}{dt},\frac{dz}{dt}\rangle ,\) which implies that \(d\text{r}=\langle \frac{dx}{dt},\frac{dy}{dt},\frac{dz}{dt}\rangle dt.\) Therefore
\[\begin{array}{ll}{∫}_{C}\text{F}·d\text{r} & ={∫}_{C}Pdx+Qdy+Rdz \\ & =∫(P(\text{r}(t))\frac{dx}{dt}+Q(\text{r}(t))\frac{dy}{dt}+R(\text{r}(t))\frac{dz}{dt})dt.\end{array}\]
Find the value of integral \({∫}_{C}zdx+xdy+ydz,\) where C is the curve parameterized by \(\text{r}(t)=\langle {t}^{2},\sqrt{t},t\rangle ,1\le t\le 4.\)
Write \(dx,dy,dz\) in terms of t using \(x(t),y(t),z(t)\), then substitute into the integrand.
As with our previous examples, to compute this line integral we should perform a change of variables to write everything in terms of t. In this case, Equation 31 allows us to make this change:
\[\begin{array}{ll}{∫}_{C}zdx+xdy+ydz & ={∫}_{1}^{4}(t(2t)+{t}^{2}(\frac{1}{2\sqrt{t}})+\sqrt{t})dt \\ & ={∫}_{1}^{4}(2{t}^{2}+\frac{{t}^{3\text{/}2}}{2}+\sqrt{t})dt \\ & ={[\frac{2{t}^{3}}{3}+\frac{{t}^{5\text{/}2}}{5}+\frac{2{t}^{3\text{/}2}}{3}]}_{t=1}^{t=4} \\ & =\frac{793}{15}.\end{array}\]
Find the value of \({∫}_{C}4xdx+zdy+4{y}^{2}dz,\) where \(C\) is the curve parameterized by \(\text{r}(t)=\langle 4\,\text{cos}(2t),2\,\text{sin}(2t),3\rangle ,0\le t\le \frac{\pi }{4}.\)
\(-26\)
We have learned how to integrate smooth oriented curves. Now, suppose that C is an oriented curve that is not smooth, but can be written as the union of finitely many smooth curves. In this case, we say that C is a piecewise smooth curve. To be precise, curve C is piecewise smooth if C can be written as a union of n smooth curves \({C}_{1},{C}_{2}\text{,…},{C}_{n}\) such that the endpoint of \({C}_{i}\) is the starting point of \({C}_{i+1}\) (Figure 8). When curves \({C}_{i}\) satisfy the condition that the endpoint of \({C}_{i}\) is the starting point of \({C}_{i+1},\) we write their union as \({C}_{1}+{C}_{2}+\cdots +{C}_{n}.\)

The next theorem summarizes several key properties of vector line integrals.
Let F and G be continuous vector fields with domains that include the oriented smooth curve C. Then
- \({∫}_{C}(\text{F}+\text{G})·d\text{r}={∫}_{C}\text{F}·d\text{r}+{∫}_{C}\text{G}·d\text{r}\)
- \({∫}_{C}k\text{F}·d\text{r}=k{∫}_{C}\text{F}·d\text{r},\) where k is a constant
- \({∫}_{\text{-}C}\text{F}·d\text{r}=\text{-}{∫}_{C}\text{F}·d\text{r}\)
- Suppose instead that C is a piecewise smooth curve in the domains of F and G, where \(C={C}_{1}+{C}_{2}+\cdots +{C}_{n}\) and \({C}_{1},{C}_{2}\text{,…},{C}_{n}\) are smooth curves such that the endpoint of \({C}_{i}\) is the starting point of \({C}_{i+1}.\) Then
\[{∫}_{C}\text{F}·d\text{r}={∫}_{{C}_{1}}\text{F}·d\text{r}+{∫}_{{C}_{2}}\text{F}·d\text{r}+\cdots +{∫}_{{C}_{n}}\text{F}·d\text{r}.\]
Notice the similarities between these items and the properties of single-variable integrals. Properties i. and ii. say that line integrals are linear, which is true of single-variable integrals as well. Property iii. says that reversing the orientation of a curve changes the sign of the integral. If we think of the integral as computing the work done on a particle traveling along C, then this makes sense. If the particle moves backward rather than forward, then the value of the work done has the opposite sign. This is analogous to the equation \({∫}_{a}^{b}f(x)dx=\text{-}{∫}_{b}^{a}f(x)dx.\) Finally, if \([{a}_{1},{a}_{2}],[{a}_{2},{a}_{3}]\text{,…},[{a}_{n-1},{a}_{n}]\) are intervals, then
\[{∫}_{{a}_{1}}^{{a}_{n}}f(x)dx={∫}_{{a}_{1}}^{{a}_{2}}f(x)dx+{∫}_{{a}_{2}}^{{a}_{3}}f(x)dx+\cdots +{∫}_{{a}_{n-1}}^{{a}_{n}}f(x)dx,\]
which is analogous to property iv.
Find the value of integral \({∫}_{C}\text{F}·\text{T}ds,\) where C is the rectangle (oriented counterclockwise) in a plane with vertices \((0,0),(2,0),(2,1),\,\text{and}\,(0,1),\) and where \(\text{F}=\langle x-2y,y-x\rangle\) (Figure 9).

Break the rectangle into its four sides \(C_1\)–\(C_4\), parametrize each one, and sum the four line integrals.
Note that curve C is the union of its four sides, and each side is smooth. Therefore C is piecewise smooth. Let \({C}_{1}\) represent the side from \((0,0)\) to \((2,0),\) let \({C}_{2}\) represent the side from \((2,0)\) to \((2,1),\) let \({C}_{3}\) represent the side from \((2,1)\) to \((0,1),\) and let \({C}_{4}\) represent the side from \((0,1)\) to \((0,0)\) (Figure 9). Then,
\[{∫}_{C}\text{F}·\text{T}d\text{r}={∫}_{{C}_{1}}\text{F}·\text{T}d\text{r}+{∫}_{{C}_{2}}\text{F}·\text{T}d\text{r}+{∫}_{{C}_{3}}\text{F}·\text{T}d\text{r}+{∫}_{{C}_{4}}\text{F}·\text{T}d\text{r}.\]
We want to compute each of the four integrals on the right-hand side using Equation 10. Before doing this, we need a parameterization of each side of the rectangle. Here are four parameterizations (note that they traverse C counterclockwise):
\[\begin{array}{l}{C}_{1}:\langle t,0\rangle ,0\le t\le 2 \\ {C}_{2}:\langle 2,t\rangle ,0\le t\le 1 \\ {C}_{3}:\langle 2-t,1\rangle ,0\le t\le 2 \\ {C}_{4}:\langle 0,1-t\rangle ,0\le t\le 1.\end{array}\]
Therefore,
\[\begin{array}{ll}{∫}_{{C}_{1}}\text{F}·\text{T}d\text{r} & ={∫}_{0}^{2}\text{F}(\text{r}(t))·{r}^{'}(t)dt \\ & ={∫}_{0}^{2}⟨t-2(0),0-t⟩·⟨1,0⟩dt={∫}_{0}^{2}tdt \\ & ={[\frac{{t}^{2}}{2}]}_{0}^{2}=2.\end{array}\]
Notice that the value of this integral is positive, which should not be surprising. As we move along curve C1 from left to right, our movement flows in the general direction of the vector field itself. At any point along C1, the tangent vector to the curve and the corresponding vector in the field form an angle that is less than 90°. Therefore, the tangent vector and the force vector have a positive dot product all along C1, and the line integral will have positive value.
The calculations for the three other line integrals are done similarly:
\[\begin{array}{ll}{∫}_{{C}_{2}}\text{F}·d\text{r} & ={∫}_{0}^{1}\langle 2-2t,t-2\rangle ·\langle 0,1\rangle dt \\ & ={∫}_{0}^{1}(t-2)dt \\ & ={[\frac{{t}^{2}}{2}-2t]}_{0}^{1}=-\frac{3}{2},\end{array}\]
\[\begin{array}{ll}{∫}_{{C}_{3}}\text{F}·\text{T}ds & ={∫}_{0}^{2}\langle (2-t)-2,1-(2-t)\rangle ·\langle -1,0\rangle dt \\ & ={∫}_{0}^{2}tdt=2,\end{array}\]
and
\[\begin{array}{ll}{∫}_{{C}_{4}}\text{F}·d\text{r} & ={∫}_{0}^{1}\langle -2(1-t),1-t\rangle ·\langle 0,-1\rangle dt \\ & ={∫}_{0}^{1}(t-1)dt \\ & ={[\frac{{t}^{2}}{2}-t]}_{0}^{1}=-\frac{1}{2}.\end{array}\]
Thus, we have \({∫}_{C}\text{F}·d\text{r}=2.\)
Calculate line integral \({∫}_{C}\text{F}·d\text{r},\) where F is vector field \(\langle {y}^{2},2xy+1\rangle\) and C is a triangle with vertices \((0,0),\) \((4,0),\) and \((0,5),\) oriented counterclockwise.
0
Applications of Line Integrals
Scalar line integrals have many applications. They can be used to calculate the length or mass of a wire, the surface area of a sheet of a given height, or the electric potential of a charged wire given a linear charge density. Vector line integrals are extremely useful in physics. They can be used to calculate the work done on a particle as it moves through a force field, or the flow rate of a fluid across a curve. Here, we calculate the mass of a wire using a scalar line integral and the work done by a force using a vector line integral.
Suppose that a piece of wire is modeled by curve C in space. The mass per unit length (the linear density) of the wire is a continuous function \(ρ(x,y,z).\) We can calculate the total mass of the wire using the scalar line integral \({∫}_{C}ρ(x,y,z)ds.\) The reason is that mass is density multiplied by length, and therefore the density of a small piece of the wire can be approximated by \(ρ(x*,y*,z*)\Delta s\) for some point \((x*,y*,z*)\) in the piece. Letting the length of the pieces shrink to zero with a limit yields the line integral \({∫}_{C}ρ(x,y,z)ds.\)
Calculate the mass of a spring in the shape of a curve parameterized by \(\langle t,2\,\text{cos}\,t,2\,\text{sin}\,t\rangle ,\) \(0\le t\le \frac{\pi }{2},\) with a density function given by \(ρ(x,y,z)={e}^{x}+yz\) kg/m (Figure 10).

Set up \({∫}_{C}ρ(x,y,z)ds\) and convert it to an integral in t using the parameterization.
To calculate the mass of the spring, we must find the value of the scalar line integral \({∫}_{C}({e}^{x}+yz)ds,\) where C is the given helix. To calculate this integral, we write it in terms of t using Equation 10:
\[\begin{array}{ll}{∫}_{C}{e}^{x}+yzds & ={∫}_{0}^{\pi \text{/}2}(({e}^{t}+4\,\text{cos}\,t\,\text{sin}\,t)\sqrt{1+{(-2\,\text{cos}\,t)}^{2}+{(2\,\text{sin}\,t)}^{2}})dt \\ & ={∫}_{0}^{\pi \text{/}2}(({e}^{t}+4\,\text{cos}\,t\,\text{sin}\,t)\sqrt{5})dt \\ & =\sqrt{5}{[{e}^{t}+2\,{\text{sin}}^{2}t]}_{t=0}^{t=\pi \text{/}2} \\ & =\sqrt{5}({e}^{\pi \text{/}2}+1).\end{array}\]
Therefore, the mass is \(\sqrt{5}({e}^{\pi \text{/}2}+1)\) kg.
Calculate the mass of a spring in the shape of a helix parameterized by \(\text{r}(t)=\langle \text{cos}\,t,\text{sin}\,t,t\rangle ,0\le t\le 6\pi ,\) with a density function given by \(ρ(x,y,z)=x+y+z\) kg/m.
\(18\sqrt{2}{\pi }^{2}\) kg
When we first defined vector line integrals, we used the concept of work to motivate the definition. Therefore, it is not surprising that calculating the work done by a vector field representing a force is a standard use of vector line integrals. Recall that if an object moves along curve C in force field F, then the work required to move the object is given by \({∫}_{C}\text{F}·d\text{r}.\)
How much work is required to move an object in vector force field \(\text{F}=\langle yz,xy,xz\rangle\) along path \(\text{r}(t)=\langle {t}^{2},t,{t}^{4}\rangle ,\) \(0\le t\le 1?\) See Figure 11.
Work is \({∫}_{C}\text{F}·d\text{r}\); rewrite \(\text{F}(\text{r}(t))\) and \({r}^{\prime}(t)\) in terms of t, then dot and integrate.
Let C denote the given path. We need to find the value of \({∫}_{C}\text{F}·d\text{r}.\) To do this, we use Equation 25:
\[\begin{array}{ll}{∫}_{C}\text{F}·d\text{r} & ={∫}_{0}^{1}(\langle {t}^{5},{t}^{3},{t}^{6}\rangle ·\langle 2t,1,4{t}^{3}\rangle )dt \\ & ={∫}_{0}^{1}(2{t}^{6}+{t}^{3}+4{t}^{9})dt \\ & ={[\frac{2{t}^{7}}{7}+\frac{{t}^{4}}{4}+\frac{2{t}^{10}}{5}]}_{t=0}^{t=1}=\frac{131}{140}.\end{array}\]

Flux and Circulation
We close this section by discussing two key concepts related to line integrals: flux across a plane curve and circulation along a plane curve. Flux is used in applications to calculate fluid flow across a curve, and the concept of circulation is important for characterizing conservative gradient fields in terms of line integrals. Both these concepts are used heavily throughout the rest of this chapter. The idea of flux is especially important for Green’s theorem, and in higher dimensions for Stokes’ theorem and the divergence theorem.
Let C be a plane curve and let F be a vector field in the plane. Imagine C is a membrane across which fluid flows, but C does not impede the flow of the fluid. In other words, C is an idealized membrane invisible to the fluid. Suppose F represents the velocity field of the fluid. How could we quantify the rate at which the fluid is crossing C?
Recall that the line integral of F along C is \({∫}_{C}\text{F}·\text{T}ds\) —in other words, the line integral is the dot product of the vector field with the unit tangential vector with respect to arc length. If we replace the unit tangential vector with unit normal vector \(\text{N}(t)\) and instead compute integral \({∫}_{C}\text{F}·\text{N}ds,\) we determine the flux across C. To be precise, the definition of integral \({∫}_{C}\text{F}·\text{N}ds\) is the same as integral \({∫}_{C}\text{F}·\text{T}ds,\) except the T in the Riemann sum is replaced with N. Therefore, the flux across C is defined as
\[{∫}_{C}\text{F}·\text{N}ds=\underset{n\to \infty }{\text{lim}}∑i=1n\text{F}({P}_{i}^{*})·\text{N}({P}_{i}^{*})\Delta {s}_{i},\]
where \({P}_{i}^{*}\) and \(\Delta {s}_{i}\) are defined as they were for integral \({∫}_{C}\text{F}·\text{T}ds.\) Therefore, a flux integral is an integral that is perpendicular to a vector line integral, because N and T are perpendicular vectors.
If F is a velocity field of a fluid and C is a curve that represents a membrane, then the flux of F across C is the quantity of fluid flowing across C per unit time, or the rate of flow.
More formally, let C be a plane curve parameterized by \(\text{r}(t)=\langle x(t),y(t)\rangle ,\) \(a\le t\le b.\) Let \(\text{n}(t)=\langle {y}^{\prime }(t),\text{-}{x}^{\prime }(t)\rangle\) be the vector that is normal to C at the endpoint of \(\text{r}(t)\) and points to the right as we traverse C in the positive direction (Figure 12). Then, \(\text{N}(t)=\frac{\text{n}(t)}{\Vert \text{n}(t)\Vert }\) is the unit normal vector to C at the endpoint of \(\text{r}(t)\) that points to the right as we traverse C.
The flux of F across C is line integral \({∫}_{C}\text{F}·\frac{\text{n}(t)}{\Vert \text{n}(t)\Vert }ds.\)

We now give a formula for calculating the flux across a curve. This formula is analogous to the formula used to calculate a vector line integral (see Equation 25).
Let F be a vector field and let C be a smooth curve with parameterization \(\text{r}(t)=\langle x(t),y(t)\rangle ,a\le t\le b.\) Let \(\text{n}(t)=\langle {y}^{\prime }(t),\text{-}{x}^{\prime }(t)\rangle .\) The flux of F across C is
\[{∫}_{C}\text{F}·\text{N}ds={∫}_{a}^{b}\text{F}(\text{r}(t))·\text{n}(t)dt\]
Proof
The proof of Equation 44 is similar to the proof of Equation 10. Before deriving the formula, note that \(\Vert \text{n}(t)\Vert =\Vert \langle y\prime (t),\text{-}x\prime (t)\rangle \Vert =\sqrt{{(y\prime (t))}^{2}+{(x\prime (t))}^{2}}=\Vert {r}^{\prime }(t)\Vert .\) Therefore,
\[\begin{array}{ll}{∫}_{C}\text{F}·\text{N}ds & ={∫}_{C}\text{F}·\frac{\text{n}(t)}{\Vert \text{n}(t)\Vert }ds \\ & ={∫}_{a}^{b}\text{F}·\frac{\text{n}(t)}{\Vert \text{n}(t)\Vert }\Vert {r}^{\prime }(t)\Vert dt \\ & ={∫}_{a}^{b}\text{F}(\text{r}(t))·\text{n}(t)dt.\end{array}\]
□
Calculate the flux of \(\text{F}=\langle 2x,2y\rangle\) across a unit circle oriented counterclockwise (Figure 13).

Parametrize the unit circle, find the normal vector \(\text{n}(t)=\langle{y}^{\prime}(t),-{x}^{\prime}(t)\rangle\), then compute \({∫}_{a}^{b}\text{F}(\text{r}(t))·\text{n}(t)dt\).
To compute the flux, we first need a parameterization of the unit circle. We can use the standard parameterization \(\text{r}(t)=\langle \text{cos}\,t,\text{sin}\,t\rangle ,\) \(0\le t\le 2\pi .\) The normal vector to a unit circle is \(\langle \text{cos}\,t,\text{sin}\,t\rangle .\) Therefore, the flux is
\[\begin{array}{ll}{∫}_{C}\text{F}·\text{N}ds & ={∫}_{0}^{2\pi }\langle 2\,\text{cos}\,t,2\,\text{sin}\,t\rangle ·\langle \text{cos}\,t,\text{sin}\,t\rangle \,dt \\ & ={∫}_{0}^{2\pi }(2\,{\text{cos}}^{2}t+2\,{\text{sin}}^{2}t)\,dt=2{∫}_{0}^{2\pi }({\text{cos}}^{2}t+{\text{sin}}^{2}t)\,dt \\ & =2{∫}_{0}^{2\pi }dt=4\pi .\end{array}\]
Calculate the flux of \(\text{F}=\langle x+y,2y\rangle\) across the line segment from \((0,0)\) to \((2,3),\) where the curve is oriented from left to right.
3/2
Let \(\text{F}(x,y)=\langle P(x,y),Q(x,y)\rangle\) be a two-dimensional vector field. Recall that integral \({∫}_{C}\text{F}·\text{T}ds\) is sometimes written as \({∫}_{C}Pdx+Qdy.\) Analogously, flux \({∫}_{C}\text{F}·\text{N}ds\) is sometimes written in the notation \({∫}_{C}\text{-}Qdx+Pdy,\) because the unit normal vector N is perpendicular to the unit tangent T. Rotating the vector \(d\text{r}=\langle dx,dy\rangle\) by 90° results in vector \(\langle dy,\text{-}dx\rangle .\) Therefore, the line integral in Example 8 can be written as \({∫}_{C}-2ydx+2xdy.\)
Now that we have defined flux, we can turn our attention to circulation. The line integral of vector field F along an oriented closed curve is called the circulation of F along C. Circulation line integrals have their own notation: \({∫}_{C}\text{F}·\text{T}ds.\) The circle on the integral symbol denotes that C is “circular” in that it has no endpoints. Example 5 shows a calculation of circulation.
To see where the term circulation comes from and what it measures, let v represent the velocity field of a fluid and let C be an oriented closed curve. At a particular point P, the closer the direction of v(P) is to the direction of T(P), the larger the value of the dot product \(\text{v}(P)·\text{T}(P).\) The maximum value of \(\text{v}(P)·\text{T}(P)\) occurs when the two vectors are pointing in the exact same direction; the minimum value of \(\text{v}(P)·\text{T}(P)\) occurs when the two vectors are pointing in opposite directions. Thus, the value of the circulation \({∫}_{C}\text{v}·\text{T}ds\) measures the tendency of the fluid to move in the direction of C.
Let \(\text{F}=\langle -y,x\rangle\) be the vector field from Example 3 and let C represent the unit circle oriented counterclockwise. Calculate the circulation of F along C.
Circulation is \({∫}_{C}\text{F}·\text{T}ds\); parametrize the unit circle and compute \(\text{F}(\text{r}(t))·{r}^{\prime}(t)\).
We use the standard parameterization of the unit circle: \(\text{r}(t)=\langle \text{cos}\,t,\text{sin}\,t\rangle ,0\le t\le 2\pi .\) Then, \(\text{F}(\text{r}(t))=\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle\) and \({r}^{\prime }(t)=\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle .\) Therefore, the circulation of F along C is
\[\begin{array}{ll}{∫}_{C}\text{F}·\text{T}ds & ={∫}_{0}^{2\pi }\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle ·\langle \text{-}\text{sin}\,t,\text{cos}\,t\rangle dt \\ & ={∫}_{0}^{2\pi }({\text{sin}}^{2}t+{\text{cos}}^{2}t)\,dt \\ & ={∫}_{0}^{2\pi }dt=2\pi .\end{array}\]
Notice that the circulation is positive. The reason for this is that the orientation of C “flows” with the direction of F. At any point along the circle, the tangent vector and the vector from F form an angle of less than 90°, and therefore the corresponding dot product is positive.
In Example 12, what if we had oriented the unit circle clockwise? We denote the unit circle oriented clockwise by \(\text{-}C.\) Then
\[{∫}_{\text{-}C}\text{F}·\text{T}ds=\text{-}{∫}_{C}\text{F}·\text{T}ds=-2\pi .\]
Notice that the circulation is negative in this case. The reason for this is that the orientation of the curve flows against the direction of F.
Calculate the circulation of \(\text{F}(x,y)=\langle -\frac{y}{{x}^{2}+{y}^{2}},\frac{x}{{x}^{2}+{y}^{2}}\rangle\) along a unit circle oriented counterclockwise.
\(2\pi\)
Calculate the work done on a particle that traverses circle C of radius 2 centered at the origin, oriented counterclockwise, by field \(\text{F}(x,y)=\langle -2,y\rangle .\) Assume the particle starts its movement at \((1,0).\)
The work equals the circulation \({∫}_{C}\text{F}·\text{T}ds\); parametrize the radius-2 circle and compute \(\text{F}(\text{r}(t))·{r}^{\prime}(t)\).
The work done by F on the particle is the circulation of F along C: \({∫}_{C}\text{F}·\text{T}ds.\) We use the parameterization \(\text{r}(t)=\langle 2\,\text{cos}\,t,2\,\text{sin}\,t\rangle ,0\le t\le 2\pi\) for C. Then, \({r}^{\prime }(t)=\langle -2\,\text{sin}\,t,2\,\text{cos}\,t\rangle\) and \(\text{F}(\text{r}(t))=\langle -2,2\,\text{sin}\,t\rangle .\) Therefore, the circulation of F along C is
\[\begin{array}{ll}{∫}_{C}\text{F}·\text{T}ds & ={∫}_{0}^{2\pi }\langle -2,2\,\text{sin}\,t\rangle ·\langle -2\,\text{sin}\,t,2\,\text{cos}\,t\rangle dt \\ & ={∫}_{0}^{2\pi }(4\,\text{sin}\,t+4\,\text{sin}\,t\,\text{cos}\,t)dt \\ & ={[-4\,\text{cos}\,t+4\,{\text{sin}}^{2}t]}_{0}^{2\pi } \\ & =(-4\,\text{cos}(2\pi )+2\,{\text{sin}}^{2}(2\pi ))-(-4\,\text{cos}(0)+4\,{\text{sin}}^{2}(0)) \\ & =-4+4=0.\end{array}\]
The force field does zero work on the particle.
Notice that the circulation of F along C is zero. Furthermore, notice that since F is the gradient of \(f(x,y)=-2x+\frac{{y}^{2}}{2},\) F is conservative. We prove in a later section that under certain broad conditions, the circulation of a conservative vector field along a closed curve is zero.
Calculate the work done by field \(\text{F}(x,y)=\langle 2x,3y\rangle\) on a particle that traverses the unit circle. Assume the particle begins its movement at \((-1,0).\)
0
Key Concepts
- Line integrals generalize the notion of a single-variable integral to higher dimensions. The domain of integration in a single-variable integral is a line segment along the x-axis, but the domain of integration in a line integral is a curve in a plane or in space.
- If C is a curve, then the length of C is \({∫}_{C}ds.\) (See Example 4.)
- There are two kinds of line integral: scalar line integrals and vector line integrals. Scalar line integrals can be used to calculate the mass of a wire; vector line integrals can be used to calculate the work done on a particle traveling through a field. (See Example 9 and Example 10.)
- Scalar line integrals can be calculated using Equation 10; vector line integrals can be calculated using Equation 25. (See Example 2 and Example 5.)
- Two key concepts expressed in terms of line integrals are flux and circulation. Flux measures the rate that a field crosses a given line; circulation measures the tendency of a field to move in the same direction as a given closed curve. (See Example 11 and Example 12.)
Key Equations
| Calculating a scalar line integral | \({∫}_{C}f(x,y,z)ds={∫}_{a}^{b}f(\text{r}(t))\sqrt{{({x}^{\prime }(t))}^{2}+{({y}^{\prime }(t))}^{2}+{({z}^{\prime }(t))}^{2}}dt\) |
| Calculating a vector line integral | \({∫}_{C}\text{F}·dr={∫}_{C}\text{F}·\text{T}ds={∫}_{a}^{b}\text{F}(\text{r}(t))·{r}^{\prime }(t)dt\) or \({∫}_{C}Pdx+Qdy+Rdz={∫}_{a}^{b}(P(\text{r}(t))\frac{dx}{dt}+Q(\text{r}(t))\frac{dy}{dt}+R(\text{r}(t))\frac{dz}{dt})dt\) |
| Calculating flux | \({∫}_{C}\text{F}·\frac{\text{n}(t)}{\Vert \text{n}(t)\Vert }\,ds={∫}_{a}^{b}\text{F}(\text{r}(t))·\text{n}(t)dt\) |
Section Exercises
True or False? Line integral \({∫}_{C}^{}f(x,y)ds\) is equal to a definite integral if C is a smooth curve defined on \([a,b]\) and if function \(f\) is continuous on some region that contains curve C.
True
True or False? Vector functions \({\text{r}}_{1}=t\text{i}+{t}^{2}\text{j},\) \(0\le t\le 1,\) and \({\text{r}}_{2}=(1-t)\text{i}+{(1-t)}^{2}\text{j},\) \(0\le t\le 1,\) define the same oriented curve.
True or False? \({∫}_{\text{-}C}^{}(Pdx+Qdy)={∫}_{C}^{}(Pdx-Qdy)\)
False
True or False? A piecewise smooth curve C consists of a finite number of smooth curves that are joined together end to end.
True or False? If C is given by \(x(t)=t\text{,}\,y(t)=t\text{, 0}\le \text{t}\le 1,\) then \({∫}_{C}^{}xyds={∫}_{0}^{1}{t}^{2}dt.\)
False
For the following exercises, use a computer algebra system (CAS) to evaluate the line integrals over the indicated path.
[T] \({∫}_{C}^{}(x+y)ds\)
\(C\text{:}\,x=t,y=(1-t)\text{,}\,z=0\) from (0, 1, 0) to (1, 0, 0)
[T] \({∫}_{C}^{}(x-y)ds\)
\(C\text{:}\,\text{r}(t)=4t\text{i}+3t\text{j}\) when \(0\le t\le 2\)
\({∫}_{C}^{}(x-y)ds=10\)
[T] \({∫}_{C}^{}({x}^{2}+{y}^{2}+{z}^{2})ds\)
\(C\text{:}\,\text{r}(t)=\text{sin}\,t\text{i}+\text{cos}\,t\text{j}+8t\text{k}\) when \(0\le t\le \frac{\pi }{2}\)
[T] Evaluate \({∫}_{C}^{}x{y}^{4}ds,\) where C is the right half of circle \({x}^{2}+{y}^{2}=16\) and is traversed in the clockwise direction.
\({∫}_{C}^{}x{y}^{4}ds=\frac{8192}{5}\)
[T] Evaluate \({∫}_{C}^{}4{x}^{3}ds,\) where C is the line segment from \((-2,-1)\) to (1, 2).
For the following exercises, find the work done.
Find the work done by vector field \(\text{F}(x,y,z)=x\text{i}+3xy\text{j}-(x+z)\text{k}\) on a particle moving along a line segment that goes from \((1,4,2)\) to \((0,5,1).\)
\(W=8\)
Find the work done by a person weighing 150 lb walking exactly one revolution up a circular, spiral staircase of radius 3 ft if the person rises 10 ft.
Find the work done by force field \(\text{F}(x,y,z)=-\frac{1}{2}x\text{i}-\frac{1}{2}y\text{j}+\frac{1}{4}\text{k}\) on a particle as it moves along the helix \(\text{r}(t)=\text{cos}\,t\text{i}+\text{sin}\,t\text{j}+t\text{k}\) from point \((1,0,0)\) to point \((-1,0,3\pi ).\)
\(W=\frac{3\pi }{4}\)
Find the work done by vector field \(\text{F}(x,y)=y\text{i}+2x\text{j}\) in moving an object along path C, the straight line which joins points (1, 0) and (0, 1).
Find the work done by force \(\text{F}(x,y)=2y\text{i}+3x\text{j}+(x+y)\text{k}\) in moving an object along curve \(\text{r}(t)=\text{cos}(t)\text{i}+\text{sin}(t)\text{j}+\frac{1}{6}\text{k},\) where \(0\le t\le 2\pi .\)
\(W=\pi\)
Find the mass of a wire in the shape of a circle of radius 2 centered at (3, 4) with linear mass density \(ρ(x,y)={y}^{2}.\)
For the following exercises, evaluate the line integrals.
Evaluate \({∫}_{C}\text{F}·d\text{r},\) where \(\text{F}(x,y)=-1\text{j},\) and C is the part of the graph of \(y=\frac{1}{2}{x}^{3}-x\) from \((2,2)\) to \((-2,-2).\)
\({∫}_{C}\text{F}·d\text{r}=4\)
Evaluate \({∫}_{γ}^{}{({x}^{2}+{y}^{2}+{z}^{2})}^{-1}ds,\) where \(γ\) is the helix \(x=\text{cos}\,t,y=\text{sin}\,t,z=t(0\le t\le T).\)
Evaluate \({∫}_{C}^{}yz\,dx+xz\,dy+xy\,dz\) over the line segment from \((1,1,1)\) to \((3,2,0).\)
\({∫}_{C}^{}yzdx+xzdy+xydz=-1\)
Let C be the line segment from point (0, 1, 1) to point (2, 2, 3). Evaluate line integral \({∫}_{C}^{}yds.\)
[T] Use a computer algebra system to evaluate the line integral \({∫}_{C}{y}^{2}dx+xdy,\) where C is the arc of the parabola \(x=4-{y}^{2}\) from (−5, −3) to (0, 2).
\({∫}_{C}^{}({y}^{2})dx+(x)dy=\frac{245}{6}\)
[T] Use a computer algebra system to evaluate the line integral \({∫}_{C}^{}(x+3{y}^{2})dy\) over the path C given by \(x=2t\text{,}\,y=10t\text{,}\) where \(0\le t\le 1.\)
[T] Use a CAS to evaluate line integral \({∫}_{C}^{}xydx+ydy\) over path C given by \(x=2t\text{,}\,y=10t\text{,}\) where \(0\le t\le 1.\)
\({∫}_{C}^{}xydx+ydy=\frac{190}{3}\)
Evaluate line integral \({∫}_{C}^{}(2x-y)dx+(x+3y)dy,\) where C lies along the x-axis from \(x=0\,\text{to}\,x=5.\)
[T] Use a CAS to evaluate \({∫}_{C}^{}\frac{y}{2{x}^{2}-{y}^{2}}ds,\) where C is \(x=t\text{,}\,y=t\text{,}\,1\le t\le 5.\)
\({∫}_{C}\frac{y}{2{x}^{2}-{y}^{2}}ds=\sqrt{2}\,\text{ln}\,5\)
[T] Use a CAS to evaluate \({∫}_{C}xyds,\) where C is \(x={t}^{2},y=4t,0\le t\le 1.\)
In the following exercises, find the work done by force field F on an object moving along the indicated path.
\(\text{F}(x,y)=\text{-}x\text{i}-2y\text{j}\)
\(C\text{:}\,y={x}^{3}\,\text{from (0, 0) to (2, 8)}\)
\(W=-66\)
\(\text{F}(x\text{,}\,y)=2xi+y\text{j}\)
C: counterclockwise around the triangle with vertices (0, 0), (1, 0), and (1, 1)
\(\text{F}(x\text{,}\,y\text{,}\,z)=x\text{i}+y\text{j}-5z\text{k}\)
\(\text{C}\text{:}\,\text{r}(t)=2\,\text{cos}\,t\text{i}+2\,\text{sin}\,t\text{j}+t\text{k}\text{,}\,0\le t\le 2\pi\)
\(W=-10{\pi }^{2}\)
Let F be vector field \(\text{F}(x,y)=({y}^{2}+2x{e}^{y}+1)\text{i}+(2xy+{x}^{2}{e}^{y}+2y)\text{j}.\) Compute the work of integral \({∫}_{C}^{}\text{F}·d\text{r},\) where C is the path \(\text{r}(t)=\text{sin}\,t\text{i}+\text{cos}\,t\text{j}\text{,}\,0\le t\le \frac{\pi }{2}.\)
Compute the work done by force \(\text{F}(x,y,z)=2x\text{i}+3y\text{j}-z\text{k}\) along path \(\text{r}(t)=t\text{i}+{t}^{2}\text{j}+{t}^{3}\text{k},\) where \(0\le t\le 1.\)
\(W=2\)
Evaluate \({∫}_{C}^{}\text{F}·d\text{r},\) where \(\text{F}(x,y)=\frac{1}{x+y}\text{i}+\frac{1}{x+y}\text{j}\) and C is the segment of the unit circle going counterclockwise from \((1,0)\) to (0, 1).
Force \(\text{F}(x,y,z)=zy\text{i}+x\text{j}+{z}^{2}x\text{k}\) acts on a particle that travels from the origin to point (1, 2, 3). Calculate the work done if the particle travels:
- along the path \((0,0,0)\to (1,0,0)\to (1,2,0)\to (1,2,3)\) along straight-line segments joining each pair of endpoints;
- along the straight line joining the initial and final points.
- Is the work the same along the two paths?
a. \(W=11;\) b. \(W=\frac{39}{4};\) c. No
Find the work done by vector field \(\text{F}(x,y,z)=x\text{i}+3xy\text{j}-(x+z)\text{k}\) on a particle moving along a line segment that goes from (1, 4, 2) to (0, 5, 1).
How much work is required to move an object in vector field \(\text{F}(x,y)=y\text{i}+3x\text{j}\) along the upper part of ellipse \(\frac{{x}^{2}}{4}+{y}^{2}=1\) from (2, 0) to \((-2,0)?\)
\(W=2\pi\)
A vector field is given by \(\text{F}(x,y)=(2x+3y)\text{i}+(3x+2y)\text{j}.\) Evaluate the line integral of the field around a circle of unit radius traversed in a clockwise fashion.
Evaluate the line integral of scalar function \(xy\) along parabolic path \(y={x}^{2}\) connecting the origin to point (1, 1).
\({∫}_{C}^{}xy ds=\frac{25\sqrt{5}+1}{120}\)
Find \({∫}_{C}^{}{y}^{2}dx+(xy-{x}^{2})dy\) along C: \(y=3x\) from (0, 0) to (1, 3).
Find \({∫}_{C}^{}{y}^{2}dx+(xy-{x}^{2})dy\) along C: \({y}^{2}=9x\) from (0, 0) to (1, 3).
\({∫}_{C}^{}{y}^{2}dx+(xy-{x}^{2})dy=6.15\)
For the following exercises, use a CAS to evaluate the given line integrals.
[T] Evaluate \(\text{F}(x,y,z)={x}^{2}z\text{i}+6y\text{j}+y{z}^{2}\text{k},\) where C is represented by \(\text{r}(t)=t\text{i}+{t}^{2}\text{j}+\text{ln}\,t\text{k}\text{,}\,1\le t\le 3.\)
[T] Evaluate line integral \({∫}_{γ}^{}x{e}^{y}ds\) where, \(γ\) is the arc of curve \(x={e}^{y}\) from \((1,0)\) to \((e,1).\)
\({∫}_{γ}^{}x{e}^{y}ds\approx 7.157\)
[T] Evaluate the integral \({∫}_{γ}^{}x{y}^{2}ds,\) where \(γ\) is a triangle with vertices (0, 1, 2), (1, 0, 3), and \((0,-1,0).\)
[T] Evaluate line integral \({∫}_{γ}^{}({y}^{2}-xy)ds,\) where \(γ\) is curve \(y=\text{ln}\,x\) from (1, 0) toward \((e\text{,}\,1).\)
\({∫}_{γ}^{}({y}^{2}-xy)dx\approx -1.379\)
[T] Evaluate line integral \({∫}_{γ}^{}x{y}^{4}ds,\) where \(γ\) is the right half of circle \({x}^{2}+{y}^{2}=16.\)
[T] Evaluate \({∫}_{C}^{}\text{F}·d\text{r},\) where \(\text{F}(x,y,z)={x}^{2}y\text{i}+(x-z)\text{j}+xyz\text{k}\) and
C: \(\text{r}(t)=t\text{i}+{t}^{2}\text{j}+2\text{k}\text{,}\,0\le t\le 1.\)
\({∫}_{C}^{}\text{F}·d\text{r}\approx -1.133\)
Evaluate \({∫}_{C}^{}\text{F}·d\text{r},\) where \(\text{F}(x,y)=2x\,\text{sin}(y)\text{i}+({x}^{2}\text{cos}(y)-3{y}^{2})\text{j}\) and
C is any path from \((-1,0)\) to (5, 1).
Find the line integral of \(\text{F}(x,y,z)=12{x}^{2}\text{i}-5xy\text{j}+xz\text{k}\) over path C defined by \(y={x}^{2},\) \(z={x}^{3}\) from point (0, 0, 0) to point (2, 4, 8).
\({∫}_{C}^{}\text{F}·d\text{r}\approx 22.857\)
Find the line integral of \({∫}_{C}^{}(1+{x}^{2}y)ds,\) where C is ellipse \(\text{r}(t)=2\,\text{cos}\,t\text{i}+3\,\text{sin}\,t\text{j}\) from \(0\le t\le \pi .\)
For the following exercises, find the flux.
Compute the flux of \(\text{F}={x}^{2}\text{i}+y\text{j}\) across a line segment from (0, 0) to (1, 2).
\(\text{flux}=-\frac{1}{3}\)
Let \(\text{F}=5\text{i}\) and let C be curve \(y=0,0\le x\le 4.\) Find the flux across C.
Let \(\text{F}=5\text{j}\) and let C be curve \(y=0,0\le x\le 4.\) Find the flux across C.
\(\text{flux}=-20\)
Let \(\text{F}=\text{-}y\text{i}+x\text{j}\) and let C: \(\text{r}(t)=\text{cos}\,t\text{i}+\text{sin}\,t\text{j}\) \((0\le t\le 2\pi ).\) Calculate the flux across C.
Let \(\text{F}=({x}^{2}+{y}^{3})\text{i}+(2xy)\text{j}.\) Calculate flux F orientated counterclockwise across curve C: \({x}^{2}+{y}^{2}=9.\)
\(\text{flux}=0\)
Find the line integral of \({∫}_{C}^{}{z}^{2}dx+ydy+2ydz,\) where C consists of two parts: \({C}_{1}\) and \({C}_{2}.\) \({C}_{1}\) is the intersection of cylinder \({x}^{2}+{y}^{2}=16\) and plane \(z=3\) from (0, 4, 3) to \((-4,0,3).\) \({C}_{2}\) is a line segment from \((-4,0,3)\) to (0, 1, 5).
A spring is made of a thin wire twisted into the shape of a circular helix \(x=2\,\text{cos}\,t\text{,}\,y=2\,\text{sin}\,t\text{,}\,z=t.\) Find the mass of two turns of the spring if the wire has constant mass density.
\(m=4\pi ρ\sqrt{5}\)
A thin wire is bent into the shape of a semicircle of radius a. If the linear mass density at point P is directly proportional to its distance from the line through the endpoints, find the mass of the wire.
An object moves in force field \(\text{F}(x,y,z)={y}^{2}\text{i}+2(x+1)y\text{j}\) counterclockwise from point (2, 0) along elliptical path \({x}^{2}+4{y}^{2}=4\) to \((-2,0),\) and back to point (2, 0) along the x-axis. How much work is done by the force field on the object?
\(W=0\)
Find the work done when an object moves in force field \(\text{F}(x,y,z)=2x\text{i}-(x+z)\text{j}+(y-x)\text{k}\) along the path given by \(\text{r}(t)={t}^{2}\text{i}+({t}^{2}-t)\text{j}+3\text{k},\) \(0\le t\le 1.\)
If an inverse force field F is given by \(\text{F}(x,y,z)=\frac{k}{{\Vert \text{r}\Vert }^{3}}\text{r},\) where k is a constant, find the work done by F as its point of application moves along the x-axis from \(A(1,0,0)\,\text{to}\,B(2,0,0).\)
\(W=\frac{k}{2}\)
David and Sandra plan to evaluate line integral \({∫}_{C}^{}\text{F}·d\text{r}\) along a path in the xy-plane from (0, 0) to (1, 1). The force field is \(\text{F}(x,y)=(x+2y)\text{i}+(\text{-}x+{y}^{2})\text{j}.\) David chooses the path that runs along the x-axis from (0, 0) to (1, 0) and then runs along the vertical line \(x=1\) from (1, 0) to the final point (1, 1). Sandra chooses the direct path along the diagonal line \(y=x\) from (0, 0) to (1, 1). Whose line integral is larger and by how much?
Glossary
- circulation
- the tendency of a fluid to move in the direction of curve C. If C is a closed curve, then the circulation of F along C is line integral \({∫}_{C}\text{F}·\text{T}ds,\) which we also denote \({∫}_{C}\text{F}·\text{T}ds\)
- closed curve
- a curve for which there exists a parameterization \(\text{r}(t),\) \(a\le t\le b,\) such that \(\text{r}(a)=\text{r}(b),\) and the curve is traversed exactly once
- flux
- the rate of a fluid flowing across a curve in a vector field; the flux of vector field F across plane curve C is line integral \({∫}_{C}\text{F}·\frac{\text{n}(t)}{\Vert \text{n}(t)\Vert }\,ds\)
- line integral
- the integral of a function along a curve in a plane or in space
- orientation of a curve
- the orientation of a curve C is a specified direction of C
- piecewise smooth curve
- an oriented curve that is not smooth, but can be written as the union of finitely many smooth curves
- scalar line integral
- the scalar line integral of a function \(f\) along a curve C with respect to arc length is the integral \({∫}_{C}fds,\) it is the integral of a scalar function \(f\) along a curve in a plane or in space; such an integral is defined in terms of a Riemann sum, as is a single-variable integral
- vector line integral
- the vector line integral of vector field F along curve C is the integral of the dot product of F with unit tangent vector T of C with respect to arc length, \({∫}_{C}\text{F}·\text{T}ds;\) such an integral is defined in terms of a Riemann sum, similar to a single-variable integral