Line Integrals
A line integral takes the ordinary integral — a sum along a straight piece of the real line — and bends the line into an arbitrary curve threading through space. You still chop the domain into tiny pieces, weight the field by the size of each, and sum in the limit of vanishing pieces; only now the pieces are little arcs of a curve , and the weight is either their unsigned length or their directed displacement. That single choice splits the subject in two. The scalar line integral weights a scalar field by arc length — the mass of a bent wire. The vector line integral weights a vector field by directed displacement, projecting it onto the tangent — the work integral of mechanics and the circulation integral of fluids and electromagnetism. The whole machine runs on one trick: choose any smooth parametrisation , and the line integral collapses to an ordinary one-variable integral in . What makes it the load-bearing wall of vector calculus is a question with no analogue on the real line — does the answer depend on the route, or only on the endpoints? When the field is a gradient, , the work integral forgets the path and returns ; otherwise the path matters, closed loops enclose nonzero circulation, and that failure is measured exactly by the curl through Green's and Stokes' theorems. Mechanical work, voltage, Ampère's law, and fluid vorticity are all this one integral.
- A line integral accumulates a field along a curve ; parametrise by , , and it becomes an ordinary integral in .
- Scalar integral uses the unsigned ; vector (work) integral uses the directed , keeping only the tangential part of .
- The canonical meaning of the vector integral is work: is the energy a force delivers along a path.
- A conservative field makes the integral path-independent and equal to (gradient theorem); its loop integral vanishes.
- Non-conservative fields carry circulation: Green's and Stokes' theorems tie a closed line integral to the curl over any spanning region or surface.
- Curl-free is not conservative unless the domain is simply connected — the angle field gives around a hole.
- Key idea: Pick a parametrisation , ; then and . The value is independent of the parametrisation (scalar) or independent up to an orientation sign (vector).
Pick a parametrisation , , of the curve; then both flavours become ordinary -integrals, and , whose value is independent of the parametrisation you choose (scalar) or independent up to a sign fixed by orientation (vector).
Where this lives today
The line integral is the operational definition of quantities measured every day. In electromagnetism it is two Maxwell equations in integral form: Faraday's law is what an EMF meter reads around a coil, and Ampère's law gives a solenoid's field. In aerodynamics the circulation around a wing sets its lift through Kutta–Joukowski, , and Kelvin's theorem (that is conserved for an ideal fluid) explains the starting vortex shed behind an accelerating aerofoil. Promoted to a phase integral , the same object is Bohr–Sommerfeld quantisation and, in quantum matter, the Berry phase around a loop in momentum space — whose -quantised values (the same non-simply-connected physics as the angle field) underlie the Aharonov–Bohm effect and quantum-Hall topological invariants. Whenever a measured number accumulates a field along a path, a line integral is doing the accounting.
The physical picture
Imagine hiking a trail while a wind blows. At each footstep the wind helps or hinders you by — its component along your step, times the step length. A crosswind does no work, a tailwind positive, a headwind negative. Add these over the whole trail and you get the total work the wind does; that running sum is the vector line integral. The scalar version is even more tangible: bend a wire into the shape of with linear mass density ; multiply density by each length and sum, and you have weighed the wire. Here only the length of each piece counts, never its direction — which is why is unsigned and the scalar integral does not care which way you walk.
Whether the work integral depends on the route is the central drama of the subject, with no counterpart on the real line. For a conservative field the wind is the downhill direction of a hidden landscape ; the total work is the elevation change between start and finish, so any two routes with the same endpoints agree and a loop does zero net work. For a non-conservative field the answer genuinely depends on the route — a longer or twistier path changes the total, and a closed loop can accumulate nonzero circulation. The cleanest way to see this is to compute the same work along two curves with the same endpoints, watch the numbers disagree, and then watch the gap turn out to equal an enclosed area.
The core equations
The scalar line integral generalises the ordinary integral directly: weight a scalar field by the length of each tiny arc and sum. Parametrising turns the arc-length element into — speed times parameter step — and the whole thing becomes an ordinary -integral.
where: — scalar field defined on the curve; — parametrisation of for ; — unsigned arc-length element, ; — speed along the parametrisation. Reading: the answer is the field averaged along the wire, weighted by how much wire sits at each point. The vector line integral instead weights the field by the directed displacement , keeping only the component of along the curve. Substituting again reduces it to one ordinary integral — the object physicists call work or circulation.
where: — vector field (e.g. a force); — directed displacement element, ; — velocity/tangent vector. Reading: project onto the direction of travel and add up, keeping the sign. The two integrals are linked through the unit tangent : the vector integral is the scalar integral of the tangential component , which makes plain why a field everywhere perpendicular to the curve does no work.
where: — unit tangent, ; — scalar tangential component. In Cartesian components the same integral becomes a sum of differentials — the form used when a curve is given by , , relations.
where: — Cartesian components of ; — components of . Reading: a differential 1-form integrated over the curve — the language in which Green's and Stokes' theorems are stated. The single most important special case is a gradient field. When , the chain rule turns the integrand into a total derivative and the integral collapses to the endpoint difference — no parametrisation needed, no dependence on the route.
where: — scalar potential with ; — start and end points of . Reading: the fundamental theorem of calculus, promoted to any curve; conservative fields are exactly the gradients. In the plane a closed line integral converts to a double integral over the enclosed region by Green's theorem — the bridge between circulation and the scalar curl .
where: — components of ; — region enclosed by the simple closed curve ; — integral around counter-clockwise. Its three-dimensional generalisation is Stokes' theorem, equating the circulation around a loop to the flux of the curl through any spanning surface.
where: — any surface spanning the loop ; — curl; — oriented surface element. Finally, orientation: reversing the direction of travel flips the sign of the vector integral but leaves the scalar integral untouched, since arc length is unsigned.
where: — the curve traversed in reverse. Reading: work is signed and orientation-sensitive; mass and length are not.
The goal is to build the line integral from its definition as a limit of sums and to show that the seemingly magical step — replacing a curve integral by an ordinary integral in a parameter — is nothing more than the chord of a smooth curve being well approximated by its tangent. We partition the curve, project the field onto each chord, insert a parametrisation, and take the limit to reach equation (2); the same argument with unsigned lengths gives equation (1). This is what makes every later computation legitimate.
Step 1. Partition the curve into small arcs by points and form the Riemann sum , where is the chord of the -th arc. Why: this is the literal meaning of "sum the tangential push over the path" — each term is a field value dotted into a genuine displacement, so units and geometry are correct before any calculus enters.
Step 2. Introduce a smooth parametrisation , , with . For a differentiable curve the chord equals the tangent times the parameter step to leading order, , with an error of order . Why: this is the one approximation in the construction, and smoothness is the hypothesis that makes it exact in the limit.
Step 3. Substitute to get and let ; by definition this is the Riemann integral . Why: the curve integral has become a textbook one-variable integral — the entire practical payoff.
Step 4. Repeat with to get the scalar integral , equation (1). Because is a length it is unsigned, so reversing the traversal cannot change it — the orientation asymmetry of (8) is visible right here. Why: the two flavours differ only in whether the weight is the vector chord or its length. *Verified: reparametrising with leaves unchanged for orientation-preserving maps and negates it for orientation-reversing maps, consistent with equation (8).*
Go deeper · Derivation B · 1 minThe gradient theorem and why conservative fields forget the path
The goal is to prove the fundamental theorem for line integrals, equation (5): when the field is a gradient the integral depends only on the endpoints. The proof is short but its consequences organise the entire subject — it explains why potential energy and voltage are well defined, why conservative loops vanish, and, read backwards, why a field with a potential must be curl-free. We take , feed it into equation (2), recognise a total derivative by the chain rule, and apply the ordinary fundamental theorem of calculus.
Step 1. With the integrand of equation (2) is . By the multivariable chain rule this is the total -derivative . Why: a gradient dotted into a velocity is the rate of change of the scalar along the motion, so the integrand is secretly a derivative.
Step 2. Integrate with the fundamental theorem of calculus: . Why: only the endpoint values survive, so the interior of the path — its shape, length, detours — drops out entirely.
Step 3. Specialise to a closed curve, : then . Why: a conservative field does zero net work around any loop — the content of energy conservation and of "voltage around a circuit sums to zero".
Step 4. Read the theorem in reverse: if with twice continuously differentiable, then , since mixed partials commute. Why: every conservative field is curl-free — but the converse needs a simply connected domain, the subtlety in the warning below. *Verified: for , ; integrating from to along any path gives , matching a direct straight-line computation.*
Go deeper · Derivation C · 1 minWork done by a central inverse-square force
The goal is to show that the archetypal force of physics — gravity and the Coulomb force, both of the form — does work depending only on the starting and ending radii, never on the path between, and to extract its potential. This is the concrete engine behind conservation of orbital energy and the very notion of gravitational and electrostatic potential energy. We exploit that only the radial part of a displacement survives the dot product with , collapsing an integral over an arbitrary space curve into a one-dimensional radial integral.
Step 1. For any displacement, , the change in radial distance, because the angular parts of are orthogonal to and drop out. Why: a central force only feels how much closer or farther you got, not how you swung around, so angular motion is invisible to the work.
Step 2. Substitute into the work integral: , an ordinary integral in the single variable . Why: once the integrand depends only on , the path is reduced to its radial shadow, so any two paths with the same endpoint radii agree.
Step 3. Integrate: . Only and appear, confirming path-independence and identifying the potential with . Why: the field is conservative, and its potential energy is the familiar of the Kepler and hydrogen problems, recovered purely from the line integral. *Verified: has the opposite sign to , so and … reorder to , consistent with Arfken and the Kepler energy.*
Limiting cases
Special cases strip the definition down to its skeleton and show what each ingredient controls.
| Case | Result | Meaning |
|---|---|---|
| Conservative field | Path-independent; every closed-loop integral vanishes (gradient theorem). | |
| Closed curve, curl-free, simply connected | By Stokes' theorem, inside forces zero circulation. | |
| Constant field, straight segment | Collapses to the elementary dot product: work equals force times displacement. | |
| Uniform scalar density | A constant factors out, leaving the arc length of the curve. | |
| Field perpendicular to curve | everywhere; a pure crosswind does no work. | |
| Reversed orientation | Vector integral flips sign; the scalar integral is unchanged. |
Worked examples
1 · Path dependence and Green's theorem in one shot (fully worked)
Take the non-conservative field . Compute the work from to along (a) the straight line and (b) the parabola , show they differ, and confirm the difference against Green's theorem.
Step 1. Check it is non-conservative: with , , the scalar curl is , so we expect the two paths to disagree.
Step 2. Straight line, , : then and , so . Integrate: .
Step 3. Parabola, , : then and , so . Integrate: . The two answers differ — the field is path-dependent, as promised.
Step 4. Now close the loop: go out along the parabola, back along the line. This traces the boundary of the region between the curves counter-clockwise, so . Green's theorem predicts , which is . The gap in the work, , equals the enclosed area, — path dependence and curl are the same fact.
2 · Mass of a helical wire (scalar line integral, fully worked)
A wire is bent into one turn of the helix , , with linear mass density . Find its total mass.
Step 1. Arc-length element: , so . The helix is traced at constant speed, so .
Step 2. Density on the curve: , since the third coordinate is .
Step 3. Assemble equation (1): . So in the wire's mass units.
Step 4. Sanity check equation (8): since stays positive under reversal, the mass is unchanged — a wire weighs the same walked either way, exactly as a scalar line integral must.
3 · Circulation of the angle field (the hole that matters)
Evaluate for counter-clockwise around the unit circle.
Step 1. Parametrise , , ; on the circle , so the denominators are all .
Step 2. Field on the path: , so identically.
Step 3. Integrate: . Nonzero — even though wherever is defined — because the enclosed disc contains the forbidden origin, so Stokes' theorem does not apply. This is the concrete face of the warning above and of the complex-analysis winding number.
Physics of the portrait
Line integrals are the language of the integral theorems of vector calculus, and no one did more to invent that language from nothing than a self-taught miller from Nottingham.
Origins · 1 minGeorge Green and how this was discovered
George Green is the most improbable figure in mathematical physics: the son of a Nottingham miller, with barely a year of formal schooling, he worked the family windmill for most of his life, yet in 1828 he privately published An Essay on the Application of Mathematical Analysis to the Theories of Electricity and Magnetism. Far ahead of its time, it introduced the word potential for the scalar function whose gradient is the force field, and stated the integral identity now called Green's theorem — the bridge between a line integral around a closed curve and a double integral over the region it encloses. Green taught himself the continental calculus of Laplace and Poisson from a Nottingham subscription library; his Essay drew only 51 subscribers. He did not enter Cambridge as an undergraduate until 1833, aged forty, and died eight years later, almost unknown. His work was rescued by William Thomson (Lord Kelvin), who found a copy in 1845, grasped its importance at once, and had it reprinted in Crelle's Journal, spreading Green's identities to Stokes, Maxwell, and the founders of field theory. Every time a physicist writes or computes a potential difference as a path-independent integral, they are speaking Green's language. The line integral is, through his theorem, the very hinge on which classical field theory turns.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, §10–11 (vector calculus and line integrals) · Arfken & Weber, Mathematical Methods for Physicists, 7th ed., §3.2 · Hassani, Mathematical Physics, Ch. 13 (vector analysis) · Nakahara, Geometry, Topology and Physics, §5–6 (differential forms and integration on manifolds) · Byron & Fuller, Mathematics of Classical and Quantum Physics, Ch. 1 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., §11.1.
Provenance. The definitions and theorems are standard vector calculus (Stone & Goldbart §10–11; Arfken & Weber §3.2; Riley-Hobson-Bence §11.1). A verifier should recompute: (1) versus for , and the gap equalling the enclosed area (curl ); (2) the helix mass ; (3) the angle-field circulation and its vanishing curl off the origin; (4) the central-force work ; (5) for .
Prerequisites. Scalar and Vector Fields · The Gradient Operator · The Directional Derivative. Leads to. Green's Theorem in the Plane · Stokes' Theorem · The Curl of a Vector Field.
Ask the tutor: Give me any curve and field and I will parametrise it, work the line integral both ways, and show you whether the answer depends on the path.
What is the difference between the scalar and vector line integral, really?
They differ in how you weight each tiny piece of the curve. The scalar integral weights the field by the unsigned length — good for mass, charge, or length, which do not care about direction. The vector integral weights it by the directed displacement , keeping only the component of along the curve — good for work and circulation, which flip sign on reversal. A quick tell: if reversing your walk should flip the sign (work against a force becomes work with it), use the vector integral; if it should not (the wire weighs the same either way), use the scalar one.
How do I choose a parametrisation, and does the answer depend on it?
Choose any smooth, one-to-one map tracing the curve once; the natural choice comes from the curve's own equation (a circle wants , a graph wants ). For the scalar integral the value is completely independent of the parametrisation — any speed, any starting point gives the same number, because is intrinsic to the curve. For the vector integral it is independent up to the sign fixed by orientation: same-direction parametrisations agree, reversing negates the answer. So pick whatever is convenient; only the direction of travel can affect the vector result.
Why does a conservative field give a path-independent integral?
Because a conservative field is a gradient, , and a gradient dotted into the velocity is the rate of change of along the path — a total derivative. Integrating it from to collapses, by the fundamental theorem of calculus, to , which mentions only the endpoints; the interior of the path never appears. Physically is a landscape (potential energy per unit charge or mass), and moving through a landscape changes your "height" by an amount set only by where you start and stop. This is why gravitational potential energy and electrostatic voltage are well-defined numbers attached to points.
If a field is curl-free, isn't it automatically conservative?
Only if its domain has no holes — is simply connected. Curl-free is a local condition (point by point) while conservative is global (it constrains large loops), and topology can drive a wedge between them. The standard example is the angle field : its curl is zero wherever it is defined, yet its integral around a loop encircling the missing origin is . Stokes' theorem does not save you because no surface spans that loop without piercing the forbidden origin. On a simply connected domain — where every loop shrinks to a point without leaving the domain — curl-free does imply conservative.
What does Green's theorem have to do with the difference between two paths?
They are two views of one number. The work along two different paths from to differs by the work around the closed loop formed by going out on one and back on the other, and Green's theorem rewrites that loop integral as the double integral of the curl over the enclosed region. So the amount by which two paths disagree equals the total curl trapped between them. In Worked Example 1 the paths differed by and the enclosed area (with curl ) was exactly . When the curl is zero throughout a simply connected region between the paths, the difference vanishes and the field is path-independent.
Where do line integrals actually show up in physics?
Almost everywhere a quantity is accumulated along a path: mechanical work ; potential difference ; Faraday's and Ampère's laws; fluid circulation ; the arc length and mass of curved objects; the Bohr–Sommerfeld and Berry phase integrals. The recurring theme: a closed line integral measures a source or topological content enclosed by the loop — current, vorticity, or a phase winding — which is why line integrals are inseparable from Green's and Stokes' theorems.