01 / 21

Line Integrals of
Vector Fields

Learn how to compute work done by a force along a curve using \(\int_C \mathbf{F} \cdot d\mathbf{r}\), connecting vector calculus to physical intuition.

Calculus 3

What Is a Line Integral?

A line integral generalizes the definite integral from a straight interval on the number line to a curve in space. Instead of summing values over \([a,b]\), we sum contributions along a path \(C\).

Scalar Line Integral
\(\int_C f\,ds\): integrates a scalar function over arc length. Gives "weighted length."
Vector Line Integral
\(\int_C \mathbf{F}\cdot d\mathbf{r}\): integrates a vector field along a curve. Computes work.

The Physical Idea: Work

Recall from physics: when a constant force \(\mathbf{F}\) moves an object along a straight displacement \(\mathbf{d}\), the work done is:

But what if the force varies from point to point, and the path is a curve? We break the curve into tiny segments \(d\mathbf{r}\), compute the tiny work \(\mathbf{F}\cdot d\mathbf{r}\), and sum them all up:

Visualizing \(\mathbf{F} \cdot d\mathbf{r}\) Along a Curve

C
\(\mathbf{F}\)
\(d\mathbf{r}\)
\(\mathbf{F}\)
\(d\mathbf{r}\)
Force \(\mathbf{F}\)
Tangent \(d\mathbf{r}\)
Curve \(C\)

The Formal Definition

Let \(\mathbf{F}(x,y,z) = \langle P, Q, R \rangle\) be a continuous vector field and let \(C\) be a smooth curve parametrized by \(\mathbf{r}(t) = \langle x(t), y(t), z(t) \rangle\) for \(a \le t \le b\). Then:

Expanding the dot product gives the component form:

What Each Piece Means

\(\mathbf{F}(\mathbf{r}(t))\)
The force vector evaluated at the point on the curve at parameter \(t\).
\(\mathbf{r}'(t)\)
The velocity/tangent vector of the parametrization. Its direction tells us which way we travel.
\(dt\)
A tiny increment in the parameter. Converts the path integral into an ordinary single-variable integral.

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}\)
Measure \(ds = |\mathbf{r}'(t)|\,dt\) \(d\mathbf{r} = \mathbf{r}'(t)\,dt\)
Operation Multiply \(f \cdot ds\) Dot product \(\mathbf{F}\cdot d\mathbf{r}\)
Depends on direction? No (unsigned) Yes (signed)
Physical meaning Mass of a wire, curtain area Work done by a force

How to Compute \(\int_C \mathbf{F}\cdot d\mathbf{r}\)

