Learning Objectives
- Calculate a scalar line integral along a curve.
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 xx-axis.
For a scalar line integral, we let CC be a smooth curve in a plane or in space and let ff be a function with a domain that includes CC. We chop the curve into small pieces. For each piece, we choose point PP in that piece and evaluate ff at PP. (We can do this because all the points in the curve are in the domain of ff.) We multiply f(P)f(P) by the arc length of the piece ΔsΔs, add the product f(P)Δsf(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 CC be a smooth curve in space given by the parameterization r(t)=⟨x(t),y(t),z(t)⟩,a≤t≤br(t)=⟨x(t),y(t),z(t)⟩,a≤t≤b. Let f(x,y,z)f(x,y,z) be a function with a domain that includes curve CC. To define the line integral of the function ff over CC, we begin as most definitions of an integral begin: we chop the curve into small pieces. Partition the parameter interval [a,b][a,b] into nn subintervals [ti−1,ti][ti−1,ti] of equal width for 1≤i≤n1≤i≤n, where t0=at0=a and tn=btn=b (Figure 1). Let t∗it∗i be a value in the ith interval [ti−1,ti][ti−1,ti]. Denote the endpoints of r(t0),r(t1),...,r(tn)r(t0),r(t1),...,r(tn) by P0,...PnP0,...Pn. Points PiPi divide curve CC into nn pieces C1,C2,...,CnC1,C2,...,Cn, with lengths Δs1,Δs2,...,ΔsnΔs1,Δs2,...,Δsn, respectively. Let P∗iP∗i denote the endpoint of r(t∗i)r(t∗i) for 1≤i≤n1≤i≤n. Now, we evaluate the function ff at point P∗iP∗i for 1≤i≤n1≤i≤n. Note that P∗iP∗i is in piece C1C1, and therefore P∗iP∗i is in the domain of ff. Multiply f(P∗i)f(P∗i) by the length Δs1Δs1 of C1C1, which gives the area of the “sheet” with base C1C1, and height f(P∗i)f(P∗i). This is analogous to using rectangles to approximate area in a single-variable integral. Now, we form the sum n∑i=1f(P∗i)Δsin∑i=1f(P∗i)Δ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 ∫bag(x)dx∫bag(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 ff along CC.s
Figure 1. Curve CC has been divided into nn pieces, and a point inside each piece has been chosen.
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Δs1,Δs2,...,Δsn aren’t necessarily the same; in the definition of a single-variable integral, the curve in the xx-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 ff be a function with a domain that includes the smooth curve CC that is parameterized by r(t)=⟨x(t),y(t),z(t)⟩,a≤t≤br(t)=⟨x(t),y(t),z(t)⟩,a≤t≤b. The scalar line integral offf along CC is
∫Cf(x,y,z)ds=limn→∞n∑i=1f(P∗i)Δsi∫Cf(x,y,z)ds=limn→∞n∑i=1f(P∗i)Δsi
if this limit exists (t∗it∗i and ΔsiΔsi are defined as in the previous paragraphs). If CC is a planar curve, then CC can be represented by the parametric equations x=x(t)x=x(t), y=y(t)y=y(t), and a≤t≤ba≤t≤b. If CC is smooth and f(x,y)f(x,y) is a function of two variables, then the scalar line integral of ff along CC is defined similarly as
∫Cf(x,y)ds=limn→∞n∑i=1f(P∗i)Δsi∫Cf(x,y)ds=limn→∞n∑i=1f(P∗i)Δsi,
if this limit exists.
If ff is a continuous function on a smooth curve CC, then ∫Cfds∫Cfds always exists. Since ∫Cfds∫Cfds is defined as a limit of Riemann sums, the continuity of ff is enough to guarantee the existence of the limit, just as the integral ∫bag(x)dx∫bag(x)dx exists if gg is continuous over [a,b][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)≥0f(x,y)≥0 for all points (x,y)(x,y) on a smooth planar curve CC. Imagine taking curve CC and projecting it “up” to the surface defined by f(x,y)f(x,y), thereby creating a new curve C′ that lies in the graph of f(x,y) (Figure 2). 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 ∫bag(x)dx.)
Figure 2. The area of the blue sheet is ∫Cf(x,y)ds.
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.
Example: finding the value of a line integral
Find the value of integral ∫C2ds, where C is the upper half of the unit circle.
try it
Find the value of ∫C(x+y)ds, where C is the curve parameterized by x=t, y=t, 0≤t≤1.
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 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
length(Ci)=Δsi=∫titi−1‖r′(t)‖dt.
If width Δti=ti−ti−1 is small, then function ∫titi−1‖r′(t)‖dt≈‖r′(t∗i)‖Δti‖r′(t)‖ is almost constant over the interval [ti−1,ti]. Therefore,
∫titi−1‖r′(t)‖dt≈‖r′(t∗i)‖Δti,
and we have
n∑i=1f(r(t∗i))Δsi=n∑i=1f(r(t∗i))‖r′(t∗i)‖Δti.
See Figure 4.
Figure 4. If we zoom in on the curve enough by making Δti very small, then the corresponding piece of the curve is approximately linear.
Note that
limn→∞n∑i=1f(r(t∗i))‖r′(t∗i)‖Δti=∫baf(r(t))‖r′(t)‖dt.
In other words, as the widths of intervals [ti−1,ti] shrink to zero, the sum n∑i=1f(r(t∗i))‖r′(t∗i)‖Δti converges to the integral ∫baf(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
∫Cfds=∫baf(r(t))‖r′(t)‖dt.
Although we have labeled ∫titi−1‖r′(t)‖dt≈‖r′(t∗i)‖Δti, as an equation, it is more accurately considered an approximation because we can show that the left-hand side of the equation 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.
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
∫Cf(x,y,z)ds=∫baf(r(t))√(x′(t))2+(y′(t))2+(z′(t))2dt.
Similarly,
∫Cf(x,y)ds=∫baf(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).
Example: 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⟩,0≤t≤2π.
try it
Evaluate ∫C(x2+y2+z)ds, where C is the curve with parameterization r(t)=⟨sin(3t),cos(3t),t⟩,0≤t≤2π.
Example: 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⟩,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.
try it
Evaluate line integral ∫C(x2+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 ∫C(x2+yz)ds, and notice that the change of parameterization had no effect on the value of the integral.
Watch the following video to see the worked solution to the above Try It
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=limn→∞n∑i=1f(t∗i)Δsi=limn→∞n∑i=1Δsi=limn→∞length(C)=length(C).
Therefore, ∫C1ds is the arc length of C.
Example: calculating arc length
A wire has a shape that can be modeled with the parameterization r(t)=⟨cost,sint,23t3/2⟩,0≤t≤4π. Find the length of the wire.
try it
Find the length of a wire with parameterization r(t)=⟨3t+1,4−2t,5+2t⟩,0≤t≤4.
Candela Citations
- CP 6.15. Authored by: Ryan Melton. License: CC BY: Attribution
- Calculus Volume 3. Authored by: Gilbert Strang, Edwin (Jed) Herman. Provided by: OpenStax. Located at: https://openstax.org/books/calculus-volume-3/pages/1-introduction. License: CC BY-NC-SA: Attribution-NonCommercial-ShareAlike. License Terms: Access for free at https://openstax.org/books/calculus-volume-3/pages/1-introduction