Line Integrals

⚡ Key Takeaways

A line integral integrates a scalar field or vector field along a curve in space. Key result: for a conservative vector field, the line integral depends only on endpoints (Fundamental Theorem of Line Integrals). Applies to work, flux, arc length, mass of wires, and circulation. Developed in the 19th century by Cauchy, Green, Stokes, and Kelvin in the context of physics and complex analysis.

💡 The Core Insight

Chop the curve into tiny pieces. On each piece the curve looks straight and the field looks constant, so the contribution is just (field value) × (length of piece) for scalars, or (field) · (tangent displacement vector) for vectors. Summing and taking the limit converts the geometry of a parametrized curve into a single ordinary integral over the parameter.

Formal Statement

DefinitionScalar Line Integral

Let CC be a smooth curve parametrized by r(t)=(x(t),y(t),z(t))\mathbf{r}(t) = (x(t), y(t), z(t)) for t∈[a,b]t \in [a,b], and let ff be a continuous scalar field defined on CC. The scalar line integral of ff along CC is

1
∫Cf ds=∫abf(r(t)) ∥r′(t)∥ dt\quad \int_C f\,ds = \int_a^b f(\mathbf{r}(t))\,\|\mathbf{r}'(t)\|\,dt

where ds=∥r′(t)∥ dtds = \|\mathbf{r}'(t)\|\,dt is the arc-length element, r′(t)=(x′(t),y′(t),z′(t))\mathbf{r}'(t) = (x'(t), y'(t), z'(t)) is the velocity vector, and ∥r′(t)∥=x′(t)2+y′(t)2+z′(t)2\|\mathbf{r}'(t)\| = \sqrt{x'(t)^2 + y'(t)^2 + z'(t)^2} is its magnitude (speed).

Derivation hint: Partition [a,b][a,b] into subintervals; on each, approximate arc length by ∥r′(ti∗)∥Δt\|\mathbf{r}'(t_i^*)\|\Delta t from the linear approximation Δr≈r′Δt\Delta\mathbf{r}\approx\mathbf{r}'\Delta t; form a Riemann sum and take the limit.

DefinitionVector Line Integral

Let F=(P,Q,R)\mathbf{F} = (P, Q, R) be a continuous vector field on a smooth oriented curve CC parametrized by r(t)\mathbf{r}(t), t∈[a,b]t \in [a,b]. The vector line integral (work integral) is

2
∫CF⋅dr=∫abF(r(t))⋅r′(t) dt\quad \int_C \mathbf{F}\cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t))\cdot \mathbf{r}'(t)\,dt

In component form, with dr=(dx,dy,dz)d\mathbf{r} = (dx, dy, dz),

3
∫CF⋅dr=∫CP dx+Q dy+R dz\quad \int_C \mathbf{F}\cdot d\mathbf{r} = \int_C P\,dx + Q\,dy + R\,dz

Here F⋅r′\mathbf{F}\cdot\mathbf{r}' is the dot product extracting the tangential component of F\mathbf{F}, and the orientation (direction of increasing tt) determines the sign.

Derivation hint: Work is force times displacement; over an infinitesimal step drd\mathbf{r}, the work is F⋅dr\mathbf{F}\cdot d\mathbf{r}; substitute dr=r′(t) dtd\mathbf{r} = \mathbf{r}'(t)\,dt and integrate over the parameter.

💡 The Core Insight

The vector integral can be rewritten using the unit tangent T=r′/∥r′∥\mathbf{T} = \mathbf{r}'/\|\mathbf{r}'\|, exposing it as a scalar line integral of the tangential component:

4
∫CF⋅dr=∫C(F⋅T) ds\quad \int_C \mathbf{F}\cdot d\mathbf{r} = \int_C (\mathbf{F}\cdot\mathbf{T})\,ds

Derivation hint: Substitute r′(t) dt=T ∥r′(t)∥ dt=T ds\mathbf{r}'(t)\,dt = \mathbf{T}\,\|\mathbf{r}'(t)\|\,dt = \mathbf{T}\,ds into equation [2].

TheoremFundamental Theorem of Line Integrals

Let F=∇φ\mathbf{F} = \nabla \varphi be a conservative vector field with continuous potential function φ\varphi on an open region containing a piecewise-smooth curve CC from point AA to point BB. Then

