01 / 21

Work, Energy & Fields
via Integration

Learn how line integrals and surface integrals let us compute work done by variable forces, energy stored in fields, and flux through surfaces.

College Physics

Why Do We Need Integration?

In introductory physics, work is often computed as \( W = Fd\cos\theta \). But this formula only works when the force is constant along a straight path. In reality, forces vary in magnitude and direction as an object moves through space.

Varying Force
Spring force \( F = -kx \) changes with position
Curved Path
Object moves along a curve, not a straight line
Field Flux
Electric field passes through a non-flat surface

What Is a Line Integral?

A line integral accumulates a quantity along a curve \( C \). For a vector field \( \vec{F} \), the line integral measures how much the field acts along the direction of travel:

Here \( \vec{r}(t) \) is a parametrization of the curve from \( t = a \) to \( t = b \), and \( d\vec{r} = \vec{r}\,\'(t)\,dt \) is the infinitesimal displacement vector along the path.

Visualizing \( \vec{F} \cdot d\vec{r} \)

A B \( \vec{F} \) \( d\vec{r} \) Path C from A to B At each point: project F onto dr

What Is a Surface Integral?

A surface integral accumulates a quantity over a 2D surface \( S \). For a vector field \( \vec{F} \), it measures flux: how much of the field passes through the surface.

Here \( \hat{n} \) is the unit normal to the surface at each point, and \( dA \) is the infinitesimal area element. Only the component of \( \vec{F} \) perpendicular to the surface contributes to flux.

The Work-Energy Theorem via Integration

This is the integral generalization of \( W = Fd \). It holds for any path, any varying force, and in any number of dimensions.

Gauss's Law: Flux as a Surface Integral

The total electric flux through a closed surface equals the enclosed charge divided by \( \varepsilon_0 \). This is a surface integral of the electric field \( \vec{E} \) over the surface \( S \).

\(+Q\) \( \hat{n} \) Gaussian Surface S \( \vec{E} \)

Line vs. Surface Integrals

Line Integral Surface Integral
Domain Curve \( C \) (1D) Surface \( S \) (2D)
Element \( d\vec{r} \) \( d\vec{A} = \hat{n}\,dA \)
Measures Work, circulation Flux
Notation \( \int_C \vec{F} \cdot d\vec{r} \) \( \iint_S \vec{F} \cdot d\vec{A} \)
Physics Example Work by gravity on a ramp Electric flux through a sphere

How to Evaluate a Line Integral

1
Parametrize the path. Express the curve as \( \vec{r}(t) = \langle x(t), y(t), z(t) \rangle \) for \( t \in [a, b] \).
2
Compute \( \vec{r}\,\'(t) \). Differentiate each component: \( \vec{r}\,\'(t) = \langle x'(t), y'(t), z'(t) \rangle \).
3
Substitute into \( \vec{F} \). Replace \( x, y, z \) with \( x(t), y(t), z(t) \) in the force field.
4
Dot and integrate. Compute \( \displaystyle \int_a^b \vec{F}\bigl(\vec{r}(t)\bigr) \cdot \vec{r}\,\'(t)\, dt \).

Example 1: Work by a Spring

A spring with constant \( k = 200 \) N/m is initially compressed to \( x = -0.3 \) m. Find the work done by the spring as it expands back to its equilibrium position (\( x = 0 \)).

x \(m\) \(x=0\) \( x = -0.3 \) displacement

Example 2: Line Integral in 2D

Find the work done by \( \vec{F} = \langle 2x, \, 3y \rangle \) along the straight line from \( (0, 0) \) to \( (1, 2) \).

\(x\) \(y\) 1 2 1 2 (0,0) (1,2) C

Example 3: Electric Flux Through a Sphere

A point charge \( Q = 5 \, \mu\text{C} \) sits at the center of a sphere of radius \( R = 0.2 \) m. Find the electric flux through the sphere.

Example 4: Gravity on a Curved Ramp

A 2 kg block slides from height \( h = 5 \) m to \( h = 0 \) along a frictionless curved track. Find the work done by gravity.

\(h=5\text{ m}\) \(mg\) \(h=0\)

Conservative vs. Non-Conservative Forces

Conservative
Work is path-independent. \( \oint \vec{F} \cdot d\vec{r} = 0 \). Examples: gravity, springs, electrostatic force. Has a potential energy \( U \).
Non-Conservative
Work depends on the path. \( \oint \vec{F} \cdot d\vec{r} \neq 0 \). Examples: friction, air resistance. No potential energy function exists.

Common Mistakes to Avoid

✕ Forgetting Dot Product
Writing \( W = \int F\, dr \) instead of \( \int \vec{F} \cdot d\vec{r} \). Only the component of force along the path does work.
✕ Wrong Parametrization
Using the wrong limits or forgetting to compute \( \vec{r}\,\'(t) \) when substituting into the integral.
✕ Path Independence Misuse
Assuming work is always path-independent. This only applies to conservative forces. Friction does different work on different paths.

Summary: Integration in Physics

Concept Formula Physical Meaning
Work (variable force) \( \int_C \vec{F} \cdot d\vec{r} \) Energy transferred along path
Work (1D spring) \( \int_{x_1}^{x_2} F(x)\, dx \) Area under force-displacement curve
Electric flux \( \iint_S \vec{E} \cdot d\vec{A} \) Field passing through surface
Gauss's Law \( \oint_S \vec{E} \cdot d\vec{A} = \frac{Q_{\text{enc}}}{\varepsilon_0} \) Flux equals enclosed charge
Conservative work \( W = -\Delta U \) Path-independent, uses potential

Question 1 of 5

A force \( \vec{F} = \langle y, \, x \rangle \) acts on a particle. The work done moving the particle along a straight line from \( (0, 0) \) to \( (3, 3) \) is:

Question 2 of 5

The work done by a spring (constant \( k = 400 \) N/m) as it stretches from \( x = 0.1 \) m to \( x = 0.3 \) m is:

Question 3 of 5

For a conservative force, which statement is always true?

Question 4 of 5

By Gauss's Law, if the total charge enclosed by a Gaussian surface is doubled, the electric flux through the surface:

Question 5 of 5

A surface integral \( \iint_S \vec{F} \cdot d\vec{A} \) measures the flux of a field through a surface. What role does the dot product play here?