Math Refresher: Calculus
These appendix pages collect the mathematical tools the rest of the site uses. Each tool gets a definition and one example, plus a pointer to where it first appears. A reader meeting calculus for the first time can follow from these pages; a reader who has seen it can skim.
1. Derivatives
A derivative measures how fast a quantity changes. For a function , the derivative
is the slope of its graph, or the rate at which changes per unit change in . A dot abbreviates a time derivative, .
Example. For , the change over a small interval is . Dividing by and letting leaves , so . This is why Classical Mechanics describes a particle's velocity as and its acceleration as .
A derivative can be negative or zero. Zero means the quantity is momentarily not changing; this is the condition that marks a maximum or minimum of a function.
2. Partial derivatives
A quantity often depends on several variables at once, such as the Lagrangian . A partial derivative differentiates with respect to one variable while holding the others fixed:
We use the curly to distinguish this from a full derivative , which tracks how a quantity changes when everything that depends on time changes.
Example. For , treat and as independent variables. Then
Both derivatives appear in the Euler–Lagrange equation on Classical Mechanics:
The same partial-derivative operation acts on a field on the Action page, where the independent variables are and each derivative .
3. The chain rule
When one variable depends on another, their rates of change compose. For ,
With several variables, the full time derivative collects one term per path of dependence:
Example. The Lorentz time transformation mixes and , so time derivatives transform with both terms of the chain rule. The same rule converts between a frame's time derivative and the derivative along a particle's own clock when the Lorentz factor appears.
4. Integrals and integration by parts
An integral adds a quantity over a range. The definite integral accumulates between and ; the indefinite integral is the reverse of differentiating.
The action is a definite integral, . To find which path makes it stationary, we move a derivative off the variation using integration by parts. For two functions and ,
where is the boundary term.
Example. In the variation of the action, the velocity term is . Taking and moves the derivative onto . The boundary term vanishes because the variation is chosen to be zero at the endpoints. What remains is , which produces the Euler–Lagrange equation. The same step runs over every spacetime direction when deriving the field equation.
5. Taylor expansion
A smooth function near a point agrees with a polynomial built from its derivatives there:
Each added term fixes one more derivative at .
Example. Near a minimum of a potential, , so the linear term drops out and
The harmonic oscillator is exactly this quadratic approximation. A second use appears in Special Relativity: the Lorentz factor obeys at small speed, which recovers the non-relativistic kinetic energy.
6. Vector calculus
Fields vary over space, so we need derivatives that act on all three directions at once. Write and .
- Gradient, : the vector pointing in the direction increases most steeply.
- Divergence, : the net outward flow of per unit volume.
- Curl, : a vector measuring circulation of around each axis.
- Laplacian, : the divergence of the gradient.
The multidimensional analogue of the integration by parts in §4 is the divergence theorem:
The integral of a divergence over a volume equals the flux of the vector through the volume's boundary. It turns a continuity equation into a conservation statement: a change in a quantity inside a region equals the net flow through the boundary, so a flow that vanishes at infinity leaves the total unchanged, as in the probability current argument.
These appear in the Maxwell equations: , , and so on. The relativistic wave operator combines a time derivative with the Laplacian,
called the d'Alembertian, which appears in the Klein–Gordon equation.
Next: Complex Numbers