Line integrals of scalar functions
Add up a scalar function f along a curve C as ∫_C f ds, compute it with ds = |r′(t)| dt, see that it ignores the pace and the direction of travel, and extend it to pieces, closed curves and wires in space.
It opens on
A thin wire is bent into the upper unit semicircle. Its density is y, so it is heavier near the top. What is the mass of the whole wire, when the density changes from point to point?
Why it matters
Mass of a wire, length, and the area of a fence all come from this one idea, and the line integrals of fields that follow are built from the same recipe with an extra dot product.
Good to know first
- Vector fields: a field assigns an arrow to every point, which is what later integrals will add up along a path
- Arc length and parametrization: the length of a smooth curve r(t) is L = ∫ |r′(t)| dt, the integral of the speed
Step by step
Adding up along a wire
Define the line integral ∫_C f ds as a limit of sums over tiny pieces, compute it with ds = |r′(t)| dt, and find the mass of the semicircular wire.
For the wire C take r(t) = ⟨cos t, sin t⟩, 0 ≤ t ≤ π; then r′ = ⟨−sin t, cos t⟩, |r′| = 1 and ds = dt.
A common mix-up
Ds is just dx, the wire seen flat.
In fact: Ds is a bit of length along the tilted curve, √(dx² + dy²) = |r′| dt; the wire from (0, 0) to (1, 2) has length √5, not 1.
Another speed, another direction
Show that ∫_C f ds does not depend on the parametrisation or the orientation, and contrast it with the integral with respect to x.
By the chain rule r′(u) = ⟨−2sin 2u, 2cos 2u⟩, so |r′| = 2 and ds = 2 du.
A common mix-up
Reversing the wire changes the sign, like swapping limits.
In fact: The parameter still runs upward and ds ≥ 0, so the mass is 2 either way; only dx and dy integrals flip sign.
Pieces, closed curves and wires in space
Add the integrals over the pieces of a piecewise smooth curve, write closed curves with ∮, and integrate along a wire in space.
Close the semicircle C₁ with its diameter C₂: r₂(s) = ⟨−1 + 2s, 0⟩, 0 ≤ s ≤ 1, so r₂′ = ⟨2, 0⟩ and |r₂′| = 2.
A common mix-up
Only the curved part of the closed wire counts.
In fact: Each piece is parametrised with its own speed and the integrals are added; the perimeter of the half-disc is π + 2, not π or π + 1.
Try it
Find ∫_C x ds for C: r(t) = ⟨3cos t, 3sin t⟩, 0 ≤ t ≤ π/2.Answer
9
Hint: The speed is 3
Find ∫_C y dx for the semicircle traced from (−1, 0) to (1, 0), r(t) = ⟨−cos t, sin t⟩, 0 ≤ t ≤ π.Answer
π/2
Hint: x′ = sin t
Find the mass of the straight wire from (0, 0) to (1, 2) with density ρ = x.Answer
√5/2 ≈ 1.12
Hint: r(t) = ⟨t, 2t⟩ has speed √5
If the density were 1 everywhere, what would the formula give?Answer
∫ from 0 to π of 1 dt = π, the length of the semicircle.
What would we get if we forgot the factor 2?Answer
∫ from 0 to π/2 of sin 2u du = 1, which is wrong: the answer would depend on the pace.
