Line Integrals

We are familiar with single-variable integrals of the form abf(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 Δs,

add the product f(P)Δ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),

atb.

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 [til,ti]

of equal width for lin,

where t0=a

and tn=b

([link]). Let ti*

be a value in the ith interval [til,ti].

Denote the endpoints of r(t0),r(t1),…,r(tn)

by P0,…,Pn.

Points Pi divide curve C

into n

pieces C1,C2,…,Cn,

with lengths Δs1,Δs2,…,Δsn,

respectively. Let Pi*

denote the endpoint of r(ti*)

for 1in.

Now, we evaluate the function f

at point Pi*

for 1in.

Note that Pi*

is in piece C1,

and therefore Pi*

is in the domain of f.

Multiply f(Pi*)

by the length Δs1

of C1,

which gives the area of the “sheet” with base C1,

and height f(Pi*).

This is analogous to using rectangles to approximate area in a single-variable integral. Now, we form the sum i=1nf(Pi*)Δsi.

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 abg(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.

A diagram of a curve in quadrant one. Several points and segments are labeled. Starting at the left, the first points are P_0 and P_1. The segment between them is labeled delta S_1. The next points are P_i-1, P_i, and P_i+1. The segments connecting them are delta S_i and delta S_j+1. Point P_i starred and point P_i+1 starred are located on each segment, respectively. The last two points are P_n-1 and P_n, connected by segment S_n.

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 Δs1,Δs2,…,Δsn

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

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),

atb.

The scalar line integral of f

along C

is

Cf(x,y,z)ds=limni=1nf(Pi*)Δsi

if this limit exists (ti*

and Δsi

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 atb.

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

Cf(x,y)ds=limni=1nf(Pi*)Δsi,

if this limit exists.

If f

is a continuous function on a smooth curve C, then Cfds

always exists. Since Cfds

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 abg(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)

([link]). Now we drop a “sheet” from C

down to the xy-plane. The area of this sheet is Cf(x,y)ds.

If f(x,y)0

for some points in C,

then the value of Cf(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 abg(x)dx.)

A diagram in three dimensions. The original curve C in the (x,y) plane looks like a parabola opening to the left with vertex in quadrant 1. The surface defined by f(x,y) is shown always above the (x,y) plane. A curve on the surface directly above the original curve C is labeled as C’. A blue sheet stretches down from C’ to C.

From this geometry, we can see that line integral Cf(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.

Finding the Value of a Line Integral

Find the value of integral C2ds,

where C

is the upper half of the unit circle.

The integrand is f(x,y)=2.

[link] 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 π

and length 2. Therefore, C2ds=2π.

A graph in three dimensions. There is a flat plane just above the (x,y) plane. The upper half of the unit circle in quadrants 1 and 2 of the (x,y) plane is raised up to form a semicircle sheet into the z-plane.

To see that C2ds=2π

using the definition of line integral, we let r(t)

be a parameterization of C. Then, f(r(ti))=2

for any number ti

in the domain of r. Therefore,

Cfds=limni=1nf(r(ti*))Δsi=limni=1n2Δsi=2limni=1n2Δsi=2(length of C)=2π.

Find the value of C(x+y)ds,

where C

is the curve parameterized by x=t,

y=t, 0t1.
2
Hint

Find the shape formed by C and the graph of function f(x,y)=x+y.

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 Cfds

to an integral with a variable of integration that is t.

Let r(t)=x(t),y(t),z(t)

for atb

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

length(Ci)=Δsi=ti1tir(t)dt.

If width Δti=titi1

is small, then function ti1tir(t)dtr(ti*)Δti,

r(t)

is almost constant over the interval [ti1,ti].

Therefore,

ti1tir(t)dtr(ti*)Δti,

and we have

i=1nf(r(ti*))Δsi=i=1nf(r(ti*))r(ti*)Δti.

See [link].

A segment of an increasing concave down curve labeled C. A small segment of the curved is boxed and labeled as delta t_i. In the zoomed-in insert, this boxed segment of the curve is almost linear.

Note that

limni=1nf(r(ti*))r(ti*)Δti=abf(r(t))r(t)dt.

In other words, as the widths of intervals [ti1,ti]

shrink to zero, the sum i=1nf(r(ti*))r(ti*)Δti

converges to the integral abf(r(t))r(t)dt.

Therefore, we have the following 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),atb.

Then

Cfds=abf(r(t))r(t)dt.

Although we have labeled [link] as an equation, it is more accurately considered an approximation because we can show that the left-hand side of [link] approaches the right-hand side as n.

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)=(x(t))2+(y(t))2+(z(t))2,

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

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),atb.

