Calculus 3 • Vector Fields & Line/Surface Integrals

Line Integrals of Scalar Fields

Extend single-variable integration to curves in space by accumulating a scalar function along an arbitrary path.

Three-dimensional axes with spatial movement and a multivariable function.
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The idea of integrating a quantity along a curve rather than over a flat interval has deep roots in both physics and geometry. When physicists in the eighteenth and nineteenth centuries sought to compute the mass of a wire whose density varies from point to point, or the work done by a force field along a trajectory, they needed a generalization of the familiar definite integral. The line integral emerged as the natural answer: instead of summing f(x) Δx over sub-intervals, one sums f(r) Δs over tiny arc-length elements of a curve. This conceptual leap unified disparate physical problems under a single mathematical framework and laid the groundwork for modern vector calculus.

1760s • Euler & Variational Paths

Leonhard Euler developed variational techniques requiring integration of functions along curves, anticipating the formal definition of path integrals in the calculus of variations.

1811 • Gauss & Complex Integrals

Carl Friedrich Gauss explored integrals along paths in the complex plane, foreshadowing the rigorous treatment of line integrals in both real and complex analysis.

1828 • Green's Theorem

George Green published his essay relating a line integral around a closed curve to a double integral over the enclosed region, firmly establishing the line integral as a central object in mathematical physics.

1850s • Riemann & Arc-Length Formalism

Bernhard Riemann formalized the notion of integration on manifolds and refined the arc-length parameterization that underpins the modern definition of scalar line integrals.

1880s–1900s • Vector Calculus Textbooks

Gibbs and Heaviside synthesized scalar and vector line integrals into the standard vector calculus curriculum, giving us the notation and framework used in courses today.

The central question that the scalar line integral answers is deceptively simple: How do we accumulate a scalar quantity that is defined at every point of a curve when the curve itself may twist through two- or three-dimensional space? Answering this question requires combining parameterization of curves, arc-length computation, and Riemann-sum reasoning into a single elegant integral.

SECTION 2

Core Principles & Definitions

A scalar field assigns a single real number to every point in a region of space—think of temperature, density, or elevation as familiar examples. A line integral of a scalar field integrates such a function along a smooth (or piecewise-smooth) curve C. The integral weights the function values by the infinitesimal arc-length element ds rather than by dx, which makes the result independent of how the curve is parameterized—a crucial property that distinguishes it from line integrals of vector fields.

1

Parameterization of C

A curve C is described by a vector function r(t) = ⟨x(t), y(t), z(t)⟩ for t ∈ [a, b]. Different parameterizations trace the same geometric curve but at different speeds.
2

Arc-Length Element ds

The infinitesimal arc length is ds = ‖r′(t)‖ dt. This factor converts the parameter increment dt into the true geometric length along the curve, ensuring the integral is parameterization-independent.
3

The Scalar Line Integral

∫C f ds = ∫ab f(r(t)) ‖r′(t)‖ dt. The integrand is the product of the scalar field evaluated on the curve and the speed factor.
4

Parameterization Independence

Because ds already encodes direction-neutral length, the value of ∫C f ds does not change when you reparameterize C (even reversing direction). This contrasts with line integrals of vector fields, which are orientation-dependent.
✦

KEY TAKEAWAY

Imagine walking along a hilly trail and recording the temperature at every step. The scalar line integral is like computing a weighted average of the temperature you experience, where each measurement is weighted by the actual distance you walked during that step—not by the elapsed time. A faster walk (a different parameterization) doesn't change the total 'temperature-times-distance' you accumulate; only the shape of the trail and the temperature distribution matter.

SECTION 3

Visual Explanation

The diagram below illustrates the Riemann-sum interpretation of a scalar line integral. A curve C is partitioned into small arcs of length Δsk. At a sample point on each arc, the scalar field f is evaluated, producing a height. The product f(rk*)·Δsk is the area of a thin 'fence panel.' Summing all such panels and taking the limit as the partition becomes infinitely fine yields the scalar line integral—geometrically, the area of the curtain (or fence) hanging from the graph of f down to the curve C.