5
∫C∇φ⋅dr=φ(B)−φ(A)\quad \int_C \nabla\varphi\cdot d\mathbf{r} = \varphi(B) - \varphi(A)

The integral is independent of the path CC joining AA to BB; in particular, around any closed loop it is zero.

Derivation hint: Apply the multivariable chain rule to ddtφ(r(t))=∇φ⋅r′(t)\frac{d}{dt}\varphi(\mathbf{r}(t)) = \nabla\varphi\cdot\mathbf{r}'(t), then integrate using the single-variable Fundamental Theorem of Calculus.

Why It Holds / Derivation

ProofFundamental Theorem of Line Integrals

We prove equation [5] for a smooth curve; the piecewise case follows by adding contributions.

Step 1. Parametrize CC by r(t)\mathbf{r}(t), t∈[a,b]t\in[a,b], with r(a)=A\mathbf{r}(a) = A and r(b)=B\mathbf{r}(b) = B.

Step 2. By definition (equation [2]),

6
∫C∇φ⋅dr=∫ab∇φ(r(t))⋅r′(t) dt\quad \int_C \nabla\varphi\cdot d\mathbf{r} = \int_a^b \nabla\varphi(\mathbf{r}(t))\cdot \mathbf{r}'(t)\,dt

Derivation hint: Direct substitution of F=∇φ\mathbf{F} = \nabla\varphi into the vector line integral definition.

Step 3. Recognize the integrand by the chain rule. Define g(t)=φ(r(t))g(t) = \varphi(\mathbf{r}(t)). Then

7
g′(t)=∂φ∂xx′(t)+∂φ∂yy′(t)+∂φ∂zz′(t)=∇φ(r(t))⋅r′(t)\quad g'(t) = \frac{\partial\varphi}{\partial x}x'(t) + \frac{\partial\varphi}{\partial y}y'(t) + \frac{\partial\varphi}{\partial z}z'(t) = \nabla\varphi(\mathbf{r}(t))\cdot\mathbf{r}'(t)

Derivation hint: Multivariable chain rule for the composition of φ\varphi with the vector function r(t)\mathbf{r}(t).

Step 4. Apply the single-variable Fundamental Theorem of Calculus:

8
∫abg′(t) dt=g(b)−g(a)=φ(r(b))−φ(r(a))=φ(B)−φ(A)\quad \int_a^b g'(t)\,dt = g(b) - g(a) = \varphi(\mathbf{r}(b)) - \varphi(\mathbf{r}(a)) = \varphi(B) - \varphi(A)

Derivation hint: gg is differentiable on [a,b][a,b] with continuous derivative; FTC applies directly. Since the right-hand side depends only on AA and BB, the integral is path-independent. ■\blacksquare

∎
WT
William Thomson, Lord Kelvin
1824–1907

Kelvin connected line integrals of vector fields to physical circulation and helped formalize what is now Stokes' theorem (which he communicated to Stokes as an exam problem in 1854). His work on electromagnetism, fluid vortices, and thermodynamics relied heavily on integrating fields along curves and around loops. The notion that the circulation ∮CF⋅dr\oint_C \mathbf{F}\cdot d\mathbf{r} measures the "swirl" of a field threading a region is central to his fluid-dynamics legacy.

Building Intuition

🧠 Intuition

Imagine walking a hiking trail CC while a wind field F\mathbf{F} blows. The vector line integral ∫CF⋅dr\int_C\mathbf{F}\cdot d\mathbf{r} measures how much the wind helps or hinders you: when the wind aligns with your direction of travel (F⋅T>0\mathbf{F}\cdot\mathbf{T}>0) it adds positively; when it opposes you it subtracts. The total is the net "boost." Now imagine the trail is a wire of varying thickness, and ff is its density. The scalar line integral ∫Cf ds\int_C f\,ds sums up little chunks of mass — density times length — to give the total mass. The crucial distinction: the scalar integral ignores direction (reversing the path gives the same answer), while the vector integral flips sign when you walk the trail backwards.

Figure
A curve C divided into infinitesimal segments, showing the tangent vector T and a vector field F
C A B T F ds

Worked Examples