Then

Cf(x,y,z)ds=abf(r(t))(x(t))2+(y(t))2+(z(t))2dt.

Similarly,

Cf(x,y)ds=abf(r(t))(x(t))2+(y(t))2dt

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).

Evaluating a Line Integral

Find the value of integral C(x2+y2+z)ds,

where C

is part of the helix parameterized by r(t)=cost,sint,t,

0t2π.

To compute a scalar line integral, we start by converting the variable of integration from arc length s to t. Then, we can use [link] to compute the integral with respect to t. Note that f(r(t))=cos2t+sin2t+t=1+t

and

(x(t))2+(y(t))2+(z(t))2=(sin(t))2+cos2(t)+1=2.

Therefore,

C(x2+y2+z)ds=02π(1+t)2dt.

Notice that [link] translated the original difficult line integral into a manageable single-variable integral. Since

02π(1+t)2dt=[2t+2t22]02π=22π+22π2,

we have

C(x2+y2+z)ds=22π+22π2.

Evaluate C(x2+y2+z)ds,

where C is the curve with parameterization r(t)=sin(3t),cos(3t),0tπ4.

13+26+3π4
Hint

Use the two-variable version of [link].

Independence of Parameterization

Find the value of integral C(x2+y2+z)ds,

where C

is part of the helix parameterized by r(t)=cos(2t),sin(2t),2t,0tπ.

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 with the previous example, we use [link] to compute the integral with respect to t. Note that f(r(t))=cos2(2t)+sin2(2t)+2t=2t+1

and

(x(t))2+(y(t))2+(z(t))2=(sint+cost+4)=22

so we have

C(x2+y2+z)ds=220π(1+2t)dt=22[t+t2]0π=22(π+π2).

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(x2+yz)ds,

where C

is the line with parameterization r(t)=2t,5t,t,0t10.

Reparameterize C with parameterization s(t)=4t,10t,−2t,0t5,

recalculate line integral C(x2+yz)ds,

and notice that the change of parameterization had no effect on the value of the integral.

Both line integrals equal 1000303.

Hint

Use [link].

Now that we can evaluate line integrals, we can use them to calculate arc length. If f(x,y,z)=1,

then

Cf(x,y,z)ds=limni=1nf(ti*)Δsi=limni=1nΔsi=limnlength(C)=length(C).

Therefore, C1ds

is the arc length of C.

Calculating Arc Length

A wire has a shape that can be modeled with the parameterization r(t)=cost,sint,t,0t4π.

Find the length of the wire.

The length of the wire is given by C1ds,

where C is the curve with parameterization r. Therefore,

The length of the wire=C1ds=04πr(t)dt=04π(sint)2+cos2t+tdt=04π1+tdt=[2(1+t)3/23]04π=23((1+4π)3/21).

Find the length of a wire with parameterization r(t)=3t+1,42t,5+2t,0t4.

417
Hint

Find the line integral of one over the corresponding curve.

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 ([link]). 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),

atb,

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).

Two images, labeled A and B. Image A shows a curve C that is an oriented curve. It is a curve that connects two points; it is a line segment with curves. Image B, on the other hand, is a closed curve. It has no endpoints and completely encloses an area.

Let r(t)

be a parameterization of C for atb

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 [ti1,ti],0in,

of equal width. Denote the endpoints of r(t0),r(t1),…,r(tn)

by P0,…,Pn.

Points Pi divide C into n pieces. Denote the length of the piece from Pi−1 to Pi by Δsi.

For each i, choose a value ti*

in the subinterval [ti1,ti].

Then, the endpoint of r(ti*)

is a point in the piece of C between Pi1

and Pi ([link]). If Δsi

is small, then as the particle moves from Pi1

to Pi

along C, it moves approximately in the direction of T(Pi),

the unit tangent vector at the endpoint of r(ti*).

Let Pi*

denote the endpoint of r(ti*).

Then, the work done by the force vector field in moving the particle from Pi1

to Pi is F(Pi*)·(ΔsiT(Pi*)),

so the total work done along C is