Riemann-Sum Interpretation: The Curtain Under f Along Cf value (height)Curve C (arc-length direction →)Cf(r(t))Δs₁Δs₂Δs₃Δs₄Curtain area = ∫ f dsPartition lines (Δsₖ)
The shaded curtain between the curve C (violet) and the graph of f (cyan) represents the value of the scalar line integral. The dashed pink lines mark the partition points whose spacings Δsk are measured in arc-length, not in the parameter t.

Notice that the height of each panel is determined by f evaluated at the sample point on the curve, while the width is the arc-length element Δsk. In the limit, the sum of all these thin panels converges to the area of the curtain, which is precisely ∫C f ds. This geometric picture extends to three dimensions, where the curtain becomes a surface draped along a space curve, though the integral still returns a single number—the total accumulated value of the scalar field along the path.

SECTION 4

Mathematical Framework

The formal construction begins with a smooth parameterization of the curve and reduces the line integral to an ordinary single-variable integral. Suppose C is parameterized by r(t) = ⟨x(t), y(t), z(t)⟩ for t ∈ [a, b], where each component function is continuously differentiable and r′(t) ≠ 0 on (a, b) (i.e., the parameterization is regular). The following equations codify the framework.

ARC-LENGTH ELEMENT

ds=‖r′(t)‖dt=√((dx/dt)2+(dy/dt)2+(dz/dt)2)dtds = ‖r′(t)‖ dt = √( (dx/dt)² + (dy/dt)² + (dz/dt)² ) dt

Here ‖r′(t)‖ is the speed of the parameterization. When the curve lies in ℝ², drop the z-component.

SCALAR LINE INTEGRAL — DEFINITION

∫Cfds=∫abf(r(t))⋅‖r′(t)‖dt∫_C f ds = ∫_a^b f(r(t)) · ‖r′(t)‖ dt

f(r(t)) substitutes the parameterization into the scalar field. Multiplication by ‖r′(t)‖ converts dt to ds. The result is a standard definite integral in t.

ARC LENGTH OF C (SPECIAL CASE f = 1)

L(C)=∫C1ds=∫ab‖r′(t)‖dtL(C) = ∫_C 1 ds = ∫_a^b ‖r′(t)‖ dt

Setting f = 1 recovers the familiar arc-length formula. This shows that arc length is itself a scalar line integral—the simplest one.

AVERAGE VALUE OF f ALONG C

fˉ=(1/L(C))∫Cfdsf̄ = (1/L(C)) ∫_C f ds

This extends the single-variable average-value theorem: divide the total accumulated value by the total length of the curve.

ℹ

Parameterization Independence — Why It Works

If φ: [c, d] → [a, b] is a smooth reparameterization with φ′(u) > 0 (or φ′(u) < 0), then substituting t = φ(u) transforms both f(r(t)) and ‖r′(t)‖ dt in a way that the |φ′(u)| factors cancel. This means the integral ∫C f ds depends only on the geometric curve and the field f, not on how fast or in which direction you traverse C.

SECTION 5

Step-by-Step Computation & Common Parameterizations

Computing a scalar line integral follows a systematic procedure. The diagram below summarizes the workflow, and the table that follows catalogs the most common curve parameterizations you will encounter in practice, along with their speed factors.

Workflow: Evaluating ∫_C f dsStep 1 — Parameterize CStep 2 — Compute r′(t) and ‖r′(t)‖Step 3 — Substitute r(t) into f to get f(r(t))Step 4 — Form the product f(r(t)) · ‖r′(t)‖Step 5 — Integrate from a to bResult: ∫_C f ds
The five-step workflow for evaluating a scalar line integral. Each colored box corresponds to a distinct computational phase.
Curve TypeParameterization r(t)‖r′(t)‖
Line segment from P to Q(1−t)P + tQ, t ∈ [0,1]‖Q − P‖ (constant)
Circle of radius R⟨R cos t, R sin t⟩, t ∈ [0, 2π]R (constant)
Graph y = g(x)⟨t, g(t)⟩, t ∈ [x₁, x₂]√(1 + (g′(t))²)
Helix⟨a cos t, a sin t, bt⟩, t ∈ [0, T]√(a² + b²) (constant)
Parabola y = t²⟨t, t²⟩, t ∈ [t₁, t₂]√(1 + 4t²)

