§ 01What is a Line Integral?
A line integral integrates a function not over a flat interval [a, b] on the number line, but over a curved path C in 2D or 3D space.
Ordinary integration sums up values f(x) along the x-axis. A line integral sums up values along a curve: which might spiral, loop, or wind through three dimensions. To make this tractable, you describe the curve using a parametrisation: a set of equations x = x(t), y = y(t), z = z(t) that trace the curve as t moves from a to b.
There are two fundamentally different kinds, and it is essential to keep them distinct:
Integrates a scalar-valued function f(x,y,z) with respect to arc length ds. The result does not depend on the direction you travel along C.
Physical meaning: total mass of a wire with density f, or total arc length when f = 1.
Integrates a vector field F dotted with the displacement element dr along the curve. The result changes sign if you reverse direction along C.
Physical meaning: work done by force field F on a particle moving along C.
§ 02Parametrising a Curve
Every line integral computation starts by choosing a parametrisation of the curve C. A parametrisation assigns coordinates (x, y) or (x, y, z) to each value of a parameter t ∈ [a, b].
Common Parametrisations to Memorise
ds = |r'(t)| dt = √[(dx/dt)² + (dy/dt)²] dt
In 3D: ds = √[(dx/dt)² + (dy/dt)² + (dz/dt)²] dt. This factor must appear in every scalar line integral.
§ 03Scalar Line Integrals — ∫C f ds
A scalar line integral integrates a real-valued function f(x, y) or f(x, y, z) with respect to arc length along the curve C.
Substitute the parametrisation into f, then multiply by the speed |r'(t)|. The result is an ordinary definite integral in t.
The 4-Step Method for Scalar Line Integrals
A key property: the scalar line integral is independent of parametrisation direction. Traversing C from B to A gives the same result as from A to B, because |r'(t)| is always positive.
§ 04Vector Line Integrals — ∫C F·dr (Work)
A vector line integral integrates a vector field F = (P, Q) in 2D (or F = (P, Q, R) in 3D) over the curve C by taking the dot product with the displacement element dr.
Substitute the parametrisation into F, dot with r'(t), and integrate. The dot product selects the component of F tangent to the curve at each point.
The 4-Step Method for Vector Line Integrals
§ 05Line Integrals in Component Form
In practice, vector line integrals are often written in component form using the differential notation dx and dy rather than the dot product. The two notations are completely equivalent.
Here dx = x'(t) dt and dy = y'(t) dt. Substituting the parametrisation: ∫ab [P(x(t),y(t))x'(t) + Q(x(t),y(t))y'(t)] dt.
This is identical to ∫C F·dr with F = (P, Q).
With F = (P, Q, R) and r'(t) = (x'(t), y'(t), z'(t)), this equals ∫ab [Px' + Qy' + Rz'] dt.
Relationship Between the Two Notations
Writing F·dr explicitly: F·dr = (P, Q)·(dx, dy) = P dx + Q dy. Every vector line integral can be expanded into component form, and every component-form integral is a vector line integral. Use whichever form is notationally cleaner for the problem at hand.
§ 06Conservative Fields and Path Independence
For a general vector field F, the value of ∫C F·dr depends on which path C you take between two endpoints: change the path and you change the integral. However, for a special class of fields called conservative fields, the integral depends only on the endpoints, not the path.
The scalar function f is called the potential function of F. For F = (P, Q) in 2D, this means P = ∂f/∂x and Q = ∂f/∂y.
Testing for a Conservative Field
In 2D, a field F = (P, Q) is conservative on a simply-connected domain if and only if:
This is called the curl condition. If the partial derivatives of P with respect to y equals the partial derivative of Q with respect to x everywhere in the domain, then F is conservative.
In 3D, F = (P, Q, R) is conservative if and only if curl F = ∇ × F = 0, which gives three conditions: ∂R/∂y = ∂Q/∂z, ∂P/∂z = ∂R/∂x, and ∂Q/∂x = ∂P/∂y.
Finding the Potential Function
If F is conservative, find f by integrating P with respect to x (treating y as constant), then differentiating with respect to y to match Q and solve for any remaining functions of y.
§ 07The Fundamental Theorem for Line Integrals
If F is conservative with potential function f, there is a dramatic shortcut: the vector line integral reduces to evaluating f at the two endpoints only.
If C runs from point A to point B and f is a potential function for ∇f, then the integral equals f evaluated at the endpoint B minus f evaluated at the starting point A. The entire path is irrelevant.
§ 08Worked Examples
Arc length = ∫C 1 ds = ∫02π |r'(t)| dt. The integral of f = 1 against arc length gives the total length.
Use x = t, y = t² for t ∈ [0, 1]. Then dx/dt = 1, dy/dt = 2t.
This requires numerical evaluation (or a trigonometric substitution). Using a CAS or Wolfram Alpha: ≈ 0.6063.
For exam purposes, leaving the answer as ∫01 (t + t²)√(1+4t²) dt is acceptable unless numerical evaluation is specified.
Unit circle: x = cosθ, y = sinθ, θ ∈ [0, 2π].
The integral is zero by symmetry, the function xy is odd under θ → θ + π, so positive and negative contributions cancel exactly over the full circle.
Line segment: r(t) = (t, 2t), t ∈ [0, 1]. So x(t) = t, y(t) = 2t, r'(t) = (1, 2).
x = t, y = t², t ∈ [0, 2]. Then dx = dt, dy = 2t dt.
Upper unit semicircle: x = cosθ, y = sinθ, θ ∈ [0, π]. So r'(θ) = (−sinθ, cosθ).
The field F = (x², xy) is conservative (check: ∂P/∂y = 0, ∂Q/∂x = y = 0 along this path? Actually ∂(xy)/∂x = y and ∂(x²)/∂y = 0, so the field is NOT conservative in general, the zero result here is specific to this field on this path, not due to path independence).
The field happens to be orthogonal to the semicircle at every point: a non-trivial geometric coincidence.
P = 2xy + 1, Q = x² + 3y².
∂P/∂y = ∂Q/∂x = 2x throughout ℝ². F is conservative.
g(y) is an unknown function of y only.
Set ∂f/∂y = Q = x² + 3y²:
x² + g'(y) = x² + 3y² ⟹ g'(y) = 3y²Verify: ∂f/∂x = 2xy + 1 = P ✓ and ∂f/∂y = x² + 3y² = Q ✓
From Example 08: f(x,y) = x²y + x + y³. F is conservative, so path doesn't matter.
This answer is the same for any path from (0,0) to (2,1).
C₁: horizontal segment from (0,0) to (2,0). C₂: vertical segment from (2,0) to (2,3). Total: ∫C = ∫C₁ + ∫C₂.
x = t, y = 0, dx = dt, dy = 0, t ∈ [0,2]:
∫C₁ = ∫02 (0)dt − t(0) = ∫02 0 dt = 0x = 2, y = t, dx = 0, dy = dt, t ∈ [0,3]:
∫C₂ = ∫03 t(0) − 2 dt = ∫03 −2 dt = −6Note: ∂P/∂y = 1 ≠ −1 = ∂Q/∂x so F = (y, −x) is NOT conservative, and the answer would differ for other paths.
§ 09Common Mistakes
§ 1010-Question Quiz
Test your understanding of both types of line integral, parametrisation, and conservative fields.