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 x-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 xy-plane.
From a Straight Wire to a Curved Wire
At each point (x,y) on the curve C, multiplying the density f(x,y) at that point by the tiny slanted arc length ds gives the mass of one tiny piece of wire, and integrating adds those pieces up along the curve:
Mass=scalar line integral∫Cdensityf(x,y)tiny lengthds
The subscript C tells us to add the pieces along the path of the wire, and ds stands for a tiny piece of curved length, not a variable s that we can integrate directly.
1
Calculating a Line Integral with a Parameter t
We want to evaluate the line integral
∫Cf(x,y)ds
Because this integral has x,y, and ds all in it at once, we rewrite the curve in terms of a single parameter t running from t=a to t=b.
Calculating a Line Integral with a Parameter t
When a point moves along the wire with position r(t)=⟨x(t),y(t)⟩, the Pythagorean theorem on the tiny right triangle with legs dx and dy gives the arc length ds covered during a tiny time step dt:
ds=∣r′(t)∣dt=(dtdx)2+(dtdy)2dt
Plugging in x(t),y(t), and ds turns the line integral into a regular single-variable integral in t:
Wherever the point moves faster along the curve, the same time step dt covers a longer piece 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 y is already given as a function of x. We want to find the total mass of a wire bent along the parabola y=x2 from (0,0) to (1,1) with density f(x,y)=2x:
Mass=∫C2xds
Example: A Parabolic Wire
Text solution
Use x=t to parameterize the parabolaBecause y is already written in terms of x, letting x=t traces the wire from (0,0) to (1,1) as t runs from 0 to 1:
x=t,y=t2(0≤t≤1)
Find the tiny length ds from the derivativesPlugging dx/dt=1 and dy/dt=2t into the arc length formula gives ds in terms of t:
ds=12+(2t)2dt=1+4t2dt
Substitute t into the integral and evaluate with u=1+4t2Replacing 2x with 2t and substituting u=1+4t2 (so 41du=2tdt and the bounds change from t=0,1 to u=1,5) gives the mass:
So the parabolic wire from (0,0) to (1,1) has a total mass of 61(55−1).
3
Example: A Semicircular Wire
On a circle, solving for y in terms of x gives a square root whose derivative goes to infinity at the endpoints. Instead, we can use the angle t to find the mass of a wire shaped like the upper half of the circle x2+y2=9 with density f(x,y)=y:
Mass=∫Cyds
Example: A Semicircular Wire
Text solution
Parameterize the upper semicircle with the angle tOn a circle of radius 3, letting the angle t run from 0 to π traces the top half from (3,0) to (−3,0):
x=3cost,y=3sint(0≤t≤π)
Simplify ds using sin2t+cos2t=1Because sin2t+cos2t=1 for every angle t, plugging the derivatives dx/dt=−3sint and dy/dt=3cost into the square root simplifies the stretch factor to the circle's radius:
ds=(−3sint)2+(3cost)2dt=9(sin2t+cos2t)dt=3dt
Substitute the density y=3sint and integrateMultiplying the density by ds=3dt and integrating from 0 to π gives the mass:
The center of mass (xˉ,yˉ) is the point where the wire balances. We want to find (xˉ,yˉ) for our semicircular wire x2+y2=9 (y≥0) with density f(x,y)=y and total mass M=18.
Center of Mass of a Wire
To find the average coordinates weighted by mass, we multiply x and y by the tiny mass f(x,y)ds, integrate along the wire, and divide by the total mass M:
Find xˉ by symmetryBecause the upper semicircle and the density f(x,y)=y are both symmetric across the y-axis, matching pieces on the left and right balance each other out:
xˉ=181∫0π(3cost)(3sint)(3dt)=0
Substitute y=3sint and ds=3dt into the integral for yˉDividing the weighted y-integral by the total mass M=18 gives an integral of sin2t:
So the center of mass is (0,43π), which sits in the open space inside the arch and above the halfway height y=1.5 because the wire is heaviest at the top. A quick check like 43π≈2.36 is an easy way to catch if you forgot to divide by M.
As the heaviest part of the wire shifts from one side of the arch to the other, the balance point (xˉ,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 y-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 C1 and C2, a single smooth parameterization cannot turn the corner. Instead, we find the mass of each smooth piece with its own parameter t and add the results:
∫Cf(x,y)ds=∫C1f(x,y)ds+∫C2f(x,y)ds
Let's find the total mass of a bent wire with density f(x,y)=x+y made of two straight segments joined together: C1 from (0,0) to (3,4), followed by C2 from (3,4) to (5,4).
Piecewise Wires and Straight Segments
Any straight segment from a starting point to an ending point can be parameterized over 0≤t≤1 by adding t times the total change in each coordinate:
position=start+t⋅(total change)(0≤t≤1)
Text solution
Parameterize the first segment C1 from (0,0) to (3,4) and find dsStarting at (0,0) with a total change of +3 in x and +4 in y gives the parameterization, and the stretch factor is just the segment's length:
x=3t,y=4t(0≤t≤1)
ds=32+42dt=5dt
Integrate to find the mass of C1Substituting the density x+y=7t and ds=5dt gives the mass of the first piece:
Mass of C1=∫01(3t+4t)(5dt)=35∫01tdt=35[21t2]01=17.5
Parameterize the second segment C2 from (3,4) to (5,4) and find its massStarting at (3,4) with a change of +2 in x and 0 in y gives x=3+2t,y=4 for 0≤t≤1, so ds=22+02dt=2dt:
Mass of C2=∫01((3+2t)+4)(2dt)=∫01(14+4t)dt=[14t+2t2]01=16
Add the masses of the two piecesAdding the two segments gives the total mass of the wire:
Total Mass=17.5+16=33.5
So the bent wire has a total mass of 33.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), we want to evaluate the 3D scalar line integral
∫Cf(x,y,z)ds
Wires in 3D Space
Along a 3D curve r(t)=⟨x(t),y(t),z(t)⟩ for a≤t≤b, the 3D Pythagorean theorem adds the z-derivative under the square root in ds:
ds=∣r′(t)∣dt=(dtdx)2+(dtdy)2+(dtdz)2dt
From there, we substitute x(t),y(t),z(t), and ds into the integral and integrate with respect to t just as in 2D.
7
Why Direction Doesn't Matter
What happens to the line integral if we walk along the same curve C in the opposite direction, written as −C?
Why Direction Doesn't Matter
The minus sign in −C means going along the same curve backwards from end to start, not making the integral negative. Because the derivatives dx/dt and dy/dt are squared inside ds=(dx/dt)2+(dy/dt)2dt, going the other way keeps the length ds positive and gives the exact same value:
∫−Cf(x,y)ds=∫Cf(x,y)ds
Key concepts
To evaluate any scalar line integral ∫Cfds, write the coordinates on the curve in terms of a single parameter t, replace ds with (dx/dt)2+(dy/dt)2dt (including +(dz/dt)2 in 3D), and integrate from the smaller t-bound to the larger t-bound:
∫Cf(x,y)ds=∫abf(x(t),y(t))(dtdx)2+(dtdy)2dt
The shape of the curve tells you how to pick the parameterization t:
Curve given as y=g(x)
Let x=t and y=g(t) (for y=x2, use x=t,y=t2 with ds=1+4t2dt).
Circle x2+y2=R2
Use the angle t with x=Rcost,y=Rsint, which simplifies ds to Rdt (for x2+y2=9,ds=3dt). Because direction doesn't affect ∫Cfds, you can use this counterclockwise parameterization even if the curve goes clockwise.
Straight segment
Use start+t⋅(total change) for 0≤t≤1, where ds is simply (segment length)dt (from (0,0) to (3,4) gives x=3t,y=4t and ds=5dt). If a straight wire has constant density, don't set up a line integral at all: just multiply density×length.
Sharp corners
Split C at each corner into smooth pieces C1,C2 and add their integrals.
For the center of mass (xˉ,yˉ)=(M1∫Cxfds,M1∫Cyfds), check symmetry before integrating: if the wire and its density f(x,y) are both symmetric across an axis (like f(x,y)=y on the upper semicircle x2+y2=9), that coordinate of the center of mass is right away 0.
8
Practice
1
Find the total mass of a straight wire running from (1,0) to (4,4) if its density at (x,y) is f(x,y)=2x+y.
Watch out: be careful to include the starting coordinate 1 in x=1+3t rather than writing x=3t, which would give 25.Watch out: don't leave out the stretch factor 5 in ds=5dt, which would give 7.
Use start+t⋅(total change) for 0≤t≤1: how much do x and y change from (1,0) to (4,4)?
Parameterize the straight segment for 0≤t≤1 and find dsStarting at (1,0) with a change of +3 in x and +4 in y gives the position and length factor (be careful to include the starting coordinate 1 in x=1+3t rather than writing x=3t, which would give 25, and don't leave out the stretch factor 5 in ds=5dt, which would give 7):
x=1+3t,y=4t(0≤t≤1),ds=32+42dt=5dt
Substitute into the mass integral and evaluateReplacing 2x+y with 2(1+3t)+4t=2+10t gives:
Mass=∫01(2+10t)(5dt)=5[2t+5t2]01=35
Answer: 35
2
Find the mass of a wire bent along the parabola y=21x2 from (0,0) to (2,2) with density f(x,y)=6x.
Watch out: leaving the bounds as 0 to 2 on the u-integral is a common mistake that gives 42; with u=1+t2 the bounds change from t=0,2 to u=1,5.
Since y is already written in terms of x, let x=t. What does dy/dt become inside ds=(dx/dt)2+(dy/dt)2dt?
Parameterize with x=t and find dsLetting x=t gives y=21t2 for 0≤t≤2, with dx/dt=1 and dy/dt=t:
ds=12+t2dt=1+t2dt
Substitute into the integral and use u=1+t2With u=1+t2, we have du=2tdt (so 6tdt=3du) and the bounds change from t=0,2 to u=1,5 (leaving the bounds as 0 to 2 on the u-integral is a common mistake that gives 42):
A wire is shaped like the 3D helix r(t)=⟨4cos(t),4sin(t),3t⟩ for 0≤t≤π. If the density at any point is f(x,y,z)=2z, find the total mass of the wire.
Watch out: don't forget to include (dz/dt)2=9 under the square root, which would make ds=4dt instead of 5dt and give 12π2.
Include all three derivatives in ds=(dx/dt)2+(dy/dt)2+(dz/dt)2dt, and simplify 16sin2t+16cos2t under the square root.
Find the 3D arc length dsPlugging dx/dt=−4sint,dy/dt=4cost, and dz/dt=3 into the 3D arc length formula gives a constant stretch factor (don't forget to include (dz/dt)2=9 under the square root, which would make ds=4dt instead of 5dt and give 12π2):
ds=(−4sint)2+(4cost)2+32dt=16+9dt=5dt
Substitute 2z=6t and integrateMultiplying the density 2(3t)=6t by ds=5dt gives:
Mass=∫0π(6t)(5dt)=30[21t2]0π=15π2
Answer: 15π2
4
A wire C is made of two pieces joined together: the quarter-circle C1 of x2+y2=4 in the first quadrant going clockwise from (0,2) to (2,0), followed by the straight line segment C2 from (2,0) to (2,3). Find the total mass of the wire if its density is f(x,y)=xy.
Watch out: integrating backwards from π/2 to 0 to match the clockwise direction makes the mass of C1 equal −4 and gives the wrong total 5. Direction doesn't matter for a scalar line integral.
Split the integral into C1 and C2. Does the clockwise direction on C1 change a scalar line integral, or can you integrate from t=0 to t=π/2?
Find the mass of the quarter-circle C1Because direction doesn't matter for a scalar line integral, we can use x=2cost,y=2sint with ds=2dt from t=0 to t=π/2 (integrating backwards from π/2 to 0 to match the clockwise direction makes the mass of C1 equal −4 and gives the wrong total 5):
Mass of C1=∫0π/2(2cost)(2sint)(2dt)=8[21sin2t]0π/2=4
Find the mass of the straight segment C2 from (2,0) to (2,3)Parameterizing with x=2,y=3t for 0≤t≤1 gives ds=02+32dt=3dt:
Mass of C2=∫01(2)(3t)(3dt)=18[21t2]01=9
Add the two massesAdding the two pieces gives the total mass:
Total Mass=4+9=13
Answer: 13
5
A wire lies along the quarter-circle x2+y2=4 in the first quadrant (x≥0,y≥0) and has density f(x,y)=x. Find its total mass M and its center of mass (xˉ,yˉ).
Parameterize the quarter-circle with radius R=2 for 0≤t≤π/2. Remember that the density f(x,y)=x is part of the tiny mass f(x,y)ds inside both center of mass integrals.
Parameterize the quarter-circle and find the total mass MUsing x=2cost,y=2sint for 0≤t≤π/2 gives ds=2dt:
M=∫0π/2(2cost)(2dt)=4[sint]0π/2=4
Find xˉ using the half-angle identity cos2t=21+cos(2t)Multiplying the coordinate x by the tiny mass xds and dividing by M=4 (forgetting to multiply by the density x gives xˉ=1, and forgetting to divide by M=4 gives 2π):