Common parameterizations and their speed factors

💡

Tip: Constant Speed Simplifies Everything

When ‖r′(t)‖ is constant (as with lines, circles, or helices), it factors out of the integral, leaving you with a simpler single-variable integral multiplied by a constant. Always check for this before diving into algebra.

SECTION 6

Worked Example

Consider the scalar field f(x, y) = x² + y and the curve C given by the quarter-circle of radius 2 from (2, 0) to (0, 2). We wish to compute ∫C f ds.

Evaluate ∫_C (x² + y) ds where C is the quarter-circle of radius 2

  1. 1

    Step 1 — Parameterize the Curve

    The quarter-circle of radius 2 in the first quadrant from (2, 0) to (0, 2) is parameterized by r(t) = ⟨2 cos t, 2 sin t⟩ for t ∈ [0, π/2].
    r(t) = ⟨2 cos t, 2 sin t⟩, t ∈ [0, π/2]
  2. 2

    Step 2 — Compute r′(t) and ‖r′(t)‖

    Differentiate: r′(t) = ⟨−2 sin t, 2 cos t⟩. The speed is ‖r′(t)‖ = √(4 sin²t + 4 cos²t) = √4 = 2. Since the speed is constant, ds = 2 dt.
    ‖r′(t)‖ = 2 (constant)
  3. 3

    Step 3 — Substitute into f

    Replace x and y by their parameterized forms: f(r(t)) = (2 cos t)² + 2 sin t = 4 cos²t + 2 sin t.
    f(r(t)) = 4 cos²t + 2 sin t
  4. 4

    Step 4 — Set Up the Integral

    Form the product and write the definite integral: ∫C f ds = ∫₀^{π/2} (4 cos²t + 2 sin t) · 2 dt = ∫₀^{π/2} (8 cos²t + 4 sin t) dt.
    ∫₀^{π/2} (8 cos²t + 4 sin t) dt
  5. 5

    Step 5 — Evaluate

    Split the integral. For the first part, use the identity cos²t = (1 + cos 2t)/2: ∫₀^{π/2} 8 cos²t dt = 8 · ∫₀^{π/2} (1 + cos 2t)/2 dt = 4[t + (sin 2t)/2]₀^{π/2} = 4[π/2 + 0 − 0] = 2π. For the second part: ∫₀^{π/2} 4 sin t dt = 4[−cos t]₀^{π/2} = 4[0 − (−1)] = 4. Adding these results: 2π + 4.
    ∫_C f ds = 2π + 4 ≈ 10.28
💡

Verification Check

The arc length of the quarter-circle is L = (π/2)·2 = π ≈ 3.14. The average value of f along C is therefore (2π + 4)/π ≈ 3.27. Since f ranges from f(2,0) = 4 to f(0,2) = 2 along the curve with intermediate values near 3–4, this average is plausible—a quick sanity check that the answer is in the right ballpark.

SECTION 7

Scalar vs. Vector Line Integrals

Students often confuse scalar line integrals (∫C f ds) with vector line integrals (∫C F · dr). Though they share the word 'line integral,' they differ in what is being integrated, how the integrand combines with the curve, and what physical quantities they represent. The following comparison highlights the key distinctions.

FeatureScalar Line Integral ∫ f dsVector Line Integral ∫ F · dr
IntegrandScalar field f : ℝⁿ → ℝVector field F : ℝⁿ → ℝⁿ
Differentialds = ‖r′(t)‖ dt (scalar, unsigned)dr = r′(t) dt (vector, signed)
Orientation dependenceNo — reversing C gives the same valueYes — reversing C negates the value
Geometric meaningArea of curtain under f above CCirculation or work done by F along C
Physical exampleMass of wire with density fWork done by force field F
Result signNon-negative if f ≥ 0Can be positive, negative, or zero