ExampleScalar Line Integral — Mass of a Wire

Given: A wire follows the helix r(t)=(cos⁡t,sin⁡t,t)\mathbf{r}(t) = (\cos t, \sin t, t) for t∈[0,2π]t\in[0,2\pi], with linear density f(x,y,z)=zf(x,y,z) = z (units: kg/m, with zz in meters).

Find: the total mass M=∫Cf dsM = \int_C f\,ds.

Step 1. Compute the velocity: r′(t)=(−sin⁡t,cos⁡t,1)\mathbf{r}'(t) = (-\sin t, \cos t, 1).

Step 2. Compute the speed:

∥r′(t)∥=sin⁡2t+cos⁡2t+1=2\|\mathbf{r}'(t)\| = \sqrt{\sin^2 t + \cos^2 t + 1} = \sqrt{2}

Step 3. Express ff along the curve: f(r(t))=z=tf(\mathbf{r}(t)) = z = t.

Step 4. Apply equation [1]:

M=∫02πt⋅2 dt=2[t22]02π=2⋅2π2M = \int_0^{2\pi} t \cdot \sqrt{2}\,dt = \sqrt{2}\left[\frac{t^2}{2}\right]_0^{2\pi} = \sqrt{2}\cdot 2\pi^2
M=22 π2≈27.92 kg\boxed{M = 2\sqrt{2}\,\pi^2 \approx 27.92 \text{ kg}}
ExampleVector Line Integral — Work Done by a Force

Given: A particle moves along the parabola y=x2y = x^2 from (0,0)(0,0) to (2,4)(2,4) under the force field F(x,y)=(xy,  x−y)\mathbf{F}(x,y) = (xy,\; x - y) (units: newtons, position in meters).

Find: the work W=∫CF⋅drW = \int_C \mathbf{F}\cdot d\mathbf{r}.

Step 1. Parametrize: r(t)=(t,t2)\mathbf{r}(t) = (t, t^2), t∈[0,2]t\in[0,2]. Then r′(t)=(1,2t)\mathbf{r}'(t) = (1, 2t).

Step 2. Evaluate F\mathbf{F} on the curve:

F(r(t))=(t⋅t2,  t−t2)=(t3,  t−t2)\mathbf{F}(\mathbf{r}(t)) = (t\cdot t^2,\; t - t^2) = (t^3,\; t - t^2)

Step 3. Form the dot product:

F⋅r′=t3(1)+(t−t2)(2t)=t3+2t2−2t3=−t3+2t2\mathbf{F}\cdot\mathbf{r}' = t^3(1) + (t - t^2)(2t) = t^3 + 2t^2 - 2t^3 = -t^3 + 2t^2

Step 4. Apply equation [2]:

W=∫02(−t3+2t2) dt=[−t44+2t33]02=−4+163=43W = \int_0^2 (-t^3 + 2t^2)\,dt = \left[-\frac{t^4}{4} + \frac{2t^3}{3}\right]_0^2 = -4 + \frac{16}{3} = \frac{4}{3}
W=43 J≈1.33 J\boxed{W = \frac{4}{3} \text{ J} \approx 1.33 \text{ J}}

Common Misconceptions

⚠️ Common mistake

Scalar and vector line integrals behave differently under reversal of orientation. Reversing the direction of the curve (−C-C) leaves the scalar integral unchanged, ∫−Cf ds=∫Cf ds\int_{-C} f\,ds = \int_C f\,ds, because ds=∥r′∥ dt>0ds = \|\mathbf{r}'\|\,dt > 0 regardless of direction. But the vector integral flips sign: ∫−CF⋅dr=−∫CF⋅dr\int_{-C}\mathbf{F}\cdot d\mathbf{r} = -\int_C\mathbf{F}\cdot d\mathbf{r}, because the tangent vector reverses. Confusing these is a common source of sign errors.

⚠️ Common mistake

A line integral does not generally depend only on the endpoints. Path independence holds only for conservative fields (F=∇φ\mathbf{F} = \nabla\varphi). For a general field, two different paths between the same endpoints give different answers. Always check whether F\mathbf{F} is conservative (e.g., via ∂P/∂y=∂Q/∂x\partial P/\partial y = \partial Q/\partial x on a simply connected domain) before invoking equation [5].

