Multivariable CalculusLine Integrals and Green's Theorem2 of 7
Line Integrals and Green's Theorem · 2

Line Integrals of Scalar Functions

We know how to integrate along the xx-axis to find the mass of a straight wire with changing density, and now we want to find the mass of a wire that bends through the xyxy-plane.

From a Straight Wire to a Curved Wire
Mass=Density×Length\htmlClass{lc-green}{\text{Mass}} = \htmlClass{lc-blue}{\text{Density}} \times \htmlClass{lc-pink}{\text{Length}}
0\htmlClass{lc-mute}{0}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
xx
aluminum\text{aluminum}
lead\text{lead}
density=x2 kg/m\htmlClass{lc-blue}{\text{density}} = \htmlClass{lc-blue}{x^2}\ \text{kg/m}
0\htmlClass{lc-mute}{0}
5\htmlClass{lc-mute}{5}
dx\htmlClass{lc-pink}{dx}
CC
f(x,y)\htmlClass{lc-blue}{f(x, y)}
dx\htmlClass{lc-pink}{dx}
dy\htmlClass{lc-pink}{dy}
ds\htmlClass{lc-pink}{ds}
xx
yy

At each point (x,y)(x, y) on the curve CC, multiplying the density f(x,y)\dens{f(x, y)} at that point by the tiny slanted arc length ds\len{ds} gives the mass of one tiny piece of wire, and integrating adds those pieces up along the curve:

Mass\displaystyle \mass{\text{Mass}} =∫Cf(x,y)⏟density ds⏟tiny length⏟scalar line integral\displaystyle = \underbrace{\int_C \underbrace{\dens{f(x, y)}}_{\text{density}} \, \underbrace{\len{ds}}_{\text{tiny length}}}_{\text{scalar line integral}}

The subscript CC tells us to add the pieces along the path of the wire, and ds\len{ds} stands for a tiny piece of curved length, not a variable ss that we can integrate directly.

1

Calculating a Line Integral with a Parameter tt

We want to evaluate the line integral

∫Cf(x,y) ds\displaystyle \int_C \dens{f(x, y)}\,\len{ds}

Because this integral has xx, yy, and ds\len{ds} all in it at once, we rewrite the curve in terms of a single parameter tt running from t=at = a to t=bt = b.

Calculating a Line Integral with a Parameter t
Mass=∫Cf(x,y) ds\htmlClass{lc-green}{\text{Mass}} = \int_C \htmlClass{lc-blue}{f(x, y)}\,\htmlClass{lc-pink}{ds}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
CC
xx
yy

When a point moves along the wire with position r(t)=⟨x(t),y(t)⟩\mathbf{r}(t) = \langle x(t), y(t) \rangle, the Pythagorean theorem on the tiny right triangle with legs dx\len{dx} and dy\len{dy} gives the arc length ds\len{ds} covered during a tiny time step dtdt:

ds\displaystyle \len{ds} =∣r′(t)∣ dt\displaystyle = \len{|\mathbf{r}'(t)|}\,dt =(dxdt)2+(dydt)2 dt\displaystyle = \len{\sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}}\,dt

Plugging in x(t)x(t), y(t)y(t), and ds\len{ds} turns the line integral into a regular single-variable integral in tt:

∫Cf(x,y) ds\displaystyle \int_C \dens{f(x, y)}\,\len{ds} =∫abf(x(t),y(t))(dxdt)2+(dydt)2⏟stretch factor ∣r′(t)∣ dt\displaystyle = \int_a^b \dens{f(x(t), y(t))} \underbrace{\len{\sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}}}_{\text{stretch factor } \len{|\mathbf{r}'(t)|}}\,dt

Wherever the point moves faster along the curve, the same time step dtdt covers a longer piece ds\len{ds}.

The same time step covers different lengths of wire along the curve, and each slice's tiny mass comes from multiplying that length by the density there.
2

Example: A Parabolic Wire

Let's start with a curve where yy is already given as a function of xx. We want to find the total mass of a wire bent along the parabola y=x2y = x^2 from (0,0)(0, 0) to (1,1)(1, 1) with density f(x,y)=2x\dens{f(x, y)} = \dens{2x}:

Mass\displaystyle \mass{\text{Mass}} =∫C2x ds\displaystyle = \int_C \dens{2x}\,\len{ds}
Example: A Parabolic Wire
f(x,y)=2x\htmlClass{lc-blue}{f(x, y)} = \htmlClass{lc-blue}{2x}
1\htmlClass{lc-mute}{1}
1\htmlClass{lc-mute}{1}
y=x2y = x^2
(0,0)(0, 0)
(1,1)(1, 1)
xx
yy
Text solution
Use x=tx = t to parameterize the parabolaBecause yy is already written in terms of xx, letting x=tx = t traces the wire from (0,0)(0, 0) to (1,1)(1, 1) as tt runs from 00 to 11:
x\displaystyle x =t,y\displaystyle = t, \quad y =t2(0≤t≤1)\displaystyle = t^2 \quad (0 \le t \le 1)
Find the tiny length ds\len{ds} from the derivativesPlugging dx/dt=1\len{dx/dt} = \len{1} and dy/dt=2t\len{dy/dt} = \len{2t} into the arc length formula gives ds\len{ds} in terms of tt:
ds\displaystyle \len{ds} =12+(2t)2 dt\displaystyle = \len{\sqrt{1^2 + (2t)^2}}\,dt =1+4t2 dt\displaystyle = \len{\sqrt{1 + 4t^2}}\,dt
Substitute tt into the integral and evaluate with u=1+4t2u = 1 + 4t^2Replacing 2x\dens{2x} with 2t\dens{2t} and substituting u=1+4t2u = 1 + 4t^2 (so 14 du=2t dt\frac{1}{4}\,du = 2t\,dt and the bounds change from t=0,1t = 0, 1 to u=1,5u = 1, 5) gives the mass:
Mass=∫012t1+4t2 dt=14∫15u1/2 du=14[23u3/2]15=16(55−1)\displaystyle \begin{aligned} \mass{\text{Mass}} &= \int_0^1 \dens{2t}\len{\sqrt{1 + 4t^2}}\,dt \\ &= \frac{1}{4}\int_1^5 u^{1/2}\,du \\ &= \frac{1}{4}\left[\frac{2}{3}u^{3/2}\right]_1^5 \\ &= \frac{1}{6}\left(5\sqrt{5} - 1\right) \end{aligned}

So the parabolic wire from (0,0)(0, 0) to (1,1)(1, 1) has a total mass of 16(55−1)\frac{1}{6}(5\sqrt{5} - 1).

3

Example: A Semicircular Wire

On a circle, solving for yy in terms of xx gives a square root whose derivative goes to infinity at the endpoints. Instead, we can use the angle tt to find the mass of a wire shaped like the upper half of the circle x2+y2=9x^2 + y^2 = 9 with density f(x,y)=y\dens{f(x, y)} = \dens{y}:

Mass\displaystyle \mass{\text{Mass}} =∫Cy ds\displaystyle = \int_C \dens{y}\,\len{ds}
Example: A Semicircular Wire
f(x,y)=y\htmlClass{lc-blue}{f(x, y)} = \htmlClass{lc-blue}{y}
−3\htmlClass{lc-mute}{-3}
3\htmlClass{lc-mute}{3}
xx
yy
Text solution
Parameterize the upper semicircle with the angle ttOn a circle of radius 33, letting the angle tt run from 00 to π\pi traces the top half from (3,0)(3, 0) to (−3,0)(-3, 0):
x\displaystyle x =3cos⁡t,y\displaystyle = 3\cos t, \quad y =3sin⁡t(0≤t≤π)\displaystyle = 3\sin t \quad (0 \le t \le \pi)
Simplify ds\len{ds} using sin⁡2t+cos⁡2t=1\sin^2 t + \cos^2 t = 1Because sin⁡2t+cos⁡2t=1\sin^2 t + \cos^2 t = 1 for every angle tt, plugging the derivatives dx/dt=−3sin⁡t\len{dx/dt} = \len{-3\sin t} and dy/dt=3cos⁡t\len{dy/dt} = \len{3\cos t} into the square root simplifies the stretch factor to the circle's radius:
ds=(−3sin⁡t)2+(3cos⁡t)2 dt=9(sin⁡2t+cos⁡2t) dt=3 dt\displaystyle \begin{aligned} \len{ds} &= \len{\sqrt{(-3\sin t)^2 + (3\cos t)^2}}\,dt \\ &= \len{\sqrt{9(\sin^2 t + \cos^2 t)}}\,dt \\ &= \len{3}\,dt \end{aligned}
Substitute the density y=3sin⁡t\dens{y} = \dens{3\sin t} and integrateMultiplying the density by ds=3 dt\len{ds} = \len{3}\,dt and integrating from 00 to π\pi gives the mass:
Mass=∫0π(3sin⁡t)(3 dt)=9∫0πsin⁡t dt=9[−cos⁡t]0π=18\displaystyle \begin{aligned} \mass{\text{Mass}} &= \int_0^\pi \dens{(3\sin t)}(\len{3}\,dt) \\ &= 9\int_0^\pi \sin t\,dt \\ &= 9\big[-\cos t\big]_0^\pi \\ &= 18 \end{aligned}

So the total mass of the semicircular wire is 1818.

4

Center of Mass of a Wire

The center of mass (xˉ,yˉ)\mass{(\bar{x}, \bar{y})} is the point where the wire balances. We want to find (xˉ,yˉ)\mass{(\bar{x}, \bar{y})} for our semicircular wire x2+y2=9x^2 + y^2 = 9 (y≥0y \ge 0) with density f(x,y)=y\dens{f(x, y)} = \dens{y} and total mass M=18\mass{M} = 18.

Center of Mass of a Wire
(xˉ,yˉ)=  ?\htmlClass{lc-green}{(\bar{x}, \bar{y})} = \;?
M=18\htmlClass{lc-green}{M} = 18
f(x,y)=y\htmlClass{lc-blue}{f(x, y)} = \htmlClass{lc-blue}{y}
−3\htmlClass{lc-mute}{-3}
3\htmlClass{lc-mute}{3}
xx
yy

To find the average coordinates weighted by mass, we multiply xx and yy by the tiny mass f(x,y) ds\dens{f(x, y)}\,\len{ds}, integrate along the wire, and divide by the total mass M\mass{M}:

xˉ\displaystyle \mass{\bar{x}} =1M∫Cx f(x,y) ds⏟tiny mass,yˉ\displaystyle = \frac{1}{\mass{M}}\int_C x\,\underbrace{\dens{f(x, y)}\,\len{ds}}_{\text{tiny mass}}, \qquad \mass{\bar{y}} =1M∫Cy f(x,y) ds⏟tiny mass\displaystyle = \frac{1}{\mass{M}}\int_C y\,\underbrace{\dens{f(x, y)}\,\len{ds}}_{\text{tiny mass}}
Text solution
Find xˉ\mass{\bar{x}} by symmetryBecause the upper semicircle and the density f(x,y)=y\dens{f(x, y)} = \dens{y} are both symmetric across the yy-axis, matching pieces on the left and right balance each other out:
xˉ\displaystyle \mass{\bar{x}} =118∫0π(3cos⁡t)(3sin⁡t)(3 dt)\displaystyle = \frac{1}{18}\int_0^\pi (3\cos t)\dens{(3\sin t)}(\len{3}\,dt) =0\displaystyle = 0
Substitute y=3sin⁡ty = 3\sin t and ds=3 dt\len{ds} = \len{3}\,dt into the integral for yˉ\mass{\bar{y}}Dividing the weighted yy-integral by the total mass M=18\mass{M} = 18 gives an integral of sin⁡2t\sin^2 t:
yˉ=118∫Cy⋅y ds=118∫0π(3sin⁡t)(3sin⁡t)(3 dt)=2718∫0πsin⁡2t dt=32∫0πsin⁡2t dt\displaystyle \begin{aligned} \mass{\bar{y}} &= \frac{1}{18}\int_C y \cdot \dens{y}\,\len{ds} \\ &= \frac{1}{18}\int_0^\pi (3\sin t)\dens{(3\sin t)}(\len{3}\,dt) \\ &= \frac{27}{18}\int_0^\pi \sin^2 t\,dt \\ &= \frac{3}{2}\int_0^\pi \sin^2 t\,dt \end{aligned}
Rewrite sin⁡2t\sin^2 t with the half-angle identity and integrateUsing sin⁡2t=1−cos⁡(2t)2\sin^2 t = \frac{1 - \cos(2t)}{2} lets us find the antiderivative:
yˉ=32∫0π1−cos⁡(2t)2 dt=34[t−sin⁡(2t)2]0π=3π4\displaystyle \begin{aligned} \mass{\bar{y}} &= \frac{3}{2}\int_0^\pi \frac{1 - \cos(2t)}{2}\,dt \\ &= \frac{3}{4}\left[t - \frac{\sin(2t)}{2}\right]_0^\pi \\ &= \frac{3\pi}{4} \end{aligned}

So the center of mass is (0,3π4)\left(0, \frac{3\pi}{4}\right), which sits in the open space inside the arch and above the halfway height y=1.5y = 1.5 because the wire is heaviest at the top. A quick check like 3π4≈2.36\frac{3\pi}{4} \approx 2.36 is an easy way to catch if you forgot to divide by M\mass{M}.

As the heaviest part of the wire shifts from one side of the arch to the other, the balance point (xˉ,yˉ)\mass{(\bar{x}, \bar{y})} follows it through the open space inside the curve.

The wire’s balance point sits in the empty space inside the arch, pulled toward the heaviest part, and lands on the yy-axis only when the left and right sides weigh the same.
5

Piecewise Wires and Straight Segments

When a wire has a sharp corner or is joined together from different pieces C1C_1 and C2C_2, a single smooth parameterization cannot turn the corner. Instead, we find the mass of each smooth piece with its own parameter tt and add the results:

∫Cf(x,y) ds\displaystyle \int_C \dens{f(x, y)}\,\len{ds} =∫C1f(x,y) ds+∫C2f(x,y) ds\displaystyle = \int_{C_1} \dens{f(x, y)}\,\len{ds} + \int_{C_2} \dens{f(x, y)}\,\len{ds}

Let's find the total mass of a bent wire with density f(x,y)=x+y\dens{f(x, y)} = \dens{x + y} made of two straight segments joined together: C1C_1 from (0,0)(0, 0) to (3,4)(3, 4), followed by C2C_2 from (3,4)(3, 4) to (5,4)(5, 4).

1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
5\htmlClass{lc-mute}{5}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
(0,0)(0, 0)
C1C_1
5\htmlClass{lc-pink}{5}
(3,4)(3, 4)
C2C_2
2\htmlClass{lc-pink}{2}
(5,4)(5, 4)
xx
yy
Piecewise Wires and Straight Segments
∫Cf(x,y) ds=  ?\int_C \htmlClass{lc-blue}{f(x, y)}\,\htmlClass{lc-pink}{ds} = \;?
CC
C1C_1
C2C_2

Any straight segment from a starting point to an ending point can be parameterized over 0≤t≤10 \le t \le 1 by adding tt times the total change in each coordinate:

position\displaystyle \text{position} =start+t⋅(total change)(0≤t≤1)\displaystyle = \text{start} + t \cdot \len{(\text{total change})} \quad (0 \le t \le 1)
Text solution
Parameterize the first segment C1C_1 from (0,0)(0, 0) to (3,4)(3, 4) and find ds\len{ds}Starting at (0,0)(0, 0) with a total change of +3\len{+3} in xx and +4\len{+4} in yy gives the parameterization, and the stretch factor is just the segment's length:
x\displaystyle x =3t,y\displaystyle = 3t, \quad y =4t(0≤t≤1)\displaystyle = 4t \quad (0 \le t \le 1)
ds\displaystyle \len{ds} =32+42 dt\displaystyle = \len{\sqrt{3^2 + 4^2}}\,dt =5 dt\displaystyle = \len{5}\,dt
Integrate to find the mass of C1C_1Substituting the density x+y=7t\dens{x + y} = \dens{7t} and ds=5 dt\len{ds} = \len{5}\,dt gives the mass of the first piece:
Mass of C1=∫01(3t+4t)(5 dt)=35∫01t dt=35[12t2]01=17.5\displaystyle \begin{aligned} \mass{\text{Mass of }} C_1 &= \int_0^1 \dens{(3t + 4t)}(\len{5}\,dt) \\ &= 35\int_0^1 t\,dt \\ &= 35\left[\frac{1}{2}t^2\right]_0^1 \\ &= \mass{17.5} \end{aligned}
Parameterize the second segment C2C_2 from (3,4)(3, 4) to (5,4)(5, 4) and find its massStarting at (3,4)(3, 4) with a change of +2\len{+2} in xx and 0\len{0} in yy gives x=3+2tx = 3 + 2t, y=4y = 4 for 0≤t≤10 \le t \le 1, so ds=22+02 dt=2 dt\len{ds} = \len{\sqrt{2^2 + 0^2}}\,dt = \len{2}\,dt:
Mass of C2=∫01((3+2t)+4)(2 dt)=∫01(14+4t) dt=[14t+2t2]01=16\displaystyle \begin{aligned} \mass{\text{Mass of }} C_2 &= \int_0^1 \dens{\big((3 + 2t) + 4\big)}(\len{2}\,dt) \\ &= \int_0^1 (14 + 4t)\,dt \\ &= \big[14t + 2t^2\big]_0^1 \\ &= \mass{16} \end{aligned}
Add the masses of the two piecesAdding the two segments gives the total mass of the wire:
Total Mass\displaystyle \mass{\text{Total Mass}} =17.5+16\displaystyle = \mass{17.5} + \mass{16} =33.5\displaystyle = 33.5

So the bent wire has a total mass of 33.533.5.

The wire's total mass depends on both how long each piece is and how dense the region it passes through.

Each straight piece's stretch factor is just its length, while the total mass depends on both how long the pieces are and how dense a region they pass through.
6

Wires in 3D Space

When a wire curves through three-dimensional space with density f(x,y,z)\dens{f(x, y, z)}, we want to evaluate the 3D scalar line integral

∫Cf(x,y,z) ds\displaystyle \int_C \dens{f(x, y, z)}\,\len{ds}
Wires in 3D Space
xx
yy
zz
f(x,y,z)\htmlClass{lc-blue}{f(x, y, z)}

Along a 3D curve r(t)=⟨x(t),y(t),z(t)⟩\mathbf{r}(t) = \langle x(t), y(t), z(t) \rangle for a≤t≤ba \le t \le b, the 3D Pythagorean theorem adds the zz-derivative under the square root in ds\len{ds}:

ds\displaystyle \len{ds} =∣r′(t)∣ dt\displaystyle = \len{|\mathbf{r}'(t)|}\,dt =(dxdt)2+(dydt)2+(dzdt)2 dt\displaystyle = \len{\sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2 + \left(\frac{dz}{dt}\right)^2}}\,dt

From there, we substitute x(t)x(t), y(t)y(t), z(t)z(t), and ds\len{ds} into the integral and integrate with respect to tt just as in 2D.

7

Why Direction Doesn't Matter

What happens to the line integral if we walk along the same curve CC in the opposite direction, written as −C-C?

Why Direction Doesn't Matter
∫−Cf ds=?∫Cf ds\int_{-C} \htmlClass{lc-blue}{f}\,\htmlClass{lc-pink}{ds} \overset{?}{=} \int_C \htmlClass{lc-blue}{f}\,\htmlClass{lc-pink}{ds}
1\htmlClass{lc-mute}{1}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
4\htmlClass{lc-mute}{4}
(0,0)(0, 0)
(3,4)(3, 4)
CC
−C-C
xx
yy

The minus sign in −C-C means going along the same curve backwards from end to start, not making the integral negative. Because the derivatives dx/dt\len{dx/dt} and dy/dt\len{dy/dt} are squared inside ds=(dx/dt)2+(dy/dt)2 dt\len{ds} = \len{\sqrt{(dx/dt)^2 + (dy/dt)^2}}\,dt, going the other way keeps the length ds\len{ds} positive and gives the exact same value:

∫−Cf(x,y) ds\displaystyle \int_{-C} \dens{f(x, y)}\,\len{ds} =∫Cf(x,y) ds\displaystyle = \int_C \dens{f(x, y)}\,\len{ds}

Key concepts

To evaluate any scalar line integral ∫Cf ds\int_C \dens{f}\,\len{ds}, write the coordinates on the curve in terms of a single parameter tt, replace ds\len{ds} with (dx/dt)2+(dy/dt)2 dt\len{\sqrt{(dx/dt)^2 + (dy/dt)^2}}\,dt (including +(dz/dt)2\len{+(dz/dt)^2} in 3D), and integrate from the smaller tt-bound to the larger tt-bound:

∫Cf(x,y) ds\displaystyle \int_C \dens{f(x, y)}\,\len{ds} =∫abf(x(t),y(t))(dxdt)2+(dydt)2 dt\displaystyle = \int_a^b \dens{f(x(t), y(t))}\len{\sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}}\,dt

The shape of the curve tells you how to pick the parameterization tt:

Curve given as y=g(x)y = g(x)

Let x=tx = t and y=g(t)y = g(t) (for y=x2y = x^2, use x=t,y=t2x = t, y = t^2 with ds=1+4t2 dt\len{ds} = \len{\sqrt{1 + 4t^2}}\,dt).

Circle x2+y2=R2x^2 + y^2 = R^2

Use the angle tt with x=Rcos⁡t,y=Rsin⁡tx = R\cos t, y = R\sin t, which simplifies ds\len{ds} to R dt\len{R}\,dt (for x2+y2=9x^2 + y^2 = 9, ds=3 dt\len{ds} = \len{3}\,dt). Because direction doesn't affect ∫Cf ds\int_C \dens{f}\,\len{ds}, you can use this counterclockwise parameterization even if the curve goes clockwise.

Straight segment

Use start+t⋅(total change)\text{start} + t \cdot \len{(\text{total change})} for 0≤t≤10 \le t \le 1, where ds\len{ds} is simply (segment length) dt\len{(\text{segment length})}\,dt (from (0,0)(0, 0) to (3,4)(3, 4) gives x=3t,y=4tx = 3t, y = 4t and ds=5 dt\len{ds} = \len{5}\,dt). If a straight wire has constant density, don't set up a line integral at all: just multiply density×length\dens{\text{density}} \times \len{\text{length}}.

Sharp corners

Split CC at each corner into smooth pieces C1,C2C_1, C_2 and add their integrals.

For the center of mass (xˉ,yˉ)=(1M∫Cxf ds,  1M∫Cyf ds)\mass{(\bar{x}, \bar{y})} = \left(\frac{1}{\mass{M}}\int_C x \dens{f}\,\len{ds},\; \frac{1}{\mass{M}}\int_C y \dens{f}\,\len{ds}\right), check symmetry before integrating: if the wire and its density f(x,y)\dens{f(x, y)} are both symmetric across an axis (like f(x,y)=y\dens{f(x, y)} = \dens{y} on the upper semicircle x2+y2=9x^2 + y^2 = 9), that coordinate of the center of mass is right away 00.

8

Practice

1

Find the total mass of a straight wire running from (1,0)(1, 0) to (4,4)(4, 4) if its density at (x,y)(x, y) is f(x,y)=2x+y\dens{f(x, y)} = \dens{2x + y}.

Use start+t⋅(total change)\text{start} + t \cdot \len{(\text{total change})} for 0≤t≤10 \le t \le 1: how much do xx and yy change from (1,0)(1, 0) to (4,4)(4, 4)?

Parameterize the straight segment for 0≤t≤10 \le t \le 1 and find ds\len{ds}Starting at (1,0)(1, 0) with a change of +3\len{+3} in xx and +4\len{+4} in yy gives the position and length factor (be careful to include the starting coordinate 11 in x=1+3tx = 1 + 3t rather than writing x=3tx = 3t, which would give 2525, and don't leave out the stretch factor 5\len{5} in ds=5 dt\len{ds} = \len{5}\,dt, which would give 77):
x\displaystyle x =1+3t,y\displaystyle = 1 + 3t, \quad y =4t(0≤t≤1),ds\displaystyle = 4t \quad (0 \le t \le 1), \qquad \len{ds} =32+42 dt\displaystyle = \len{\sqrt{3^2 + 4^2}}\,dt =5 dt\displaystyle = \len{5}\,dt
Substitute into the mass integral and evaluateReplacing 2x+y\dens{2x + y} with 2(1+3t)+4t=2+10t\dens{2(1 + 3t) + 4t} = \dens{2 + 10t} gives:
Mass=∫01(2+10t)(5 dt)=5[2t+5t2]01=35\displaystyle \begin{aligned} \mass{\text{Mass}} &= \int_0^1 \dens{(2 + 10t)}(\len{5}\,dt) \\ &= 5\big[2t + 5t^2\big]_0^1 \\ &= 35 \end{aligned}
Answer: 3535
2

Find the mass of a wire bent along the parabola y=12x2y = \frac{1}{2}x^2 from (0,0)(0, 0) to (2,2)(2, 2) with density f(x,y)=6x\dens{f(x, y)} = \dens{6x}.

Since yy is already written in terms of xx, let x=tx = t. What does dy/dt\len{dy/dt} become inside ds=(dx/dt)2+(dy/dt)2 dt\len{ds} = \len{\sqrt{(dx/dt)^2 + (dy/dt)^2}}\,dt?

Parameterize with x=tx = t and find ds\len{ds}Letting x=tx = t gives y=12t2y = \frac{1}{2}t^2 for 0≤t≤20 \le t \le 2, with dx/dt=1\len{dx/dt} = \len{1} and dy/dt=t\len{dy/dt} = \len{t}:
ds\displaystyle \len{ds} =12+t2 dt\displaystyle = \len{\sqrt{1^2 + t^2}}\,dt =1+t2 dt\displaystyle = \len{\sqrt{1 + t^2}}\,dt
Substitute into the integral and use u=1+t2u = 1 + t^2With u=1+t2u = 1 + t^2, we have du=2t dtdu = 2t\,dt (so 6t dt=3 du6t\,dt = 3\,du) and the bounds change from t=0,2t = 0, 2 to u=1,5u = 1, 5 (leaving the bounds as 00 to 22 on the uu-integral is a common mistake that gives 424\sqrt{2}):
Mass=∫026t1+t2 dt=∫153u1/2 du=[2u3/2]15=105−2\displaystyle \begin{aligned} \mass{\text{Mass}} &= \int_0^2 \dens{6t}\len{\sqrt{1 + t^2}}\,dt \\ &= \int_1^5 3u^{1/2}\,du \\ &= \big[2u^{3/2}\big]_1^5 \\ &= 10\sqrt{5} - 2 \end{aligned}
Answer: 105−210\sqrt{5} - 2
3

A wire is shaped like the 3D helix r(t)=⟨4cos⁡(t),4sin⁡(t),3t⟩\mathbf{r}(t) = \langle 4\cos(t), 4\sin(t), 3t \rangle for 0≤t≤π0 \le t \le \pi. If the density at any point is f(x,y,z)=2z\dens{f(x, y, z)} = \dens{2z}, find the total mass of the wire.

Include all three derivatives in ds=(dx/dt)2+(dy/dt)2+(dz/dt)2 dt\len{ds} = \len{\sqrt{(dx/dt)^2 + (dy/dt)^2 + (dz/dt)^2}}\,dt, and simplify 16sin⁡2t+16cos⁡2t\len{16\sin^2 t + 16\cos^2 t} under the square root.

Find the 3D arc length ds\len{ds}Plugging dx/dt=−4sin⁡t\len{dx/dt} = \len{-4\sin t}, dy/dt=4cos⁡t\len{dy/dt} = \len{4\cos t}, and dz/dt=3\len{dz/dt} = \len{3} into the 3D arc length formula gives a constant stretch factor (don't forget to include (dz/dt)2=9\len{(dz/dt)^2} = \len{9} under the square root, which would make ds=4 dt\len{ds} = 4\,dt instead of 5 dt\len{5}\,dt and give 12π212\pi^2):
ds=(−4sin⁡t)2+(4cos⁡t)2+32 dt=16+9 dt=5 dt\displaystyle \begin{aligned} \len{ds} &= \len{\sqrt{(-4\sin t)^2 + (4\cos t)^2 + 3^2}}\,dt \\ &= \len{\sqrt{16 + 9}}\,dt \\ &= \len{5}\,dt \end{aligned}
Substitute 2z=6t\dens{2z} = \dens{6t} and integrateMultiplying the density 2(3t)=6t\dens{2(3t)} = \dens{6t} by ds=5 dt\len{ds} = \len{5}\,dt gives:
Mass=∫0π(6t)(5 dt)=30[12t2]0π=15π2\displaystyle \begin{aligned} \mass{\text{Mass}} &= \int_0^\pi \dens{(6t)}(\len{5}\,dt) \\ &= 30\left[\frac{1}{2}t^2\right]_0^\pi \\ &= 15\pi^2 \end{aligned}
Answer: 15π215\pi^2
4

A wire CC is made of two pieces joined together: the quarter-circle C1C_1 of x2+y2=4x^2 + y^2 = 4 in the first quadrant going clockwise from (0,2)(0, 2) to (2,0)(2, 0), followed by the straight line segment C2C_2 from (2,0)(2, 0) to (2,3)(2, 3). Find the total mass of the wire if its density is f(x,y)=xy\dens{f(x, y)} = \dens{xy}.

Split the integral into C1C_1 and C2C_2. Does the clockwise direction on C1C_1 change a scalar line integral, or can you integrate from t=0t = 0 to t=π/2t = \pi/2?

Find the mass of the quarter-circle C1C_1Because direction doesn't matter for a scalar line integral, we can use x=2cos⁡t,y=2sin⁡tx = 2\cos t, y = 2\sin t with ds=2 dt\len{ds} = \len{2}\,dt from t=0t = 0 to t=π/2t = \pi/2 (integrating backwards from π/2\pi/2 to 00 to match the clockwise direction makes the mass of C1C_1 equal −4-4 and gives the wrong total 55):
Mass of C1=∫0π/2(2cos⁡t)(2sin⁡t)(2 dt)=8[12sin⁡2t]0π/2=4\displaystyle \begin{aligned} \mass{\text{Mass of }} C_1 &= \int_0^{\pi/2} \dens{(2\cos t)(2\sin t)}(\len{2}\,dt) \\ &= 8\left[\frac{1}{2}\sin^2 t\right]_0^{\pi/2} \\ &= \mass{4} \end{aligned}
Find the mass of the straight segment C2C_2 from (2,0)(2, 0) to (2,3)(2, 3)Parameterizing with x=2,y=3tx = 2, y = 3t for 0≤t≤10 \le t \le 1 gives ds=02+32 dt=3 dt\len{ds} = \len{\sqrt{0^2 + 3^2}}\,dt = \len{3}\,dt:
Mass of C2=∫01(2)(3t)(3 dt)=18[12t2]01=9\displaystyle \begin{aligned} \mass{\text{Mass of }} C_2 &= \int_0^1 \dens{(2)(3t)}(\len{3}\,dt) \\ &= 18\left[\frac{1}{2}t^2\right]_0^1 \\ &= \mass{9} \end{aligned}
Add the two massesAdding the two pieces gives the total mass:
Total Mass\displaystyle \mass{\text{Total Mass}} =4+9\displaystyle = \mass{4} + \mass{9} =13\displaystyle = 13
Answer: 1313
5

A wire lies along the quarter-circle x2+y2=4x^2 + y^2 = 4 in the first quadrant (x≥0,y≥0x \ge 0, y \ge 0) and has density f(x,y)=x\dens{f(x, y)} = \dens{x}. Find its total mass M\mass{M} and its center of mass (xˉ,yˉ)\mass{(\bar{x}, \bar{y})}.

Parameterize the quarter-circle with radius R=2R = 2 for 0≤t≤π/20 \le t \le \pi/2. Remember that the density f(x,y)=x\dens{f(x, y)} = \dens{x} is part of the tiny mass f(x,y) ds\dens{f(x, y)}\,\len{ds} inside both center of mass integrals.

Parameterize the quarter-circle and find the total mass M\mass{M}Using x=2cos⁡t,y=2sin⁡tx = 2\cos t, y = 2\sin t for 0≤t≤π/20 \le t \le \pi/2 gives ds=2 dt\len{ds} = \len{2}\,dt:
M=∫0π/2(2cos⁡t)(2 dt)=4[sin⁡t]0π/2=4\displaystyle \begin{aligned} \mass{M} &= \int_0^{\pi/2} \dens{(2\cos t)}(\len{2}\,dt) \\ &= 4\big[\sin t\big]_0^{\pi/2} \\ &= 4 \end{aligned}
Find xˉ\mass{\bar{x}} using the half-angle identity cos⁡2t=1+cos⁡(2t)2\cos^2 t = \frac{1 + \cos(2t)}{2}Multiplying the coordinate xx by the tiny mass x ds\dens{x}\,\len{ds} and dividing by M=4\mass{M} = 4 (forgetting to multiply by the density x\dens{x} gives xˉ=1\mass{\bar{x}} = 1, and forgetting to divide by M=4\mass{M} = 4 gives 2π2\pi):
xˉ=14∫0π/2(2cos⁡t)(2cos⁡t)(2 dt)=2∫0π/21+cos⁡(2t)2 dt=[t+sin⁡(2t)2]0π/2=π2\displaystyle \begin{aligned} \mass{\bar{x}} &= \frac{1}{4}\int_0^{\pi/2} (2\cos t)\dens{(2\cos t)}(\len{2}\,dt) \\ &= 2\int_0^{\pi/2} \frac{1 + \cos(2t)}{2}\,dt \\ &= \left[t + \frac{\sin(2t)}{2}\right]_0^{\pi/2} \\ &= \frac{\pi}{2} \end{aligned}
Find yˉ\mass{\bar{y}} by integrating y⋅x dsy \cdot \dens{x}\,\len{ds}Multiplying the coordinate y=2sin⁡ty = 2\sin t by the tiny mass (2cos⁡t)(2 dt)\dens{(2\cos t)}(\len{2}\,dt) and dividing by M=4\mass{M} = 4 gives:
yˉ=14∫0π/2(2sin⁡t)(2cos⁡t)(2 dt)=2[12sin⁡2t]0π/2=1\displaystyle \begin{aligned} \mass{\bar{y}} &= \frac{1}{4}\int_0^{\pi/2} (2\sin t)\dens{(2\cos t)}(\len{2}\,dt) \\ &= 2\left[\frac{1}{2}\sin^2 t\right]_0^{\pi/2} \\ &= 1 \end{aligned}
Answer: M=4,(xˉ,yˉ)=(π/2,1)\mass{M} = 4, \mass{(\bar{x}, \bar{y})} = (\pi/2, 1)