Comparison of scalar and vector line integrals

✦

KEY TAKEAWAY

Think of the scalar line integral as measuring how much 'stuff' a curve passes through—like summing up the total paint deposited on a roller that follows a curved track through a paint-density field. The vector line integral, by contrast, is directional: it measures how much a vector field pushes along (or against) the direction of travel, like computing net work. The scalar version cares about distance traversed; the vector version cares about direction traversed.

SECTION 8

Connections to Surface Integrals & Advanced Theory

The scalar line integral is the lowest-dimensional member of a family of integrals that generalize Riemann integration to objects embedded in higher-dimensional spaces. Understanding how it fits into this hierarchy provides valuable perspective for the rest of Calculus 3 and beyond.

Integral TypeDomainElementNotation
Definite integralInterval [a, b] ⊂ ℝdx∫_a^b f(x) dx
Scalar line integralCurve C ⊂ ℝⁿds (arc length)∫_C f ds
Scalar surface integralSurface S ⊂ ℝ³dS (surface area)∬_S f dS
Volume integralRegion E ⊂ ℝ³dV (volume)∭_E f dV

Hierarchy of integrals over geometric domains

In each case the pattern is the same: the scalar field f is evaluated on the geometric domain, weighted by the appropriate measure element (length, area, volume), and integrated. When you move to surface integrals later in the course, the speed factor ‖r′(t)‖ will be replaced by ‖ru × rv‖, the cross product of two partial derivatives—a direct analogue.

More broadly, Green's theorem, Stokes' theorem, and the divergence theorem all connect integrals over boundaries (curves or surfaces) to integrals over interiors (regions or volumes). Mastering the scalar line integral is the essential first step in understanding this rich web of relationships that forms the backbone of mathematical physics, electromagnetism, fluid dynamics, and differential geometry.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

Explain why the scalar line integral ∫C f ds is independent of the parameterization chosen for C (including direction), whereas the vector line integral ∫C F · dr changes sign when the orientation of C is reversed.
Show answer
The scalar line integral uses the arc-length element ds = ‖r′(t)‖ dt, which is always non-negative regardless of parameterization direction; reversing the curve introduces a factor of |φ′(u)| that absorbs any sign change. In contrast, the vector line integral uses dr = r′(t) dt, a vector quantity. When the curve is traversed in the opposite direction, r′(t) reverses its direction, so F · dr picks up a sign change. Fundamentally, ds measures unsigned length whereas dr measures a signed displacement, making the scalar integral orientation-independent and the vector integral orientation-dependent.

Question 2: BASIC CALCULATION

Evaluate ∫C (x + y) ds where C is the line segment from (0, 0) to (3, 4).
Show answer
Parameterize C as r(t) = ⟨3t, 4t⟩ for t ∈ [0, 1]. Then r′(t) = ⟨3, 4⟩ and ‖r′(t)‖ = 5. Substituting into f: f(r(t)) = 3t + 4t = 7t. The integral becomes ∫₀¹ 7t · 5 dt = 35 ∫₀¹ t dt = 35 · [t²/2]₀¹ = 35/2. Therefore ∫C (x + y) ds = 35/2 = 17.5. This makes sense: the line segment has length 5 and the average value of f along it is (0 + 7)/2 = 3.5, giving 5 × 3.5 = 17.5.

Question 3: INTERMEDIATE