i=1nF(Pi*)·(ΔsiT(Pi*))=i=1nF(Pi*)·T(Pi*)Δsi.

An image of a concave down curve – initially increasing, but later decreasing. Several points are labeled along the curve, as are arrowheads along the curve pointing in the direction of increasing P value. The points are: P_0, P_1, P_i-1, P_i starred, P_i, P_n-1, and Pn. Two arrows have their endpoints at P_i. The first is an increasing tangent vector labeled T(P_i starred). The second is labeled F(P_i starred) and points up and to the left.

Letting the arc length of the pieces of C get arbitrarily small by taking a limit as n

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=Cf·Tds,

which gives us the concept of a vector line integral.

Definition

The vector line integral of vector field F along oriented smooth curve C is

CF·Tds=limni=1nF(Pi*)·T(Pi*)Δsi

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 CF·Tds

in terms of t, note that unit tangent vector T along C is given by T=r(t)r(t)

(assuming r(t)0).

Since ds=r(t)dt,

as we saw when discussing scalar line integrals, we have

F·Tds=F(r(t))·r(t)r(t)r(t)dt=F(r(t))·r(t)dt.

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

CF·Tds=abF(r(t))·r(t)dt.

Because of [link], we often use the notation CF·dr

for the line integral CF·Tds.

If r(t)=x(t),y(t),z(t),

then dr denotes vector x(t),y(t),z(t).

Evaluating a Vector Line Integral

Find the value of integral CF·dr,

where C

is the semicircle parameterized by r(t)=cost,sint,

0tπ

and F=y,x.

We can use [link] to convert the variable of integration from s to t. We then have

F(r(t))=sint,costandr(t)=sint,cost.

Therefore,

CF·dr=0πsint,cost·sint,costdt=0πsin2t+cos2tdt=0π1dt=π.

See [link].

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.

Reversing Orientation

Find the value of integral CF·dr,

where C

is the semicircle parameterized by r(t)=cost+π,sint,0tπ

and F=y,x.

Notice that this is the same problem as [link], except the orientation of the curve has been traversed. In this example, the parameterization starts at r(0)=π,0

and ends at r(π)=0,0.

By [link],

CF·dr=0πsint,cost+π·sint+π,costdt=0πsint,cost·sint,costdt=0π(sin2tcos2t)dt=0π−1dt=π.

Notice that this is the negative of the answer in [link]. 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:

CF·dr=CF·dr.

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

Let F=xi+yj

be a vector field and let C be the curve with parameterization t,t2

for 0t2.

Which is greater: CF·Tds

or CF·Tds?

CF·Tds
Hint

Imagine moving along the path and computing the dot product F·T

as you go.

Another standard notation for integral CF·dr

is CPdx+Qdy+Rdz.

In this notation, P, Q, and R are functions, and we think of dr as vector dx,dy,dz.

To justify this convention, recall that dr=Tds=r(t)dt=dxdt,dydt,dzdtdt.

Therefore,

F·dr=P,Q,R·dx,dy,dz=Pdx+Qdy+Rdz.

If dr=dx,dy,dz,

then drdt=dxdt,dydt,dzdt,

which implies that drdt=dxdt,dydt,dzdtdt.

Therefore

CF·dr=CPdx+Qdy+Rdz=(P(r(t))dxdt+Q(r(t))dydt+R(r(t))dzdt)dt.
Finding the Value of an Integral of the Form CPdx+Qdy+Rdz

Find the value of integral Czdx+xdy+ydz,

where C is the curve parameterized by r(t)=t2,t,t,1t4.

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, [link] allows us to make this change:

Czdx+xdy+ydz=14(t(2t)+t2(12t)+t)dt=14(2t2+t3/22+t)dt=[2t33+t5/25+2t3/23]t=1t=4=79315.

Find the value of C4xdx+zdy+4y2dz,

where C

is the curve parameterized by r(t)=4cos(2t),2sin(2t),3,0tπ4.

−26
Hint

Write the integral in terms of t using [link].

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 C1,C2,…,Cn

such that the endpoint of Ci

is the starting point of Ci+1

([link]). When curves Ci

satisfy the condition that the endpoint of Ci

is the starting point of Ci+1,

we write their union as C1+C2++Cn.