Counterexample

Consider F(x,y)=(−y,x)\mathbf{F}(x,y) = (-y, x) and two paths from (1,0)(1,0) to (−1,0)(-1,0): the upper semicircle and the lower semicircle of the unit circle. Upper path r(t)=(cos⁡t,sin⁡t)\mathbf{r}(t) = (\cos t, \sin t), t:0→πt: 0\to\pi:

∫=∫0π(−sin⁡t)(−sin⁡t)+(cos⁡t)(cos⁡t) dt=∫0π1 dt=π\int = \int_0^\pi (-\sin t)(-\sin t) + (\cos t)(\cos t)\,dt = \int_0^\pi 1\,dt = \pi

Lower path r(t)=(cos⁡t,−sin⁡t)\mathbf{r}(t) = (\cos t, -\sin t), t:0→πt: 0\to\pi gives −π-\pi. The two paths disagree, so this field is not conservative — indeed ∂(−y)/∂y=−1≠1=∂(x)/∂x\partial(-y)/\partial y = -1 \neq 1 = \partial(x)/\partial x, so the integral around the full circle is π−(−π)=2π≠0\pi - (-\pi) = 2\pi \neq 0.

Connections

connection

The vector line integral around a closed loop is tied to surface integrals by Green's Theorem in the plane and Stokes' Theorem in space, which relate ∮CF⋅dr\oint_C\mathbf{F}\cdot d\mathbf{r} to the curl of F\mathbf{F} over an enclosed region. The Fundamental Theorem of Line Integrals (equation [5]) is the curve-level case of the Generalized Stokes Theorem on differential forms. Path independence is logically equivalent to F\mathbf{F} being a Conservative Vector Field, which on simply connected domains is equivalent to ∇×F=0\nabla\times\mathbf{F} = \mathbf{0}. Complex-analytic Contour Integration is essentially a vector line integral in the plane, and Cauchy's Integral Theorem is its path-independence statement for holomorphic functions.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- 1743 — Alexis Clairaut studies path-dependence conditions for differential expressions P dx+Q dyP\,dx + Q\,dy, foreshadowing exactness criteria.
- 1825 — Augustin-Louis Cauchy publishes work on integrals of complex functions along paths, founding contour integration.
- 1828 — George Green's privately published Essay introduces what becomes Green's theorem, linking plane line integrals to area integrals.
- 1831 — Michael Faraday's electromagnetic induction experiments give physical meaning to loop integrals of the electric field.
- 1850s — William Thomson (Kelvin) develops circulation and curl concepts; in 1854 he poses the curl–circulation relation to George Stokes.
- 1854 — Stokes sets the theorem now bearing his name as a Cambridge Tripos exam question.
- 1873 — James Clerk Maxwell's Treatise on Electricity and Magnetism systematizes line integrals throughout field theory.
- 1880s–1890s — Josiah Willard Gibbs and Oliver Heaviside formalize modern vector calculus notation, standardizing ∫CF⋅dr\int_C \mathbf{F}\cdot d\mathbf{r}.
- 1899 — Henri Poincaré and Élie Cartan develop the theory of differential forms, unifying line, surface, and volume integrals under the generalized Stokes theorem.

Subtleties & Limits

open-problem

The equivalence "∇×F=0\nabla\times\mathbf{F} = \mathbf{0} implies F\mathbf{F} conservative" depends on the topology of the domain. On a simply connected region it holds, but on a region with holes it can fail — the classic example F=(−y,x)/(x2+y2)\mathbf{F} = (-y, x)/(x^2+y^2) has zero curl yet nonzero circulation 2π2\pi around the origin. Quantifying this failure is the subject of de Rham cohomology, which counts the independent "obstructions" (the dimension of closed-but-not-exact forms) and connects line integrals to the deep topology of the underlying space. For non-smooth or fractal curves, defining ∫Cf ds\int_C f\,ds requires care about rectifiability, and rough-path theory (Lyons, 1990s) extends line-integral notions to curves too irregular for classical arc length, with applications to stochastic differential equations.

See Also

Conservative Vector Field · Green's Theorem · Stokes' Theorem · Arc Length · Contour Integration · Vector Fields · Divergence Theorem · Differential Forms