The formulas of the series in one place, from limits to vector calculus, each with the conditions under which it holds and the module that teaches it.
Every formula on this page was checked with the SymPy computer algebra system, as the worked examples
of the modules are. Angles are in radians, ln is the natural logarithm, and C is an arbitrary
constant. The conditions beside a formula are part of it: outside them the formula can be false.
1
Algebra and trigonometry
The series assumes school algebra; the Optional algebra refresher of
Mathematical Foundations revises it. Module 1 recalls the exponential,
logarithmic and trigonometric functions.
Algebra
Name
Formula
Holds for
Quadratic formula
ax2+bx+c=0⟺x=2a−b±b2−4ac
real coefficients, a=0 and b2−4ac≥0. A negative discriminant gives no real roots
Completing the square
ax2+bx+c=a(x+2ab)2+c−4ab2
a=0
Difference of powers
xn−an=(x−a)(xn−1+xn−2a+⋯+an−1)
n=1,2,3,…
Distance on the line
∣x−a∣<δ⟺a−δ<x<a+δ
δ>0
Triangle inequality
∣a+b∣≤∣a∣+∣b∣
all real a,b
The last two rows are the language of the precise definition of a limit in Module 2.
Exponents and logarithms
Law
Formula
Holds for
Product
axay=ax+y
a>0;x,y real
Quotient
ayax=ax−y
a>0
Power of a power
(ax)y=axy
a>0
Power of a product
(ab)x=axbx
a>0,b>0
Zero and negative exponents
a0=1,a−x=ax1
a>0
Roots
am/n=nam
a>0;m,n integers, n≥1
The integer-exponent laws for products, quotients and powers also work with nonzero negative bases.
For fractional powers the positive-base conditions matter: ((−1)2)1/2=1, but (−1)2⋅1/2=−1.
Growth rates. Write f≪g when f/g→0. As x→∞, and for p>0 and a>1,
lnx≪xp≪ax,and for whole numbers n:an≪n!≪nn.
L’Hôpital’s rule (Module 7, proved in Module 8). Let f and
g be differentiable on an open interval containing a, except perhaps at a, with g′(x)=0 there.
Suppose f and g both tend to 0, or both grow without bound in magnitude. If
g′(x)f′(x)→L as x→a, where L may be real or ±∞, then
g(x)f(x)→L. For a one-sided limit use the corresponding side of a. At ±∞
the differentiability and nonzero-derivative conditions need only hold far enough along the relevant tail.
3
Derivatives
Definition and approximation
Name
Formula
Module
Derivative at a
f′(a)=h→0limhf(a+h)−f(a)=x→alimx−af(x)−f(a), when the limit exists
As everywhere in the series, the error of an estimate is the exact value minus the estimate, here
f′(a) minus the difference. The two error estimates hold for small h>0 when f′′ (forward) or
f′′′ (central) is continuous near a. In floating point, rounding adds an error of size about
ε/h for function values of order 1, where ε is the scale of floating-point rounding.
In double precision, steps of about 10−8 (forward) and 10−5 (central) can work well on that
scale. The choice depends on the function values and derivatives.
Rules
For the sum, product and quotient rules, f and g are differentiable at x.
For the chain rule, g is differentiable at x and f at g(x). The letter c is a constant.
The inverse-function rule applies at x in the range of f, for f continuous and one-to-one
on an open interval and differentiable at f−1(x) with a nonzero derivative there.
For the implicit rule, a point on F(x,y)=0 with Fy=0 and continuous first partial derivatives
nearby has a local differentiable branch y=y(x). Differentiate along that branch and solve for y′.
Derivatives of the standard functions
f(x)
f′(x)
Holds for
Module
xn
nxn−1
n real and x>0; every x=0 if n is an integer; every x if n=1,2,3,…
with tanhx=coshxsinhx and sechx=coshx1; for x=0, also
cothx=sinhxcoshx and cschx=sinhx1.
f(x)
f′(x)
Holds for
sinhx
coshx
every x
coshx
sinhx
every x
tanhx
sech2x
every x
cothx
−csch2x
x=0
sechx
−sechxtanhx
every x
cschx
−cschxcothx
x=0
4
Integrals
Properties of the definite integral
Module 9 defines the integral of a bounded function f on
[a,b], for a<b. A partition P has points a=x0<⋯<xn=b, widths Δxi=xi−xi−1
and largest width ∥P∥. The properties below assume the functions are integrable on the
intervals involved. The letter k is a constant.
Property
Formula
Holds for
Definition
∫abf(x)dx=∥P∥→0limi=1∑nf(xi∗)Δxi
the same limit for all partitions and choices of xi∗∈[xi−1,xi]
Equal widths
∫abf(x)dx=n→∞limi=1∑nf(xi∗)Δx
for integrable f, with Δx=(b−a)/n and any sample points
For the definite rules, substitution uses g′ continuous on [a,b] and f continuous on an
interval containing the range of g. Integration by parts uses f′ and g′ continuous on [a,b].
For indefinite substitution the chain rule applies wherever the antiderivative of f is differentiable
at g(x) and g is differentiable at x.
Antiderivatives
C is an arbitrary constant. Where the domain has several intervals (such as x=0 for
1/x), the constant may differ from one interval to the next.
f(x)
∫f(x)dx
Holds for
Module
xn
n+1xn+1+C
n=−1. Use x>0 for real n, all real x for n=0,1,2,…, and x=0 for negative integer n
Module 11 teaches this. In each row a>0. The range of θ fixes the sign inside the absolute value when you simplify
the square root. Use only points where your original integrand is defined.
Integrand contains
Substitute
Then
a2−x2
x=asinθ,−2π≤θ≤2π
a2−x2=acosθ,dx=acosθdθ
a2+x2
x=atanθ,−2π<θ<2π
a2+x2=asecθ,dx=asec2θdθ
x2−a2
x=asecθ,0≤θ<2π (for x≥a)
x2−a2=atanθ,dx=asecθtanθdθ
x2−a2
x=asecθ,2π<θ≤π (for x≤−a)
x2−a2=−atanθ,dx=asecθtanθdθ
Numerical integration
Module 11 teaches these rules. For a continuous f on [a,b] with a<b,
divide [a,b] into n≥1 equal subintervals of width
Δx=(b−a)/n, with endpoints xi=a+iΔx and midpoints
xˉi=21(xi−1+xi).
Sn=3Δx[f(x0)+4f(x1)+2f(x2)+4f(x3)+⋯+2f(xn−2)+4f(xn−1)+f(xn)],n even
The error E is the integral minus the approximation. For the bounds, assume the indicated
derivative is continuous on [a,b].
Rule
Error bound
Exact for
Midpoint Mn
∣EM∣≤24n2K(b−a)3, where ∣f′′(x)∣≤K on [a,b]
polynomials of degree ≤1
Trapezoidal Tn
∣ET∣≤12n2K(b−a)3, where ∣f′′(x)∣≤K on [a,b]
polynomials of degree ≤1
Simpson Sn
∣ES∣≤180n4K(b−a)5, where f(4)(x)≤K on [a,b]
polynomials of degree ≤3
The bounds cannot be improved: for f(x)=x2 the midpoint and trapezoidal errors attain their bounds in absolute value.
The same holds for Simpson’s error on f(x)=x4.
Improper integrals
Module 12 teaches these. An improper integral converges when the limit
that defines it exists and is finite:
∫a∞f(x)dx=t→∞lim∫atf(x)dx,∫abf(x)dx=t→b−lim∫atf(x)dx if f is unbounded near b,
provided each truncated integral is proper. Use the corresponding one-sided limit for a singularity
at the left end. Split at any interior singularity and require convergence on both sides.
Also, ∫−∞∞f(x)dx=∫−∞cf(x)dx+∫c∞f(x)dx when both
integrals on the right converge. (Both are needed: ∫−ttxdx=0 for every t, yet
∫−∞∞xdx diverges.)
Comparison. For f and g continuous on [a,∞) with 0≤f(x)≤g(x) there, ∫a∞f(x)dx converges when
∫a∞g(x)dx converges, and ∫a∞g(x)dx diverges when ∫a∞f(x)dx
diverges.
5
Applications of integration
Module 12 teaches these, except the average value
(Module 9) and the arc length of a parametric curve (Module 16).
For the area and volume rules use continuous boundary functions or slice areas on the stated intervals.
Quantity
Formula
Use it when
Area between curves
A=∫ab(f(x)−g(x))dx
f(x)≥g(x) on [a,b]: vertical strips, top minus bottom. If the curves cross, integrate ∣f(x)−g(x)∣, or split where the order of the curves changes
Area, horizontal strips
A=∫cd(xR(y)−xL(y))dy
xR(y)≥xL(y) on [c,d]. Subtract the left boundary from the right
Volume by slicing
V=∫abA(x)dx
the slice perpendicular to the x-axis at x has a known area A(x)
Discs
V=π∫abf(x)2dx
the region under y=f(x)≥0 turns about the x-axis: each slice is a disc of radius f(x)
Washers
V=π∫ab(R(x)2−r(x)2)dx
each slice is a ring with outer radius R(x) and inner radius r(x),0≤r(x)≤R(x)
Shells
V=2π∫abxf(x)dx
the region under y=f(x)≥0,0≤a≤x≤b, turns about the y-axis; in general 2π∫(radius)(height)
Arc length
L=∫ab1+f′(x)2dx
a curve y=f(x) with f′ continuous on [a,b]
Arc length, parametric
L=∫αβx′(t)2+y′(t)2dt
a curve (x(t),y(t)) traced once for α≤t≤β, with x′,y′ continuous
Average value
favg=b−a1∫abf(x)dx
f integrable on [a,b], with a<b
Work
W=∫abF(x)dx
F(x) is the signed force component along the line. The force required to stretch an ideal spring slowly is kx, opposite the spring’s own force. For pumping, integrate each layer’s weight times its lift distance
Centre of mass of a rod
xˉ=∫abρ(x)dx∫abxρ(x)dx
a rod on [a,b] with integrable nonnegative density ρ(x) and positive total mass
Centroid of a plate
xˉ=A1∫abx(f(x)−g(x))dx
a uniform plate g(x)≤y≤f(x),a≤x≤b, of positive area A
yˉ=A1∫ab21(f(x)2−g(x)2)dx
the same plate
Probability
P(a≤X≤b)=∫abf(x)dx
f is a probability density: f≥0 and ∫−∞∞f(x)dx=1
Mean
μ=∫−∞∞xf(x)dx
X has density f with ∫−∞∞∣x∣f(x)dx<∞
With the force in newtons and the distance in metres, the work is in joules.
6
Differential equations
Module 13 teaches these; Module 6 checks the solution of
y′=ky by substitution.
Model
Equation
Solution
Holds for
Growth and decay
dtdy=ky
y=y0ekt
y(0)=y0>0. Growth if k>0 (doubling time ln2/k), decay if k<0 (half-life ln2/∣k∣)
Newton’s law of cooling
dtdT=−k(T−Ts)
T=Ts+(T0−Ts)e−kt
k>0,T(0)=T0, surroundings at Ts
Logistic
dtdy=ry(1−Ky)
y(t)=1+y0K−y0e−rtK
r,K>0,y(0)=y0>0,t≥0. Then y→K as t→∞. If y0=0, the solution is y=0
Separable
dxdy=g(x)h(y)
∫h(y)dy=∫g(x)dx
where h(y)=0; each zero y1 of h gives the constant solution y=y1
First-order linear
y′+p(t)y=q(t)
y(t)=μ(t)R(t)+C,μ(t)=eP(t)
continuous p,q on an interval. Take P′=p and R′=μq
Second-order linear equations with constant coefficients. For ay′′+by′+cy=0 with real
coefficients and a=0, try y=ert. This gives the characteristic equation ar2+br+c=0.
You can take a>0 by multiplying the whole equation by −1 when needed.
Roots of ar2+br+c=0
General solution
When
two real roots r1=r2
y=C1er1t+C2er2t
b2−4ac>0
one double root r=−2ab
y=(C1+C2t)ert
b2−4ac=0
complex roots α±iβ
y=eαt(C1cosβt+C2sinβt)
b2−4ac<0;α=−2ab,β=2a4ac−b2
Euler’s method for y′=F(t,y) with y(t0)=y0 and step h>0:
tn+1=tn+h,yn+1=yn+hF(tn,yn).
If the exact solution has bounded second derivative and F is Lipschitz in y (for instance,
Fy is bounded), the error at a fixed grid time is O(h). For y′=y with y(0)=1 the method gives
(1+h)1/h at t=1 (when 1/h is a whole number),
and the error e−(1+h)1/h is about 2eh for small h.
Module 14 teaches these tests for a series ∑an. Their hypotheses need to
hold only from some n on: the first terms of a series do not affect whether it converges.
Test
If
Then
Divergence
n→∞liman=0, or the limit does not exist
∑an diverges. If an→0, the test says nothing
Integral
an=f(n), with f continuous, positive and decreasing on [1,∞)
∑an and ∫1∞f(x)dx both converge or both diverge; the remainder RN=∑n=N+1∞an for a convergent series and N in the decreasing tail satisfies ∫N+1∞f(x)dx≤RN≤∫N∞f(x)dx
Comparison
0≤an≤bn
if ∑bn converges, so does ∑an; if ∑an diverges, so does ∑bn
Limit comparison
an>0,bn>0 and n→∞limbnan=L with 0<L<∞
∑an and ∑bn both converge or both diverge
Alternating series
an=(−1)n−1bn with bn>0,bn+1≤bn and bn→0
∑an converges, and its sum S satisfies ∣S−SN∣≤bN+1
Absolute convergence
∑∣an∣ converges
∑an converges. The converse is false: ∑(−1)n−1/n converges, ∑1/n does not
Ratio
ρ=n→∞limanan+1 exists or is ∞, with an=0 eventually
ρ<1:∑an converges absolutely; ρ>1 or ρ=∞: it diverges; ρ=1: no conclusion
Root
ρ=n→∞lim∣an∣1/n exists or is ∞
the same three conclusions as the ratio test
Taylor’s formula
If f has n+1 derivatives on an open interval containing a and x
(Module 15), then
for some c between a and x (the Lagrange form of the remainder). The sum is the Taylor
polynomial Tn(x) of degree at most n about a. With a=0 it is a Maclaurin polynomial.
Taylor’s inequality. If f(n+1)(t)≤M for every t between a and x, then
∣Rn(x)∣≤(n+1)!M∣x−a∣n+1.
Taylor series. If f has derivatives of every order near a, the series ∑k=0∞ck(x−a)k with ck=f(k)(a)/k! equals
f(x) exactly when Rn(x)→0 as n→∞.
In the binomial series (nk)=n!k(k−1)⋯(k−n+1) and (0k)=1. When
k is a whole number the series stops at n=k and holds for every x (the binomial theorem). At
the ends x=±1 it depends on k: for k>0 the series converges on [−1,1], for
−1<k<0 on (−1,1], and for k≤−1 only on (−1,1).
At x=1 the series give ln2=1−21+31−⋯ and
4π=1−31+51−⋯.Euler’s formula (Module 15):
eiθ=cosθ+isinθ for every real θ; in particular eiπ=−1.
8
Several variables
Vectors, lines and planes
Module 16 teaches these. Here a=⟨a1,a2,a3⟩,b=⟨b1,b2,b3⟩,c=⟨c1,c2,c3⟩, and for nonzero a and b,θ is the angle between them, 0≤θ≤π.
Quantity
Formula
Notes
Length
∥a∥=a12+a22+a32=a⋅a
Dot product
a⋅b=a1b1+a2b2+a3b3=∥a∥∥b∥cosθ
The component formula also covers zero vectors. Nonzero vectors are perpendicular exactly when a⋅b=0
Projection
projab=∥a∥2a⋅ba
a=0;b−projab is perpendicular to a
Cross product
a×b=⟨a2b3−a3b2,a3b1−a1b3,a1b2−a2b1⟩
perpendicular to a and b (right-hand rule: i×j=k);b×a=−a×b
Length of a×b
∥a×b∥=∥a∥∥b∥sinθ
the area of the parallelogram with sides a and b
Triple product
a⋅(b×c)=deta1b1c1a2b2c2a3b3c3
its absolute value is the volume of the box (parallelepiped) on a,b,c
Line
r(t)=r0+tv, that is x=x0+v1t,y=y0+v2t,z=z0+v3t
through (x0,y0,z0) with direction v=⟨v1,v2,v3⟩=0
Plane
a(x−x0)+b(y−y0)+c(z−z0)=0
through (x0,y0,z0) with normal n=⟨a,b,c⟩=0
Distance from a point to a plane
D=a2+b2+c2∣ax1+by1+cz1+d∣
the point (x1,y1,z1), the plane ax+by+cz+d=0 with nonzero normal ⟨a,b,c⟩
Partial derivatives and the gradient
Module 17 teaches these. Partial derivatives may exist without full
differentiability. The chain rule, directional derivative formula and linear approximation below
use differentiability.
Idea
Formula
Holds for
Partial derivatives
fx=∂x∂f: differentiate in x with y held fixed; fy=∂y∂f
Second partials
fxx=∂x2∂2f,fxy=(fx)y=∂y∂x∂2f
Clairaut’s theorem
fxy=fyx
fxy and fyx continuous near the point
Gradient
∇f=⟨fx,fy,fz⟩
Directional derivative
Duf=∇f⋅u
u a unit vector
Steepest ascent
the largest Duf is ∥∇f∥, in the direction of ∇f;∇f is perpendicular to the level curves (or surfaces)
∇f=0
Chain rule
dtdz=∂x∂zdtdx+∂y∂zdtdy
z=f(x,y),x=x(t),y=y(t)
Chain rule, two parameters
∂s∂z=∂x∂z∂s∂x+∂y∂z∂s∂y, and the same for t
x=x(s,t),y=y(s,t)
Tangent plane
z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
the graph z=f(x,y) at (a,b)
Linear approximation
f(x,y)≈f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b)
(x,y) near (a,b)
Tangent plane to a level surface
∇F(P)⋅⟨x−x0,y−y0,z−z0⟩=0
the level surface F(x,y,z)=k through P=(x0,y0,z0), with F having continuous first partials nearby and ∇F(P)=0
Without continuity Clairaut’s theorem can fail: for f(x,y)=x2+y2xy(x2−y2), with
f(0,0)=0, the mixed partials at the origin are fxy(0,0)=−1 and fyx(0,0)=1.
Optimisation
Module 18 teaches these. A critical point of f(x,y) is a point where
∇f=0 or a partial derivative does not exist; local maxima and minima inside the
domain occur only at critical points. At an interior critical point (a,b) with both first partials zero and the second partials
continuous nearby, let
Lagrange multipliers. Suppose f and the constraint functions have continuous first partials
near a constrained extremum. At a regular point of g=k, with ∇g=0, it must satisfy
∇f=λ∇g. With two constraints g=k and h=c and linearly independent gradients,
it must satisfy ∇f=λ∇g+μ∇h. Check singular points and any boundary
restrictions separately.
Here r≥0,ρ≥0, and φ is the angle from the positive z-axis, 0≤φ≤π
(many physics books swap the names θ and φ). Choose angular bounds so the region is
covered once, apart from seams, axes and collapsed boundary points of zero area or volume.
Fubini’s theorem. If f is continuous on the rectangle R=[a,b]×[c,d] with a<b and c<d, then
Change of variables. Let S and R be bounded closed regions of type I or II, and f continuous on R.
The map x=g(u,v),y=h(u,v) must send S onto R and have continuous first partials on a
neighbourhood of S. It must be one-to-one with nonzero Jacobian in the interior of S. Then
Mass and centre of mass of a bounded plate D with continuous density ρ(x,y)≥0 and positive total mass m:
m=∬DρdA,xˉ=m1∬DxρdA,yˉ=m1∬DyρdA.
The Gaussian integral. On a disc of radius R, the double integral of e−(x2+y2) is
π(1−e−R2) by polar coordinates. Compare discs and squares as R→∞ to obtain
∫−∞∞e−x2dx=π (Module 19).
Vector calculus
Module 20 teaches these. F=⟨P,Q,R⟩ is a vector field and
C is an oriented smooth path traced by r(t) for a≤t≤b. For a piecewise smooth
path, add the integrals over its pieces.
Idea
Formula
Holds for
Line integral of a function
∫Cfds=∫abf(r(t))∥r′(t)∥dt
f continuous on C
Line integral of a field (work)
∫CF⋅dr=∫abF(r(t))⋅r′(t)dt
F continuous on C. Reversing the path negates the integral
Fundamental theorem for line integrals
∫C∇f⋅dr=f(r(b))−f(r(a))
f differentiable with continuous gradient on a neighbourhood of C
Conservative fields
⟨P,Q⟩=∇f for some f exactly when Py=Qx; in space, F=∇f exactly when curlF=0
continuous first partials on an open, simply connected region (connected, with every closed path contractible to a point in the region)
Curl
curlF=∇×F=⟨Ry−Qz,Pz−Rx,Qx−Py⟩
subscripts are partial derivatives: Ry=∂R/∂y
Divergence
divF=∇⋅F=Px+Qy+Rz
Identities
curl(∇f)=0,div(curlF)=0
continuous second partials
Surface integral
∬SfdS=∬Df(r(u,v))∥ru×rv∥dudv
f continuous on S, with a smooth parametrisation that covers S once, apart from possible boundary repeats
Flux
∬SF⋅dS=∬DF(r(u,v))⋅(ru×rv)dudv
the same parametrisation, with F continuous and ru×rv pointing to the chosen side of S
Simple connectivity guarantees that the derivative test is sufficient. A field with a potential can
also be conservative on a region with holes. For a case where the test fails to establish a potential, F=x2+y2⟨−y,x⟩ has
∂P/∂y=∂Q/∂x away from the origin, yet its line integral once
anticlockwise round the unit circle is 2π, so it is not conservative on the punctured plane.
Theorem
Formula
Holds for
Green’s theorem
∮CPdx+Qdy=∬D(∂x∂Q−∂y∂P)dA
C a piecewise smooth simple closed curve traced anticlockwise, bounding D;P,Q with continuous first partials on an open region containing D
Area from Green’s theorem
A=21∮Cxdy−ydx
the same C and D
Stokes’ theorem
∮CF⋅dr=∬ScurlF⋅dS
S oriented and piecewise smooth, with piecewise smooth simple closed boundary C oriented by S. The field has continuous first partials on a neighbourhood of S
Divergence theorem
∬SF⋅dS=∭EdivFdV
S is the outward-oriented, piecewise smooth boundary of a bounded solid E. The field has continuous first partials on a neighbourhood of E
All five fundamental theorems (of calculus, for line integrals, Green’s, Stokes’ and the divergence
theorem) have the same shape: integrating a derivative over a region gives the corresponding boundary expression (the two ends of an interval or a curve, the edge of a surface, the surface of a
solid).
9
SymPy commands
The commands the series uses, written as in its “Compute it” boxes, after import sympy as sp. The
module column points to explanations and examples.
Command
What it does
Module
sp.symbols('x n')
creates symbols: x, n = sp.symbols('x n'); positive=True adds an assumption
SymPy writes E for e and exp(x) for ex, so the definite integral is e−2. The
antiderivative (x2−2x+2)ex comes without +C, while dsolve names its arbitrary constant
C1. The series of cosx stops before x6 and says so with O(x**6). sp.N gives π to 10
significant digits, and the function made by sp.lambdify returns an ordinary floating-point number:
e1≈2.718281828459045.