Three curves: C_1, C_2, and C_3. One of the endpoints of C_2 is also an endpoint of C_1, and the other endpoint of C_2 is also an end point of C_3. C_1’s and C_3’s other endpoints are not connect to any other curve. C_1 and C_3 appear to be nearly straight lines while C_2 is an increasing concave down curve. There are three arrowheads on each curve segment all pointing in the same direction: C_1 to C_2, C_2 to C_3, and C_3 to its other endpoint.

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

Properties of Vector Line Integrals

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

  1. C(F+G)·dr=CF·dr+CG·dr
  2. CkF·dr=kCF·dr,

    where k is a constant

  3. CF·dr=CF·dr
  4. Suppose instead that C is a piecewise smooth curve in the domains of F and G, where C=C1+C2++Cn

    and

    C1,C2,…,Cn

    are smooth curves such that the endpoint of

    Ci

    is the starting point of

    Ci+1.

    Then


    CF·ds=C1F·ds+C2F·ds++CnF·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 abf(x)dx=baf(x)dx.

Finally, if [a1,a2],[a2,a3],…,[an1,an]

are intervals, then

a1anf(x)dx=a1a2f(x)dx+a1a3f(x)dx++an1anf(x)dx,

which is analogous to property iv.

Using Properties to Compute a Vector Line Integral

Find the value of integral CF·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=x2y,yx

([link]).

A vector field in two dimensions. The arrows following roughly a 90-degree angle to the origin in quadrants 1 and 3 point to the origin. As the arrows deviate from this angle, they point away from the angle ad become smaller. Above, they point up and to the left, and below, they point down and to the right. A rectangle is drawn in quadrant 1 from 0 to 2 on the x axis and from 0 to 1 on the y axis. C_1 is the base, C_2 is the right leg, C_3 is the top, and C_4 is the left leg.

Note that curve C is the union of its four sides, and each side is smooth. Therefore C is piecewise smooth. Let C1

represent the side from (0,0)

to (2,0),

let C2

represent the side from (2,0)

to (2,1),

let C3

represent the side from (2,1)

to (0,1),

and let C4

represent the side from (0,1)

to (0,0)

([link]). Then,

CF·Tdr=C1F·Tdr+C2F·Tdr+C3F·Tdr+C4F·Tdr.

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

C1:t,0,0t2C2:2,t,0t1C3:2t,1,0t2C4:0,1t,0t1.

Therefore,

C1F·Tdr=02F(r(t))·r(t)dt=02t2(0),0t·1,0dt=01tdt=[t22]02=2.

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:

C2F·dr=0122t,t2·0,1dt=01(t2)dt=[t222t]01=32,
C3F·Tds=02(2t)2,1(2t)·−1,0dt=02tdt=2,

and

C4F·dr=01−2(1t),1t·0,−1dt=01(t1)dt=[t22t]01=12.

Thus, we have CF·dr=2.

Calculate line integral CF·dr,

where F is vector field y2,2xy+1

and C is a triangle with vertices (0,0),

(4,0),

and (0,5),

oriented counterclockwise.

0

Hint

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

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*)Δ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.

Calculating the Mass of a Wire

Calculate the mass of a spring in the shape of a curve parameterized by t,2cost,2sint,

0tπ2,

with a density function given by ρ(x,y,z)=ex+yz

kg/m ([link]).

A three dimensional diagram. An increasing, then slightly decreasing concave down curve is drawn from (0,2,0) to (pi/2, 0, 2). The arrow on the curve is pointing to the latter endpoint.

To calculate the mass of the spring, we must find the value of the scalar line integral C(ex+yz)ds,

where C is the given helix. To calculate this integral, we write it in terms of t using [link]:

Cex+yzds=0π/2((et+4costsint)1+(−2cost)2+(2sint)2)dt=0π/2((et+4costsint)5)dt=5[et+2sin2t]t=0t=π/2=5(eπ/2+1).

Therefore, the mass is 5(eπ/2+1)

kg.

Calculate the mass of a spring in the shape of a helix parameterized by r(t)=cost,sint,t,0t6π,

with a density function given by ρ(x,y,z)=x+y+z

kg/m.

182π2

kg

Hint

Calculate the line integral of ρ

over the curve with parameterization r.

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 CF·dr.

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,

0t1?

See [link].

Let C denote the given path. We need to find the value of CF·dr.

To do this, we use [link]:

CF·dr=01(t5,t3,t6·2t,1,4t3)dt=01(2t6+t3+4t9)dt=[2t77+t44+2t105]t=0t=1=131140.

A three dimensional diagram of the curve and vector field for the example. The curve is an increasing concave up curve starting close to the origin and above the x axis. As the curve goes left above the (x,y) plane, the height also increases. The arrows in the vector field get longer as the z component becomes larger.

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 CF·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 CF·Nds,

we determine the flux across C. To be precise, the definition of integral CF·Nds

is the same as integral CF·Tds,

except the T in the Riemann sum is replaced with N. Therefore, the flux across C is defined as

CF·Nds=limni=1nF(Pi*)·N(Pi*)Δsi,

where Pi*

and Δsi

are defined as they were for integral CF·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),

atb.

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 ([link]). Then, N(t)=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

The flux of F across C is line integral CF·n(t)n(t)ds.

A simple diagram of an increasing concave down curve C in vector field F, with no coordinate plane. Towards the top of the curve, the normal n is drawn perpendicular to the curve C. Another arrow F is drawn sharing n’s endpoint. This flux points up and to the right at about a 90-degree angle to n. The arrows in the vector field to the left of n are drawn pointing straight up. The arrows after n point in the same direction as the flux.

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 [link]).

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),atb.

Let n(t)=y(t),x(t).

The flux of F across C is

CF·Nds=abF(r(t))·n(t)dt

Proof

The proof of [link] is similar to the proof of [link]. Before deriving the formula, note that n(t)=y(t),x(t)=(y(t))2+(x(t))2=r(t).

Therefore,

CF·Nds=CF·n(t)n(t)ds=abF·n(t)n(t)r(t)dt=abF(r(t))·n(t)dt.

Flux across a Curve

Calculate the flux of F=2x,2y

across a unit circle oriented counterclockwise ([link]).

A unit circle in a vector field in two dimensions. The arrows point away from the origin in a radial pattern. Shorter vectors are near the origin, and longer ones are further away. A unit circle is drawn around the origin to fit the pattern, and arrowheads are drawn on the circle in a counterclockwise manner.

To compute the flux, we first need a parameterization of the unit circle. We can use the standard parameterization r(t)=cost,sint,

0t2π.

The normal vector to a unit circle is cost,sint.

Therefore, the flux is

CF·Nds=02π2cost,2sint·cost,sintdt=02π(2cos2t+2sin2t)dt=202π(cos2t+sin2t)dt=202πdt=4π.

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.

3/2

Hint

Use [link].

Let F(x,y)=P(x,y),Q(x,y)

be a two-dimensional vector field. Recall that integral CF·Tds

is sometimes written as CPdx+Qdy.

Analogously, flux CF·Nds

is sometimes written in the notation CQdx+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 [link] 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: CF·Tds.

The circle on the integral symbol denotes that C is “circular” in that it has no endpoints. [link] 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 Cv·Tds

measures the tendency of the fluid to move in the direction of C.

Calculating Circulation

Let F=y,x

be the vector field from [link] and let C represent the unit circle oriented counterclockwise. Calculate the circulation of F along C.

We use the standard parameterization of the unit circle: r(t)=cost,sint,0t2π.

Then, F(r(t))=sint,cost

and r(t)=sint,cost.

Therefore, the circulation of F along C is

CF·Tds=02πsint,cost·sint,costdt=02π(sin2t+cos2t)dt=02πdt=2π.

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 [link], what if we had oriented the unit circle clockwise? We denote the unit circle oriented clockwise by C.

Then

CF·Tds=CF·Tds=−2π.

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 F(x,y)=yx2+y2,xx2+y2

along a unit circle oriented counterclockwise.

2π
Hint

Use [link].

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).

The work done by F on the particle is the circulation of F along C: CF·Tds.

We use the parameterization r(t)=2cost,2sint,0t2π

for C. Then, r(t)=−2sint,2cost

and F(r(t))=−2,2sint.

Therefore, the circulation of F along C is

CF·Tds=02π−2,2sint·−2sint,2costdt=02π(4sint+4sintcost)dt=[−4cost+4sin2t]02π=(−4cos(2π)+2sin2(2π))(−4cos(0)+4sin2(0))=−4+4=0.

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+y22,

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 F(x,y)=2x,3y

on a particle that traverses the unit circle. Assume the particle begins its movement at (−1,0).

