A line integral adds up a quantity along a curve instead of along an interval. The scalar line integral ∫f ds weighs each small piece of the curve by its length, giving masses of wires and averages along paths. The vector line integral ∫F · dr adds up the component of a field along the direction of motion, giving the work a force does on a moving object. Both are computed by parametrizing the curve and turning the line integral into an ordinary integral in t.
What you'll learn
Compute a scalar line integral with ds = |r′(t)| dt
Compute the work integral of a vector field along a curve
Explain how orientation affects each kind of line integral
A single integral runs along a straight interval of the x-axis. A line
integral runs along a curve C, which may bend through the plane or through
space. Cut C into short pieces, multiply a quantity on each piece by the
piece’s length Δs, and add. The limit is
∫Cf(x,y)ds
the line integral of f with respect to arc length. If f is the density
of a wire bent along C, in mass per unit length, the integral is the mass of
the wire. With f=1 it is the length of C.
To compute it, parametrize C as r(t) for a≤t≤b. A small
change dt moves the point a distance ∣r′(t)∣dt, the same
arc length element as before:
∫Cfds=∫abf(r(t))r′(t)dt
The answer does not depend on which parametrization is used, as long as it
traces C once.
A constant force F moving an object along a straight displacement
d does work F⋅d: only the component of the
force along the motion counts. For a varying field and a curved path, cut the
path into short pieces. On each piece the displacement is about
Δr and the work about F⋅Δr. Adding
and taking the limit gives the line integral of F along C:
W=∫CF⋅dr=∫abF(r(t))⋅r′(t)dt
In components, with F=(P,Q) and dr=(dx,dy), the same
integral is written ∫CPdx+Qdy.
Arc length is always positive, so a wire has the same mass whichever end you
start from: ∫Cfds ignores direction. Work does not. Walking the
path backward reverses every displacement Δr, so every term
F⋅Δr changes sign. If −C is the curve traced
the other way,
∫−CF⋅dr=−∫CF⋅dr
A curve with a chosen direction is oriented, and every work integral
needs one. For a closed curve, the usual orientation is counterclockwise, and
the integral is written ∮CF⋅dr. When
F is a fluid’s velocity, this is the circulation: how strongly
the flow runs around C.
Evaluate ∫Cxds along the segment from (0,0) to (3,4).
Answer
215
Full solution
With r(t)=(3t,4t), ∣r′(t)∣=5, so ∫013t⋅5dt=215.
Find the length of one turn of the helix (cost,sint,t), 0≤t≤2π.
Answer
2π2
Full solution
∣r′(t)∣=sin2t+cos2t+1=2, so the length is ∫02π2dt.
A wire lies along the upper half of the unit circle, with density y at the point (x,y). Find its mass.
Answer
2
Full solution
∫Cyds=∫0πsintdt=2.
Evaluate ∫C(x+y)ds along the segment from (0,0) to (1,1).
Answer
2
Full solution
With r(t)=(t,t), ds=2dt, so the integral is ∫012t2dt=2.
Find the work done by F=(x,y) along the segment from (1,0) to (0,1).
Answer
0
Full solution
With r(t)=(1−t,t), F⋅r′=(1−t)(−1)+t=2t−1, and ∫01(2t−1)dt=0. Both endpoints are at distance 1 from the origin, and F=∇2x2+y2.
Find the circulation of F=(y,−x) around the unit circle, counterclockwise.
Answer
−2π
Full solution
F⋅r′=sint(−sint)+(−cost)cost=−1, so the integral is −2π. This field circles clockwise, against the direction of travel.
Evaluate ∫Cx2dx+y2dy along y=x2 from (0,0) to (1,1).
Answer
32
Full solution
With r(t)=(t,t2): ∫01(t2+t4⋅2t)dt=31+31=32.
Without integrating again, find the work done by F=(x2,−xy) along the quarter circle from (0,1) to (1,0).
Answer
32
Full solution
This is the path of Example 2 traced backward, so the work changes sign: −(−32).
A student computes the work of Example 4 as ∫02πF(r(t))⋅r′(t)∣r′(t)∣dt. On the unit circle they still get 2π. Why is the method wrong anyway?
Answer
The factor ∣r′(t)∣ does not belong in a work integral; here it happens to equal 1.
Full solution
The vector r′(t) already carries the speed. On a circle of radius 2, with r(t)=(2cost,2sint), the correct circulation is 8π, while the extra factor 2 would give 16π.
Frequently asked questions
What is a line integral?
An integral taken along a curve. The scalar version ∫f ds adds up f times arc length; the vector version ∫F · dr adds up the tangential component of a field times arc length.
How do you compute ∫f ds?
Parametrize the curve as r(t) for a ≤ t ≤ b. Then ds = |r′(t)| dt, and ∫f ds = ∫ f(r(t)) |r′(t)| dt from a to b.
How do you compute ∫F · dr?
With the same parametrization, dr = r′(t) dt, so ∫F · dr = ∫ F(r(t)) · r′(t) dt from a to b.
Does the direction of the curve matter?
For ∫F · dr, yes: reversing the direction changes the sign. For ∫f ds, no: arc length is positive either way.
What does ∫F · dr mean physically?
When F is a force, it is the work done by the force on an object moving along the curve. When F is a velocity field and the curve is closed, it is the circulation of the flow around the curve.