Skip to main content

Section 10.1 Line Integrals

Subsection 10.1.1 Motivation for Line Integrals

Recall that we have considered various types of integrals.
  • The definite integral \(\int_a^b f(x) \,dx\) is an integral over an interval \([a,b]\) in \(\mathbb{R}\)
  • A double integral \(\iint_D f(x,y) \,dA\) is an integral over a region \(D\) in \(\mathbb{R}^2\)
  • A triple integral \(\iiint_D f(x,y,z) \,dV\) is an integral over a region \(D\) in \(\mathbb{R}^3\text{.}\)
Intuitively,
  • The integral \(\int_a^b \,dx\) (where \(f(x) = 1\)) can be thought of as summing up small changes in \(x\text{,}\) over the interval \([a,b]\text{.}\)
  • More generally, the integral \(\int_a^b f(x) \,dx\) can be thought of as summing up the products \(f(x)\) and a small change in \(x\text{,}\) over \([a,b]\text{.}\)
Physically, this can be thought of as a quantity distributed along the \(x\)-axis between \(a\) and \(b\text{,}\) with line density \(f(x)\) at each point \(x\text{,}\) and finding the total quantity by summing up, over \([a,b]\text{,}\) the products,
\begin{equation*} \text{quantity} = \text{density} \times \text{width} = f(x) \times \,dx \end{equation*}
In a similar way,
  • Double integrals \(\iint_R f(x,y) \,dA\) can be thought of as summing up the products of function values \(f(x,y)\) and small pieces of area \(\,dA\text{,}\) over the region \(R\text{.}\)
  • Triple integrals \(\iiint_R f(x,y,z) \,dV\) can be thought of as summing up the products of function values \(f(x,y,z)\) and small pieces of volume \(\,dV\text{,}\) over the region \(R\text{.}\)
In fact, to be consistent with the double and triple integral notation, we could write \(\int_a^b f(x) \,dx\) as \(\int_I f(x) \,dx\text{,}\) where \(I = [a,b]\) is the “interval of integration”.
All integrals share the theme of being a sum, over a domain, of a product of a function with a small piece of that domain. Here, we will consider a line integral, which is an integral over a curve.

Subsection 10.1.2 Line Integrals

Consider a mass distributed along a curve in the plane or 3-space, with mass density \(f\) at each point along the curve. For example, a wire with varying mass density along its length. We want to find the total mass of the wire. To do this, we can find the sum, along the curve, of the product of the function value \(f\) and a small segment of the curve.
Consider a curve \(\mathcal{C}\) in the plane, with parametrization \(\vec{r}(t)\text{,}\) \(a \leq t \leq b\text{,}\) and let \(f(x,y)\) be the density at each point \((x,y)\text{.}\) Partition the interval \([a,b]\) into \(a = t_0 \lt t_1 \lt \dots \lt t_n = b\text{.}\) This partition divides the curve into \(n\) small arcs (or “subarcs”). On each arc, choose a sample point \((x(t_k^*), y(t_k^*))\) and let \(\Delta s_k\) denote the arc length of the \(k\)th piece, where \(k=1,2, \dots, n\text{.}\)
Then, the mass of the \(k\)th piece of the wire is approximately,
\begin{align*} \text{mass} \amp\approx \text{density} \times \text{length}\\ \amp= f(x(t_k^{*}), y(t_k^{*})) \cdot \Delta s_k \end{align*}
Then, the total mass of the wire is approximated by the sum of all the pieces,
\begin{equation*} S_n = \sum_{k=1}^n f(x(t_k^{*}), y(t_k^{*})) \, \Delta s_k \end{equation*}
This is a Riemann sum of \(f(x,y)\) with respect to arc length, so as \(n \to \infty\) (and the maximum \(\Delta s_k \to 0\)), the sum intuitively approaches the exact mass of the wire.

Definition 10.1.1. Line Integral.

The line integral of \(f\) along \(\mathcal{C}\) is given by,
\begin{equation*} \boxed{\int_{\mathcal{C}} f(x,y) \,ds = \lim_{n \to \infty} \sum_{k=1}^n f(x(t_k^{*}), y(t_k^{*})) \, \Delta s_k} \end{equation*}
If \(f\) is the linear mass density (mass per unit length), then,
\begin{equation*} \text{total mass of the wire} = \int_{\mathcal{C}} f(x,y) \,ds \end{equation*}
More generally, a line integral can represent any quantity distributed along a curve, with density \(f\) at each point. For example,
  • Total charge along a wire with charge density \(f\)
  • Total amount of some substance distributed along a curve with density \(f\text{.}\)

Remark 10.1.2.

Sometimes, we use the more compact notations for a line integral,
\begin{equation*} \int_C f(\vec{r}(t)) \,ds \qquad \text{or} \qquad \int_C f \,ds \end{equation*}

Remark 10.1.3.

Recall that a curve \(\mathcal{C}\) is smooth if it has a parametrization \(\vec{r}(t)\) such that \(\vec{r}'(t)\) is continuous and \(\vec{r}'(t) \neq \vec{0}\) for all \(t\) in the interval of parametrization.

Remark 10.1.4.

If \(\mathcal{C}\) is piecewise smooth, and \(f\) is continuous on \(\mathcal{C}\text{,}\) then the line integral will exist, and will be equal to the sum of the line integrals along each smooth arc.
If \(\mathcal{C}\) is a closed curve, then the line integral is often written with a circle on the integral sign, as
\begin{equation*} \oint_{\mathcal{C}} f(x,y,z) \,ds \end{equation*}
This is just for emphasis, and does not change the meaning of the integral.
Line integrals are actually better described as “curve integrals”, because they are integrals over a curve, which is not necessarily a line.