0

Hint

Use [link].

Key Concepts

Key Equations


or


CPdx+Qdy+Rdz=ab(P(r(t))dxdt+Q(r(t))dydt+R(r(t))dzdt)dt

True or False? Line integral Cf(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 r1=ti+t2j,

0t1,

and r2=(1t)i+(1t)2j,

0t1,

define the same oriented curve.

True or False? C(Pdx+Qdy)=C(PdxQdy)

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,y(t)=t, 0t1,

then Cxyds=01t2dt.

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:x=t,y=(1t),z=0

from (0, 1, 0) to (1, 0, 0)

[T] C(xy)ds

C:r(t)=4ti+3tj

when 0t2

C(xy)ds=10

[T] C(x2+y2+z2)ds

C:r(t)=sinti+costj+8tk

when 0tπ2

[T] Evaluate Cxy4ds,

where C is the right half of circle x2+y2=16

and is traversed in the clockwise direction.

Cxy4ds=81925

[T] Evaluate C4x3ds,

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 F(x,y,z)=xi+3xyj(x+z)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 F(x,y,z)=12xi12yj+14k

on a particle as it moves along the helix r(t)=costi+sintj+tk

from point (1,0,0)

to point (−1,0,3π).

W=3π4

Find the work done by vector field F(x,y)=yi+2xj

in moving an object along path C, which joins points (1, 0) and (0, 1).

Find the work done by force F(x,y)=2yi+3xj+(x+y)k

in moving an object along curve r(t)=cos(t)i+sin(t)j+16k,

where 0t2π.

W=π

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)=y2.

For the following exercises, evaluate the line integrals.

Evaluate CF·dr,

where F(x,y)=−1j,

and C is the part of the graph of y=12x3x

from (2,2)

to (−2,−2).

CF·dr=4

Evaluate γ(x2+y2+z2)−1ds,

where γ

is the helix x=cost,y=sint,z=t(0tT).

Evaluate Cyzdx+xzdy+xydz

over the line segment from (1,1,1)

to (3,2,0).

Cyzdx+xzdy+xydz=−1

Let C be the line segment from point (0, 1, 1) to point (2, 2, 3). Evaluate line integral Cyds.

[T] Use a computer algebra system to evaluate the line integral Cy2dx+xdy,

where C is the arc of the parabola x=4y2

from (−5, −3) to (0, 2).

C(y2)dx+(x)dy=2456

[T] Use a computer algebra system to evaluate the line integral C(x+3y2)dy

over the path C given by x=2t,y=10t,

where 0t1.

[T] Use a CAS to evaluate line integral Cxydx+ydy

over path C given by x=2t,y=10t,

where 0t1.

Cxydx+ydy=1903

Evaluate line integral C(2xy)dx+(x+3y)dy,

where C lies along the x-axis from x=0tox=5.

[T] Use a CAS to evaluate Cy2x2y2ds,

where C is x=t,y=t,1t5.

Cy2x2y2ds=2ln5

[T] Use a CAS to evaluate Cxyds,

where C is x=t2,y=4t,0t1.

In the following exercises, find the work done by force field F on an object moving along the indicated path.

F(x,y)=xi2yj C:y=x3from (0, 0) to (2, 8)
W=−66
F(x,y)=2xi+yj

C: counterclockwise around the triangle with vertices (0, 0), (1, 0), and (1, 1)

F(x,y,z)=xi+yj5zk C:r(t)=2costi+2sintj+tk,0t2π
W=−10π2

Let F be vector field F(x,y)=(y2+2xey+1)i+(2xy+x2ey+2y)j.

Compute the work of integral CF·dr,

where C is the path r(t)=sinti+costj,0tπ2.

Compute the work done by force F(x,y,z)=2xi+3yjzk

along path r(t)=ti+t2j+t3k,

where 0t1.

W=2

Evaluate CF·dr,

where F(x,y)=1x+yi+1x+yj

and C is the segment of the unit circle going counterclockwise from (1,0)

to (0, 1).

Force F(x,y,z)=zyi+xj+z2xk

