01 / 20

Line Integrals of
Scalar Fields

Learn how to accumulate quantities along a curve: from arc length to mass, using the power of parametric integration.

Calculus 3

What Is a Line Integral?

A line integral of a scalar field extends the idea of a definite integral from a straight interval on the number line to a curve in space. Instead of integrating over \([a,b]\), you integrate a function \(f\) along a path \(C\).

Visual Intuition: The Curtain

x z C (curve on xy-plane) z = f(x,y) Area of "curtain" ds

Why Line Integrals Matter

★ Mass of a Wire
If \(\rho(x,y)\) is density, then \(\int_C \rho\,ds\) gives the total mass of a curved wire.
★ Arc Length
Setting \(f = 1\), the integral \(\int_C 1\,ds\) simply computes the length of the curve.
★ Average Value
The average of \(f\) along \(C\) is \(\frac{1}{L}\int_C f\,ds\), where \(L\) is the arc length.

The Formal Definition

Let \(f\) be a continuous scalar field and \(C\) a smooth curve. Partition \(C\) into small arcs of length \(\Delta s_i\). Pick a sample point \(P_i^*\) on each arc. Then:

This is completely analogous to a Riemann sum, except \(\Delta s_i\) measures arc length instead of a horizontal interval \(\Delta x\).

Computing via Parametrization

If \(C\) is parametrized by \(\mathbf{r}(t) = \langle x(t),\, y(t) \rangle\) for \(a \leq t \leq b\), then the arc-length element is:

Substituting into the definition gives the evaluation formula:

Extension to Three Dimensions

For a space curve \(\mathbf{r}(t) = \langle x(t),\, y(t),\, z(t) \rangle\), the formula extends naturally:

Scalar vs Vector Line Integrals

Scalar: \(\int_C f\,ds\) Vector: \(\int_C \mathbf{F}\cdot d\mathbf{r}\)
Integrand Scalar function \(f\) Vector field \(\mathbf{F}\)
Element \(ds\) (arc length) \(d\mathbf{r}\) (displacement vector)
Direction Independent (same both ways) Depends on orientation
Meaning Accumulated quantity (mass, area) Work done by force
Result Always \(\geq 0\) when \(f \geq 0\) Can be negative

How to Evaluate Step by Step

