Unit 5, lesson 34

Scalar Line Integrals

How to integrate a function along a curve with respect to arc length, why the speed factor appears, and why the answer ignores both the parametrization and the direction of travel.

  • Theory part 67
  • Practice part 68
  • Vector Fields and Line Integrals

Picture a bent piece of wire whose thickness changes along its length, so some stretches weigh more per centimeter than others. To find its total mass you cut it into short pieces, multiply each piece’s length by the density there, and add. The scalar line integral is the limit of that sum, and it works for any quantity spread along a curve, such as charge on a wire or temperature averaged along a path.

Key terms

Regular and piecewise regular curves

Definition A parametrization r:[a,b]→Rn\mathbf{r} : [a, b] \to \mathbb{R}^n with a<ba < b is regular (or smooth) if r′\mathbf{r}' exists and is continuous on [a,b][a, b], using one-sided derivatives at the endpoints, and

r′(t)≠0for every t in [a,b].\mathbf{r}'(t) \ne \mathbf{0} \quad \text{for every } t \text{ in } [a, b].

A curve with a regular parametrization that is one-to-one, except possibly that r(a)=r(b)\mathbf{r}(a) = \mathbf{r}(b) for a closed curve, is a regular curve. A curve CC is piecewise regular if it is a union C=C1∪C2∪⋯∪CmC = C_1 \cup C_2 \cup \cdots \cup C_m of finitely many regular curves, where the end point of each CiC_i is the starting point of Ci+1C_{i+1}.

In plain words A regular curve has a tangent direction at every point that changes continuously, and a point moving along it never stops. A piecewise regular curve may have finitely many corners, where you start a new piece.

Example The graph of y=∣x∣y = \lvert x \rvert for −1≤x≤1-1 \le x \le 1 has the parametrization r(t)=⟨t,∣t∣⟩\mathbf{r}(t) = \langle t, \lvert t \rvert \rangle, which has no derivative at t=0t = 0. Split it at the corner. The pieces ⟨t,−t⟩\langle t, -t \rangle for −1≤t≤0-1 \le t \le 0 and ⟨t,t⟩\langle t, t \rangle for 0≤t≤10 \le t \le 1 both have constant nonzero velocity, so the V shape is piecewise regular.

The arc length element

Definition Let CC be a regular curve with parametrization r(t)\mathbf{r}(t), a≤t≤ba \le t \le b. The arc length function measured from r(a)\mathbf{r}(a) is

s(t)=∫at∣r′(u)∣ du,s(t) = \int_a^t \lvert \mathbf{r}'(u) \rvert \, du,

so by the fundamental theorem of calculus s′(t)=∣r′(t)∣s'(t) = \lvert \mathbf{r}'(t) \rvert. The arc length element is

ds=∣r′(t)∣ dt.ds = \lvert \mathbf{r}'(t) \rvert \, dt.

In plain words During a short time Δt\Delta t the point covers a distance of about speed times time, ∣r′(t)∣Δt\lvert \mathbf{r}'(t) \rvert \Delta t. That speed factor converts a step in the parameter into a step in length.

Example For the helix r(t)=⟨cos⁡t,sin⁡t,t⟩\mathbf{r}(t) = \langle \cos t, \sin t, t \rangle, the velocity is ⟨−sin⁡t,cos⁡t,1⟩\langle -\sin t, \cos t, 1 \rangle and the speed is

∣r′(t)∣=sin⁡2t+cos⁡2t+1=2.\begin{aligned} \lvert \mathbf{r}'(t) \rvert &= \sqrt{\sin^2 t + \cos^2 t + 1} \\[0.4em] &= \sqrt{2}. \end{aligned}

So ds=2 dtds = \sqrt{2} \, dt, and one full turn, 0≤t≤2π0 \le t \le 2\pi, has length 22 π≈8.892\sqrt{2}\,\pi \approx 8.89.

Integration with respect to arc length

Definition Let CC be a regular curve in Rn\mathbb{R}^n and ff a function defined on CC. Cut CC into NN arcs of lengths Δs1,…,ΔsN\Delta s_1, \dots, \Delta s_N and pick a point Pi∗P_i^* on the iith arc. The scalar line integral of ff over CC is