acts on a particle that travels from the origin to point (1, 2, 3). Calculate the work done if the particle travels:

  1. along the path (0,0,0)(1,0,0)(1,2,0)(1,2,3)

    along straight-line segments joining each pair of endpoints;

  2. along the straight line joining the initial and final points.
  3. Is the work the same along the two paths?

    A curve and vector field in three dimensions. The curve segments go from (1,2,3) to (0,0,0) to (1,0,0) to (1,2,0), and the arrowheads point to (0,0,0), (1,0,0), and (1,2,0). The surrounding vectors are larger the more the z component increases.

a. W=11;

b. W=11;

c. Yes

Find the work done by vector field F(x,y,z)=xi+3xyj(x+z)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 F(x,y)=yi+3xj

along the upper part of ellipse x24+y2=1

from (2, 0) to (−2,0)?

W=2π

A vector field is given by F(x,y)=(2x+3y)i+(3x+2y)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=x2

connecting the origin to point (1, 1).

CF·dr=255+1120

Find Cy2dx+(xyx2)dy

along C: y=3x

from (0, 0) to (1, 3).

Find Cy2dx+(xyx2)dy

along C: y2=9x

from (0, 0) to (1, 3).

Cy2dx+(xyx2)dy=6.15

For the following exercises, use a CAS to evaluate the given line integrals.

[T] Evaluate F(x,y,z)=x2zi+6yj+yz2k,

where C is represented by r(t)=ti+t2j+lntk,1t3.

[T] Evaluate line integral γxeyds

where, γ

is the arc of curve x=ey

from (1,0)

to (e,1).

γxeyds7.157

[T] Evaluate the integral γxy2ds,

where γ

is a triangle with vertices (0, 1, 2), (1, 0, 3), and (0,−1,0).

[T] Evaluate line integral γ(y2xy)dx,

where γ

is curve y=lnx

from (1, 0) toward (e,1).

γ(y2xy)dx−1.379

[T] Evaluate line integral γxy4ds,

where γ

is the right half of circle x2+y2=16.

[T] Evaluate CF·dr,

where F(x,y,z)=x2yi+(xz)j+xyzk

and

C: r(t)=ti+t2j+2k,0t1.

CF·dr−1.133

Evaluate CF·dr,

where F(x,y)=2xsin(y)i+(x2cos(y)3y2)j

and

C is any path from (−1,0)

to (5, 1).

Find the line integral of F(x,y,z)=12x2i5xyj+xzk

over path C defined by y=x2,

z=x3

from point (0, 0, 0) to point (2, 4, 8).

CF·dr22.857

Find the line integral of C(1+x2y)ds,

where C is ellipse r(t)=2costi+3sintj

from 0tπ.

For the following exercises, find the flux.

Compute the flux of F=x2i+yj

across a line segment from (0, 0) to (1, 2).

flux=13

Let F=5i

and let C be curve y=0,0x4.

Find the flux across C.

Let F=5j

and let C be curve y=0,0x4.

Find the flux across C.

flux=−20

Let F=yi+xj

and let C: r(t)=costi+sintj

(0t2π).

Calculate the flux across C.

Let F=(x2+y3)i+(2xy)j.

Calculate flux F orientated counterclockwise across curve C: x2+y2=9.

flux=0

Find the line integral of Cz2dx+ydy+2ydz,

where C consists of two parts: C1

and C2.

C1

is the intersection of cylinder x2+y2=16

and plane z=3

from (0, 4, 3) to (−4,0,3).

C2

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=2cost,y=2sint,z=t.

Find the mass of two turns of the spring if the wire has constant mass density.

m=4πρ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 F(x,y,z)=y2i+2(x+1)yj

counterclockwise from point (2, 0) along elliptical path x2+4y2=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 F(x,y,z)=2xi(x+z)j+(yx)k

along the path given by r(t)=t2i+(t2t)j+3k,

0t1.

If an inverse force field F is given by F(x,y,z)=kr3r,

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)toB(2,0,0).

W=k2

David and Sandra plan to evaluate line integral CF·dr

along a path in the xy-plane from (0, 0) to (1, 1). The force field is F(x,y)=(x+2y)i+(x+y2)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 CF·Tds,

which we also denote

CF·Tds
closed curve
a curve for which there exists a parameterization r(t), atb,

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 F across plane curve C is line integral CF·n(t)n(t)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

Cfds,

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, CF·Tds;

such an integral is defined in terms of a Riemann sum, similar to a single-variable integral


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

You can also download for free at http://cnx.org/contents/9a1df55a-b167-4736-b5ad-15d996704270@5.1

Attribution: