Two Integrals, Two Different Accumulations
A line integral can describe different kinds of accumulation along a curve. A scalar line integral adds up a scalar quantity per unit of distance travelled. A vector work integral adds up the component of a force in the direction of each small displacement.
The distinction matters even when both integrals are evaluated along exactly the same path. A scalar value has no direction, so its accumulation uses arc length. A force has a direction, so its work depends on how that force aligns with the motion.
Definitions from a Parametrization
Let \(C\) be a piecewise smooth curve parametrized by \(\mathbf{r}(t)\), for \(a\leq t\leq b\). On each smooth piece, the velocity vector is \(\mathbf{r}'(t)\), and the speed is \(\lVert\mathbf{r}'(t)\rVert\). The arc-length element is \(ds=\lVert\mathbf{r}'(t)\rVert\,dt\).
This integral uses the value of \(f\) at each point, multiplied by the small amount of distance travelled there. If \(f\) is a mass per unit length, for example, \(\int_C f\,ds\) gives the total mass distributed along the curve. If \(f\) is nonnegative, the accumulated total is nonnegative. More generally, a scalar line integral can be signed if \(f\) takes negative values.
Here, \(\mathbf{r}'(t)\,dt\) represents an infinitesimal displacement, not an infinitesimal distance. The dot product selects the component of the force along that displacement. A force perpendicular to the motion contributes zero work at that point; a force in the direction of motion contributes positive work, and a force against the motion contributes negative work.
Why the Formulas Have Different Factors
The formulas follow from what each integral is meant to add. Divide a smooth parameter interval into short subintervals. Over one such subinterval, the distance travelled is approximately \(\lVert\mathbf{r}'(t)\rVert\Delta t\), while the displacement vector is approximately \(\mathbf{r}'(t)\Delta t\).
For a scalar field, the contribution from that small portion is approximately the scalar value times the distance. For a force field, the contribution to work is approximately the force dotted with the displacement. Taking limits of these sums produces the two integral formulas.
Equivalently, where \(\mathbf{r}'(t)\ne\mathbf{0}\), define the unit tangent vector \(\mathbf{T}(t)=\mathbf{r}'(t)/\lVert\mathbf{r}'(t)\rVert\). Then the work formula can be written as \(\mathbf{F}\cdot\mathbf{T}\,ds\): it accumulates the tangential component of force per unit distance. This makes the difference especially clear. The scalar integral uses \(f\) itself, whereas work uses the tangential component of \(\mathbf{F}\).
Worked Example: Compare Both Integrals on One Segment
Worked Example: Compare Both Integrals on One Segment
Let \(\mathbf{r}(t)=(t,2t)\), \(0\leq t\leq1\). Along this segment, compare the scalar line integral of \(f(x,y)=x+y\) with the work integral for \(\mathbf{F}(x,y)=(y,x)\).
First find the velocity and speed:
At the point \(\mathbf{r}(t)=(t,2t)\), the scalar field is \(f(\mathbf{r}(t))=t+2t=3t\). Therefore,
For work, evaluate the force along the curve: \(\mathbf{F}(\mathbf{r}(t))=(2t,t)\). Its dot product with the velocity is
Thus,
Check: The scalar integral weights \(3t\) by the constant speed \(\sqrt{5}\), giving \(3\sqrt{5}/2\). The work integrand is \(4t\), obtained from the force-displacement dot product, giving \(2\). These are different quantities, so there is no reason for their values to agree.
Worked Example: Scalar Accumulation and Work on a Quarter-Circle
Worked Example: Scalar Accumulation and Work on a Quarter-Circle
Consider the counterclockwise quarter-circle \(\mathbf{r}(t)=(2\cos t,2\sin t)\), \(0\leq t\leq\pi/2\). Compute the scalar line integral for \(f(x,y)=x^2+y^2\) and the work integral for \(\mathbf{F}(x,y)=(-y,x)\).
The velocity and speed are
On this circle, \(x^2+y^2=4\), so \(f(\mathbf{r}(t))=4\). The scalar integral is
For the work integral, the force along the path is \(\mathbf{F}(\mathbf{r}(t))=(-2\sin t,2\cos t)\), which equals \(\mathbf{r}'(t)\). Therefore,
It follows that
Check: The quarter-circle has length \(2(\pi/2)=\pi\), and \(f=4\) everywhere on it, so its scalar integral is \(4\pi\). The force is tangent to the path with magnitude \(2\); its work is \(2\pi\), as the computed integral gives.
Orientation: Distance Does Not Have a Direction
Reversing the direction of traversal leaves arc length unchanged. Consequently, a scalar line integral \(\int_C f\,ds\) has the same value when the curve is traversed in reverse. A work integral changes sign under reversal: each displacement changes direction, so the force-displacement dot product changes sign. This distinction is consistent with the earlier result on orientation and work.
Worked Example: A Nonconstant Speed and a Perpendicular Force
Worked Example: A Nonconstant Speed and a Perpendicular Force
Take \(\mathbf{r}(t)=(t^2,0)\), \(0\leq t\leq1\). This traces the horizontal segment from \((0,0)\) to \((1,0)\), but its speed varies. Compute \(\int_C x\,ds\) and the work of the constant force \(\mathbf{F}(x,y)=(0,1)\).
The velocity and speed are
Along the curve, \(x=t^2\). The scalar line integral is therefore
For work, the force is perpendicular to the velocity at every point:
Hence,
Check: The scalar result is positive because \(x\) is nonnegative along the segment and is accumulated over distance. The work is zero because the force has no component in the direction of the horizontal displacement. Both results match their interpretations.
A Common Mistake: Using \(dt\) Instead of \(ds\)
A scalar line integral is not generally \(\int_a^b f(\mathbf{r}(t))\,dt\). That expression accumulates with respect to the parameter, not with respect to distance, and can change if the same path is traversed at a different speed. For a scalar line integral, the speed factor must be included.
For instance, on \(\mathbf{r}(t)=(t,2t)\), \(0\leq t\leq1\), take \(f(x,y)=x\). Omitting the speed would give the incorrect calculation
But the speed is \(\sqrt{5}\), so the correct scalar line integral is
The correction is to use \(ds=\lVert\mathbf{r}'(t)\rVert dt\). A different, equally important error is to replace a work integral by \(\int_C\lVert\mathbf{F}\rVert\,ds\). That expression accumulates the force magnitude, not its tangential component. Work requires the dot product \(\mathbf{F}\cdot d\mathbf{r}\).
How to Choose the Integral
Start by asking what is being accumulated. If the quantity is a scalar amount per unit length, use \(\int_C f\,ds\). If a force acts while an object moves and the desired quantity is work, use \(\int_C\mathbf{F}\cdot d\mathbf{r}\). Then parametrize the curve, evaluate the field along it, and include the appropriate factor: speed for a scalar line integral, or the velocity vector in the force dot product.
The distinction also clarifies units. If \(f\) has units of mass per unit length, then \(\int_C f\,ds\) has units of mass. If \(\mathbf{F}\) has units of force, then \(\int_C\mathbf{F}\cdot d\mathbf{r}\) has units of force times distance, or work. Dimensional consistency is a useful check on the setup.
Check Your Understanding
Use the definitions and interpretations to answer these questions.
- For a scalar field \(f\) and parametrization \(\mathbf{r}(t)\), what factor converts \(dt\) into arc length?
- Why does a force perpendicular to the motion contribute zero work?
- What happens to \(\int_C f\,ds\) and \(\int_C\mathbf{F}\cdot d\mathbf{r}\) when the orientation of \(C\) is reversed?
- On \(\mathbf{r}(t)=(t,3t)\), \(0\leq t\leq1\), set up—not evaluate—the scalar line integral for \(f(x,y)=x\).
- Explain why \(\int_C\lVert\mathbf{F}\rVert\,ds\) is not, in general, the work done by \(\mathbf{F}\).