∫Cf ds=lim⁡max⁡Δsi→0∑i=1Nf(Pi∗) Δsi,\int_C f \, ds = \lim_{\max \Delta s_i \to 0} \sum_{i=1}^{N} f(P_i^*) \, \Delta s_i,

when this limit exists and is the same for every choice of cuts and points. If ff is continuous on CC and r(t)\mathbf{r}(t), a≤t≤ba \le t \le b, is a regular parametrization that traces CC exactly once (one-to-one, except possibly r(a)=r(b)\mathbf{r}(a) = \mathbf{r}(b) for a closed curve), the limit exists and

∫Cf ds=∫abf(r(t)) ∣r′(t)∣ dt.\int_C f \, ds = \int_a^b f(\mathbf{r}(t)) \, \lvert \mathbf{r}'(t) \rvert \, dt.

With f=1f = 1 the integral is the length of CC.

In plain words Each small piece contributes two separate factors, the value of ff there and the length of the piece. To compute, substitute the parametrization into ff, multiply by the speed, and do an ordinary integral in tt.

Example Take f(x,y)=xyf(x, y) = xy on the quarter circle of radius 22 from (2,0)(2, 0) to (0,2)(0, 2). With r(t)=⟨2cos⁡t,2sin⁡t⟩\mathbf{r}(t) = \langle 2\cos t, 2\sin t \rangle, 0≤t≤π/20 \le t \le \pi/2, the speed is 22 and f(r(t))=4cos⁡tsin⁡tf(\mathbf{r}(t)) = 4\cos t \sin t. So

∫Cxy ds=∫0π/24cos⁡tsin⁡t⋅2 dt=4sin⁡2t ∣0π/2=4.\begin{aligned} \int_C xy \, ds &= \int_0^{\pi/2} 4\cos t \sin t \cdot 2 \, dt \\[0.4em] &= 4\sin^2 t \, \Big|_0^{\pi/2} = 4. \end{aligned}

Integrals over piecewise regular curves

Definition If C=C1∪⋯∪CmC = C_1 \cup \cdots \cup C_m is piecewise regular and ff is continuous on CC, then

∫Cf ds=∫C1f ds+∫C2f ds+⋯+∫Cmf ds,\begin{aligned} \int_C f \, ds &= \int_{C_1} f \, ds + \int_{C_2} f \, ds \\[0.4em] &\quad + \cdots + \int_{C_m} f \, ds, \end{aligned}

where each piece is computed with its own regular parametrization.

In plain words Break the curve at its corners, integrate along each smooth piece, and add the results.

Example Let f(x,y)=x+y2f(x, y) = x + y^2 and let CC go from (0,0)(0, 0) to (1,0)(1, 0) and then up to (1,1)(1, 1). On the first piece take r1(t)=⟨t,0⟩\mathbf{r}_1(t) = \langle t, 0 \rangle with speed 11, so f=tf = t. On the second take r2(t)=⟨1,t⟩\mathbf{r}_2(t) = \langle 1, t \rangle with speed 11, so f=1+t2f = 1 + t^2. Both run over 0≤t≤10 \le t \le 1, and

∫Cf ds=∫01t dt+∫01(1+t2) dt=12+43=116.\begin{aligned} \int_C f \, ds &= \int_0^1 t \, dt + \int_0^1 (1 + t^2) \, dt \\[0.4em] &= \frac{1}{2} + \frac{4}{3} = \frac{11}{6}. \end{aligned}

Density on a wire, mass and balance point

Definition A thin wire in the shape of a piecewise regular curve CC with continuous linear density δ≥0\delta \ge 0, measured in mass per unit length, has mass

m=∫Cδ ds.m = \int_C \delta \, ds.

If m>0m > 0, its center of mass (xˉ,yˉ,zˉ)(\bar{x}, \bar{y}, \bar{z}) is given by

xˉ=1m∫Cx δ ds,yˉ=1m∫Cy δ ds,zˉ=1m∫Cz δ ds,\begin{gathered} \bar{x} = \frac{1}{m} \int_C x \, \delta \, ds, \\[0.4em] \bar{y} = \frac{1}{m} \int_C y \, \delta \, ds, \\[0.4em] \bar{z} = \frac{1}{m} \int_C z \, \delta \, ds, \end{gathered}