Compute ∫C xy ds where C is the portion of the parabola y = x² from (0, 0) to (1, 1).
Show answer
Parameterize C as r(t) = ⟨t, t²⟩ for t ∈ [0, 1]. Then r′(t) = ⟨1, 2t⟩ and ‖r′(t)‖ = √(1 + 4t²). The integrand becomes f(r(t)) = t · t² = t³. The integral is ∫₀¹ t³ √(1 + 4t²) dt. Use the substitution u = 1 + 4t², so du = 8t dt and t² = (u − 1)/4. When t = 0, u = 1; when t = 1, u = 5. Rewriting: t³ dt = t² · t dt = ((u−1)/4)(du/8) = (u−1) du/32. The integral becomes (1/32)∫₁⁵ (u − 1)√u du = (1/32)∫₁⁵ (u3/2u^{3/2} − u1/2u^{1/2}) du = (1/32)[(2u5/22u^{5/2}/5) − (2u3/22u^{3/2}/3)]₁⁵ = (1/32)[(2⋅55/22·5^{5/2}/5 − 2⋅53/22·5^{3/2}/3) − (2/5 − 2/3)]. Evaluating: 55/25^{5/2} = 25√5, 53/25^{3/2} = 5√5, so the expression is (1/32)[(50√5/5 − 10√5/3) − (6/15 − 10/15)] = (1/32)[(10√5 − 10√5/3) + 4/15] = (1/32)[20√5/3 + 4/15] = (1/32)(100√5 + 4)/15 = (100√5 + 4)/480 = (25√5 + 1)/120 ≈ 0.485.

Question 4: APPLIED

A thin wire has the shape of the helix r(t) = ⟨cos t, sin t, t⟩ for t ∈ [0, 2π]. Its linear density (mass per unit length) at any point is ρ(x, y, z) = z. Find the total mass of the wire.
Show answer
Mass = ∫C ρ ds. First, r′(t) = ⟨−sin t, cos t, 1⟩ and ‖r′(t)‖ = √(sin²t + cos²t + 1) = √2. Substituting ρ = z = t: Mass = ∫₀^{2π} t · √2 dt = √2 · [t²/2]₀^{2π} = √2 · (4π²/2) = 2√2 π². Numerically, this is about 27.9 units of mass. The result is intuitive: the density increases linearly with height, and the wire spirals upward over one full revolution, so most of the mass is concentrated near the top of the helix where z is largest.

Question 5: CRITICAL THINKING

Let f(x, y) = x² + y² and let CR be the circle of radius R centered at the origin. Without computing the integral directly, use symmetry and the average-value formula to determine ∫CRC_R f ds as a function of R. Then verify your answer by direct computation.
Show answer
On the circle CRC_R, every point satisfies x² + y² = R², so f is constant with value R² along the entire curve. The arc length of CRC_R is 2πR. By the average-value interpretation, ∫_{C_R} f ds = R² · 2πR = 2πR³. Verification by direct computation: parameterize r(t) = ⟨R cos t, R sin t⟩ for t ∈ [0, 2π], so ‖r′(t)‖ = R and f(r(t)) = R²cos²t + R²sin²t = R². The integral is ∫₀^{2π} R² · R dt = R³ · 2π = 2πR³, confirming the symmetry argument. This problem illustrates a powerful strategy: when f happens to be constant on C (as when C is a level curve of f), the line integral reduces to f · L(C), bypassing all parameterization work entirely.

SUMMARY

Summary

Summary

The scalar line integral ∫C f ds generalizes single-variable integration to curves in ℝⁿ by replacing dx with the arc-length element ds = ‖r′(t)‖ dt. The computation proceeds in five steps: parameterize C, compute the speed factor ‖r′(t)‖, substitute r(t) into f, form the product, and integrate over the parameter interval. The result is parameterization-independent and orientation-independent—it depends only on the geometric curve and the scalar field.

Geometrically, ∫C f ds equals the area of the curtain hanging from the graph of f down to C. Physically, it computes quantities like the mass of a wire with varying density or the average temperature along a path. It contrasts with the vector line integral ∫C F · dr, which is orientation-dependent and measures work or circulation. The scalar line integral is the foundational building block for surface integrals and the great integral theorems of vector calculus.

Varsity Tutors • Calculus 3 • Line Integrals of Scalar Fields