1
Parametrize the curve: write \(\mathbf{r}(t)\) for \(a \le t \le b\). Check the direction matches the orientation of \(C\).
2
Compute \(\mathbf{r}'(t)\): differentiate each component of \(\mathbf{r}(t)\).
3
Substitute the parametrization into \(\mathbf{F}\): replace \(x, y, z\) with \(x(t), y(t), z(t)\) to get \(\mathbf{F}(\mathbf{r}(t))\).
4
Dot product: compute \(\mathbf{F}(\mathbf{r}(t)) \cdot \mathbf{r}'(t)\), yielding a scalar function of \(t\).
5
Integrate: evaluate \(\displaystyle\int_a^b [\text{result}]\,dt\) using standard techniques.

Example 1: Straight-Line Path

Compute \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\) where \(\mathbf{F}(x,y) = \langle y,\, x \rangle\) and \(C\) is the line segment from \((0,0)\) to \((2,4)\).

x y 1 2 2 4 (0,0) (2,4) C
\(\mathbf{F}\)

Example 1: Solution

1
Parametrize: \(\mathbf{r}(t) = \langle 2t,\, 4t \rangle\), \(0 \le t \le 1\).
2
Derivative: \(\mathbf{r}'(t) = \langle 2,\, 4 \rangle\).
3
Substitute: \(\mathbf{F}(\mathbf{r}(t)) = \langle 4t,\, 2t \rangle\).
4
Dot product: \(\langle 4t,\, 2t \rangle \cdot \langle 2,\, 4 \rangle = 8t + 8t = 16t\).
5
Integrate: \(\displaystyle\int_0^1 16t\,dt = 8t^2\Big|_0^1 = 8\).

Example 2: Circular Path

Compute \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\) where \(\mathbf{F}(x,y) = \langle -y,\, x \rangle\) and \(C\) is the unit circle traversed counterclockwise.

x y
\(\mathbf{F}\)
\(\mathbf{F}\)
C 1 1

Example 2: Solution

1
Parametrize: \(\mathbf{r}(t) = \langle \cos t,\, \sin t \rangle\), \(0 \le t \le 2\pi\).
2
Derivative: \(\mathbf{r}'(t) = \langle -\sin t,\, \cos t \rangle\).
3
Substitute: \(\mathbf{F}(\mathbf{r}(t)) = \langle -\sin t,\, \cos t \rangle\).
4
Dot product: \(\langle -\sin t,\, \cos t \rangle \cdot \langle -\sin t,\, \cos t \rangle = \sin^2 t + \cos^2 t = 1\).
5
Integrate: \(\displaystyle\int_0^{2\pi} 1\,dt = 2\pi\).

Example 3: Parabolic Path in 3D

Compute \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\) where \(\mathbf{F} = \langle z,\, x,\, y \rangle\) and \(C\) is given by \(\mathbf{r}(t) = \langle t,\, t^2,\, t^3 \rangle\) for \(0 \le t \le 1\).

1
\(\mathbf{r}'(t) = \langle 1,\, 2t,\, 3t^2 \rangle\).
2
\(\mathbf{F}(\mathbf{r}(t)) = \langle t^3,\, t,\, t^2 \rangle\).
3
Dot product: \(t^3(1) + t(2t) + t^2(3t^2) = t^3 + 2t^2 + 3t^4\).
4
\(\displaystyle\int_0^1 (t^3 + 2t^2 + 3t^4)\,dt = \frac{1}{4} + \frac{2}{3} + \frac{3}{5} = \frac{15 + 40 + 36}{60} = \frac{91}{60}\).

Key Properties

1
Linearity: \(\int_C (a\mathbf{F} + b\mathbf{G})\cdot d\mathbf{r} = a\int_C \mathbf{F}\cdot d\mathbf{r} + b\int_C \mathbf{G}\cdot d\mathbf{r}\).
2
Orientation reversal: \(\int_{-C} \mathbf{F}\cdot d\mathbf{r} = -\int_C \mathbf{F}\cdot d\mathbf{r}\). Reversing direction negates the integral.
3
Additivity over paths: If \(C = C_1 + C_2\), then \(\int_C \mathbf{F}\cdot d\mathbf{r} = \int_{C_1} \mathbf{F}\cdot d\mathbf{r} + \int_{C_2} \mathbf{F}\cdot d\mathbf{r}\).
4
Reparametrization invariance: The value depends only on the oriented curve, not on how you parametrize it.

Common Mistakes

✕ Wrong Orientation
Parametrizing \(C\) in the wrong direction. This flips the sign of the answer. Always check the start and end points match the given orientation.
✕ Confusing \(ds\) with \(d\mathbf{r}\)
Using \(|\mathbf{r}'(t)|\,dt\) (arc length measure) when you need \(\mathbf{r}'(t)\,dt\) (vector measure). These give different integrals.
✕ Forgetting to Substitute
Leaving \(x, y, z\) in \(\mathbf{F}\) instead of replacing them with \(x(t), y(t), z(t)\). Everything must be in terms of \(t\).

Summary at a Glance

Concept Formula / Key Fact
Definition \(\int_C \mathbf{F}\cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t)\,dt\)
Component form \(\int_C P\,dx + Q\,dy + R\,dz\)
Physical meaning Work done by force \(\mathbf{F}\) along \(C\)
Reverse direction Integral negates: \(\int_{-C} = -\int_C\)
Key replacement \(d\mathbf{r} = \mathbf{r}'(t)\,dt\)

Question 1 of 5

What does the line integral \(\int_C \mathbf{F}\cdot d\mathbf{r}\) compute physically?

Question 2 of 5

If you reverse the orientation of \(C\), what happens to \(\int_C \mathbf{F}\cdot d\mathbf{r}\)?

Question 3 of 5

Given \(\mathbf{F} = \langle 3,\, 1 \rangle\) and \(\mathbf{r}(t) = \langle t,\, 2t \rangle\) for \(0 \le t \le 1\), what is \(\int_C \mathbf{F}\cdot d\mathbf{r}\)?

Question 4 of 5

In the formula \(\int_a^b \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t)\,dt\), what role does \(\mathbf{r}'(t)\) play?

Question 5 of 5

Compute \(\int_C \mathbf{F}\cdot d\mathbf{r}\) where \(\mathbf{F} = \langle 2x,\, 0 \rangle\) and \(C\) is the upper semicircle from \((1,0)\) to \((-1,0)\) parametrized by \(\mathbf{r}(t) = \langle \cos t,\, \sin t \rangle\), \(0 \le t \le \pi\).