with only the first two for a wire in the plane.

In plain words Mass is density times length, added up along the wire. The balance point is the average position, where each piece is weighted by its mass.

Example A wire lies on the upper half of the unit circle, r(t)=⟨cos⁡t,sin⁡t⟩\mathbf{r}(t) = \langle \cos t, \sin t \rangle, 0≤t≤π0 \le t \le \pi, with density δ(x,y)=y\delta(x, y) = y, so it gets heavier toward the top. The speed is 11. The mass is

m=∫0πsin⁡t dt=2.m = \int_0^\pi \sin t \, dt = 2.

The integral of xδx\delta is the integral of cos⁡tsin⁡t\cos t \sin t over [0,π][0, \pi], which is 00, so xˉ=0\bar{x} = 0 as the symmetry suggests. For the other coordinate,

yˉ=12∫0πsin⁡2t dt=12⋅π2=π4≈0.785.\begin{aligned} \bar{y} &= \frac{1}{2} \int_0^\pi \sin^2 t \, dt \\[0.4em] &= \frac{1}{2} \cdot \frac{\pi}{2} = \frac{\pi}{4} \approx 0.785. \end{aligned}

The balance point (0,π/4)(0, \pi/4) lies below the wire, in empty space, which is normal for a curved wire.

Parametrization independence

Definition Let r(t)\mathbf{r}(t), a≤t≤ba \le t \le b, be a regular parametrization of CC and let φ:[c,d]→[a,b]\varphi : [c, d] \to [a, b] be a one-to-one and onto function with continuous derivative and φ′(u)≠0\varphi'(u) \ne 0 for all uu. Then q(u)=r(φ(u))\mathbf{q}(u) = \mathbf{r}(\varphi(u)) is another regular parametrization of CC, and for every ff continuous on CC

∫cdf(q(u)) ∣q′(u)∣ du=∫abf(r(t)) ∣r′(t)∣ dt.\begin{aligned} &\int_c^d f(\mathbf{q}(u)) \, \lvert \mathbf{q}'(u) \rvert \, du \\[0.4em] &\quad = \int_a^b f(\mathbf{r}(t)) \, \lvert \mathbf{r}'(t) \rvert \, dt. \end{aligned}

The reason is the chain rule, q′(u)=r′(φ(u)) φ′(u)\mathbf{q}'(u) = \mathbf{r}'(\varphi(u)) \, \varphi'(u), followed by the substitution t=φ(u)t = \varphi(u), where the absolute value ∣φ′(u)∣\lvert \varphi'(u) \rvert is exactly what the substitution needs whether φ\varphi increases or decreases. Any two regular parametrizations that trace CC exactly once are related by such a φ\varphi, after splitting CC at the two starting points when CC is closed and they start at different points, so the value of ∫Cf ds\int_C f \, ds does not depend on which one you use. The once condition matters, since a parametrization that runs around a circle twice gives twice the integral.

In plain words The integral depends only on the curve and on ff, not on how fast or in which way you trace it. A faster parametrization covers each piece in less parameter time, and the larger speed factor makes up for it exactly.

Example Let CC be the segment from (0,0)(0, 0) to (3,4)(3, 4) and f(x,y)=x+yf(x, y) = x + y. With r(t)=⟨3t,4t⟩\mathbf{r}(t) = \langle 3t, 4t \rangle, 0≤t≤10 \le t \le 1, the speed is 55 and

∫017t⋅5 dt=352.\int_0^1 7t \cdot 5 \, dt = \frac{35}{2}.

With the slower q(u)=⟨3u/2,2u⟩\mathbf{q}(u) = \langle 3u/2, 2u \rangle, 0≤u≤20 \le u \le 2, the speed is 5/25/2 and

∫027u2⋅52 du=354⋅2=352.\int_0^2 \frac{7u}{2} \cdot \frac{5}{2} \, du = \frac{35}{4} \cdot 2 = \frac{35}{2}.

Orientation invariance

Definition If r(t)\mathbf{r}(t), a≤t≤ba \le t \le b, traces CC in one direction, then r−(t)=r(a+b−t)\mathbf{r}^-(t) = \mathbf{r}(a + b - t), a≤t≤ba \le t \le b, traces the same points in the opposite direction. Its speed is ∣r′(a+b−t)∣\lvert \mathbf{r}'(a + b - t) \rvert, and for ff continuous on CC

