Line Integrals of
Scalar Fields
Learn how to accumulate quantities along a curve: from arc length to mass, using the power of parametric integration.
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
Why Line Integrals Matter
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
Example 1: Line Segment
Evaluate \(\int_C (x + y)\,ds\), where \(C\) is the segment from \((0,0)\) to \((3,4)\).
Example 2: Semicircle
Evaluate \(\int_C x^2\,ds\), where \(C\) is the upper semicircle of radius \(2\) centered at the origin.
Example 3: Parabolic Arc
Evaluate \(\int_C x\,ds\), where \(C\) is the parabola \(y = x^2\) from \((0,0)\) to \((1,1)\).
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
Common Mistakes to Avoid
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}\).