1
Parametrize the curve. Write \(\mathbf{r}(t) = \langle x(t), y(t) \rangle\) and identify the interval \([a, b]\).
2
Compute \(\mathbf{r}'(t)\). Differentiate each component: \(x'(t), y'(t)\).
3
Find \(\|\mathbf{r}'(t)\|\). This is \(\sqrt{x'(t)^2 + y'(t)^2}\), the speed factor.
4
Substitute into \(f\). Replace \(x\) and \(y\) with \(x(t)\) and \(y(t)\) in \(f(x,y)\).
5
Integrate. Evaluate \(\int_a^b f(x(t),y(t))\,\|\mathbf{r}'(t)\|\,dt\).

Example 1: Line Segment

Evaluate \(\int_C (x + y)\,ds\), where \(C\) is the segment from \((0,0)\) to \((3,4)\).

x y 3 4 0 (0,0) (3,4) C
1
Parametrize: \(\mathbf{r}(t) = \langle 3t,\, 4t \rangle\), \(0 \leq t \leq 1\).
2
Speed: \(\|\mathbf{r}'(t)\| = \sqrt{9+16} = 5\).
3
Integrate: \(\int_0^1 (3t+4t)\cdot 5\,dt = \int_0^1 35t\,dt = \frac{35}{2}\).

Example 2: Semicircle

Evaluate \(\int_C x^2\,ds\), where \(C\) is the upper semicircle of radius \(2\) centered at the origin.

x y (2,0) (-2,0) C r = 2
1
Parametrize: \(x = 2\cos t,\; y = 2\sin t,\; 0 \leq t \leq \pi\).
2
Speed: \(\|\mathbf{r}'(t)\| = \sqrt{4\sin^2 t + 4\cos^2 t} = 2\).
3
Integrate: \(\int_0^{\pi} (4\cos^2 t)(2)\,dt = 8\int_0^{\pi}\cos^2 t\,dt = 8 \cdot \frac{\pi}{2} = 4\pi\).

Example 3: Parabolic Arc

Evaluate \(\int_C x\,ds\), where \(C\) is the parabola \(y = x^2\) from \((0,0)\) to \((1,1)\).

1
Parametrize: Let \(x = t\), so \(y = t^2\), and \(0 \leq t \leq 1\).
2
Speed: \(\|\mathbf{r}'(t)\| = \sqrt{1^2 + (2t)^2} = \sqrt{1 + 4t^2}\).
3
Substitute: \(f = x = t\).
4
Integrate: \(\int_0^1 t\sqrt{1+4t^2}\,dt\). Use the substitution \(u = 1+4t^2\).

Arc Length as a Special Case

When we set \(f = 1\), the line integral reduces to arc length:

This confirms that the \(ds\) element is truly measuring infinitesimal arc length: the integral sums up tiny lengths along the entire curve.

Key Properties

1
Linearity: \(\int_C (\alpha f + \beta g)\,ds = \alpha\int_C f\,ds + \beta\int_C g\,ds\).
2
Additivity: If \(C = C_1 \cup C_2\), then \(\int_C f\,ds = \int_{C_1} f\,ds + \int_{C_2} f\,ds\).
3
Orientation independence: \(\int_C f\,ds = \int_{-C} f\,ds\). Reversing the curve does not change the value.
4
Reparametrization invariance: The integral depends only on the geometric curve, not on the specific parametrization chosen.

Common Mistakes to Avoid

✕ Forgetting the Speed Factor
Writing \(\int_a^b f(x(t),y(t))\,dt\) without multiplying by \(\|\mathbf{r}'(t)\|\). The speed factor is essential: it converts \(dt\) into \(ds\).
✕ Confusing \(ds\) with \(d\mathbf{r}\)
Using \(ds = \mathbf{r}'(t)\,dt\) (a vector) instead of \(ds = \|\mathbf{r}'(t)\|\,dt\) (a scalar). The scalar line integral uses the magnitude.
✕ Wrong Parameter Bounds
Using the wrong interval for \(t\). Always verify that \(\mathbf{r}(a)\) and \(\mathbf{r}(b)\) match the start and end points of the curve.

Summary Reference

Situation Integral Key Detail
General scalar line integral \(\int_a^b f(\mathbf{r}(t))\,\|\mathbf{r}'(t)\|\,dt\) Always multiply by speed
Arc length \(\int_a^b \|\mathbf{r}'(t)\|\,dt\) Set \(f = 1\)
Mass of wire \(\int_C \rho\,ds\) \(\rho\) is linear density
Average value on curve \(\frac{1}{L}\int_C f\,ds\) \(L\) is total arc length
Piecewise curve \(\sum_k \int_{C_k} f\,ds\) Split into smooth pieces

Question 1 of 5

What does the line integral \(\int_C f\,ds\) compute geometrically when \(f(x,y) \geq 0\)?

Question 2 of 5

If \(\mathbf{r}(t) = \langle t,\, 2t \rangle\) for \(0 \leq t \leq 3\), what is \(\|\mathbf{r}'(t)\|\)?

Question 3 of 5

Evaluate \(\int_C 1\,ds\) where \(C\) is the circle \(x^2 + y^2 = 9\).

Question 4 of 5

What happens to \(\int_C f\,ds\) if you reverse the direction of traversal along \(C\)?

Question 5 of 5

Evaluate \(\int_C xy\,ds\), where \(C\) is parametrized by \(\mathbf{r}(t) = \langle \cos t,\, \sin t \rangle\) for \(0 \leq t \leq \frac{\pi}{2}\).