01 / 21

Line Integrals
Vector Fields

Learn how to compute the work done by a vector field along a curve using line integrals: the bridge between calculus and physics.

Multivariable Calculus

What Is a Line Integral?

A line integral extends ordinary integration from intervals on the number line to curves in space. Instead of integrating over \([a,b]\), you integrate along a path \(C\).

Scalar Line Integral
Integrates a scalar function \(f\) along \(C\): measures "total value" along the curve.
Vector Line Integral
Integrates a vector field \(\mathbf{F}\) along \(C\): measures work done by the field.

Quick Recap: Vector Fields

A vector field assigns a vector to every point in space. In 2D:

Each arrow = the vector \(\mathbf{F}\) at that point

Physical Intuition: Work

In physics, work done by a constant force \(\mathbf{F}\) over a displacement \(\mathbf{d}\) is \(W = \mathbf{F} \cdot \mathbf{d}\). But what if the force varies and the path curves?

A B Curve C \(\mathbf{F}\) \(\mathbf{F}\) \(\mathbf{F}\) \(\mathbf{F}\)

The Definition

\(\mathbf{r}(t)\)
The parameterisation of curve \(C\).
\(\mathbf{r}'(t)\)
Tangent vector: gives direction and speed along \(C\).
\(\mathbf{F} \cdot \mathbf{r}'\)
Dot product: how much \(\mathbf{F}\) pushes along the curve.

Equivalent Notations

You will see the same integral written in several ways. They all mean the same thing:

1
Vector notation: \(\displaystyle\int_C \mathbf{F} \cdot d\mathbf{r}\)
2
Component form: \(\displaystyle\int_C P\,dx + Q\,dy\) where \(\mathbf{F} = \langle P, Q\rangle\)
3
Parametric form: \(\displaystyle\int_a^b \bigl[P\!\big(x(t),y(t)\big)\,x'(t) + Q\!\big(x(t),y(t)\big)\,y'(t)\bigr]\,dt\)

Scalar vs. Vector Line Integrals

Scalar: \(\int_C f\,ds\) Vector: \(\int_C \mathbf{F}\cdot d\mathbf{r}\)
Integrand Scalar function \(f(x,y)\) Vector field \(\mathbf{F}(x,y)\)
Differential \(ds = \|\mathbf{r}'(t)\|\,dt\) \(d\mathbf{r} = \mathbf{r}'(t)\,dt\)
Orientation Does not depend on direction Depends on direction: reversing \(C\) flips sign
Result Total "mass" or "arc-length weight" Work done by the field

Orientation Matters

Forward: A to B A B \(\int_C \mathbf{F}\cdot d\mathbf{r} = W\) Reversed: B to A B A \(\int_{-C} \mathbf{F}\cdot d\mathbf{r} = -W\)

How to Compute the Integral

1
Parameterise the curve: write \(\mathbf{r}(t) = \langle x(t),\, y(t)\rangle\) for \(t \in [a,b]\).
2
Differentiate: compute \(\mathbf{r}'(t) = \langle x'(t),\, y'(t)\rangle\).
3
Substitute: plug \(x(t), y(t)\) into \(\mathbf{F}\) to get \(\mathbf{F}\!\big(\mathbf{r}(t)\big)\).
4
Dot product: compute \(\mathbf{F}\!\big(\mathbf{r}(t)\big) \cdot \mathbf{r}'(t)\).
5
Integrate: evaluate \(\displaystyle\int_a^b [\text{result from step 4}]\, dt\).

Example 1: Line Segment

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

1
Parameterise: \(\mathbf{r}(t) = \langle t,\, 2t\rangle\), \(0 \leq t \leq 1\).
2
Differentiate: \(\mathbf{r}'(t) = \langle 1,\, 2\rangle\).
3
Substitute: \(\mathbf{F}\!\big(\mathbf{r}(t)\big) = \langle 2t,\, t\rangle\).
4
Dot product: \(\langle 2t, t\rangle \cdot \langle 1, 2\rangle = 2t + 2t = 4t\).
5
Integrate: \(\displaystyle\int_0^1 4t\, dt = 2t^2\Big|_0^1 = \boxed{2}\).

Example 1: Visualised

x y 1 2 1 (0,0) (1,2) Work \(= 2\)

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 counter-clockwise.

1
Parameterise: \(\mathbf{r}(t) = \langle \cos t,\, \sin t\rangle\), \(0 \leq t \leq 2\pi\).
2
Differentiate: \(\mathbf{r}'(t) = \langle -\sin t,\, \cos t\rangle\).
3
Substitute: \(\mathbf{F}\!\big(\mathbf{r}(t)\big) = \langle -\sin t,\, \cos t\rangle\).
4
Dot product: \((-\sin t)(-\sin t) + (\cos t)(\cos t) = \sin^2 t + \cos^2 t = 1\).
5
Integrate: \(\displaystyle\int_0^{2\pi} 1\, dt = \boxed{2\pi}\).

Example 2: Visualised

x y CCW unit circle \(\mathbf{F}\) \(\mathbf{F}\)

Example 3: Piecewise Path

Compute \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\) for \(\mathbf{F}=\langle x^2, xy\rangle\) along the path from \((0,0)\) to \((1,0)\) to \((1,1)\).

\(C_1\): Horizontal
\(\mathbf{r}_1(t)=\langle t,0\rangle\), \(t\in[0,1]\).
\(\mathbf{F}=\langle t^2,0\rangle\), \(\mathbf{r}'=\langle 1,0\rangle\).
Integral: \(\displaystyle\int_0^1 t^2\,dt = \frac{1}{3}\).
\(C_2\): Vertical
\(\mathbf{r}_2(t)=\langle 1,t\rangle\), \(t\in[0,1]\).
\(\mathbf{F}=\langle 1, t\rangle\), \(\mathbf{r}'=\langle 0,1\rangle\).
Integral: \(\displaystyle\int_0^1 t\,dt = \frac{1}{2}\).

Common Mistakes

✕ Forgetting to Substitute
Writing \(\mathbf{F}(x,y)\) instead of \(\mathbf{F}\!\big(\mathbf{r}(t)\big)\). You must replace \(x\) and \(y\) with the parameterisation before integrating.
✕ Wrong Differential
Using \(\|\mathbf{r}'(t)\|\,dt\) (the scalar \(ds\)) instead of \(\mathbf{r}'(t)\,dt\). The vector line integral needs the vector derivative, not its magnitude.
✕ Ignoring Orientation
Parameterising the curve in the wrong direction. Reversing the path flips the sign of the integral. Always check start and end points.

Quick-Reference Summary

Concept Key Formula / Fact
Definition \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r} = \int_a^b \mathbf{F}(\mathbf{r}(t))\cdot\mathbf{r}'(t)\,dt\)
Component form \(\displaystyle\int_C P\,dx + Q\,dy\)
Orientation \(\displaystyle\int_{-C}\mathbf{F}\cdot d\mathbf{r} = -\int_C \mathbf{F}\cdot d\mathbf{r}\)
Piecewise paths \(\displaystyle\int_{C_1+C_2} = \int_{C_1} + \int_{C_2}\)
Physical meaning Work done by \(\mathbf{F}\) along \(C\)

Question 1 of 5

Let \(\mathbf{F}(x,y)=\langle 2x,\, 3y\rangle\) and \(C\) be the line segment from \((0,0)\) to \((1,1)\), parameterised as \(\mathbf{r}(t)=\langle t,t\rangle\). What is \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\)?

Question 2 of 5

If \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r} = 7\), what is \(\displaystyle\int_{-C} \mathbf{F}\cdot d\mathbf{r}\)?

Question 3 of 5

Which differential do you use in a vector field line integral?

Question 4 of 5

Let \(\mathbf{F}=\langle y,\, 0\rangle\) and \(C\) be the upper half of the unit circle from \((1,0)\) to \((-1,0)\). Parameterise as \(\mathbf{r}(t)=\langle \cos t, \sin t\rangle\), \(0\leq t\leq \pi\). What is \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\)?

Question 5 of 5

You need to evaluate \(\displaystyle\int_C \mathbf{F}\cdot d\mathbf{r}\) where \(C = C_1 + C_2\). If \(\displaystyle\int_{C_1}\mathbf{F}\cdot d\mathbf{r}=3\) and \(\displaystyle\int_{C_2}\mathbf{F}\cdot d\mathbf{r}=-1\), what is the total?