# 15.2: Line Integrals

- Page ID
- 9060

\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

Skills to Develop

- Calculate a scalar line integral along a curve.
- Calculate a vector line integral along an oriented curve in space.
- Use a line integral to compute the work done in moving an object along a curve in a vector field.
- Describe the flux and circulation of a vector field.

We are familiar with single-variable integrals of the form \(\int_{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 ff 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 \(r(t)=⟨x(t),y(t),z(t)⟩\), \(a≤t≤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−l},t_i]\) of equal width for \(l≤i≤n\), where \(t_0=a\) and \(t_n=b\) (Figure \(\PageIndex{1}\)). Let \(t_{i}^*\) be a value in the *i*th interval \([t_{i−l},t_i]\). Denote the endpoints of \(r(t_0)\), \(r(t_1)\),…, \(r(t_n)\) by \(P_0\),…, \(P_n\). Points *P _{i}* divide curve \(C\) into \(n\) pieces \(C_1\), \(C_2\),…, \(C_n\),with lengths \(\Delta s_1\), \(\Delta s_2\),…, \(\Delta s_n\), respectively. Let \(P_{i}^*\) denote the endpoint of \(r(t_{i}^*)\) for \(1≤i≤n\). Now, we evaluate the function \(f\) at point \(P_{i}^*\) for \(1≤i≤n\). Note that \(P_{i}^*\) is in piece \(C_1\), and therefore \(P_{i}^*\) is in the domain of \(f\). Multiply \(f(P_{i}^*)\) by the length \(\delta s_1\) of \(C_1\), which gives the area of the “sheet” with base \(C_1\), and height \(f(P_{i}^{*})\). This is analogous to using rectangles to approximate area in a single-variable integral. Now, we form the sum \(\sum_{i=1}^{n} f(P_{i}^{*})\delta s_i\).