∫−Cf ds=∫Cf ds,\int_{-C} f \, ds = \int_C f \, ds,

where −C-C is CC with the reversed direction. This is the special case φ(u)=a+b−u\varphi(u) = a + b - u of parametrization independence. In particular the length of a curve does not depend on its direction.

In plain words The element dsds is a length, and lengths are never negative, so walking the wire backwards gives the same mass. This is different from the integrals ∫Cf dx\int_C f \, dx and ∫CF⋅dr\int_C \mathbf{F} \cdot d\mathbf{r} of the next lesson, which change sign when the direction is reversed.

Example Trace the quarter circle from the earlier example the other way, from (0,2)(0, 2) to (2,0)(2, 0), with r−(t)=⟨2sin⁡t,2cos⁡t⟩\mathbf{r}^-(t) = \langle 2\sin t, 2\cos t \rangle, 0≤t≤π/20 \le t \le \pi/2. The speed is still 22 and the integrand is still 4sin⁡tcos⁡t⋅24\sin t \cos t \cdot 2, so

∫−Cxy ds=4=∫Cxy ds.\int_{-C} xy \, ds = 4 = \int_C xy \, ds.

Check yourself

  1. Find the integral of f(x,y)=xf(x, y) = x with respect to arc length along the segment from (1,2)(1, 2) to (4,6)(4, 6). Does the answer change if the segment is traced from (4,6)(4, 6) to (1,2)(1, 2)?
Show the answer

Use r(t)=⟨1+3t,2+4t⟩\mathbf{r}(t) = \langle 1 + 3t, 2 + 4t \rangle, 0≤t≤10 \le t \le 1, with speed 55. Then

∫Cx ds=∫01(1+3t)⋅5 dt=5(1+32)=252.\begin{aligned} \int_C x \, ds &= \int_0^1 (1 + 3t) \cdot 5 \, dt \\[0.4em] &= 5 \left( 1 + \frac{3}{2} \right) = \frac{25}{2}. \end{aligned}

The answer stays 25/225/2 for the opposite direction, because scalar line integrals do not depend on orientation.

  1. A wire has the shape of one turn of the helix r(t)=⟨cos⁡t,sin⁡t,t⟩\mathbf{r}(t) = \langle \cos t, \sin t, t \rangle, 0≤t≤2π0 \le t \le 2\pi, and its density is δ(x,y,z)=z\delta(x, y, z) = z. Find its mass.
Show the answer

The speed is 2\sqrt{2} and δ(r(t))=t\delta(\mathbf{r}(t)) = t, so

m=∫02πt2 dt=2⋅(2π)22=22 π2≈27.9.\begin{aligned} m &= \int_0^{2\pi} t \sqrt{2} \, dt = \sqrt{2} \cdot \frac{(2\pi)^2}{2} \\[0.4em] &= 2\sqrt{2}\,\pi^2 \approx 27.9. \end{aligned}
  1. A wire of constant density lies on the quarter circle x2+y2=a2x^2 + y^2 = a^2 in the first quadrant, with a>0a > 0. Find its balance point.
Show the answer

Let the density be k>0k > 0 and use r(t)=⟨acos⁡t,asin⁡t⟩\mathbf{r}(t) = \langle a\cos t, a\sin t \rangle, 0≤t≤π/20 \le t \le \pi/2, with speed aa. The mass is kaπ/2k a \pi / 2 and

∫Cx k ds=∫0π/2kacos⁡t⋅a dt=ka2,\begin{aligned} \int_C x \, k \, ds &= \int_0^{\pi/2} k a \cos t \cdot a \, dt \\[0.4em] &= k a^2, \end{aligned}

so xˉ=2a/π\bar{x} = 2a/\pi. By symmetry about the line y=xy = x, also yˉ=2a/π\bar{y} = 2a/\pi. The balance point is (2a/π,2a/π)(2a/\pi, 2a/\pi), about (0.64a,0.64a)(0.64a, 0.64a).

How this lesson connects

It also uses Arc length and regular parametrized curves and Scalar density and one-variable integration.