Subsection 10.1.3 Geometric Interpretation of Line Integral

The line integral \(\int_C f(x,y)\,ds\) also has a geometric interpretation: it is the area of the vertical, curtain-like surface between the curve \(C\) in the \(xy\)-plane and the curve \(z = f(x,y)\) above it. Intuitively, imagine a vertical “wall” or “fence” standing on the curve \(C\text{,}\) whose height at each point \((x,y)\) is \(f(x,y)\text{.}\) The line integral gives the total area of one side of this wall. It’s like a lateral surface area.
Each thin vertical strip of the curtain has approximate area \(f(x(t_k^*), y(t_k^*)) \cdot \Delta s_k\) (height times width). Summing all the strips and taking the limit gives the line integral \(\int_C f(x,y)\,ds\text{.}\)
This works as long as \(f(x,y) \geq 0\text{,}\) otherwise the line integral can be thought of as a signed area (similar to the regular definite integral).
Here is a Desmos link, where you can visualize the line integral as a curtain, for any function and any curve: Line Integral Visualization.

Subsection 10.1.4 Evaluating Line Integrals

The line integral of \(f\) along \(\mathcal{C}\) is not a typical integral, because the variable of integration is the arc length parameter \(s\text{.}\) To evaluate it, we need to express \(ds\) in terms of a parametrization \(t\) of the curve.
Let \(\mathcal{C}\) be a curve with parametrization \(\vec{r}(t) = \vecii{x(t)}{y(t)}\text{,}\) \(a \leq t \leq b\text{.}\)
Recall that the arc length of the curve \(\mathcal{C}\) is given by,
\begin{equation*} \boxed{\int_{\mathcal{C}} \,ds = \int_a^b \sqrt{(x'(t))^2 + (y'(t))^2} \,dt = \int_a^b \abs{\vec{r}'(t)} \,dt} \end{equation*}
In particular, the arc length element \(ds\) is related to \(dt\) by,
\begin{equation*} ds = \abs{\vec{r}'(t)} \,dt = \sqrt{(x'(t))^2 + (y'(t))^2} \,dt \end{equation*}
In a similar way, the line integral of \(f\) over \(\mathcal{C}\) can be expressed in terms of the parameter \(t\text{.}\)
From this perspective, arc length is a special case of the more general line integral. If the density function is \(f(x,y)=1\text{,}\) the line integral reduces to the arc length of the curve. All of this works as long as \(\mathcal{C}\) is smooth, or at least piecewise smooth, and \(f\) is continuous on \(\mathcal{C}\text{.}\)

Remark 10.1.6.

In fact, the value of the line integral is independent of the parametrization of \(\mathcal{C}\text{,}\) and its orientation. In other words, even if we traverse the curve in the opposite direction, the line integral will have the same value. This is unlike the standard \(\int_a^b f(x) \,dx\text{,}\) where reversing the limits of integration changes the sign of the integral. This is because the line integral is a sum of products of function values and arc length elements, and the arc length element \(ds\) is always positive, regardless of the direction of traversal.

Remark 10.1.7.

The line integral is a generalization of the “regular” definite integral. In the special case where \(\mathcal{C}\) is the \(x\)-axis from \(x = a\) to \(x = b\text{,}\) it can be parameterized by \(\vec{r}(t) = \vecii{t}{0}\) for \(a \leq t \leq b\text{,}\) so \(\abs{\vec{r}'(t)} = 1\text{.}\) Then, the integral becomes,
\begin{equation*} \int_{\mathcal{C}} f(x,y) \,ds = \int_a^b f(t,0) \,dt \end{equation*}
This is just the usual definite integral of \(f(x,0)\) from \(a\) to \(b\) (labeling \(t\) as \(x\)).
When setting up a line integral, often the most difficult part is finding a parametrization of the curve \(\mathcal{C}\text{.}\)

Subsection 10.1.5 Line Integrals in Space

Line integrals can be extended to curves in 3-space. Again, consider a mass distributed along a curve \(\mathcal{C}\) in 3-space (like a wire), with mass density \(f(x,y,z)\) at each point \((x,y,z)\text{.}\) Then, the total mass of the wire can be found by summing up, along the curve, the products of the density \(f\) and small segments of the curve. Let \(\mathcal{C}\) have parametrization \(\vec{r}(t) = \veciii{x(t)}{y(t)}{z(t)}\text{,}\) \(a \leq t \leq b\text{.}\) Then,
\begin{equation*} \int_{\mathcal{C}} f(x,y,z) \,ds = \lim_{n \to \infty} \sum_{k=1}^n f(x(t_k^{*}), y(t_k^{*}), z(t_k^{*})) \, \Delta s_k \end{equation*}
Similarly, to evaluate this integral,
\begin{equation*} \boxed{\int_{\mathcal{C}} f(x,y,z) \,ds = \int_a^b f(x(t), y(t), z(t)) \sqrt{(x'(t))^2 + (y'(t))^2 + (z'(t))^2} \,dt = \int_a^b f(\vec{r}(t)) \cdot \abs{\vec{r}'(t)} \,dt} \end{equation*}
The integrals in the plane and in space can both be written in the compact form with vector notation,
\begin{equation*} \int_a^b f(\vec{r}(t)) \cdot \abs{\vec{r}'(t)} \,dt \end{equation*}

Subsection 10.1.6 Examples

Checkpoint 10.1.8. True or False.

Determine whether each statement is true or false.
(a)
If a curve has a parametric description \(r(t)=\langle x(t),y(t),z(t) \rangle\text{,}\) where \(t\) is the arc length, then \(|r'(t)|=1\)
Answer.
True

Exercise Group 10.1.1. Line Integrals Along Given Paths (\(\star\)).

Evaluate the line integral along the given path \(C\text{.}\)
(a)
\(\int_C xy\,ds\text{,}\) \(C:\mathbf{r}(t)=4t\,\mathbf{i}+3t\,\mathbf{j}\text{,}\) \(0\le t\le 1\)
Answer.
\(20\)
(b)
\(\int_C xy^3 ds\text{,}\) where \(C\) is the quarter-circle \(r(t)=\langle 2\cos t,2\sin t \rangle\text{,}\) \(0 \le t \le \frac{\pi}{2}\)
Answer.
\(8\)
(c)
\(\int_C 3(x-y)\,ds\text{,}\) \(C:\mathbf{r}(t)=t\,\mathbf{i}+(2-t)\,\mathbf{j}\text{,}\) \(0\le t\le 2\)
Answer.
\(0\)
(d)
\(\int_C (x^2-2y^2) ds\text{,}\) where \(C\) is the line segment \(r(t)=\left\langle \frac{t}{\sqrt{2}},\frac{t}{\sqrt{2}} \right\rangle\text{,}\) \(0 \le t \le 4\)
Answer.
\(-\frac{32}{3}\)
(e)
\(\int_C xy\, ds\text{,}\) where \(C\) is the unit circle \(r(t)=\langle \cos t,\sin t \rangle\text{,}\) \(0 \le t \le 2\pi\)
Answer.
\(0\)
(f)
\(\int_C (2x+y)\, ds\text{,}\) where \(C\) is the line segment \(r(t)=\langle 3t,4t \rangle\text{,}\) \(0 \le t \le 2\)
Answer.
\(100\)
(g)
\(\int_C x\, ds\text{,}\) where \(C\) is the curve \(r(t)=\langle t^3,4t \rangle\text{,}\) \(0 \le t \le 1\)
Answer.
\(\frac{61}{54}\)
(h)
\(\int_C 3x\cos y\, ds\text{,}\) where \(C\) is the curve \(r(t)=\langle \sin t,t \rangle\text{,}\) \(0 \le t \le \frac{\pi}{2}\)
Answer.
\(2\sqrt{2}-1\)
(i)
\(\int_C (x-y+3)\, ds\text{,}\) where \(C\) is the curve \(r(t)=(\cos t)\,\mathbf{i}+(\sin t)\,\mathbf{j}\text{,}\) \(0\le t\le 2\pi\)
Answer.
\(6\pi\)
(j)
\(\int_C y^3\, ds\text{,}\) \(C: x=t^3,\ y=t\text{,}\) \(0\le t\le 2\)
Answer.
\(\frac{145\sqrt{145}-1}{54}\)
(k)
\(\int_C xy\, ds\text{,}\) \(C: x=t^2,\ y=2t\text{,}\) \(0\le t\le 1\)
Answer.
\(\frac{8(\sqrt{2}+1)}{15}\)
(l)
\(\int_C \frac{x^2}{y^{4/3}}\,ds\text{,}\) where \(C\) is the curve \(x=t^2\text{,}\) \(y=t^3\text{,}\) for \(1\le t\le 2\)
Answer.
\(\frac{80\sqrt{10}-13\sqrt{13}}{27}\)
(m)
Find the line integral of \(f(x,y)=\frac{\sqrt{y}}{x}\) along the curve \(r(t)=t^3\,\mathbf{i}+t^4\,\mathbf{j}\text{,}\) \(\frac{1}{2}\le t\le 1\)
Answer.
\(\frac{125-13\sqrt{13}}{48}\)

Exercise Group 10.1.2. Line Integrals in 3D (\(\star\star\)).

Evaluate each line integral along the given path \(C\text{.}\)
(a)
\(\int_C (x^2+y^2+z^2)\,ds\text{,}\) \(C:\mathbf{r}(t)=\sin t\,\mathbf{i}+\cos t\,\mathbf{j}+2\,\mathbf{k}\text{,}\) \(0\le t\le \frac{\pi}{2}\)
Answer.
\(\frac{5\pi}{2}\)
(b)
\(\int_C 2xyz\,ds\text{,}\) \(C:\mathbf{r}(t)=12t\,\mathbf{i}+5t\,\mathbf{j}+84t\,\mathbf{k}\text{,}\) \(0\le t\le 1\)
Answer.
\(214200\)
(c)
\(\int_C (y-z)\, ds\text{,}\) where \(C\) is the helix \(r(t)=\langle 3\cos t,3\sin t,4t \rangle\text{,}\) \(0 \le t \le 2\pi\)
Answer.
\(-40\pi^2\)
(d)
\(\int_C (x-y+2z)\, ds\text{,}\) where \(C\) is the circle \(r(t)=\langle 1,3\cos t,3\sin t \rangle\text{,}\) \(0 \le t \le 2\pi\)
Answer.
\(6\pi\)
(e)
\(\int_C (x^2-y+3z)\,ds\text{,}\) where \(C\) is the line segment from \((0,0,0)\) to \((1,2,1)\)
Answer.
\(\frac{5\sqrt{6}}{6}\)
(f)
\(\int_C (x+y)\,ds\text{,}\) where \(C\) is parametrized by \(\mathbf{r}(t) = \langle at, bt, ct \rangle\text{,}\) \(0 \le t \le m\)
Answer.
\(\frac{(a+b)\sqrt{a^2+b^2+c^2}}{2}\,m^2\)
(g)
\(\int_C (x+y)\,ds\text{,}\) where \(C\) is the straight-line segment \(x=t\text{,}\) \(y=1-t\text{,}\) \(z=0\text{,}\) from \((0,1,0)\) to \((1,0,0)\)
Answer.
\(\sqrt{2}\)
(h)
\(\int_C (x-y+z-2)\,ds\text{,}\) where \(C\) is the straight-line segment \(x=t\text{,}\) \(y=1-t\text{,}\) \(z=1\text{,}\) from \((0,1,1)\) to \((1,0,1)\)
Answer.
\(-\sqrt{2}\)
(i)
\(\int_C (xy+y+z)\,ds\) along the curve \(r(t)=2t\,\mathbf{i}+t\,\mathbf{j}+(2-2t)\,\mathbf{k}\text{,}\) \(0\le t\le 1\)
Answer.
\(\frac{13}{2}\)
(j)
\(\int_C \sqrt{x^2+y^2}\,ds\) along the curve \(r(t)=(4\cos t)\,\mathbf{i}+(4\sin t)\,\mathbf{j}+3t\,\mathbf{k}\text{,}\) \(-2\pi\le t\le 2\pi\)
Answer.
\(80\pi\)
(k)
\(\int_C (x+y+z)\,ds\) over the straight-line segment from \((1,2,3)\) to \((0,-1,1)\)
Answer.
\(3\sqrt{14}\)
(l)
\(\int_C \frac{\sqrt3}{x^2+y^2+z^2}\,ds\) over the curve \(r(t)=t\,\mathbf{i}+t\,\mathbf{j}+t\,\mathbf{k}\text{,}\) \(1\le t\lt\infty\)
Answer.
\(1\)
(m)
\(\int_C y\,ds\text{,}\) where \(C\) is parametrized by \(\mathbf{r}(t) = \langle t^2, t, t^2 \rangle\text{,}\) \(0 \le t \le 1\)
Answer.
\(\frac{13}{12}\)
(n)
\(\int_C xyz\, ds\text{,}\) \(C: x=2\sin t,\ y=t,\ z=-2\cos t\text{,}\) \(0\le t\le \pi\)
Answer.
\(\pi\sqrt{5}\)
(o)
\(\int_C (2x+9z)\,ds\text{,}\) \(C: x=t,\ y=t^2,\ z=t^3\text{,}\) \(0\le t\le 1\)
Answer.
\(\frac{14\sqrt{14}-1}{6}\)
(p)
\(\int_C xe^{yz}\, ds\text{,}\) where \(C\) is the curve \(r(t)=\langle t,2t,-2t \rangle\text{,}\) \(0 \le t \le 2\)
Answer.
\(\frac{3}{8}\brac{1-e^{-16}}\)
(q)
\(\int_C (x+y+z)\, ds\text{,}\) where \(C\) is the semicircle \(r(t)=\langle 2\cos t,0,2\sin t \rangle\text{,}\) \(0 \le t \le \pi\)
Answer.
\(8\)
(r)
\(\int_C \frac{1}{y}\,ds\text{,}\) where \(C\) is parametrized by \(\mathbf{r}(t) = \langle 2, 2e^t, e^{2t} \rangle\text{,}\) \(-1 \le t \le 1\)
Answer.
\(\frac{3e}{2}+\frac{1}{2e}\)

Checkpoint 10.1.9. Two Paths for \(\int_C x\,ds\) (\(\star\)).

Evaluate \(\int_C x\,ds\text{,}\) where \(C\) is
(a)
the straight-line segment \(x=t\text{,}\) \(y=\frac{t}{2}\text{,}\) from \((0,0)\) to \((4,2)\)
Answer.
\(4\sqrt5\)
(b)
the parabolic curve \(x=t\text{,}\) \(y=t^2\text{,}\) from \((0,0)\) to \((2,4)\)
Answer.
\(\frac{17\sqrt{17}-1}{12}\)

Exercise Group 10.1.3. Line Integrals on Various Curves (\(\star\star\)).

Evaluate each line integral, where \(C\) is the given curve.
(a)
\(\int_C (x^2+y^2)\,ds\text{,}\) where \(C\) is the line segment from the origin to \((2,1)\)
Answer.
\(\frac{5\sqrt{5}}{3}\)
(b)
\(\int_C xy^4\, ds\text{,}\) \(C\) is the right half of the circle \(x^2+y^2=16\)
Answer.
\(\frac{8192}{5}\)
(c)
\(\int_C x\sin y\, ds\text{,}\) \(C\) is the line segment from \((0,3)\) to \((4,6)\)
Answer.
\(\frac{20}{9}(\sin 6-\sin 3-3\cos 6)\)
(d)
\(\int_C (x^2y^3-\sqrt{x})\,ds\text{,}\) \(C\) is the arc of the curve \(y=\sqrt{x}\) from \((1,1)\) to \((4,2)\)
Answer.
\(\frac{137411\sqrt{17}+1525\sqrt{5}}{5040}\)
(e)
\(\int_C (x^2+y^2)\, ds\text{,}\) where \(C\) is the circle of radius 4 centered at \((0,0)\)
Answer.
\(128\pi\)
(f)
\(\int_C xy\, ds\text{,}\) where \(C\) is the portion of the ellipse \(\frac{x^2}{4}+\frac{y^2}{16}=1\) in the first quadrant, oriented counterclockwise
Answer.
\(\frac{112}{9}\)

Exercise Group 10.1.4. Integrating Functions Over Curves (\(\star\star\)).

Integrate \(f\) over the given curve \(C\text{.}\)
(a)
\(f(x,y)=\frac{x^3}{y}\text{,}\) \(C:y=\frac{x^2}{2}\text{,}\) \(0\le x\le 2\)
Answer.
\(\frac{2}{3}(5\sqrt5-1)\)
(b)
\(f(x,y)=\frac{x+y^2}{\sqrt{1+x^2}}\text{,}\) \(C:y=\frac{x^2}{2}\) from \((1,\frac{1}{2})\) to \((0,0)\)
Answer.
\(\frac{11}{20}\)
(c)
\(f(x,y)=x+y\text{,}\) \(C:x^2+y^2=4\) in the first quadrant from \((2,0)\) to \((0,2)\)
Answer.
\(8\)
(d)
\(f(x,y)=x^2-y\text{,}\) \(C:x^2+y^2=4\) in the first quadrant from \((0,2)\) to \((\sqrt2,\sqrt2)\)
Answer.
\(\pi-2-2\sqrt2\)
(e)
Find the line integral of \(f(x,y)=ye^{x^2}\) along the curve \(r(t)=4t\,\mathbf{i}-3t\,\mathbf{j}\text{,}\) \(-1\le t\le 2\)
Answer.
\(\frac{15}{32}\brac{e^{16}-e^{64}}\)

Checkpoint 10.1.10. Two Paths for \(\int_C \sqrt{x+2y}\,ds\) (\(\star\star\)).

Evaluate \(\int_C \sqrt{x+2y}\,ds\text{,}\) where \(C\) is
(a)
the straight-line segment \(x=t\text{,}\) \(y=4t\text{,}\) from \((0,0)\) to \((1,4)\)
Answer.
\(2\sqrt{17}\)
(b)
\(C_1\cup C_2\text{,}\) where \(C_1\) is the line segment from \((0,0)\) to \((1,0)\) and \(C_2\) is the line segment from \((1,0)\) to \((1,2)\)
Answer.
\(\frac{5\sqrt5+1}{3}\)

Exercise Group 10.1.5. Scalar Line Integrals (\(\star\star\)).

Evaluate each scalar line integral.
(a)
\(\int_C (x^2+y^2)\, ds\text{,}\) where \(C\) is the line segment from \((0,0)\) to \((5,5)\)
Answer.
\(\frac{250\sqrt{2}}{3}\)
(b)
\(\int_C \frac{x}{x^2+y^2}\, ds\text{,}\) where \(C\) is the line segment from \((1,1)\) to \((10,10)\)
Answer.
\(\frac{\sqrt{2}}{2}\ln 10\)
(c)
\(\int_C (xy)^{\frac{1}{3}}\, ds\text{,}\) where \(C\) is the curve \(y=x^2\text{,}\) \(0 \le x \le 1\)
Answer.
\(\frac{5\sqrt{5}-1}{12}\)
(d)
\(\int_C (2x-3y)\, ds\text{,}\) where \(C\) is the line segment from \((-1,0)\) to \((0,1)\) followed by the line segment from \((0,1)\) to \((1,0)\)
Answer.
\(-3\sqrt{2}\)
(e)
\(\int_C \frac{xy}{z}\, ds\text{,}\) where \(C\) is the line segment from \((1,4,1)\) to \((3,6,3)\)
Answer.
\(10\sqrt{3}\)
(f)
\(\int_C xz\, ds\text{,}\) where \(C\) is the line segment from \((0,0,0)\) to \((3,2,6)\) followed by the line segment from \((3,2,6)\) to \((7,9,10)\)
Answer.
\(414\)
(g)
\(\int_C xyz^2\, ds\text{,}\) \(C\) is the line segment from \((-1,5,0)\) to \((1,6,4)\)
Answer.
\(\frac{236\sqrt{21}}{15}\)
(h)
\(\int_C xe^{yz}\, ds\text{,}\) \(C\) is the line segment from \((0,0,0)\) to \((1,2,3)\)
Answer.
\(\frac{\sqrt{14}(e^6-1)}{12}\)

Exercise Group 10.1.6. \(\int_C (x^2+y^2)\,ds\) for Various Paths (\(\star\star\)).

Evaluate \(\int_C (x^2+y^2)\, ds\) for each path \(C\text{.}\)
(a)
\(C\text{:}\) line segment from \((0,0)\) to \((1,1)\)
Hint.
\(\mathbf{r}(t)=\langle t,t\rangle\text{,}\) \(0\le t\le 1\)
Answer.
\(\frac{2\sqrt{2}}{3}\)
(b)
\(C\text{:}\) line segment from \((0,0)\) to \((2,4)\)
Hint.
\(\mathbf{r}(t)=\langle 2t,4t\rangle\text{,}\) \(0\le t\le 1\)
Answer.
\(\frac{40\sqrt{5}}{3}\)
(c)
\(C\text{:}\) counterclockwise around the circle \(x^2+y^2=1\) from \((1,0)\) to \((0,1)\)
Hint.
\(\mathbf{r}(t)=\langle \cos t,\sin t\rangle\text{,}\) \(0\le t\le \frac{\pi}{2}\)
Answer.
\(\frac{\pi}{2}\)
(d)
\(C\text{:}\) counterclockwise around the circle \(x^2+y^2=4\) from \((2,0)\) to \((-2,0)\)
Hint.
\(\mathbf{r}(t)=\langle 2\cos t,2\sin t\rangle\text{,}\) \(0\le t\le \pi\)
Answer.
\(8\pi\)

Exercise Group 10.1.7. \(\int_C \brac{2x+3\sqrt{y}}\,ds\) for Various Paths (\(\star\star\)).

Evaluate \(\int_C \brac{2x+3\sqrt{y}}\,ds\) for each path \(C\text{.}\)
(a)
\(C\text{:}\) line segments from \((0,0)\) to \((1,0)\) and \((1,0)\) to \((2,4)\)
Hint.
\(\mathbf{r}_1(t)=\langle t,0\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_2(t)=\langle 1+t,4t\rangle\text{,}\) \(0\le t\le 1\)
Answer.
\(1+7\sqrt{17}\)
(b)
\(C\text{:}\) line segments from \((0,1)\) to \((0,4)\) and \((0,4)\) to \((3,3)\)
Hint.
\(\mathbf{r}_1(t)=\langle 0,1+3t\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_2(t)=\langle 3t,4-t\rangle\text{,}\) \(0\le t\le 1\)
Answer.
\(14+19\sqrt{10}-6\sqrt{30}\)
(c)
\(C\text{:}\) counterclockwise around the triangle with vertices \((0,0)\text{,}\) \((1,0)\text{,}\) and \((0,1)\)
Hint.
\(\mathbf{r}_1(t)=\langle t,0\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_2(t)=\langle 1-t,t\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_3(t)=\langle 0,1-t\rangle\text{,}\) \(0\le t\le 1\)
Answer.
\(3+3\sqrt{2}\)
(d)
\(C\text{:}\) counterclockwise around the square with vertices \((0,0)\text{,}\) \((2,0)\text{,}\) \((2,2)\text{,}\) and \((0,2)\)
Hint.
\(\mathbf{r}_1(t)=\langle 2t,0\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_2(t)=\langle 2,2t\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_3(t)=\langle 2-2t,2\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_4(t)=\langle 0,2-2t\rangle\text{,}\) \(0\le t\le 1\)
Answer.
\(16+14\sqrt{2}\)

Checkpoint 10.1.11. Triangular Path in 3D (\(\star\star\star\)).

Evaluate \(\int_C \brac{2x+y^2-z}\,ds\) for the path \(C\) shown in the figure.
Hint.
Use the three line segments \((1,0,0)\to(1,0,1)\to(0,0,0)\to(1,0,0)\text{,}\) \(\mathbf{r}_1(t)=\langle 1,0,t\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_2(t)=\langle 1-t,0,1-t\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_3(t)=\langle t,0,0\rangle\text{,}\) \(0\le t\le 1\text{.}\)
Answer.
\(\frac{5+\sqrt{2}}{2}\)

Checkpoint 10.1.12. Triangular Path in 3D, Part 2 (\(\star\star\star\)).

Evaluate \(\int_C \brac{2x+y^2-z}\,ds\) for the path \(C\) shown in the figure.
Hint.
Use the three line segments \((0,0,0)\to(0,1,0)\to(0,1,1)\to(0,0,0)\text{,}\) \(\mathbf{r}_1(t)=\langle 0,t,0\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_2(t)=\langle 0,1,t\rangle\text{,}\) \(0\le t\le 1\text{;}\) \(\mathbf{r}_3(t)=\langle 0,1-t,1-t\rangle\text{,}\) \(0\le t\le 1\text{.}\)
Answer.
\(\frac{5-\sqrt{2}}{6}\)

Checkpoint 10.1.13. Piecewise Path \(C_1 \cup C_2\) (\(\star\star\star\)).

Integrate \(f(x,y,z)=x+\sqrt{y}-z^2\) over the path \(C_1\) followed by \(C_2\) from \((0,0,0)\) to \((1,1,1)\text{,}\) where \(C_1:r(t)=t\,\mathbf{i}+t^2\,\mathbf{j}\text{,}\) \(0\le t\le 1\text{,}\) and \(C_2:r(t)=\mathbf{i}+\mathbf{j}+t\,\mathbf{k}\text{,}\) \(0\le t\le 1\text{.}\)
Hint.
Use \(\int_{C_1} (2t)\sqrt{1+4t^2}\,dt+\int_{C_2} (2-t^2)\,dt\text{.}\)
Answer.
\(\frac{5\sqrt5+9}{6}\)

Checkpoint 10.1.14. Piecewise Path \(C_1 \cup C_2 \cup C_3\) (\(\star\star\star\)).

Integrate \(f(x,y,z)=x+\sqrt{y}-z^2\) over the path \(C_1\) followed by \(C_2\) followed by \(C_3\) from \((0,0,0)\) to \((1,1,1)\text{,}\) where \(C_1:r(t)=t\,\mathbf{k}\text{,}\) \(0\le t\le 1\text{,}\) \(C_2:r(t)=t\,\mathbf{j}+\mathbf{k}\text{,}\) \(0\le t\le 1\text{,}\) and \(C_3:r(t)=t\,\mathbf{i}+\mathbf{j}+\mathbf{k}\text{,}\) \(0\le t\le 1\text{.}\)
Hint.
Use \(\int_{C_1} (-t^2)\,dt+\int_{C_2} (\sqrt{t}-1)\,dt+\int_{C_3} t\,dt\text{.}\)
Answer.
\(-\frac{1}{6}\)

Checkpoint 10.1.15. Closed Curve with Parabola and Line (\(\star\star\star\)).

Evaluate \(\int_C (x+\sqrt{y})\,ds\text{,}\) where \(C\) is given in the accompanying figure.
Hint.
Add the integrals over the line segment \(y=x\) and the parabola \(y=x^2\text{.}\)
Answer.
\(\frac{5\sqrt5-1+7\sqrt2}{6}\)

Subsection 10.1.7 Advanced Examples

Checkpoint 10.1.16. Integral Over a Diagonal Line (\(\star\star\star\)).

Integrate \(f(x,y,z)=\frac{x+y+z}{x^2+y^2+z^2}\) over the path \(r(t)=t\,\mathbf{i}+t\,\mathbf{j}+t\,\mathbf{k}\text{,}\) \(0\lt a\le t\le b\)
Answer.
\(\sqrt3\ln\frac{b}{a}\)

Checkpoint 10.1.17. Integral Over a Circle in the \(yz\)-Plane (\(\star\star\star\)).

Integrate \(f(x,y,z)=-\sqrt{x^2+z^2}\) over the circle \(r(t)=(a\cos t)\,\mathbf{j}+(a\sin t)\,\mathbf{k}\text{,}\) \(0\le t\le 2\pi\)
Answer.
\(-4a^2\)

Checkpoint 10.1.18. Integral Over a Square Path (\(\star\star\star\star\)).

Evaluate \(\int_C \frac{1}{x^2+y^2+1}\,ds\text{,}\) where \(C\) is given in the accompanying figure.
Hint.
Split the square into its four sides and add the four scalar line integrals.
Answer.
\(\frac{\pi}{2}+\sqrt2\arctan\brac{\frac{1}{\sqrt2}}\)

Exercise Group 10.1.8. Technology-Assisted Line Integrals (\(\star\star\star\star\)).

Evaluate each line integral with respect to arc length, using technology.
(a)
\(\int_C x\sin(y+z)\,ds\text{,}\) where \(C\) has parametric equations \(x=t^2\text{,}\) \(y=t^3\text{,}\) \(z=t^4\text{,}\) \(0\le t\le 5\)
Answer.
\(\approx 15.0074\)
(b)
\(\int_C ze^{-xy}\,ds\text{,}\) where \(C\) has parametric equations \(x=t\text{,}\) \(y=t^2\text{,}\) \(z=e^{-t}\text{,}\) \(0\le t\le 1\)
Answer.
\(\approx 0.8208\)
(c)
\(\int_C z\ln(x+y)\,ds\text{,}\) where \(C\) has parametric equations \(x=1+3t\text{,}\) \(y=2+t^2\text{,}\) \(z=t^4\text{,}\) \(-1\le t\le 1\)
Answer.
\(\approx 1.7260\)
(d)
\(\int_C x^3y^2z\,ds\text{,}\) where \(C\) is the curve with parametric equations \(x=e^{-t}\cos 4t\text{,}\) \(y=e^{-t}\sin 4t\text{,}\) \(z=e^{-t}\text{,}\) \(0\le t\le 2\pi\)
Answer.
\(\frac{172704\sqrt{2}}{5632705}\brac{1-e^{-14\pi}}\)

Subsection 10.1.8 Applications: Mass, Center of Mass, and Area

Exercise Group 10.1.9. Mass of a Spring.

Find the total mass of a spring with density \(\rho\) in the shape of the circular helix \(\mathbf{r}(t)=2\cos t\,\mathbf{i}+2\sin t\,\mathbf{j}+t\,\mathbf{k}\text{,}\) \(0\le t\le 4\pi\text{.}\)
(a)
\(\rho(x,y,z)=\frac{1}{2}(x^2+y^2+z^2)\)
Answer.
\(\frac{8\sqrt{5}\pi(3+4\pi^2)}{3}\)

Checkpoint 10.1.19. Mass of a Helix Spring.

Find the total mass of a spring in the shape of the helix \(\mathbf{r}(t)=\cos t\,\mathbf{i}+\sin t\,\mathbf{j}+t\,\mathbf{k}\text{,}\) \(0 \le t \le 6\pi\text{,}\) with density \(\rho(x,y,z) = 1 + z\)
Answer.
\(6\pi\sqrt{2}(3\pi+1)\)

Exercise Group 10.1.10. Mass of a Wire.

Find the total mass of the wire with density \(\rho\) whose shape is modeled by \(\mathbf{r}\text{.}\)
(a)
\(\mathbf{r}(t)=\cos t\,\mathbf{i}+\sin t\,\mathbf{j}\text{,}\) \(0\le t\le \pi\text{,}\) \(\rho(x,y)=x+y+2\)
Answer.
\(2+2\pi\)
(b)
\(\mathbf{r}(t)=t^2\,\mathbf{i}+2t\,\mathbf{j}\text{,}\) \(0\le t\le 1\text{,}\) \(\rho(x,y)=\frac{3}{4}y\)
Answer.
\(2\sqrt{2}-1\)
(c)
\(\mathbf{r}(t)=t^2\,\mathbf{i}+2t\,\mathbf{j}+t\,\mathbf{k}\text{,}\) \(1\le t\le 3\text{,}\) \(\rho(x,y,z)=kz\) (\(k\gt 0\))
Answer.
\(\frac{k(41\sqrt{41}-27)}{12}\)
(d)
\(\mathbf{r}(t)=2\cos t\,\mathbf{i}+2\sin t\,\mathbf{j}+3t\,\mathbf{k}\text{,}\) \(0\le t\le 2\pi\text{,}\) \(\rho(x,y,z)=k+z\) (\(k\gt 0\))
Answer.
\(2\sqrt{13}\pi(k+3\pi)\)
(e)
\(\mathbf{r}(t)=3t\,\mathbf{i}+3t^2\,\mathbf{j}+2t^3\,\mathbf{k}\text{,}\) \(0\le t\le 1\text{,}\) \(\rho(t)=1+t\)
Answer.
\(9\)

Exercise Group 10.1.11. Mass and Center of Mass.

Find the mass and center of mass of each wire.
(a)
A thin wire is bent into the shape of a semicircle \(x^2+y^2=4\text{,}\) \(x\ge 0\text{.}\) If the linear density is a constant \(k\text{,}\) find the mass and center of mass of the wire
Answer.
\(m=2\pi k\text{,}\) center of mass \(\brac{\frac{4}{\pi},0}\)
(b)
A thin wire has the shape of the first-quadrant part of the circle with center at the origin and radius \(a\text{.}\) If the density function is \(\rho(x,y)=kxy\text{,}\) find the mass and center of mass of the wire
Answer.
\(m=\frac{1}{2}ka^3\text{,}\) center of mass \(\brac{\frac{2a}{3},\frac{2a}{3}}\)
(c)
Find the mass and center of mass of a wire in the shape of the helix \(x=t\text{,}\) \(y=\cos t\text{,}\) \(z=\sin t\text{,}\) \(0\le t\le 2\pi\text{,}\) if the density at any point is equal to the square of the distance from the origin
Answer.
\(m=\frac{2\sqrt{2}\pi}{3}\brac{3+4\pi^2}\text{,}\) center of mass \(\brac{\frac{3\pi+6\pi^3}{3+4\pi^2},\frac{6}{3+4\pi^2},\frac{-6\pi}{3+4\pi^2}}\)

Checkpoint 10.1.20. Center of Mass Formulas.

(a)
Write the formulas for the center of mass \((\bar{x},\bar{y},\bar{z})\) of a thin wire in the shape of a space curve \(C\) if the wire has density function \(\rho(x,y,z)\)
Answer.
\(m=\int_C \rho\,ds\text{,}\) \(\bar{x}=\frac{1}{m}\int_C x\rho\,ds\text{,}\) \(\bar{y}=\frac{1}{m}\int_C y\rho\,ds\text{,}\) \(\bar{z}=\frac{1}{m}\int_C z\rho\,ds\)
(b)
Find the center of mass of a wire in the shape of the helix \(x=2\sin t\text{,}\) \(y=2\cos t\text{,}\) \(z=3t\text{,}\) \(0\le t\le 2\pi\text{,}\) if the density is a constant \(k\)
Answer.
\(\brac{0,0,3\pi}\)

Checkpoint 10.1.21. Painting a Circular Fence.

The base of a circular fence with radius 10 m is given by \(x=10\cos t\text{,}\) \(y=10\sin t\text{.}\) The height of the fence at position \((x,y)\) is given by the function \(h(x,y)=4+0.01(x^2-y^2)\text{,}\) so the height varies from 3 m to 5 m. Suppose that 1 L of paint covers 100 m\(^2\text{.}\) Sketch the fence and determine how much paint is required to paint both sides of the fence.
Answer.
Total area \(160\pi\) m\(^2\text{,}\) so the paint required is \(\frac{8\pi}{5}\) L \(\approx 5.03\) L.

Checkpoint 10.1.22. Area of a Winding Wall.

Find the area of one side of the “winding wall” standing perpendicularly on the curve \(y=x^2\text{,}\) \(0\le x\le 2\text{,}\) and beneath the curve on the surface \(f(x,y)=x+\sqrt{y}\)
Answer.
\(\frac{17\sqrt{17}-1}{6}\)

Checkpoint 10.1.23. Area of a Wall.

Find the area of one side of the “wall” standing perpendicularly on the curve \(2x+3y=6\text{,}\) \(0\le x\le 6\text{,}\) and beneath the curve on the surface \(f(x,y)=4+3x+2y\)
Answer.
\(26\sqrt{13}\)

Checkpoint 10.1.24. Mass of a Wire (1).

Find the mass of a wire that lies along the curve \(r(t)=(t^2-1)\,\mathbf{j}+2t\,\mathbf{k}\text{,}\) \(0\le t\le 1\text{,}\) if the density is \(\delta=\frac{3}{2}t\)
Answer.
\(2\sqrt2-1\)

Checkpoint 10.1.25. Mass of a Wire (2).

Find the mass of a thin wire lying along the curve \(r(t)=\sqrt2 t\,\mathbf{i}+\sqrt2 t\,\mathbf{j}+(4-t^2)\,\mathbf{k}\text{,}\) \(0\le t\le 1\text{,}\) if the density is \(\delta=3t\)
Answer.
\(4\sqrt2-2\)

Checkpoint 10.1.26. Mass of a Wire (3).

Find the mass of the same wire if the density is \(\delta=1\)
Answer.
\(\sqrt2+\ln(1+\sqrt2)\)

Checkpoint 10.1.27. Center of Mass of a Wire.

A wire of density \(\delta(x,y,z)=15\sqrt{y+2}\) lies along the curve \(r(t)=(t^2-1)\,\mathbf{j}+2t\,\mathbf{k}\text{,}\) \(-1\le t\le 1\text{.}\) Find its center of mass. Then sketch the curve and center of mass together.
Hint.
Here \(x=0\text{,}\) \(y=t^2-1\text{,}\) \(z=2t\text{,}\) and \(dm=15\sqrt{t^2+1}\cdot 2\sqrt{t^2+1}\,dt=30(t^2+1)\,dt\text{.}\)
Answer.
The center of mass is \(\brac{0,-\frac{3}{5},0}\text{.}\)

Checkpoint 10.1.28. Center of Mass with Variable Density.

Find the center of mass of a thin wire lying along the curve \(r(t)=t\,\mathbf{i}+2t\,\mathbf{j}+\frac{2}{3}t^{3/2}\,\mathbf{k}\text{,}\) \(0\le t\le 2\text{,}\) if the density is \(\delta=3\sqrt{5+t}\)
Hint.
Since \(|r'(t)|=\sqrt{5+t}\text{,}\) we get \(dm=3(5+t)\,dt\text{.}\)
Answer.
\(\brac{\frac{19}{18},\frac{19}{9},\frac{4\sqrt2}{7}}\)

Checkpoint 10.1.29. Line Integral with \(dx\) and \(dy\).

Evaluate \(\int_C xy\,dx + x^2\,dy\text{,}\) where \(C\) is the parabola \(y = x^2\) from the origin to \((1,1)\)
Answer.
\(\frac{3}{4}\)