4.4.27 · D2Multivariable Calculus

Visual walkthrough — Line integrals — scalar and vector, work done

1,975 words9 min readBack to topic

We build the whole thing from zero. If a word like "dot product" shows up, we draw it first.


Step 1 — What a curve is, and why one number locates you on it

We call that one number . As ticks from a start value to an end value , a moving dot traces the curve. The dot's position is written

  • (bold) — the position vector: an arrow from the origin to where the dot currently sits.
  • — the dot's coordinates as functions of the clock .
  • — the clock runs from (start) to (finish).
Figure — Line integrals — scalar and vector, work done

WHY parametrise? Because once every point on the wiggly curve has an address , any sum "over the curve" becomes an ordinary integral in the single variable — something we already know how to do.


Step 2 — Velocity : the arrow that points along the curve

  • ("delta") — plain shorthand for "a small change in". is a vector: an arrow with both length and direction.
  • — the tiny slice of clock-time for this step.

WHY divide by ? To get a rate that doesn't shrink to nothing as the step shrinks. Shrinking :

  • — the velocity vector. Its direction is tangent to the curve (points where the dot is heading); its length is the speed (how fast arc-length is being eaten up).
  • — the derivatives of each coordinate: how fast and separately change.
Figure — Line integrals — scalar and vector, work done

Step 3 — Two ways to measure one tiny step: length vs displacement

This is the fork in the road that produces two different integrals.

Length of the tiny step. Take the length of the displacement arrow:

Shrinking gives the arc-length element

  • — a scalar, always (it's a length; see Arc length).
  • — the speed, from the square-root of squared component-rates. Squares kill signs, so direction is thrown away here — remember this.

Displacement of the tiny step. Keep the whole arrow:

  • — a vector. It remembers direction. Reverse your travel and flips sign, so flips sign too.
Figure — Line integrals — scalar and vector, work done

Step 4 — Scalar line integral: add up (value)(tiny length)

WHY the factor? Because mass = density length, and is the length of the piece. Let the pieces shrink; the sum becomes an integral. Substitute the Step-3 fact so everything is in :

Figure — Line integrals — scalar and vector, work done

Step 5 — Dot product: pulling out only the "forward" part of a push

Before the work integral, we must build the tool it uses. That tool is the dot product.

The number that extracts "how much of lies along " is the dot product (full details in Dot product):

  • — the angle between the two arrows.
  • — the dial that runs from (same direction, full help) through (perpendicular, no help) to (opposite, full fight).

WHY this tool and not another? Multiplication alone would ignore direction; the dot product is the unique simple operation that keeps only the aligned component — exactly what "work" needs.

Figure — Line integrals — scalar and vector, work done

Step 6 — Work: add up (forward-push)(tiny displacement)

Substitute from Step 3 and add up:

Figure — Line integrals — scalar and vector, work done

Step 7 — The bridge: why the vector integral is a tangential scalar integral

Then, using Step 3's two facts together:

So the work integral is literally a scalar line integral whose density is the forward-component :

  • — a plain number at each point: "how strongly the field pushes forward here."

This is why work "feels like mass of a wire" but with a signed density.

Figure — Line integrals — scalar and vector, work done

Step 8 — Every case: reversing orientation, sideways fields, zero speed

We must show what happens in the corner cases, or you'll meet one unprepared.

Case A — reverse the curve (walk it backwards). The travel direction flips, so and hence and .

  • Work: . Dragging against the field undoes work. Sign flips.
  • Scalar: has that square-root, so no change. Mass of a wire is the same whichever end you start from.

Case B — force exactly perpendicular to motion. Then , , so on every step: zero work, no matter how strong is. (A magnetic-type push that only steers, never speeds up.)

Case C — degenerate: the dot stops, . At an instant where velocity is zero, and : that instant contributes nothing to either integral. Both formulas stay valid; a momentary pause adds no mass and no work. (If the dot is stuck for a whole interval, reparametrise to skip it.)

Figure — Line integrals — scalar and vector, work done
Recall Why is

path-independent? Because with , so — endpoints only. Preview of Fundamental Theorem for Line Integrals and Gradient and conservative fields. Check :


The one-picture summary

Figure — Line integrals — scalar and vector, work done

One tiny step splits into two children: its length (direction erased by the square-root) feeds the scalar/mass integral; its displacement (direction kept) is dotted with to feed the work integral. That single fork explains every difference — including why reversing the curve leaves mass alone but flips the sign of work.

Recall Feynman retelling (cover and explain aloud)

An ant walks a bent wire. Cut the trip into steps so short each is basically straight. For mass: each step has a little length; multiply by how heavy the wire is there; add all the pieces. Length has no arrow, so walking the wire backwards gives the same total — mass doesn't care about direction. For work: there's a wind at every point. On each short step I only count the part of the wind pushing the ant forward — that's the dot product, the tool that keeps the aligned part and drops the sideways part. Add "forward-push × step-length" all along. Walk backwards and forward-push becomes backward-fight, so the total flips sign — work does care about direction. Both totals come from the same little step; they only differ in whether we keep the step's arrow () or just its length ().


Connections