**Figure \(\PageIndex{1}\): **Curve \(C\) has been divided into n pieces, and a point inside each piece has been chosen.

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 \(\int_{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\),…, \(\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.

DEFINITION: scalar line integral

Let \(f\) be a function with a domain that includes the smooth curve \(C\) that is parameterized by \(r(t)=⟨x(t),y(t),z(t)⟩\), \(a≤t≤b\). The *scalar line integral* of \(f\) along \(C\) is

\[\int_C f(x,y,z)ds=\lim_{n\to\infty}\sum_{i=1}^{n}f(P_{i}^{*})\Delta s_i \label{12}\]

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≤t≤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

\[\int_C f(x,y)ds=\lim_{n\to\infty}\sum_{i=1}^{n} f(P_{i}^{*})\Delta s_i, \label{13}\]

if this limit exists.

If \(f\) is a continuous function on a smooth curve \(C\), then \(\int_C f ds\) always exists. Since \(\int_C f ds\) 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 \(\int_{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)≥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′\) that lies in the graph of \(f(x,y)\) (Figure \(\PageIndex{2}\)). Now we drop a “sheet” from \(C′\) down to the xy-plane. The area of this sheet is \(\int_C f(x,y)ds\). If \(f(x,y)≤0\) for some points in \(C\), then the value of \(\int_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 \(\int_{a}^{b}g(x)dx\).)

**Figure \(\PageIndex{2}\): **The area of the blue sheet is \(\int_C f(x,y)ds\).

From this geometry, we can see that line integral \(\int_C f(x,y)ds\) does not depend on the parameterization \(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.

Example \(\PageIndex{1}\): Finding the Value of a Line Integral

Find the value of integral \(\int_C 2ds\), where \(C\) is the upper half of the unit circle.

**Solution**

The integrand is \(f(x,y)=2\). Figure \(\PageIndex{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, \(\int_C 2 ds=2\pi\).

**Figure \(\PageIndex{3}\): **The sheet that is formed by the upper half of the unit circle in a plane and the graph of \(f(x,y)=2\).

To see that \(\int_C 2 ds=2\pi\) using the definition of line integral, we let \(r(t)\) be a parameterization of \(C\). Then, \(f(r(t_i))=2\) for any number \(t_i\) in the domain of **r**. Therefore,

\[\begin{align*} \int_C fds&=\lim_{n\to\infty}\sum_{i=1}^{n} f(r(t_{i}^{*}))\Delta s_i \\[5pt] &=\lim_{n\to\infty}\sum_{i=1}^{n}2\Delta s_i \\[5pt] &=2\lim_{n\to\infty}\sum_{i=1}^{n}\Delta s_i \\[5pt] &=2(\text{length}\space \text{of}\space C) \\[5pt]&=2\pi. \end{align*}\]

Exercise \(\PageIndex{1}\)

Find the value of \(\int_C(x=y)ds\), where \(C\) is the curve parameterized by \(x=t\), \(y=t\), \(0≤t≤1\).

**Hint**-
Find the shape formed by

*C*and the graph of function \(f(x,y)=x+y\). **Answer**-
\(\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 \(\int_C fds\) to an integral with a variable of integration that is \(t\).

Let \(r(t)=⟨x(t),y(t),z(t)⟩\) for \(a≤t≤b\) be a parameterization of \(C\). Since we are assuming that \(C\) is smooth, \(r′(t)=⟨x′(t),y′(t),z′(t)⟩\) is continuous for all \(t\) in \([a,b]\). In particular, \(x′(t)\), \(y′(t)\), and \(z′(t)\) exist for all \(t\) in \([a,b]\). According to the arc length formula, we have

\[\text{length}(C_i)=\Delta s_i=\int_{t{i−1}}^{t_i} ‖r′(t)‖dt.\]

If width \(\Delta t_i=t_i−t_{i−1}\) is small, then function \(\int_{t_{i−1}}^{t_i} ‖r′(t)‖dt≈‖r′(t_i^*)‖\Delta t_i\), \(‖r′(t)‖\) is almost constant over the interval \([t_{i−1},t_i]\).Therefore,

\[\int_{t_{i−1}}^{t_i} ‖r′(t)‖dt≈‖r′(t_{i}^{*})‖\Delta t_i,\]

and we have

\[\sum_{i=1}^{n} f(r(t_i^*))\Delta s_i=\sum_{i=1}^{n} f(r(t_{i}^{*})) ‖r′(t_{i}^{*})‖\Delta t_i.\]

See Figure \(\PageIndex{4}\).

**Figure \(\PageIndex{4}\): **If we zoom in on the curve enough by making \(\Delta t_i\) very small, then the corresponding piece of the curve is approximately linear.

Note that

\[\lim_{n\to\infty}\sum_{i=1}^{n} f(r(t_i^*))‖r′(t_{i}^{*})‖\Delta t_i=\int_a^b f(r(t))‖r′(t)‖dt.\]

In other words, as the widths of intervals \([t_{i−1},t_i]\) shrink to zero, the sum \(\sum_{i=1}^{n} f(r(t_i^{*}))‖r′(t_{i}^{*})‖\Delta t_i\) converges to the integral \(\int_{a}^{b}f(r(t))‖r′(t)‖dt\). Therefore, we have the following theorem.

Theorem: EVALUATING A SCALAR LINE INTEGRAL

Let \(f\) be a continuous function with a domain that includes the smooth curve \(C\) with parameterization \(r(t)\), \(a≤t≤b\). Then

\[\int_C fds=\int_{a}^{b} f(r(t))‖r′(t)‖dt.\]

Although we have labeled Equation \(\PageIndex{8}\) as an equation, it is more accurately considered an approximation because we can show that the left-hand side of Equation \(\PageIndex{8}\) 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

\[‖r′(t)‖=\sqrt{{(x′(t))}^2+{(y′(t))}^2+{(z′(t))}^2},\]

we obtain the following theorem, which we use to compute scalar line integrals.

Theorem: Scalar Line Integral Calculation

Let \(f\) be a continuous function with a domain that includes the smooth curve \(C\) with parameterization \(r(t)=⟨x(t),y(t),z(t)⟩\), \(a≤t≤b\). Then

\[\int_C f(x,y,z)ds=\int_{a}^{b} f(r(t))=\sqrt{({x′(t))}^2+{(y′(t))}^2+{(z′(t))}^2}dt.\]

Similarly,

\[\int_C f(x,y)ds=\int_{a}^{b}f(r(t))=\sqrt{{(x′(t))}^2+{(y′(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=‖r′(t)‖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′(t)\).

Example \(\PageIndex{2}\): Evaluating a Line Integral

Find the value of integral \(\int_C(x^2+y^2+z)ds\), where \(C\) is part of the helix parameterized by \(r(t)=⟨\cos t,\sin t,t⟩\), \(0≤t≤2\pi\).

**Solution**

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 \ref{12} to compute the integral with respect to *t*. Note that

\[f(r(t))={\cos}^2 t+{\sin}^2 t+t=1+t \nonumber\]

and

\[\begin{align*} \sqrt{{(x′(t))}^2+{(y′(t))}^2+{(z′(t))}^2}&=\sqrt{{(−\sin(t))}^2+{\cos}^2(t)+1} \\[5pt] &=\sqrt{2}. \end{align*}\]

Therefore,

\[\int_C(x^2+y^2+z)ds=\int_{0}^{2\pi} (1+t)2dt. \nonumber\]

Notice that Equation \ref{12} translated the original difficult line integral into a manageable single-variable integral. Since

\[\begin{align*} \int_{0}^{2\pi} (1+t)2\, dt&={\left[\sqrt{2}t+\dfrac{\sqrt{2}t^2}{2}\right]}_{0}^{2\pi} \\[5pt]&=2\sqrt{2}\pi+2\sqrt{2}{\pi}^2, \end{align*}\]

we have

\[\int_C(x^2+y^2+z)ds=2\sqrt{2}\pi+2\sqrt{2}{\pi}^2. \nonumber\]

Exercise \(\PageIndex{2}\)

Evaluate \(\int_C(x^2+y^2+z)ds\), where *C* is the curve with parameterization \(r(t)=⟨\sin(3t),\cos(3t)⟩\), \(0≤t≤\dfrac{\pi}{4}\).

**Hint**-
Use the two-variable version of scalar line integral definition (Equation \ref{13}).

**Answer**-
\[\dfrac{1}{3}+\dfrac{\sqrt{2}}{6}+\dfrac{3\pi}{4}\]

Example \(\PageIndex{3}\): Independence of Parameterization

Find the value of integral \(\int_C(x^2+y^2+z)ds\), where \(C\) is part of the helix parameterized by \(r(t)=⟨\cos(2t),\sin(2t),2t⟩\), \(0≤t≤π\). 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.

**Solution**

As with the previous example, we use Equation \ref{12} to compute the integral with respect to *t*. Note that \(f(r(t))={\cos}^2(2t)+{\sin}^2(2t)+2t=2t+1\) and

\[\begin{align*} \sqrt{{(x′(t))}^2+{(y′(t))}^2+{(z′(t))}^2}&=\sqrt{(−\sin t+\cos t+4)} \\[5pt] &=22

\end{align*}\]

so we have

\[\begin{align*} \int_C(x^2+y^2+z)ds&=2\sqrt{2}\int_{0}^{\pi}(1+2t)dt\\[5pt]&=2\sqrt{2}{[t+t^2]}_0^{\pi} \\[5pt] &=2\sqrt{2}(\pi+{\pi}^2). \end{align*}\]

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.

Exercise \(\PageIndex{3}\)

Evaluate line integral \(\int_C(x^2+yz)ds\), where \(C\) is the line with parameterization \(r(t)=⟨2t,5t,−t⟩\), \(0≤t≤10\). Reparameterize *C* with parameterization \(s(t)=⟨4t,10t,−2t⟩\), \(0≤t≤5\), recalculate line integral \(\int_C(x^2+yz)ds\), and notice that the change of parameterization had no effect on the value of the integral.

**Hint**-
Use Equation \ref{12}.

**Answer**-
Both line integrals equal \(−\dfrac{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{align*} \int_C f(x,y,z)ds&=\lim_{n\to\infty} \sum_{i=1}^{n} f(t_{i}^{*})\Delta s_i \\[5pt] &=\lim_{n\to\infty} \sum_{i=1}^{n} \Delta s_i \\[5pt] &=\lim_{n\to\infty} \text{length} (C)\\[5pt] &=\text{length} (C). \end{align*}\]

Therefore, \(\int_C 1ds\) is the arc length of \(C\).

Example \(\PageIndex{4}\): Calculating Arc Length

A wire has a shape that can be modeled with the parameterization \(r(t)=⟨\cos t,\sin t,t⟩\), \(0≤t≤4\pi\). Find the length of the wire.

**Solution**

The length of the wire is given by \(\int_C 1ds\), where \(C\) is the curve with parameterization \(r\). Therefore,

\[\begin{align*} \text{The length of the wire}&=\int_C 1 ds \\[5pt] &=\int_{0}^{4\pi} ||r′(t)||dt \\[5pt] &=\int_{0}^{4\pi} \sqrt{(−\sin t)^2+\cos^2 t+t}dt \\[5pt]&=\int_{0}^{4\pi} \sqrt{1+t} dt \\[5pt]&=\left.\dfrac{2{(1+t)}^{\frac{3}{2}}}{3} \right|_{0}^{4\pi} \\[5pt]&=\dfrac{2}{3}((1+4\pi)^{\dfrac{3}{2}}−1). \end{align*}\]

Exercise \(\PageIndex{4}\)

Find the length of a wire with parameterization \(r(t)=⟨3t+1,4−2t,5+2t⟩\), \(0≤t≤4\).

**Hint**-
Find the line integral of one over the corresponding curve.

**Answer**-
\(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

\[F(x,y,z)=P(x,y,z)i+Q(x,y,z)j+R(x,y,z)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 \(F\). How would we compute the work done by \(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 \(\PageIndex{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 \(r(t)\), \(a≤t≤b\), such that \(r(a)=r(b)\), and the curve is traversed exactly once. In other words, the parameterization is one-to-one on the domain \((a,b)\).

**Figure \(\PageIndex{5}\): **(a) An oriented curve between two points. (b) A closed oriented curve.

Let \(r(t)\) be a parameterization of \(C\) for \(a≤t≤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≤i≤n\), of equal width. Denote the endpoints of \(r(t_0)\), \(r(t_1)\),…, \(r(t_n)\) by \(P_0\),…,\(P_n\). Points \(P_i\) divide \(C\) into n pieces. Denote the length of the piece from \(P_{i−1}\) to \(P_i\) by \(\Delta s_i\). For each i, choose a value \(t_i^*\) in the subinterval \([t_{i−1},t_i]\). Then, the endpoint of \(r(t_i^*)\) is a point in the piece of \(C\) between \(P_{i−1}\) and \(P_i\) (Figure \(\PageIndex{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 \(T(P_i)\),the unit tangent vector at the endpoint of \(r(t_i^*)\). Let \(P_i^*\) denote the endpoint of \(r(t_i^*)\). Then, the work done by the force vector field in moving the particle from \(P_{i−1}\) to \(P_i\) is \(F(P_i^*)·(\Delta s_iT(P_i^*))\), so the total work done along \(C\) is

\[\sum_{i=1}^n F(P_i^*)·(\Delta s_i T(P_i^*))=\sum_{i=1}^n F(P_i^*)·T(P_i^*)\Delta s_i.\]

**Figure \(\PageIndex{6}\): **Curve \(C\) is divided into n pieces, and a point inside each piece is chosen. The dot product of any tangent vector in the ith piece with the corresponding vector \(\vecs{F}\) is approximated by \(\vecs{F}(P_i^*) \cdot \vecs{T}(P_i^*)\).

Letting the arc length of the pieces of \(C\) get arbitrarily small by taking a limit as \(n\rightarrow \infty\) gives us the work done by the field in moving the particle along \(C\). Therefore, the work done by \(\vecs{F}\)** **in moving the particle in the positive direction along \(C\) is defined as

\[W=\int_C \vecs{f} \cdot \vecs{T}\,ds,\]

which gives us the concept of a vector line integral.

DEFINITION: Line Integral of a vector field

The vector line integral of vector field \(\vecs{F}\) along oriented smooth curve \(C\) is

\[\int_C \vecs{F} \cdots \vecs{T}\, ds=\lim_{n\to\infty} \sum_{i=1}^{n} \vecs{F}(P_i^*) \cdot \vecs{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 \(\vecs{r}\) and the variable \(t\). To translate the integral \(\int_C \vecs{F} \cdot \vecs{T}ds\) in terms of *t*, note that unit tangent vector \(\vecs{**T}** along \(*C\)* is given by \(\vecs{T}=\dfrac{\vecs{r}′(t)}{‖\vecs{r}′(t)‖}\) (assuming \(‖\vecs{r}′(t)‖≠0\)). Since \(ds=‖r′(t)‖dt\), as we saw when discussing scalar line integrals, we have

\[F·Tds=F(r(t))·\dfrac{r′(t)}{‖r′(t)‖}‖r′(t)‖dt=F(r(t))·r′(t)dt.\]

Thus, we have the following formula for computing vector line integrals:

\[\int_CF·Tds=\int_a^b F(r(t))·r′(t)dt.\]

Because of Equation \(\PageIndex{40}\), we often use the notation \(\int_C \vecs{F} \cdot d\vecs{r}\) for the line integral \(\int_C F·Tds\).

If \(r(t)=⟨x(t),y(t),z(t)⟩\), then \(d\vecs{r}\) denotes vector \(⟨x′(t),y′(t),z′(t)⟩\).

Example \(\PageIndex{5}\): Evaluating a Vector Line Integral

Find the value of integral \(\int_C \vecs{F} \cdot d\vecs{r}\), where \(C\) is the semicircle parameterized by \(\vecs{r}(t)=⟨\cos t,\sin t⟩\), \(0≤t≤\pi\) and \(F=⟨−y,x⟩\).

**Solution**

We can use Equation \(\PageIndex{40}\) to convert the variable of integration from *s* to *t*. We then have

\[F(r(t))=⟨−\sin t,\cos t⟩ \; \text{and} \; r′(t)=⟨−\sin t,\cos t⟩ .\]

Therefore,

\[\begin{align*} \int_C \vecs{F} \cdot d\vecs{r}&=\int_0^{\pi}⟨−\sin t,\cos t⟩·⟨−\sin t,\cos t⟩dt \\[5pt]&=\int_0^{\pi} {\sin}^2 t+{\cos}^2 t dt \\[5pt] & =\int_0^{\pi}1dt=\pi.\end{align*}\]

See Figure \(\PageIndex{7}\).

**Figure \(\PageIndex{7}\)****: **This figure shows curve \(r(t)=⟨\cos t,\sin t⟩\), \(0≤t≤\pi\) in vector field \(F=⟨−y,x⟩\).

Example \(\PageIndex{6}\): Reversing Orientation

Find the value of integral \(\int_C \vecs{F} \cdot d\vecs{r}\), where \(C\) is the semicircle parameterized by \(r(t)=⟨\cos t+π,\sin t⟩\), \(0≤t≤\pi\) and \(F=⟨−y,x⟩\).

**Solution**

Notice that this is the same problem as Example \(\PageIndex{5}\), except the orientation of the curve has been traversed. In this example, the parameterization starts at \(r(0)=⟨\pi,0⟩\) and ends at \(r(\pi)=⟨0,0⟩\). By Equation \(\PageIndex{40}\),

\[\begin{align*} \int_C \vecs{F} \cdot d\vecs{r}&=\int_0^{\pi} ⟨−\sin t,\cos t+\pi⟩·⟨−\sin t+\pi, \cos t⟩dt\\[5pt] &=\int_0^{\pi}⟨−\sin t,−\cos t⟩·⟨\sin t,\cos t⟩dt\\[5pt]&=\int_{0}^{π}(−{\sin}^2 t−{\cos}^2 t)dt \\[5pt] &=\int_{0}^{\pi}−1dt\\[5pt]&=−\pi. \end{align*}\]

Notice that this is the negative of the answer in Example \(\PageIndex{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:

\[\int_C \vecs{F} \cdot d\vecs{r}=−\int_C\vecs{F} \cdot d\vecs{r}.\]

That is, reversing the orientation of a curve changes the sign of a line integral.

Exercise \(\PageIndex{6}\)

Let \(F=xi+yj\) be a vector field and let *C* be the curve with parameterization \(⟨t,t^2⟩\) for \(0≤t≤2\). Which is greater: \(\int_CF·Tds\) or \(\int_{−C} F·Tds\)?

**Hint**-
Imagine moving along the path and computing the dot product \(F·T\) as you go.

**Answer**-
\[\int_C F·Tds\]

Another standard notation for integral \(\int_C \vecs{F} \cdot d\vecs{r}\) is \(\int_C Pdx+Qdy+Rdz\). In this notation, *P*, *Q*, and *R* are functions, and we think of *d***r** as vector \(⟨dx,dy,dz⟩\). To justify this convention, recall that \(dr=Tds=r′(t)dt=⟨\dfrac{dx}{dt},\dfrac{dy}{dt},\dfrac{dz}{dt}⟩dt\). Therefore,

\[\vecs{F} \cdot d\vecs{r}=⟨P,Q,R⟩·⟨dx,dy,dz⟩=Pdx+Qdy+Rdz.\]

If \(dr=⟨dx,dy,dz⟩\), then \(\dfrac{dr}{dt}=⟨\dfrac{dx}{dt},\dfrac{dy}{dt},\dfrac{dz}{dt}⟩\), which implies that \(\dfrac{dr}{dt}=⟨\dfrac{dx}{dt},\dfrac{dy}{dt},\dfrac{dz}{dt}⟩dt\). Therefore

\[\begin{align*} \int_C \vecs{F} \cdot d\vecs{r}&=\int_C Pdx+Qdy+Rdz \\[5pt]&=(P(r(t))\dfrac{dx}{dt}+Q(r(t))\dfrac{dy}{dt}+R(r(t))\dfrac{dz}{dt})dt. \end{align*}\]

Example \(\PageIndex{7}\): Finding the Value of an Integral of the Form \(\int_C Pdx+Qdy+Rdz\)

Find the value of integral \(\int_C zdx+xdy+ydz\), where \(C\) is the curve parameterized by \(r(t)=⟨t^2,\sqrt{t},t⟩\), \(1≤t≤4\).

**Solution:**

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 \(\PageIndex{52}\) allows us to make this change:

\[\begin{align*} \int_C zdx+xdy+ydz&=\int_1^4 (t(2t)+t^2(\dfrac{1}{2\sqrt{t}})+\sqrt{t})dt \\[5pt]&=\int_1^4(2t^2+\dfrac{t^{3/2}}{2}+\sqrt{t})dt \\[5pt]&={\left[\dfrac{2t^3}{3}+\dfrac{t^{5/2}}{5}+\dfrac{2t^{3/2}}{3} \right]}_{t=1}^{t=4} \\[5pt] &=\dfrac{793}{15}.\end{align*}\]

Exercise \(\PageIndex{7}\)

Find the value of \(\int_C 4xdx+zdy+4y^2dz\), where \(C\) is the curve parameterized by \(r(t)=⟨4\cos(2t),2\sin(2t),3⟩\), \(0≤t≤\dfrac{\pi}{4}\).

**Hint**-
Write the integral in terms of

*t*using Equation \(\PageIndex{52}\). **Answer**-
\(−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\),…, \(C_n\) such that the endpoint of \(C_i\) is the starting point of \(C_{i+1}\) (Figure \(\PageIndex{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+⋯+C_n\).

**Figure \(\PageIndex{8}\): **The union of \(C_1\), \(C_2\), \(C_3\) is a piecewise smooth curve.

The next theorem summarizes several key properties of vector line integrals.

Theorem: PROPERTIES OF VECTOR LINE INTEGRALS

Let **F** and **G** be continuous vector fields with domains that include the oriented smooth curve *C*. Then

- \(\int_C(F+G)·dr=\int_C \vecs{F} \cdot d\vecs{r}+\int_C G·dr\)
- \(\int_C k\vecs{F} \cdot d\vecs{r}=k\int_C \vecs{F} \cdot d\vecs{r}\), where
*k*is a constant - \(\int_C \vecs{F} \cdot d\vecs{r}=\int_{−C}\vecs{F} \cdot d\vecs{r}\)
- Suppose instead that
*C*is a piecewise smooth curve in the domains of**F**and**G**, where \(C=C_1+C_2+⋯+C_n\) and \(C_1,C_2,…,C_n\) are smooth curves such that the endpoint of \(C_i\) is the starting point of \(C_{i+1}\). Then\[\int_C F·ds=\int_{C_1} F·ds+\int_{C_2} F·ds+⋯+\int_{C_n} F·ds.\]

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 \(\int_a^b f(x)dx=−\int_a^bf(x)dx\). Finally, if \([a_1,a_2]\), \([a_2,a_3]\),…, \([a_{n−1},a_n]\) are intervals, then

\[\int_{a_1}^{a^n}f(x)dx=\int_{a_1}{a_2}f(x)dx+\int_{a_1}^{a_3}f(x)dx+⋯+\int_{a_{n−1}}^{a_n} f(x)dx,\]

which is analogous to property iv.

Example \(\PageIndex{8}\): Using Properties to Compute a Vector Line Integral

Find the value of integral \(\int_C F·Tds\), where *C* is the rectangle (oriented counterclockwise) in a plane with vertices \((0,0)\), \((2,0)\), \((2,1)\), and \((0,1)\), and where \(F=⟨x−2y,y−x⟩\) (Figure \(\PageIndex{9}\)).

**Figure \(\PageIndex{9}\): **Rectangle and vector field for Example \(\PageIndex{8}\).

**Solution**

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 16.2.9). Then,

\[\int_C F·Tdr=\int_{C_1} F·Tdr+\int_{C_2} F·Tdr+\int_{C_3} F·Tdr+\int_{C_4} F·Tdr.\]

We want to compute each of the four integrals on the right-hand side using Equation \ref{12}. Before doing this, we need a parameterization of each side of the rectangle. Here are four parameterizations (note that they traverse \(C\) counterclockwise):

\[\begin{align*} &C_1: ⟨t,0⟩,0≤t≤2\\[5pt]&C_2: ⟨2,t⟩, 0≤t≤1 \\[5pt] &C_3: ⟨2−t,1⟩, 0≤t≤2\\[5pt]&C_4: ⟨0,1−t⟩, 0≤t≤1. \end{align*}\]

Therefore,

\[\begin{align*} \int_{C_1} F·Tdr&=\int_0^2 F(r(t))·r′(t)dt \\[5pt]&=\int_0^2 ⟨t−2(0),0−t⟩·⟨1,0⟩dt=\int_0^1 tdt \\[5pt]&={[\dfrac{t^2}{2}]}_0^2=2. \end{align*}\]

Notice that the value of this integral is positive, which should not be surprising. As we move along curve \(C_1\) from left to right, our movement flows in the general direction of the vector field itself. At any point along \(C_1\), 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 \(C_1\), and the line integral will have positive value.

The calculations for the three other line integrals are done similarly:

\[\begin{align*} \int_{C_2} \vecs{F} \cdot d\vecs{r}&=\int_{0}^{1}⟨2−2t,t−2⟩·⟨0,1⟩dt \\[5pt]&=\int_{0}^{1} (t−2)dt \\[5pt] &={[\dfrac{t^2}{2}−2t]}_0^1=−\dfrac{3}{2}, \end{align*}\]

\[\begin{align*} \int_{C_3} F·Tds&=\int_0^2⟨(2−t)−2,1−(2−t)⟩·⟨−1,0⟩dt \\[5pt] &=\int_0^2tdt=2, \end{align*}\]

and

\[\begin{align*} \int_{C_4} \vecs{F} \cdot d\vecs{r}&=\int_0^1⟨−2(1−t),1−t⟩·⟨0,−1⟩dt \\[5pt]&=\int_0^1(t−1)dt \\[5pt] &={[\dfrac{t^2}{2}−t]}_0^1=−\dfrac{1}{2}. \end{align*}\]

Thus, we have \(\int_C \vecs{F} \cdot d\vecs{r}=2\).

Exercise \(\PageIndex{8}\)

Calculate line integral \(\int_C \vecs{F} \cdot d\vecs{r}\), where \(**F\)** is vector field \(⟨y^2,2xy+1⟩\) and *C* is a triangle with vertices \((0,0)\), \((4,0)\), and \((0,5)\), oriented counterclockwise.

**Hint**-
Write the triangle as a union of its three sides, then calculate three separate line integrals.

**Answer**-
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 \(\rho(x,y,z)\). We can calculate the total mass of the wire using the scalar line integral \(\int_C \rho(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 \(\rho(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 \(\int_C \rho(x,y,z)ds\).

Example \(\PageIndex{9}\): Calculating the Mass of a Wire

Calculate the mass of a spring in the shape of a curve parameterized by \(⟨t,2\cos t,2\sin t⟩\), \(0≤t≤\dfrac{\pi}{2}\), with a density function given by \(\rho(x,y,z)=e^x+yz\) kg/m (Figure \(\PageIndex{10}\)).

**Figure \(\PageIndex{10}\): **The wire from Example \(\PageIndex{9}\).

**Solution**

To calculate the mass of the spring, we must find the value of the scalar line integral \(\int_C(e^x+yz)ds\), where \(C\) is the given helix. To calculate this integral, we write it in terms of \(t\) using Equation \ref{12}:

\[\begin{align*} \int_C e^x+yzds&=\int_0^{\dfrac{\pi}{2}} ((e^t+4\cos t\sin t)\sqrt{1+{(−2\cos t)}^2+{(2\sin t)}^2)}dt\\[5pt]&=\int_0^{\dfrac{\pi}{2}}((e^t+4\cos t\sin t)\sqrt{5})dt \\[5pt] &=5{[e^t+2{\sin}^2 t]}_{t=0}^{t=\pi/2}\\[5pt]&=\sqrt{5(e^{\dfrac{\pi}{2}}+1)}. \end{align*}\]

Therefore, the mass is \(\sqrt{5}(e^\dfrac{\pi}{2}+1)\) kg.

Exercise \(\PageIndex{9}\)

Calculate the mass of a spring in the shape of a helix parameterized by \(r(t)=⟨\cos t,\sin t,t⟩\), \(0≤t≤6\pi\), with a density function given by \(\rho (x,y,z)=x+y+z\) kg/m.

**Hint**-
Calculate the line integral of ρρ over the curve with parameterization

**r**. **Answer**-
\(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 \(\int_C \vecs{F} \cdot d\vecs{r}\).

Example \(\PageIndex{10}\): Calculating Work

How much work is required to move an object in vector force field \(F=⟨yz,xy,xz⟩\) along path \(r(t)=⟨t2,t,t4⟩,\, r(t)=⟨t2,t,t4⟩,\, 0≤t≤1?0≤t≤1?\) See Figure \(\PageIndex{11}\).

**Solution**

Let *C* denote the given path. We need to find the value of \(\int_C \vecs{F} \cdot d\vecs{r}\). To do this, we use Equation \(\PageIndex{40}\) :

\[\begin{align*}\int_C \vecs{F} \cdot d\vecs{r}&=\int_0^1(⟨t^5,t^3,t^6⟩·⟨2t,1,4t^3⟩)dt \\[5pt]&=\int_0^1(2t^6+t^3+4t^9)dt \\[5pt]&={[\dfrac{2t^7}{7}+\dfrac{t^4}{4}+\dfrac{2t^{10}}{5}]}_{t=0}^{t=1}=\dfrac{131}{140}. \end{align*}\]

**Figure \(\PageIndex{11}\):** The curve and vector field for Example \(\PageIndex{10}\).

### 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 \(\int_C F·Tds\)—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 \(N(t)\) and instead compute integral \(int_C F·Nds\), we determine the flux across *C*. To be precise, the definition of integral \(\int_C F·Nds\) is the same as integral \(\int_C F·Tds\), except the **T** in the Riemann sum is replaced with **N**. Therefore, the flux across *C* is defined as

\[\int_C F·Nds=\lim_{n\to\infty}\sum_{i=1}^{n} F(P_i^*)·N(P_i^*)\Delta s_i,\]

where \(P_i^*\) and \(\Delta s_i\) are defined as they were for integral \(\int_C F·Tds\). 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 \(r(t)=⟨x(t),y(t)⟩\), \(a≤t≤b\). Let \(n(t)=⟨y′(t),−x′(t)⟩\) be the vector that is normal to *C* at the endpoint of \(r(t)\) and points to the right as we traverse *C* in the positive direction (Figure 16.2.12). Then, \(N(t)=\dfrac{n(t)}{‖n(t)‖}\) is the unit normal vector to *C* at the endpoint of \(r(t)\) that points to the right as we traverse *C*.

DEFINITION: flux

The *flux *of **F** across \(C\) is line integral

\[\int_C F·\dfrac{n(t)}{‖n(t)‖}ds.\]

**Figure \(\PageIndex{12}\): **The flux of vector field **F** across curve \(C\) is computed by an integral similar to a vector line integral.

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 \(\PageIndex{40}\)).

Theorem: CALCULATING FLUX ACROSS A CURVE

Let **F** be a vector field and let *C* be a smooth curve with parameterization \(r(t)=⟨x(t),y(t)⟩\), \(a≤t≤b\).Let \(n(t)=⟨y′(t),−x′(t)⟩\). The flux of **F** across *C* is

\[\int_C F·Nds=\int_a^bF(r(t))·n(t)dt. \label{84}\]

Proof

The proof of Equation \ref{84} is similar to the proof of Equation \ref{12}. Before deriving the formula, note that

\[‖n(t)‖=‖⟨y′(t),−x′(t)⟩‖=\sqrt{{(y′(t))}^2+{(x′(t))}^2}=‖r′(t)‖.\]

Therefore,

\[\begin{align*}\int_C F·Nds&=\int_CF·\dfrac{n(t)}{‖n(t)‖}ds \\[5pt]&=\int_a^b F·\dfrac{n(t)}{‖n(t)‖}‖r′(t)‖dt \\[5pt]&=\int_a^bF(r(t))·n(t)dt. \end{align*}\]

\(\square\)

Example \(\PageIndex{11}\): Flux across a Curve

Calculate the flux of \(F=⟨2x,2y⟩\) across a unit circle oriented counterclockwise (Figure \(\PageIndex{13}\)).

**Figure \(\PageIndex{13}\): ** A unit circle in vector field \(F=⟨2x,2y⟩\).

**Solution**

To compute the flux, we first need a parameterization of the unit circle. We can use the standard parameterization \(r(t)=⟨\cos t,\sin t⟩\), \(0≤t≤2\pi\). The normal vector to a unit circle is \(⟨\cos t,\sin t⟩\). Therefore, the flux is

\[\begin{align*} \int_C F·Nds&=\int_0^{2\pi}⟨2\cos t,2\sin t⟩·⟨\cos t,\sin t⟩dt\\[5pt]&=\int_0^{2\pi}(2{\cos}^2t+2{\sin}^2t)dt \\[5pt]&=2\int_0^{2\pi}({\cos}^2t+{\sin}^2t)dt \\[5pt] &=2\int_0^{2\pi} dt=4\pi.\end{align*}\]

Exercise \(\PageIndex{11}\)

Calculate the flux of \(F=⟨x+y,2y⟩\) across the line segment from \((0,0)\) to \((2,3)\), where the curve is oriented from left to right.

**Hint**-
Use Equation \ref{84}.

**Answer**-
\(3/2\)

Let \(F(x,y)=⟨P(x,y),Q(x,y)⟩\) be a two-dimensional vector field. Recall that integral \(\int_C F·Tds\) is sometimes written as \(\int_C Pdx+Qdy\). Analogously, flux \(\int_CF·Nds\) is sometimes written in the notation \(\int_C −Qdx+Pdy\), because the unit normal vector **N **is perpendicular to the unit tangent **T**. Rotating the vector \(dr=⟨dx,dy⟩\) by 90° results in vector \(⟨dy,−dx⟩\). Therefore, the line integral in Example \(\PageIndex{8}\) can be written as \(\int_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: \(\oint_C F·Tds\). The circle on the integral symbol denotes that *C* is “circular” in that it has no endpoints. Example \(\PageIndex{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 \(v(P)·T(P)\). The maximum value of \(v(P)·T(P)\) occurs when the two vectors are pointing in the exact same direction; the minimum value of \(v(P)·T(P)\) occurs when the two vectors are pointing in opposite directions. Thus, the value of the circulation \(\oint_C v·Tds\) measures the tendency of the fluid to move in the direction of *C*.

Example \(\PageIndex{12}\): Calculating Circulation

Let \(F=⟨−y,x⟩\) be the vector field from Example \(\PageIndex{3}\) and let *C* represent the unit circle oriented counterclockwise. Calculate the circulation of **F** along *C*.

**Solution**

We use the standard parameterization of the unit circle: \(r(t)=⟨\cos t,\sin t⟩\), \(0≤t≤2\pi\). Then, \(F(r(t))=⟨−\sin t,\cos t⟩\) and \(r′(t)=⟨−\sin t,\cos t⟩\). Therefore, the circulation of **F** along *C* is

\[\begin{align*} \oint_C F·Tds&=\int_0^{2\pi}⟨−\sin t,\cos t⟩·⟨−\sin t,\cos t⟩dt \\[5pt]&=\int_0^{2\pi} ({\sin}^2 t+{\cos}^2 t)dt \\[5pt]&=\int_0^{2\pi} dt=2\pi. \end{align*}\]

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 \(\PageIndex{12}\), what if we had oriented the unit circle clockwise? We denote the unit circle oriented clockwise by \(−C\). Then

\[\oint_{−C} F·Tds=−\oint_C F·Tds=−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**.

Exercise \(\PageIndex{12}\)

Calculate the circulation of \(F(x,y)=⟨−\dfrac{y}{x^2+y^2},\dfrac{x}{x^2+y^2}⟩\) along a unit circle oriented counterclockwise.

**Hint**-
Use Equation \ref{84}.

**Answer**-
\(2\pi\)

Example \(\PageIndex{13}\): Calculating Work

Calculate the work done on a particle that traverses circle *C* of radius 2 centered at the origin, oriented counterclockwise, by field \(F(x,y)=⟨−2,y⟩\). Assume the particle starts its movement at \((1,0)\).

**Solution**

The work done by **F** on the particle is the circulation of **F** along *C*: \(\oint_C F·Tds\). We use the parameterization \(r(t)=⟨2\cos t,2\sin t⟩\), \(0≤t≤2\pi\) for *C*. Then, \(r′(t)=⟨−2\sin t,2\cos t⟩\) and \(F(r(t))=⟨−2,2\sin t⟩\). Therefore, the circulation of **F** along *C* is

\[\begin{align*} \oint_C F·Tds&=\int_0^{2\pi} ⟨−2,2\sin t⟩·⟨−2\sin t,2\cos t⟩dt\\[5pt] &=\int_0^{2\pi} (4\sin t+4\sin t\cos t)dt\\[5pt] &={[−4\cos t+4{\sin}^2 t]}_0^{2\pi}\\[5pt] &=(−4\cos(2\pi)+2{\sin}^2(2\pi))−(−4\cos(0)+4{\sin}^2(0))\\[5pt] &=−4+4=0.\end{align*}\]

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+\dfrac{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.

Exercise \(\PageIndex{14}\)

Calculate the work done by field \(F(x,y)=⟨2x,3y⟩\) on a particle that traverses the unit circle. Assume the particle begins its movement at \((−1,0)\).

**Hint**-
Use Equation \ref{84}.

**Answer**-
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 \(\int_C ds\). - 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.
- Scalar line integrals can be calculated using Equation \ref{12}; vector line integrals can be calculated using Equation \(\PageIndex{40}\).
- 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.

### Key Equations

**Calculating a scalar line integral**

\(\int_C f(x,y,z)ds=\int_a^bf(r(t))\sqrt{{(x′(t))}^2+{(y′(t))}^2+{(z′(t))}^2}dt\)**Calculating a vector line integral**

\(\int_C F·ds=\int_C F·Tds=\int_a^bF(r(t))·r′(t)dt\)

or

\(\int_C Pdx+Qdy+Rdz=\int_a^b (P(r(t))\dfrac{dx}{dt}+Q(r(t))\dfrac{dy}{dt}+R(r(t))\dfrac{dz}{dt})dt\)**Calculating flux**

\(\int_C F·\dfrac{n(t)}{‖n(t)‖}ds=\int_a^b F(r(t))·n(t)dt\)

### Glossary

**circulation**- the tendency of a fluid to move in the direction of curve
*C*. If*C*is a closed curve, then the circulation ofalong**F***C*is line integral \(∫_*C***F**·**T***d**s\)*, which we also denote \(∮_*C***F**·**T***d**s\)*

**closed curve**- a curve for which there exists a parameterization \(
**r**(*t*),*a*≤*t*≤*b\)*, such that \(**r**(*a*)=**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
across plane curve**F***C*is line integral \(∫_*C***F**·\frac{**n**(*t*)}{‖**n**(*t*)‖}*d**s\)*

**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**f**d**s**\)*, 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
along curve**F***C*is the integral of the dot product ofwith unit tangent vector**F**of**T***C*with respect to arc length, \(∫_*C***F**·**T***d**s\)*; such an integral is defined in terms of a Riemann sum, similar to a single-variable integral

### Contributors

Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY 3/0 license. Download for free at http://cnx.org.