Ran Wei/ Calculus/Formula sheet
中文
Calculus · Reference

Formula sheet

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⁡\ln is the natural logarithm, and CC 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=−b±b2−4ac2a{ax^2 + bx + c = 0 \iff x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}} real coefficients, a≠0{a \ne 0} and b2−4ac≥0.{b^2 - 4ac \ge 0}\mathclose{\text{.}} A negative discriminant gives no real roots
Completing the square ax2+bx+c=a(x+b2a)2+c−b24a{ax^2 + bx + c = a\Big(x + \dfrac{b}{2a}\Big)^2 + c - \dfrac{b^2}{4a}} a≠0{a \ne 0}
Difference of powers xn−an=(x−a)(xn−1+xn−2a+⋯+an−1){x^n - a^n = (x - a)(x^{n-1} + x^{n-2}a + \cdots + a^{n-1})} n=1,2,3,…{n = 1, 2, 3, \ldots}
Distance on the line ∣x−a∣<δ  ⟺  a−δ<x<a+δ{\abs{x - a} < \delta \iff a - \delta < x < a + \delta} δ>0{\delta > 0}
Triangle inequality ∣a+b∣≤∣a∣+∣b∣{\abs{a + b} \le \abs{a} + \abs{b}} all real a,{a,} b{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^x a^y = a^{x+y}} a>0;{a > 0;} x,{x,} y{y} real
Quotient axay=ax−y{\dfrac{a^x}{a^y} = a^{x-y}} a>0{a > 0}
Power of a power (ax)y=axy{(a^x)^y = a^{xy}} a>0{a > 0}
Power of a product (ab)x=axbx{(ab)^x = a^x b^x} a>0,{a > 0,} b>0{b > 0}
Zero and negative exponents a0=1,{a^0 = 1,}  a−x=1ax{\ a^{-x} = \dfrac{1}{a^x}} a>0{a > 0}
Roots am/n=amn{a^{m/n} = \sqrt[n]{a^m}} a>0;{a > 0;} m,{m,} n{n} integers, n≥1{n \ge 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,\big((-1)^2\big)^{1/2} = 1\mathclose{\text{,}} but (−1)2⋅1/2=−1.(-1)^{2 \cdot 1/2} = -1\mathclose{\text{.}}

Law Formula Holds for Module
Inverse functions eln⁡x=x{e^{\ln x} = x} x>0{x > 0} 1
ln⁡(ex)=x{\ln(e^x) = x} every real x{x} 1
Product ln⁡(xy)=ln⁡x+ln⁡y{\ln(xy) = \ln x + \ln y} x>0,{x > 0,} y>0{y > 0} 1
Quotient ln⁡xy=ln⁡x−ln⁡y{\ln\dfrac{x}{y} = \ln x - \ln y} x>0,{x > 0,} y>0{y > 0} 1
Power ln⁡(xr)=rln⁡x{\ln(x^r) = r\ln x} x>0,{x > 0,} r{r} real 1
Even power ln⁡(x2)=2ln⁡∣x∣{\ln(x^2) = 2\ln\abs{x}} x≠0{x \ne 0} 1
Values ln⁡1=0,{\ln 1 = 0,}  ln⁡e=1{\ \ln e = 1} 1
Change of base log⁡ax=ln⁡xln⁡a{\log_a x = \dfrac{\ln x}{\ln a}} a>0,{a > 0,} a≠1,{a \ne 1,} x>0{x > 0} 1
Base e{e} ax=exln⁡a{a^x = e^{x\ln a}} a>0,{a > 0,} x{x} real 6

Trigonometric identities

They hold for all real angles, except where a condition is given.

Name Identity Holds for
Pythagorean sin⁡2θ+cos⁡2θ=1{\sin^2\theta + \cos^2\theta = 1}
1+tan⁡2θ=sec⁡2θ{1 + \tan^2\theta = \sec^2\theta} cos⁡θ≠0{\cos\theta \ne 0}
1+cot⁡2θ=csc⁡2θ{1 + \cot^2\theta = \csc^2\theta} sin⁡θ≠0{\sin\theta \ne 0}
Definitions tan⁡θ=sin⁡θcos⁡θ,{\tan\theta = \dfrac{\sin\theta}{\cos\theta},}  sec⁡θ=1cos⁡θ{\ \sec\theta = \dfrac{1}{\cos\theta}} cos⁡θ≠0{\cos\theta \ne 0}
cot⁡θ=cos⁡θsin⁡θ,{\cot\theta = \dfrac{\cos\theta}{\sin\theta},}  csc⁡θ=1sin⁡θ{\ \csc\theta = \dfrac{1}{\sin\theta}} sin⁡θ≠0{\sin\theta \ne 0}
Symmetry sin⁡(−θ)=−sin⁡θ,{\sin(-\theta) = -\sin\theta,}  cos⁡(−θ)=cos⁡θ{\ \cos(-\theta) = \cos\theta}
Periods sin⁡(θ+2π)=sin⁡θ,{\sin(\theta + 2\pi) = \sin\theta,}  cos⁡(θ+2π)=cos⁡θ{\ \cos(\theta + 2\pi) = \cos\theta}
tan⁡(θ+π)=tan⁡θ{\tan(\theta + \pi) = \tan\theta} cos⁡θ≠0{\cos\theta \ne 0}
Complements sin⁡(π2−θ)=cos⁡θ,{\sin\big(\tfrac{\pi}{2} - \theta\big) = \cos\theta,}  cos⁡(π2−θ)=sin⁡θ{\ \cos\big(\tfrac{\pi}{2} - \theta\big) = \sin\theta}
Supplements sin⁡(π−θ)=sin⁡θ,{\sin(\pi - \theta) = \sin\theta,}  cos⁡(π−θ)=−cos⁡θ{\ \cos(\pi - \theta) = -\cos\theta}
Addition sin⁡(α±β)=sin⁡αcos⁡β±cos⁡αsin⁡β{\sin(\alpha \pm \beta) = \sin\alpha\cos\beta \pm \cos\alpha\sin\beta}
cos⁡(α±β)=cos⁡αcos⁡β∓sin⁡αsin⁡β{\cos(\alpha \pm \beta) = \cos\alpha\cos\beta \mp \sin\alpha\sin\beta}
tan⁡(α+β)=tan⁡α+tan⁡β1−tan⁡αtan⁡β{\tan(\alpha + \beta) = \dfrac{\tan\alpha + \tan\beta}{1 - \tan\alpha\tan\beta}} both sides defined
Double angle sin⁡2θ=2sin⁡θcos⁡θ{\sin 2\theta = 2\sin\theta\cos\theta}
cos⁡2θ=cos⁡2θ−sin⁡2θ=2cos⁡2θ−1=1−2sin⁡2θ{\cos 2\theta = \cos^2\theta - \sin^2\theta = 2\cos^2\theta - 1 = 1 - 2\sin^2\theta}
Squares sin⁡2θ=12(1−cos⁡2θ),{\sin^2\theta = \tfrac12(1 - \cos 2\theta),}  cos⁡2θ=12(1+cos⁡2θ){\ \cos^2\theta = \tfrac12(1 + \cos 2\theta)}
Products sin⁡αcos⁡β=12[sin⁡(α−β)+sin⁡(α+β)]{\sin\alpha\cos\beta = \tfrac12\big[\sin(\alpha - \beta) + \sin(\alpha + \beta)\big]}
sin⁡αsin⁡β=12[cos⁡(α−β)−cos⁡(α+β)]{\sin\alpha\sin\beta = \tfrac12\big[\cos(\alpha - \beta) - \cos(\alpha + \beta)\big]}
cos⁡αcos⁡β=12[cos⁡(α−β)+cos⁡(α+β)]{\cos\alpha\cos\beta = \tfrac12\big[\cos(\alpha - \beta) + \cos(\alpha + \beta)\big]}

Exact values

Since π\pi radians is 180∘,180^\circ\mathclose{\text{,}} an angle of dd degrees is πd/180\pi d/180 radians.

θ{\theta} sin⁡θ{\sin\theta} cos⁡θ{\cos\theta} tan⁡θ{\tan\theta}
0{0} 0{0} 1{1} 0{0}
π/6    (30∘){\pi/6\;\;(30^\circ)} 1/2{1/2} 3/2{\sqrt3/2} 1/3=3/3{1/\sqrt3 = \sqrt3/3}
π/4    (45∘){\pi/4\;\;(45^\circ)} 2/2{\sqrt2/2} 2/2{\sqrt2/2} 1{1}
π/3    (60∘){\pi/3\;\;(60^\circ)} 3/2{\sqrt3/2} 1/2{1/2} 3{\sqrt3}
π/2    (90∘){\pi/2\;\;(90^\circ)} 1{1} 0{0} undefined
π    (180∘){\pi\;\;(180^\circ)} 0{0} −1{-1} 0{0}
3π/2    (270∘){3\pi/2\;\;(270^\circ)} −1{-1} 0{0} undefined

The other standard angles follow from the symmetries above: for example sin⁡(5π/6)=sin⁡(π/6)=1/2\sin(5\pi/6) = \sin(\pi/6) = 1/2 and cos⁡(2π/3)=−cos⁡(π/3)=−1/2.\cos(2\pi/3) = -\cos(\pi/3) = -1/2\mathclose{\text{.}}

2

Limits

Limit Value Holds for Module
lim⁡θ→0sin⁡θθ{\lim\limits_{\theta\to0}\dfrac{\sin\theta}{\theta}} 1{1} θ{\theta} in radians 2
lim⁡θ→01−cos⁡θθ{\lim\limits_{\theta\to0}\dfrac{1 - \cos\theta}{\theta}} 0{0} θ{\theta} in radians 2
lim⁡n→∞(1+1n)n{\lim\limits_{n\to\infty}\Big(1 + \dfrac{1}{n}\Big)^n} e{e} 6
lim⁡n→∞(1+xn)n{\lim\limits_{n\to\infty}\Big(1 + \dfrac{x}{n}\Big)^n} ex{e^x} every real x{x} 6
lim⁡h→0eh−1h{\lim\limits_{h\to0}\dfrac{e^h - 1}{h}} 1{1} 6
lim⁡x→∞1xp{\lim\limits_{x\to\infty}\dfrac{1}{x^p}} 0{0} p>0{p > 0} 3
lim⁡x→∞ln⁡xxp{\lim\limits_{x\to\infty}\dfrac{\ln x}{x^p}} 0{0} p>0{p > 0} 3, 7
lim⁡x→∞xpax{\lim\limits_{x\to\infty}\dfrac{x^p}{a^x}} 0{0} p{p} real, a>1{a > 1} 3, 7
lim⁡n→∞ann!{\lim\limits_{n\to\infty}\dfrac{a^n}{n!}} 0{0} a{a} real 3
lim⁡n→∞n!nn{\lim\limits_{n\to\infty}\dfrac{n!}{n^n}} 0{0} 3
lim⁡x→0+xln⁡x{\lim\limits_{x\to0^+} x\ln x} 0{0} 7

Growth rates. Write f≪gf \ll g when f/g→0.f/g \to 0\mathclose{\text{.}} As x→∞,x \to \infty\mathclose{\text{,}} and for p>0p > 0 and a>1,a > 1\mathclose{\text{,}}

ln⁡x≪xp≪ax,and for whole numbers n:an≪n!≪nn.\ln x \ll x^p \ll a^x, \qquad\text{and for whole numbers } n\text{:}\quad a^n \ll n! \ll n^n.

L’Hôpital’s rule (Module 7, proved in Module 8). Let ff and gg be differentiable on an open interval containing a,a\mathclose{\text{,}} except perhaps at a,a\mathclose{\text{,}} with g′(x)≠0g'(x) \ne 0 there. Suppose ff and gg both tend to 0, or both grow without bound in magnitude. If f′(x)g′(x)→L\dfrac{f'(x)}{g'(x)} \to L as x→a,x \to a\mathclose{\text{,}} where LL may be real or ±∞,\pm\infty\mathclose{\text{,}} then f(x)g(x)→L.\dfrac{f(x)}{g(x)} \to L\mathclose{\text{.}} For a one-sided limit use the corresponding side of a.a\mathclose{\text{.}} At ±∞\pm\infty 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{a} f′(a)=lim⁡h→0f(a+h)−f(a)h=lim⁡x→af(x)−f(a)x−a,{f'(a) = \lim\limits_{h \to 0} \dfrac{f(a + h) - f(a)}{h} = \lim\limits_{x \to a} \dfrac{f(x) - f(a)}{x-a},} when the limit exists 4
Tangent line at a{a} y=f(a)+f′(a)(x−a),{y = f(a) + f'(a)(x - a),} if f{f} is differentiable at a{a} 4
Linear approximation f(x)≈f(a)+f′(a)(x−a){f(x) \approx f(a) + f'(a)(x - a)} for x{x} near a{a} 7
Differentials dy=f′(x) dx;{dy = f'(x)\,dx;} Δy≈dy{\Delta y \approx dy} for small dx{dx} 7
Newton’s method xn+1=xn−f(xn)f′(xn),{x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)},} while f′(xn)≠0{f'(x_n) \ne 0} 7
Forward difference f′(a)≈f(a+h)−f(a)h,{f'(a) \approx \dfrac{f(a + h) - f(a)}{h},} error about −h2f′′(a){-\tfrac{h}{2}f''(a)} 4, 15
Central difference f′(a)≈f(a+h)−f(a−h)2h,{f'(a) \approx \dfrac{f(a + h) - f(a - h)}{2h},} error about −h26f′′′(a){-\tfrac{h^2}{6}f'''(a)} 4, 15

As everywhere in the series, the error of an estimate is the exact value minus the estimate, here f′(a)f'(a) minus the difference. The two error estimates hold for small h>0h > 0 when f′′f'' (forward) or f′′′f''' (central) is continuous near a.a\mathclose{\text{.}} In floating point, rounding adds an error of size about ε/h\varepsilon/h for function values of order 1, where ε\varepsilon is the scale of floating-point rounding. In double precision, steps of about 10−810^{-8} (forward) and 10−510^{-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, ff and gg are differentiable at x.x\mathclose{\text{.}} For the chain rule, gg is differentiable at xx and ff at g(x).g(x)\mathclose{\text{.}} The letter cc is a constant.

Rule Formula Module
Constant ddx(c)=0{\dfrac{d}{dx}(c) = 0} 4
Constant multiple ddx(c f(x))=c f′(x){\dfrac{d}{dx}\big(c\,f(x)\big) = c\,f'(x)} 4
Sum and difference (f±g)′=f′±g′{(f \pm g)' = f' \pm g'} 4
Product (fg)′=f′g+fg′{(fg)' = f'g + fg'} 5
Quotient (fg)′=f′g−fg′g2,{\Big(\dfrac{f}{g}\Big)' = \dfrac{f'g - fg'}{g^2},} where g(x)≠0{g(x) \ne 0} 5
Chain ddxf(g(x))=f′(g(x)) g′(x),{\dfrac{d}{dx}f\big(g(x)\big) = f'\big(g(x)\big)\,g'(x),} or dydx=dydu dudx{\dfrac{dy}{dx} = \dfrac{dy}{du}\,\dfrac{du}{dx}} 5
Inverse function (f−1)′(x)=1f′(f−1(x)),{(f^{-1})'(x) = \dfrac{1}{f'\big(f^{-1}(x)\big)},} where f′(f−1(x))≠0{f'\big(f^{-1}(x)\big) \ne 0} 6
Implicit for a curve F(x,y)=0:{F(x, y) = 0}\mathclose{\text{:}} dydx=−FxFy,{\dfrac{dy}{dx} = -\dfrac{F_x}{F_y},} where Fy≠0{F_y \ne 0} 6, 17
Logarithmic f′(x)=f(x) ddxln⁡∣f(x)∣,{f'(x) = f(x)\,\dfrac{d}{dx}\ln\abs{f(x)},} where f(x)≠0{f(x) \ne 0} 6

The inverse-function rule applies at xx in the range of f,f\mathclose{\text{,}} for ff continuous and one-to-one on an open interval and differentiable at f−1(x)f^{-1}(x) with a nonzero derivative there. For the implicit rule, a point on F(x,y)=0F(x,y)=0 with Fy≠0F_y\ne 0 and continuous first partial derivatives nearby has a local differentiable branch y=y(x).y=y(x)\mathclose{\text{.}} Differentiate along that branch and solve for y′.y'\mathclose{\text{.}}

Derivatives of the standard functions

f(x){f(x)} f′(x){f'(x)} Holds for Module
xn{x^n} nxn−1{nx^{n-1}} n{n} real and x>0;{x > 0;} every x≠0{x \ne 0} if n{n} is an integer; every x{x} if n=1,2,3,…{n = 1, 2, 3, \ldots} 4, 5, 6
ex{e^x} ex{e^x} every x{x} 6
ekx{e^{kx}} kekx{ke^{kx}} k{k} constant 6
ax{a^x} axln⁡a{a^x\ln a} a>0{a > 0} 6
ln⁡x{\ln x} 1x{\dfrac{1}{x}} x>0{x > 0} 6
ln⁡∣x∣{\ln\abs{x}} 1x{\dfrac{1}{x}} x≠0{x \ne 0} 6
log⁡ax{\log_a x} 1xln⁡a{\dfrac{1}{x\ln a}} a>0,{a > 0,} a≠1,{a \ne 1,} x>0{x > 0} 6

Module 4 proves the power rule for positive integers, Module 5 extends it to negative integers, and Module 6 extends it to real exponents on x>0.x>0\mathclose{\text{.}}

Trigonometric functions (Module 5):

f(x){f(x)} f′(x){f'(x)} Holds for
sin⁡x{\sin x} cos⁡x{\cos x} every x{x}
cos⁡x{\cos x} −sin⁡x{-\sin x} every x{x}
tan⁡x{\tan x} sec⁡2x{\sec^2 x} cos⁡x≠0{\cos x \ne 0}
cot⁡x{\cot x} −csc⁡2x{-\csc^2 x} sin⁡x≠0{\sin x \ne 0}
sec⁡x{\sec x} sec⁡xtan⁡x{\sec x\tan x} cos⁡x≠0{\cos x \ne 0}
csc⁡x{\csc x} −csc⁡xcot⁡x{-\csc x\cot x} sin⁡x≠0{\sin x \ne 0}

These need xx in radians: in degrees, ddxsin⁡x∘=π180cos⁡x∘.\dfrac{d}{dx}\sin x^\circ = \dfrac{\pi}{180}\cos x^\circ\mathclose{\text{.}}

Inverse trigonometric functions (Module 6):

f(x){f(x)} f′(x){f'(x)} Holds for Values in
arcsin⁡x{\arcsin x} 11−x2{\dfrac{1}{\sqrt{1 - x^2}}} −1<x<1{-1 < x < 1} [−π/2,π/2]{[-\pi/2, \pi/2]}
arccos⁡x{\arccos x} −11−x2{-\dfrac{1}{\sqrt{1 - x^2}}} −1<x<1{-1 < x < 1} [0,π]{[0, \pi]}
arctan⁡x{\arctan x} 11+x2{\dfrac{1}{1 + x^2}} every x{x} (−π/2,π/2){(-\pi/2, \pi/2)}
arcsec⁡x{\arcsec x} 1∣x∣x2−1{\dfrac{1}{\abs{x}\sqrt{x^2 - 1}}} ∣x∣>1{\abs{x} > 1} [0,π/2)∪(π/2,π]{[0, \pi/2) \cup (\pi/2, \pi]}

The series takes arcsec⁡x=arccos⁡(1/x)\arcsec x = \arccos(1/x) for ∣x∣≥1.\abs{x}\ge 1\mathclose{\text{.}} The derivative holds away from the endpoints. Some other branch choices reverse its sign for x<−1.x < -1\mathclose{\text{.}}

Hyperbolic functions (Module 6):

sinh⁡x=ex−e−x2,cosh⁡x=ex+e−x2,cosh⁡2x−sinh⁡2x=1,\sinh x = \frac{e^x - e^{-x}}{2}, \qquad \cosh x = \frac{e^x + e^{-x}}{2}, \qquad \cosh^2 x - \sinh^2 x = 1,

with tanh⁡x=sinh⁡xcosh⁡x\tanh x = \dfrac{\sinh x}{\cosh x} and sech⁡x=1cosh⁡x;\sech x = \dfrac{1}{\cosh x}\mathclose{\text{;}} for x≠0,x \ne 0\mathclose{\text{,}} also coth⁡x=cosh⁡xsinh⁡x\coth x = \dfrac{\cosh x}{\sinh x} and csch⁡x=1sinh⁡x.\csch x = \dfrac{1}{\sinh x}\mathclose{\text{.}}

f(x){f(x)} f′(x){f'(x)} Holds for
sinh⁡x{\sinh x} cosh⁡x{\cosh x} every x{x}
cosh⁡x{\cosh x} sinh⁡x{\sinh x} every x{x}
tanh⁡x{\tanh x} sech⁡2x{\sech^2 x} every x{x}
coth⁡x{\coth x} −csch⁡2x{-\csch^2 x} x≠0{x \ne 0}
sech⁡x{\sech x} −sech⁡xtanh⁡x{-\sech x\tanh x} every x{x}
csch⁡x{\csch x} −csch⁡xcoth⁡x{-\csch x\coth x} x≠0{x \ne 0}
4

Integrals

Properties of the definite integral

Module 9 defines the integral of a bounded function ff on [a,b],[a,b]\mathclose{\text{,}} for a<b.a<b\mathclose{\text{.}} A partition PP has points a=x0<⋯<xn=b,a=x_0<\dots<x_n=b\mathclose{\text{,}} widths Δxi=xi−xi−1\Delta x_i=x_i-x_{i-1} and largest width ∥P∥.\norm{P}\mathclose{\text{.}} The properties below assume the functions are integrable on the intervals involved. The letter kk is a constant.

Property Formula Holds for
Definition ∫abf(x) dx=lim⁡∥P∥→0∑i=1nf(xi∗) Δxi{\displaystyle\int_a^b f(x)\,dx = \lim_{\norm{P}\to 0}\sum_{i=1}^{n} f(x_i^*)\,\Delta x_i} the same limit for all partitions and choices of xi∗∈[xi−1,xi]{x_i^*\in[x_{i-1},x_i]}
Equal widths ∫abf(x) dx=lim⁡n→∞∑i=1nf(xi∗) Δx{\displaystyle\int_a^b f(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} f(x_i^*)\,\Delta x} for integrable f,{f}\mathclose{\text{,}} with Δx=(b−a)/n{\Delta x=(b-a)/n} and any sample points
Sum ∫ab(f(x)+g(x)) dx=∫abf(x) dx+∫abg(x) dx{\displaystyle\int_a^b \big(f(x) + g(x)\big)\,dx = \int_a^b f(x)\,dx + \int_a^b g(x)\,dx}
Constant multiple ∫abk f(x) dx=k∫abf(x) dx{\displaystyle\int_a^b k\,f(x)\,dx = k\int_a^b f(x)\,dx}
Reversed limits ∫baf(x) dx=−∫abf(x) dx,{\displaystyle\int_b^a f(x)\,dx = -\int_a^b f(x)\,dx,}  ∫aaf(x) dx=0{\ \displaystyle\int_a^a f(x)\,dx = 0}
Adjacent intervals ∫abf(x) dx+∫bcf(x) dx=∫acf(x) dx{\displaystyle\int_a^b f(x)\,dx + \int_b^c f(x)\,dx = \int_a^c f(x)\,dx} a,{a,} b,{b,} c{c} in any order
Comparison ∫abf(x) dx≤∫abg(x) dx{\displaystyle\int_a^b f(x)\,dx \le \int_a^b g(x)\,dx} f(x)≤g(x){f(x) \le g(x)} on [a,b],{[a, b],} and a≤b{a \le b}
Bounds m(b−a)≤∫abf(x) dx≤M(b−a){m(b - a) \le \displaystyle\int_a^b f(x)\,dx \le M(b - a)} m≤f(x)≤M{m \le f(x) \le M} on [a,b],{[a, b],} and a≤b{a \le b}
Absolute value ∣∫abf(x) dx∣≤∫ab∣f(x)∣ dx{\abs{\displaystyle\int_a^b f(x)\,dx} \le \displaystyle\int_a^b \abs{f(x)}\,dx} a≤b{a \le b}
Even function ∫−aaf(x) dx=2∫0af(x) dx{\displaystyle\int_{-a}^{a} f(x)\,dx = 2\int_0^a f(x)\,dx} f(−x)=f(x){f(-x) = f(x)}
Odd function ∫−aaf(x) dx=0{\displaystyle\int_{-a}^{a} f(x)\,dx = 0} f(−x)=−f(x){f(-x) = -f(x)}
Mean value theorem ∫abf(x) dx=f(c) (b−a){\displaystyle\int_a^b f(x)\,dx = f(c)\,(b - a)} for some c{c} in [a,b]{[a, b]} f{f} continuous on [a,b]{[a, b]}

Sums (Module 9), for n=1,2,3,…:n = 1, 2, 3, \ldots\mathclose{\text{:}}

∑i=1ni=n(n+1)2,∑i=1ni2=n(n+1)(2n+1)6,∑i=1ni3=(n(n+1)2)2.\sum_{i=1}^{n} i = \frac{n(n+1)}{2}, \qquad \sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}, \qquad \sum_{i=1}^{n} i^3 = \Big(\frac{n(n+1)}{2}\Big)^2.

The Fundamental Theorem of Calculus

Module 10 proves both parts.

Statement Formula Holds for
Part 1 ddx∫axf(t) dt=f(x){\dfrac{d}{dx}\displaystyle\int_a^x f(t)\,dt = f(x)} f{f} continuous on [a,b],{[a, b],} x{x} in (a,b){(a, b)}
Part 1 with the chain rule ddx∫au(x)f(t) dt=f(u(x)) u′(x){\dfrac{d}{dx}\displaystyle\int_a^{u(x)} f(t)\,dt = f\big(u(x)\big)\,u'(x)} f{f} continuous on an interval containing a{a} and the values of the differentiable function u,{u}\mathclose{\text{,}} with u(x){u(x)} in its interior
Variable lower limit ddx∫xbf(t) dt=−f(x){\dfrac{d}{dx}\displaystyle\int_x^b f(t)\,dt = -f(x)} f{f} continuous on [a,b],{[a,b]}\mathclose{\text{,}} x{x} in (a,b){(a,b)}
Part 2 ∫abf(x) dx=F(b)−F(a)=[F(x)]ab{\displaystyle\int_a^b f(x)\,dx = F(b) - F(a) = \big[F(x)\big]_a^b} f{f} continuous on [a,b]{[a, b]} and F′=f{F' = f} there
Net change ∫abF′(x) dx=F(b)−F(a){\displaystyle\int_a^b F'(x)\,dx = F(b) - F(a)} F′{F'} continuous on [a,b]{[a, b]}
Indefinite integral ∫f(x) dx=F(x)+C{\displaystyle\int f(x)\,dx = F(x) + C} means F′(x)=f(x){F'(x) = f(x)} on an interval

Techniques

Technique Formula Module
Substitution ∫f(g(x)) g′(x) dx=∫f(u) du,{\displaystyle\int f\big(g(x)\big)\,g'(x)\,dx = \int f(u)\,du,} substitute u=g(x){u = g(x)} and write the result back in x{x} 10
Substitution, definite ∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du{\displaystyle\int_a^b f\big(g(x)\big)\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du} 10
By parts ∫u dv=uv−∫v du{\displaystyle\int u\,dv = uv - \int v\,du} 11
By parts, definite ∫abf(x) g′(x) dx=[f(x) g(x)]ab−∫abf′(x) g(x) dx{\displaystyle\int_a^b f(x)\,g'(x)\,dx = \big[f(x)\,g(x)\big]_a^b - \int_a^b f'(x)\,g(x)\,dx} 11
Reduction formula ∫sin⁡nx dx=−sin⁡n−1xcos⁡xn+n−1n∫sin⁡n−2x dx,{\displaystyle\int \sin^n x\,dx = -\frac{\sin^{n-1}x\cos x}{n} + \frac{n-1}{n}\int \sin^{n-2}x\,dx,}  n{\ n} an integer with n≥2{n \ge 2} 11
Partial fractions 1(x−p)(x−q)=1p−q(1x−p−1x−q),{\dfrac{1}{(x - p)(x - q)} = \dfrac{1}{p - q}\Big(\dfrac{1}{x - p} - \dfrac{1}{x - q}\Big),}  p≠q,{\ p \ne q}\mathclose{\text{,}} x≠p,q{x\ne p,q} 11

For the definite rules, substitution uses g′g' continuous on [a,b][a,b] and ff continuous on an interval containing the range of g.g\mathclose{\text{.}} Integration by parts uses f′f' and g′g' continuous on [a,b].[a,b]\mathclose{\text{.}} For indefinite substitution the chain rule applies wherever the antiderivative of ff is differentiable at g(x)g(x) and gg is differentiable at x.x\mathclose{\text{.}}

Antiderivatives

CC is an arbitrary constant. Where the domain has several intervals (such as x≠0x \ne 0 for 1/x),1/x\mathclose{\text{),}} the constant may differ from one interval to the next.

f(x){f(x)} ∫f(x) dx{\displaystyle\int f(x)\,dx} Holds for Module
xn{x^n} xn+1n+1+C{\dfrac{x^{n+1}}{n + 1} + C} n≠−1.{n \ne -1}\mathclose{\text{.}} Use x>0{x>0} for real n,{n}\mathclose{\text{,}} all real x{x} for n=0,1,2,…,{n=0,1,2,\ldots}\mathclose{\text{,}} and x≠0{x\ne 0} for negative integer n{n} 10
1x{\dfrac{1}{x}} ln⁡∣x∣+C{\ln\abs{x} + C} x≠0{x \ne 0} 10
ex{e^x} ex+C{e^x + C} 10
ekx{e^{kx}} 1kekx+C{\dfrac{1}{k}e^{kx} + C} k≠0{k \ne 0} 10
ax{a^x} axln⁡a+C{\dfrac{a^x}{\ln a} + C} a>0,{a > 0,} a≠1{a \ne 1} 10
sin⁡x{\sin x} −cos⁡x+C{-\cos x + C} 10
cos⁡x{\cos x} sin⁡x+C{\sin x + C} 10
sec⁡2x{\sec^2 x} tan⁡x+C{\tan x + C} cos⁡x≠0{\cos x \ne 0} 10
csc⁡2x{\csc^2 x} −cot⁡x+C{-\cot x + C} sin⁡x≠0{\sin x \ne 0} 10
sec⁡xtan⁡x{\sec x\tan x} sec⁡x+C{\sec x + C} cos⁡x≠0{\cos x \ne 0} 10
csc⁡xcot⁡x{\csc x\cot x} −csc⁡x+C{-\csc x + C} sin⁡x≠0{\sin x \ne 0} 10
tan⁡x{\tan x} ln⁡∣sec⁡x∣+C{\ln\abs{\sec x} + C} cos⁡x≠0{\cos x \ne 0} 10
cot⁡x{\cot x} ln⁡∣sin⁡x∣+C{\ln\abs{\sin x} + C} sin⁡x≠0{\sin x \ne 0} logarithmic derivative in 6
sec⁡x{\sec x} ln⁡∣sec⁡x+tan⁡x∣+C{\ln\abs{\sec x + \tan x} + C} cos⁡x≠0{\cos x \ne 0} 11
csc⁡x{\csc x} ln⁡∣csc⁡x−cot⁡x∣+C{\ln\abs{\csc x - \cot x} + C} sin⁡x≠0{\sin x \ne 0} 11
sin⁡2x{\sin^2 x} x2−sin⁡2x4+C{\dfrac{x}{2} - \dfrac{\sin 2x}{4} + C} 11
cos⁡2x{\cos^2 x} x2+sin⁡2x4+C{\dfrac{x}{2} + \dfrac{\sin 2x}{4} + C} 11
ln⁡x{\ln x} xln⁡x−x+C{x\ln x - x + C} x>0{x > 0} 11
1a2+x2{\dfrac{1}{a^2 + x^2}} 1aarctan⁡xa+C{\dfrac{1}{a}\arctan\dfrac{x}{a} + C} a≠0{a \ne 0} 10, 11
1a2−x2{\dfrac{1}{\sqrt{a^2 - x^2}}} arcsin⁡xa+C{\arcsin\dfrac{x}{a} + C} a>0,{a > 0,} ∣x∣<a{\abs{x} < a} 10, 11
1x2−a2{\dfrac{1}{x^2 - a^2}} 12aln⁡∣x−ax+a∣+C{\dfrac{1}{2a}\ln\abs{\dfrac{x - a}{x + a}} + C} a≠0,{a \ne 0,} x≠±a{x \ne \pm a} 11
1x2+a2{\dfrac{1}{\sqrt{x^2 + a^2}}} ln⁡(x+x2+a2)+C{\ln\big(x + \sqrt{x^2 + a^2}\big) + C} a≠0{a \ne 0} 11
sinh⁡x{\sinh x} cosh⁡x+C{\cosh x + C} 10
cosh⁡x{\cosh x} sinh⁡x+C{\sinh x + C} 10

Trigonometric substitution

Module 11 teaches this. In each row a>0.a > 0\mathclose{\text{.}} The range of θ\theta 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{\sqrt{a^2 - x^2}} x=asin⁡θ,{x = a\sin\theta,}  −π2≤θ≤π2{\ -\tfrac{\pi}{2} \le \theta \le \tfrac{\pi}{2}} a2−x2=acos⁡θ,{\sqrt{a^2 - x^2} = a\cos\theta,}  dx=acos⁡θ dθ{\ dx = a\cos\theta\,d\theta}
a2+x2{\sqrt{a^2 + x^2}} x=atan⁡θ,{x = a\tan\theta,}  −π2<θ<π2{\ -\tfrac{\pi}{2} < \theta < \tfrac{\pi}{2}} a2+x2=asec⁡θ,{\sqrt{a^2 + x^2} = a\sec\theta,}  dx=asec⁡2θ dθ{\ dx = a\sec^2\theta\,d\theta}
x2−a2{\sqrt{x^2 - a^2}} x=asec⁡θ,{x = a\sec\theta,}  0≤θ<π2{\ 0 \le \theta < \tfrac{\pi}{2}} (for x≥a){x \ge a}\mathclose{\text{)}} x2−a2=atan⁡θ,{\sqrt{x^2 - a^2} = a\tan\theta,}  dx=asec⁡θtan⁡θ dθ{\ dx = a\sec\theta\tan\theta\,d\theta}
x2−a2{\sqrt{x^2 - a^2}} x=asec⁡θ,{x = a\sec\theta,}  π2<θ≤π{\ \tfrac{\pi}{2} < \theta \le \pi} (for x≤−a){x \le -a}\mathclose{\text{)}} x2−a2=−atan⁡θ,{\sqrt{x^2 - a^2} = -a\tan\theta,}  dx=asec⁡θtan⁡θ dθ{\ dx = a\sec\theta\tan\theta\,d\theta}

Numerical integration

Module 11 teaches these rules. For a continuous ff on [a,b][a,b] with a<b,a<b\mathclose{\text{,}} divide [a,b][a,b] into n≥1n\ge 1 equal subintervals of width Δx=(b−a)/n,\Delta x = (b - a)/n\mathclose{\text{,}} with endpoints xi=a+i Δxx_i = a + i\,\Delta x and midpoints xˉi=12(xi−1+xi).\bar{x}_i = \tfrac12(x_{i-1} + x_i)\mathclose{\text{.}}

Mn=Δx [f(xˉ1)+f(xˉ2)+⋯+f(xˉn)]M_n = \Delta x\,\big[f(\bar{x}_1) + f(\bar{x}_2) + \cdots + f(\bar{x}_n)\big]
Tn=Δx2[f(x0)+2f(x1)+2f(x2)+⋯+2f(xn−1)+f(xn)]T_n = \frac{\Delta x}{2}\big[f(x_0) + 2f(x_1) + 2f(x_2) + \cdots + 2f(x_{n-1}) + f(x_n)\big]
Sn=Δx3[f(x0)+4f(x1)+2f(x2)+4f(x3)+⋯+2f(xn−2)+4f(xn−1)+f(xn)],n evenS_n = \frac{\Delta x}{3}\big[f(x_0) + 4f(x_1) + 2f(x_2) + 4f(x_3) + \cdots + 2f(x_{n-2}) + 4f(x_{n-1}) + f(x_n)\big], \quad n \text{ even}

The error EE is the integral minus the approximation. For the bounds, assume the indicated derivative is continuous on [a,b].[a,b]\mathclose{\text{.}}

Rule Error bound Exact for
Midpoint Mn{M_n} ∣EM∣≤K(b−a)324n2,{\abs{E_M} \le \dfrac{K(b - a)^3}{24n^2},} where ∣f′′(x)∣≤K{\abs{f''(x)} \le K} on [a,b]{[a, b]} polynomials of degree ≤1{\le 1}
Trapezoidal Tn{T_n} ∣ET∣≤K(b−a)312n2,{\abs{E_T} \le \dfrac{K(b - a)^3}{12n^2},} where ∣f′′(x)∣≤K{\abs{f''(x)} \le K} on [a,b]{[a, b]} polynomials of degree ≤1{\le 1}
Simpson Sn{S_n} ∣ES∣≤K(b−a)5180n4,{\abs{E_S} \le \dfrac{K(b - a)^5}{180n^4},} where ∣f(4)(x)∣≤K{\abs{f^{(4)}(x)} \le K} on [a,b]{[a, b]} polynomials of degree ≤3{\le 3}

The bounds cannot be improved: for f(x)=x2f(x) = x^2 the midpoint and trapezoidal errors attain their bounds in absolute value. The same holds for Simpson’s error on f(x)=x4.f(x)=x^4\mathclose{\text{.}}

Improper integrals

Module 12 teaches these. An improper integral converges when the limit that defines it exists and is finite:

∫a∞f(x) dx=lim⁡t→∞∫atf(x) dx,∫abf(x) dx=lim⁡t→b−∫atf(x) dx  if f is unbounded near b,\int_a^\infty f(x)\,dx = \lim_{t\to\infty}\int_a^t f(x)\,dx, \qquad \int_a^b f(x)\,dx = \lim_{t\to b^-}\int_a^t f(x)\,dx \ \text{ if } f \text{ 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\int_{-\infty}^{\infty} f(x)\,dx = \int_{-\infty}^{c} f(x)\,dx + \int_{c}^{\infty} f(x)\,dx when both integrals on the right converge. (Both are needed: ∫−ttx dx=0\int_{-t}^{t} x\,dx = 0 for every t,t\mathclose{\text{,}} yet ∫−∞∞x dx\int_{-\infty}^{\infty} x\,dx diverges.)

Integral Value Holds for
∫1∞dxxp{\displaystyle\int_1^\infty \frac{dx}{x^p}} 1p−1{\dfrac{1}{p - 1}} p>1;{p > 1;} diverges for p≤1{p \le 1}
∫01dxxp{\displaystyle\int_0^1 \frac{dx}{x^p}} 11−p{\dfrac{1}{1 - p}} p<1;{p < 1;} diverges for p≥1{p \ge 1}
∫0∞e−ax dx{\displaystyle\int_0^\infty e^{-ax}\,dx} 1a{\dfrac{1}{a}} a>0{a > 0}
∫−∞∞dx1+x2{\displaystyle\int_{-\infty}^{\infty} \frac{dx}{1 + x^2}} π{\pi}
∫−∞∞e−x2 dx{\displaystyle\int_{-\infty}^{\infty} e^{-x^2}\,dx} π{\sqrt{\pi}} quoted in Module 12, proved in Module 19

Comparison. For ff and gg continuous on [a,∞)[a,\infty) with 0≤f(x)≤g(x)0 \le f(x) \le g(x) there, ∫a∞f(x) dx\int_a^\infty f(x)\,dx converges when ∫a∞g(x) dx\int_a^\infty g(x)\,dx converges, and ∫a∞g(x) dx\int_a^\infty g(x)\,dx diverges when ∫a∞f(x) dx\int_a^\infty 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{A = \displaystyle\int_a^b \big(f(x) - g(x)\big)\,dx} f(x)≥g(x){f(x) \ge g(x)} on [a,b]:{[a, b]}\mathclose{\text{:}} vertical strips, top minus bottom. If the curves cross, integrate ∣f(x)−g(x)∣,{\abs{f(x) - g(x)},} or split where the order of the curves changes
Area, horizontal strips A=∫cd(xR(y)−xL(y)) dy{A = \displaystyle\int_c^d \big(x_R(y) - x_L(y)\big)\,dy} xR(y)≥xL(y){x_R(y)\ge x_L(y)} on [c,d].{[c,d]}\mathclose{\text{.}} Subtract the left boundary from the right
Volume by slicing V=∫abA(x) dx{V = \displaystyle\int_a^b A(x)\,dx} the slice perpendicular to the x{x}-axis at x{x} has a known area A(x){A(x)}
Discs V=π∫abf(x)2 dx{V = \pi\displaystyle\int_a^b f(x)^2\,dx} the region under y=f(x)≥0{y = f(x) \ge 0} turns about the x{x}-axis: each slice is a disc of radius f(x){f(x)}
Washers V=π∫ab(R(x)2−r(x)2) dx{V = \pi\displaystyle\int_a^b \big(R(x)^2 - r(x)^2\big)\,dx} each slice is a ring with outer radius R(x){R(x)} and inner radius r(x),{r(x),} 0≤r(x)≤R(x){0 \le r(x) \le R(x)}
Shells V=2π∫abx f(x) dx{V = 2\pi\displaystyle\int_a^b x\,f(x)\,dx} the region under y=f(x)≥0,{y = f(x) \ge 0,} 0≤a≤x≤b,{0 \le a \le x \le b,} turns about the y{y}-axis; in general 2π∫(radius)(height){2\pi\int(\text{radius})(\text{height})}
Arc length L=∫ab1+f′(x)2 dx{L = \displaystyle\int_a^b \sqrt{1 + f'(x)^2}\,dx} a curve y=f(x){y = f(x)} with f′{f'} continuous on [a,b]{[a, b]}
Arc length, parametric L=∫αβx′(t)2+y′(t)2 dt{L = \displaystyle\int_\alpha^\beta \sqrt{x'(t)^2 + y'(t)^2}\,dt} a curve (x(t),y(t)){\big(x(t), y(t)\big)} traced once for α≤t≤β,{\alpha \le t \le \beta,} with x′,{x',} y′{y'} continuous
Average value favg=1b−a∫abf(x) dx{f_{\text{avg}} = \dfrac{1}{b - a}\displaystyle\int_a^b f(x)\,dx} f{f} integrable on [a,b],{[a,b]}\mathclose{\text{,}} with a<b{a<b}
Work W=∫abF(x) dx{W = \displaystyle\int_a^b F(x)\,dx} F(x){F(x)} is the signed force component along the line. The force required to stretch an ideal spring slowly is kx,{kx}\mathclose{\text{,}} opposite the spring’s own force. For pumping, integrate each layer’s weight times its lift distance
Centre of mass of a rod xˉ=∫abx ρ(x) dx∫abρ(x) dx{\bar{x} = \dfrac{\int_a^b x\,\rho(x)\,dx}{\int_a^b \rho(x)\,dx}} a rod on [a,b]{[a,b]} with integrable nonnegative density ρ(x){\rho(x)} and positive total mass
Centroid of a plate xˉ=1A∫abx(f(x)−g(x)) dx{\bar{x} = \dfrac{1}{A}\displaystyle\int_a^b x\big(f(x) - g(x)\big)\,dx} a uniform plate g(x)≤y≤f(x),{g(x) \le y \le f(x),} a≤x≤b,{a \le x \le b,} of positive area A{A}
yˉ=1A∫ab12(f(x)2−g(x)2) dx{\bar{y} = \dfrac{1}{A}\displaystyle\int_a^b \tfrac12\big(f(x)^2 - g(x)^2\big)\,dx} the same plate
Probability P(a≤X≤b)=∫abf(x) dx{P(a \le X \le b) = \displaystyle\int_a^b f(x)\,dx} f{f} is a probability density: f≥0{f \ge 0} and ∫−∞∞f(x) dx=1{\int_{-\infty}^{\infty} f(x)\,dx = 1}
Mean μ=∫−∞∞x f(x) dx{\mu = \displaystyle\int_{-\infty}^{\infty} x\,f(x)\,dx} X{X} has density f{f} with ∫−∞∞∣x∣ f(x) dx<∞{\displaystyle\int_{-\infty}^{\infty}\abs{x}\,f(x)\,dx<\infty}

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′=kyy' = ky by substitution.

Model Equation Solution Holds for
Growth and decay dydt=ky{\dfrac{dy}{dt} = ky} y=y0ekt{y = y_0e^{kt}} y(0)=y0>0.{y(0)=y_0>0}\mathclose{\text{.}} Growth if k>0{k > 0} (doubling time ln⁡2/k),{\ln 2/k}\mathclose{\text{),}} decay if k<0{k < 0} (half-life ln⁡2/∣k∣){\ln 2/\abs{k}}\mathclose{\text{)}}
Newton’s law of cooling dTdt=−k(T−Ts){\dfrac{dT}{dt} = -k(T - T_s)} T=Ts+(T0−Ts)e−kt{T = T_s + (T_0 - T_s)e^{-kt}} k>0,{k > 0,} T(0)=T0,{T(0) = T_0,} surroundings at Ts{T_s}
Logistic dydt=ry(1−yK){\dfrac{dy}{dt} = ry\Big(1 - \dfrac{y}{K}\Big)} y(t)=K1+K−y0y0e−rt{y(t) = \dfrac{K}{1 + \dfrac{K-y_0}{y_0}e^{-rt}}} r,K>0,{r,K>0}\mathclose{\text{,}} y(0)=y0>0,{y(0)=y_0>0}\mathclose{\text{,}} t≥0.{t\ge 0}\mathclose{\text{.}} Then y→K{y\to K} as t→∞.{t\to\infty}\mathclose{\text{.}} If y0=0,{y_0=0}\mathclose{\text{,}} the solution is y=0{y=0}
Separable dydx=g(x) h(y){\dfrac{dy}{dx} = g(x)\,h(y)} ∫dyh(y)=∫g(x) dx{\displaystyle\int \frac{dy}{h(y)} = \int g(x)\,dx} where h(y)≠0;{h(y) \ne 0;} each zero y1{y_1} of h{h} gives the constant solution y=y1{y = y_1}
First-order linear y′+p(t)y=q(t){y' + p(t)y = q(t)} y(t)=R(t)+Cμ(t),{y(t) = \dfrac{R(t)+C}{\mu(t)}}\mathclose{\text{,}} μ(t)=eP(t){\mu(t) = e^{P(t)}} continuous p,q{p,q} on an interval. Take P′=p{P'=p} and R′=μq{R'=\mu q}

Second-order linear equations with constant coefficients. For ay′′+by′+cy=0ay''+by'+cy=0 with real coefficients and a≠0,a\ne0\mathclose{\text{,}} try y=ert.y=e^{rt}\mathclose{\text{.}} This gives the characteristic equation ar2+br+c=0.ar^2+br+c=0\mathclose{\text{.}} You can take a>0a>0 by multiplying the whole equation by −1-1 when needed.

Roots of ar2+br+c=0{ar^2 + br + c = 0} General solution When
two real roots r1≠r2{r_1 \ne r_2} y=C1er1t+C2er2t{y = C_1e^{r_1t} + C_2e^{r_2t}} b2−4ac>0{b^2 - 4ac > 0}
one double root r=−b2a{r = -\dfrac{b}{2a}} y=(C1+C2t) ert{y = (C_1 + C_2t)\,e^{rt}} b2−4ac=0{b^2 - 4ac = 0}
complex roots α±iβ{\alpha \pm i\beta} y=eαt(C1cos⁡βt+C2sin⁡βt){y = e^{\alpha t}(C_1\cos\beta t + C_2\sin\beta t)} b2−4ac<0;{b^2 - 4ac < 0;}  α=−b2a,{\ \alpha = -\dfrac{b}{2a},}  β=4ac−b22a{\ \beta = \dfrac{\sqrt{4ac-b^2}}{2a}}

Euler’s method for y′=F(t,y)y'=F(t,y) with y(t0)=y0y(t_0)=y_0 and step h>0:h>0\mathclose{\text{:}}

tn+1=tn+h,yn+1=yn+h F(tn,yn).t_{n+1}=t_n+h,\qquad y_{n+1}=y_n+h\,F(t_n,y_n).

If the exact solution has bounded second derivative and FF is Lipschitz in yy (for instance, FyF_y is bounded), the error at a fixed grid time is O(h).O(h)\mathclose{\text{.}} For y′=yy'=y with y(0)=1y(0)=1 the method gives (1+h)1/h(1+h)^{1/h} at t=1t=1 (when 1/h1/h is a whole number), and the error e−(1+h)1/he - (1 + h)^{1/h} is about e2 h\tfrac{e}{2}\,h for small h.h\mathclose{\text{.}}

7

Series

Standard series

Module 14 teaches these.

Series Sum Holds for
Geometric: ∑n=0∞arn=a+ar+ar2+⋯{\displaystyle\sum_{n=0}^{\infty} ar^n = a + ar + ar^2 + \cdots} a1−r{\dfrac{a}{1 - r}} ∣r∣<1;{\abs{r} < 1;} diverges for ∣r∣≥1{\abs{r} \ge 1} (if a≠0){a \ne 0}\mathclose{\text{)}}
Geometric partial sum: ∑n=0N−1arn{\displaystyle\sum_{n=0}^{N-1} ar^n} a 1−rN1−r{a\,\dfrac{1 - r^N}{1 - r}} r≠1{r \ne 1}
p{p}-series: ∑n=1∞1np{\displaystyle\sum_{n=1}^{\infty} \frac{1}{n^p}} converges p>1;{p > 1;} diverges for p≤1{p \le 1}
Harmonic: ∑n=1∞1n{\displaystyle\sum_{n=1}^{\infty} \frac{1}{n}} diverges the N{N}th partial sum grows like ln⁡N{\ln N}
Telescoping: ∑n=1∞1n(n+1)=∑n=1∞(1n−1n+1){\displaystyle\sum_{n=1}^{\infty} \frac{1}{n(n+1)} = \sum_{n=1}^{\infty}\Big(\frac{1}{n} - \frac{1}{n+1}\Big)} 1{1}

Convergence tests

Module 14 teaches these tests for a series ∑an.\sum a_n\mathclose{\text{.}} Their hypotheses need to hold only from some nn on: the first terms of a series do not affect whether it converges.

Test If Then
Divergence lim⁡n→∞an≠0,{\lim\limits_{n\to\infty} a_n \ne 0,} or the limit does not exist ∑an{\sum a_n} diverges. If an→0,{a_n \to 0,} the test says nothing
Integral an=f(n),{a_n = f(n),} with f{f} continuous, positive and decreasing on [1,∞){[1, \infty)} ∑an{\sum a_n} and ∫1∞f(x) dx{\int_1^\infty f(x)\,dx} both converge or both diverge; the remainder RN=∑n=N+1∞an{R_N = \sum_{n=N+1}^{\infty} a_n} for a convergent series and N{N} in the decreasing tail satisfies ∫N+1∞f(x) dx≤RN≤∫N∞f(x) dx{\int_{N+1}^{\infty} f(x)\,dx \le R_N \le \int_N^\infty f(x)\,dx}
Comparison 0≤an≤bn{0 \le a_n \le b_n} if ∑bn{\sum b_n} converges, so does ∑an;{\sum a_n;} if ∑an{\sum a_n} diverges, so does ∑bn{\sum b_n}
Limit comparison an>0,{a_n > 0,} bn>0{b_n > 0} and lim⁡n→∞anbn=L{\lim\limits_{n\to\infty} \dfrac{a_n}{b_n} = L} with 0<L<∞{0 < L < \infty} ∑an{\sum a_n} and ∑bn{\sum b_n} both converge or both diverge
Alternating series an=(−1)n−1bn{a_n = (-1)^{n-1}b_n} with bn>0,{b_n > 0,} bn+1≤bn{b_{n+1} \le b_n} and bn→0{b_n \to 0} ∑an{\sum a_n} converges, and its sum S{S} satisfies ∣S−SN∣≤bN+1{\abs{S - S_N} \le b_{N+1}}
Absolute convergence ∑∣an∣{\sum \abs{a_n}} converges ∑an{\sum a_n} converges. The converse is false: ∑(−1)n−1/n{\sum (-1)^{n-1}/n} converges, ∑1/n{\sum 1/n} does not
Ratio ρ=lim⁡n→∞∣an+1an∣{\rho = \lim\limits_{n\to\infty} \abs{\dfrac{a_{n+1}}{a_n}}} exists or is ∞,{\infty}\mathclose{\text{,}} with an≠0{a_n\ne0} eventually ρ<1:{\rho < 1}\mathclose{\text{:}} ∑an{\sum a_n} converges absolutely; ρ>1{\rho > 1} or ρ=∞:{\rho = \infty}\mathclose{\text{:}} it diverges; ρ=1:{\rho = 1}\mathclose{\text{:}} no conclusion
Root ρ=lim⁡n→∞∣an∣1/n{\rho = \lim\limits_{n\to\infty} \abs{a_n}^{1/n}} exists or is ∞{\infty} the same three conclusions as the ratio test

Taylor’s formula

If ff has n+1n + 1 derivatives on an open interval containing aa and xx (Module 15), then

f(x)=∑k=0nf(k)(a)k!(x−a)k+Rn(x),Rn(x)=f(n+1)(c)(n+1)!(x−a)n+1f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x - a)^k + R_n(x), \qquad R_n(x) = \frac{f^{(n+1)}(c)}{(n + 1)!}(x - a)^{n+1}

for some cc between aa and xx (the Lagrange form of the remainder). The sum is the Taylor polynomial Tn(x)T_n(x) of degree at most nn about a.a\mathclose{\text{.}} With a=0a=0 it is a Maclaurin polynomial.

Taylor’s inequality. If ∣f(n+1)(t)∣≤M\abs{f^{(n+1)}(t)} \le M for every tt between aa and x,x\mathclose{\text{,}} then

∣Rn(x)∣≤M(n+1)! ∣x−a∣n+1.\abs{R_n(x)} \le \frac{M}{(n + 1)!}\,\abs{x - a}^{n+1}.

Taylor series. If ff has derivatives of every order near a,a\mathclose{\text{,}} the series ∑k=0∞ck(x−a)k\sum_{k=0}^{\infty} c_k(x - a)^k with ck=f(k)(a)/k!c_k = f^{(k)}(a)/k! equals f(x)f(x) exactly when Rn(x)→0R_n(x) \to 0 as n→∞.n \to \infty\mathclose{\text{.}}

Maclaurin series

Module 15 teaches these.

Function Series Equals the function for
ex{e^x} ∑n=0∞xnn!=1+x+x22!+x33!+⋯{\displaystyle\sum_{n=0}^{\infty} \frac{x^n}{n!} = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \cdots} every x{x}
sin⁡x{\sin x} ∑n=0∞(−1)nx2n+1(2n+1)!=x−x33!+x55!−⋯{\displaystyle\sum_{n=0}^{\infty} (-1)^n\frac{x^{2n+1}}{(2n+1)!} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots} every x{x}
cos⁡x{\cos x} ∑n=0∞(−1)nx2n(2n)!=1−x22!+x44!−⋯{\displaystyle\sum_{n=0}^{\infty} (-1)^n\frac{x^{2n}}{(2n)!} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots} every x{x}
11−x{\dfrac{1}{1 - x}} ∑n=0∞xn=1+x+x2+x3+⋯{\displaystyle\sum_{n=0}^{\infty} x^n = 1 + x + x^2 + x^3 + \cdots} −1<x<1{-1 < x < 1}
ln⁡(1+x){\ln(1 + x)} ∑n=1∞(−1)n−1xnn=x−x22+x33−⋯{\displaystyle\sum_{n=1}^{\infty} (-1)^{n-1}\frac{x^n}{n} = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots} −1<x≤1{-1 < x \le 1}
arctan⁡x{\arctan x} ∑n=0∞(−1)nx2n+12n+1=x−x33+x55−⋯{\displaystyle\sum_{n=0}^{\infty} (-1)^n\frac{x^{2n+1}}{2n+1} = x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots} −1≤x≤1{-1 \le x \le 1}
(1+x)k{(1 + x)^k} ∑n=0∞(kn)xn=1+kx+k(k−1)2!x2+⋯{\displaystyle\sum_{n=0}^{\infty} \binom{k}{n}x^n = 1 + kx + \frac{k(k-1)}{2!}x^2 + \cdots} −1<x<1,{-1 < x < 1,} k{k} real

In the binomial series (kn)=k(k−1)⋯(k−n+1)n!\dbinom{k}{n} = \dfrac{k(k-1)\cdots(k-n+1)}{n!} and (k0)=1.\dbinom{k}{0} = 1\mathclose{\text{.}} When kk is a whole number the series stops at n=kn = k and holds for every xx (the binomial theorem). At the ends x=±1x = \pm 1 it depends on k:k\mathclose{\text{:}} for k>0k > 0 the series converges on [−1,1],[-1, 1]\mathclose{\text{,}} for −1<k<0-1 < k < 0 on (−1,1],(-1, 1]\mathclose{\text{,}} and for k≤−1k \le -1 only on (−1,1).(-1, 1)\mathclose{\text{.}}

At x=1x = 1 the series give ln⁡2=1−12+13−⋯\ln 2 = 1 - \tfrac12 + \tfrac13 - \cdots and π4=1−13+15−⋯.\tfrac{\pi}{4} = 1 - \tfrac13 + \tfrac15 - \cdots\mathclose{\text{.}} Euler’s formula (Module 15): eiθ=cos⁡θ+isin⁡θe^{i\theta} = \cos\theta + i\sin\theta for every real θ;\theta\mathclose{\text{;}} in particular eiπ=−1.e^{i\pi} = -1\mathclose{\text{.}}

8

Several variables

Vectors, lines and planes

Module 16 teaches these. Here a=⟨a1,a2,a3⟩,\vb{a} = \langle a_1, a_2, a_3\rangle\mathclose{\text{,}} b=⟨b1,b2,b3⟩,\vb{b} = \langle b_1, b_2, b_3\rangle\mathclose{\text{,}} c=⟨c1,c2,c3⟩,\vb{c} = \langle c_1, c_2, c_3\rangle\mathclose{\text{,}} and for nonzero a\vb{a} and b,\vb{b}\mathclose{\text{,}} θ\theta is the angle between them, 0≤θ≤π.0\le\theta\le\pi\mathclose{\text{.}}

Quantity Formula Notes
Length ∥a∥=a12+a22+a32=a⋅a{\norm{\vb{a}} = \sqrt{a_1^2 + a_2^2 + a_3^2} = \sqrt{\vb{a}\cdot\vb{a}}}
Dot product a⋅b=a1b1+a2b2+a3b3=∥a∥∥b∥cos⁡θ{\vb{a}\cdot\vb{b} = a_1b_1 + a_2b_2 + a_3b_3 = \norm{\vb{a}}\norm{\vb{b}}\cos\theta} The component formula also covers zero vectors. Nonzero vectors are perpendicular exactly when a⋅b=0{\vb{a}\cdot\vb{b}=0}
Projection proj⁡ab=a⋅b∥a∥2 a{\operatorname{proj}_{\vb{a}}\vb{b} = \dfrac{\vb{a}\cdot\vb{b}}{\norm{\vb{a}}^2}\,\vb{a}} a≠0;{\vb{a} \ne \vb{0};} b−proj⁡ab{\vb{b} - \operatorname{proj}_{\vb{a}}\vb{b}} is perpendicular to a{\vb{a}}
Cross product a×b=⟨a2b3−a3b2, a3b1−a1b3, a1b2−a2b1⟩{\vb{a}\times\vb{b} = \langle a_2b_3 - a_3b_2,\ a_3b_1 - a_1b_3,\ a_1b_2 - a_2b_1\rangle} perpendicular to a{\vb{a}} and b{\vb{b}} (right-hand rule: i×j=k);{\vb{i}\times\vb{j} = \vb{k}}\mathclose{\text{);}} b×a=−a×b{\vb{b}\times\vb{a} = -\vb{a}\times\vb{b}}
Length of a×b{\vb{a}\times\vb{b}} ∥a×b∥=∥a∥∥b∥sin⁡θ{\norm{\vb{a}\times\vb{b}} = \norm{\vb{a}}\norm{\vb{b}}\sin\theta} the area of the parallelogram with sides a{\vb{a}} and b{\vb{b}}
Triple product a⋅(b×c)=det⁡(a1a2a3b1b2b3c1c2c3){\vb{a}\cdot(\vb{b}\times\vb{c}) = \det\begin{pmatrix} a_1 & a_2 & a_3\\ b_1 & b_2 & b_3\\ c_1 & c_2 & c_3\end{pmatrix}} its absolute value is the volume of the box (parallelepiped) on a,{\vb{a},} b,{\vb{b},} c{\vb{c}}
Line r(t)=r0+t v,{\vb{r}(t) = \vb{r}_0 + t\,\vb{v},} that is x=x0+v1t,{x = x_0 + v_1t,} y=y0+v2t,{y = y_0 + v_2t,} z=z0+v3t{z = z_0 + v_3t} through (x0,y0,z0){(x_0, y_0, z_0)} with direction v=⟨v1,v2,v3⟩≠0{\vb{v} = \langle v_1, v_2, v_3\rangle \ne \vb{0}}
Plane a(x−x0)+b(y−y0)+c(z−z0)=0{a(x - x_0) + b(y - y_0) + c(z - z_0) = 0} through (x0,y0,z0){(x_0, y_0, z_0)} with normal n=⟨a,b,c⟩≠0{\vb{n} = \langle a, b, c\rangle \ne \vb{0}}
Distance from a point to a plane D=∣ax1+by1+cz1+d∣a2+b2+c2{D = \dfrac{\abs{ax_1 + by_1 + cz_1 + d}}{\sqrt{a^2 + b^2 + c^2}}} the point (x1,y1,z1),{(x_1, y_1, z_1),} the plane ax+by+cz+d=0{ax+by+cz+d=0} with nonzero normal ⟨a,b,c⟩{\langle a,b,c\rangle}

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=∂f∂x:{f_x = \dfrac{\partial f}{\partial x}}\mathclose{\text{:}} differentiate in x{x} with y{y} held fixed;  fy=∂f∂y{\ f_y = \dfrac{\partial f}{\partial y}}
Second partials fxx=∂2f∂x2,{f_{xx} = \dfrac{\partial^2 f}{\partial x^2},}  fxy=(fx)y=∂2f∂y ∂x{\ f_{xy} = (f_x)_y = \dfrac{\partial^2 f}{\partial y\,\partial x}}
Clairaut’s theorem fxy=fyx{f_{xy} = f_{yx}} fxy{f_{xy}} and fyx{f_{yx}} continuous near the point
Gradient ∇f=⟨fx,fy,fz⟩{\nabla f = \langle f_x, f_y, f_z\rangle}
Directional derivative Duf=∇f⋅u{D_{\vb{u}}f = \nabla f\cdot\vb{u}} u{\vb{u}} a unit vector
Steepest ascent the largest Duf{D_{\vb{u}}f} is ∥∇f∥,{\norm{\nabla f},} in the direction of ∇f;{\nabla f;} ∇f{\nabla f} is perpendicular to the level curves (or surfaces) ∇f≠0{\nabla f \ne \vb{0}}
Chain rule dzdt=∂z∂xdxdt+∂z∂ydydt{\dfrac{dz}{dt} = \dfrac{\partial z}{\partial x}\dfrac{dx}{dt} + \dfrac{\partial z}{\partial y}\dfrac{dy}{dt}} z=f(x,y),{z = f(x, y),} x=x(t),{x = x(t),} y=y(t){y = y(t)}
Chain rule, two parameters ∂z∂s=∂z∂x∂x∂s+∂z∂y∂y∂s,{\dfrac{\partial z}{\partial s} = \dfrac{\partial z}{\partial x}\dfrac{\partial x}{\partial s} + \dfrac{\partial z}{\partial y}\dfrac{\partial y}{\partial s},} and the same for t{t} x=x(s,t),{x = x(s, t),} y=y(s,t){y = y(s, t)}
Tangent plane z=f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b){z = f(a, b) + f_x(a, b)(x - a) + f_y(a, b)(y - b)} the graph z=f(x,y){z = f(x, y)} at (a,b){(a, b)}
Linear approximation f(x,y)≈f(a,b)+fx(a,b)(x−a)+fy(a,b)(y−b){f(x, y) \approx f(a, b) + f_x(a, b)(x - a) + f_y(a, b)(y - b)} (x,y){(x, y)} near (a,b){(a, b)}
Tangent plane to a level surface ∇F(P)⋅⟨x−x0, y−y0, z−z0⟩=0{\nabla F(P)\cdot\langle x - x_0,\ y - y_0,\ z - z_0\rangle = 0} the level surface F(x,y,z)=k{F(x,y,z)=k} through P=(x0,y0,z0),{P=(x_0,y_0,z_0)}\mathclose{\text{,}} with F{F} having continuous first partials nearby and ∇F(P)≠0{\nabla F(P)\ne\vb{0}}

Without continuity Clairaut’s theorem can fail: for f(x,y)=xy(x2−y2)x2+y2,f(x, y) = \dfrac{xy(x^2 - y^2)}{x^2 + y^2}\mathclose{\text{,}} with f(0,0)=0,f(0, 0) = 0\mathclose{\text{,}} the mixed partials at the origin are fxy(0,0)=−1f_{xy}(0, 0) = -1 and fyx(0,0)=1.f_{yx}(0, 0) = 1\mathclose{\text{.}}

Optimisation

Module 18 teaches these. A critical point of f(x,y)f(x, y) is a point where ∇f=0\nabla f = \vb{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)(a,b) with both first partials zero and the second partials continuous nearby, let

H=(fxxfxyfyxfyy),D=det⁡H=fxxfyy−fxy2at (a,b).H = \begin{pmatrix} f_{xx} & f_{xy}\\ f_{yx} & f_{yy}\end{pmatrix}, \qquad D = \det H = f_{xx}f_{yy} - f_{xy}^2 \quad\text{at } (a, b).
D{D} fxx(a,b){f_{xx}(a, b)} (a,b){(a, b)} is
D>0{D > 0} fxx>0{f_{xx} > 0} a local minimum
D>0{D > 0} fxx<0{f_{xx} < 0} a local maximum
D<0{D < 0} a saddle point
D=0{D = 0} not decided by the test

Lagrange multipliers. Suppose ff and the constraint functions have continuous first partials near a constrained extremum. At a regular point of g=k,g=k\mathclose{\text{,}} with ∇g≠0,\nabla g\ne\vb{0}\mathclose{\text{,}} it must satisfy ∇f=λ ∇g.\nabla f=\lambda\,\nabla g\mathclose{\text{.}} With two constraints g=kg=k and h=ch=c and linearly independent gradients, it must satisfy ∇f=λ ∇g+μ ∇h.\nabla f=\lambda\,\nabla g+\mu\,\nabla h\mathclose{\text{.}} Check singular points and any boundary restrictions separately.

Multiple integrals

Module 19 teaches these.

Coordinates Change of variables Element of area or volume
Polar x=rcos⁡θ,{x = r\cos\theta,}  y=rsin⁡θ{\ y = r\sin\theta} dA=r dr dθ{dA = r\,dr\,d\theta}
Cylindrical x=rcos⁡θ,{x = r\cos\theta,}  y=rsin⁡θ,{\ y = r\sin\theta,}  z=z{\ z = z} dV=r dz dr dθ{dV = r\,dz\,dr\,d\theta}
Spherical x=ρsin⁡φcos⁡θ,{x = \rho\sin\varphi\cos\theta,}  y=ρsin⁡φsin⁡θ,{\ y = \rho\sin\varphi\sin\theta,}  z=ρcos⁡φ{\ z = \rho\cos\varphi} dV=ρ2sin⁡φ dρ dφ dθ{dV = \rho^2\sin\varphi\,d\rho\,d\varphi\,d\theta}

Here r≥0,r \ge 0\mathclose{\text{,}} ρ≥0,\rho \ge 0\mathclose{\text{,}} and φ\varphi is the angle from the positive zz-axis, 0≤φ≤π0 \le \varphi \le \pi (many physics books swap the names θ\theta and φ).\varphi\mathclose{\text{).}} 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 ff is continuous on the rectangle R=[a,b]×[c,d]R = [a,b]\times[c,d] with a<ba<b and c<d,c<d\mathclose{\text{,}} then
    ∬Rf(x,y) dA=∫ab ⁣ ⁣∫cdf(x,y) dy dx=∫cd ⁣ ⁣∫abf(x,y) dx dy.\iint_R f(x, y)\,dA = \int_a^b\!\!\int_c^d f(x, y)\,dy\,dx = \int_c^d\!\!\int_a^b f(x, y)\,dx\,dy.
  • Change of variables. Let SS and RR be bounded closed regions of type I or II, and ff continuous on R.R\mathclose{\text{.}} The map x=g(u,v),x=g(u,v)\mathclose{\text{,}} y=h(u,v)y=h(u,v) must send SS onto RR and have continuous first partials on a neighbourhood of S.S\mathclose{\text{.}} It must be one-to-one with nonzero Jacobian in the interior of S.S\mathclose{\text{.}} Then
    ∬Rf(x,y) dA=∬Sf(g(u,v),h(u,v)) ∣∂(x,y)∂(u,v)∣ du dv,∂(x,y)∂(u,v)=det⁡(xuxvyuyv).\iint_R f(x, y)\,dA = \iint_S f\big(g(u, v), h(u, v)\big)\,\abs{\frac{\partial(x, y)}{\partial(u, v)}}\,du\,dv, \qquad \frac{\partial(x, y)}{\partial(u, v)} = \det\begin{pmatrix} x_u & x_v\\ y_u & y_v\end{pmatrix}.
  • Mass and centre of mass of a bounded plate DD with continuous density ρ(x,y)≥0\rho(x,y)\ge0 and positive total mass m:m\mathclose{\text{:}}
    m=∬Dρ dA,xˉ=1m∬Dxρ dA,yˉ=1m∬Dyρ dA.m = \iint_D \rho\,dA, \qquad \bar{x} = \frac{1}{m}\iint_D x\rho\,dA, \qquad \bar{y} = \frac{1}{m}\iint_D y\rho\,dA.
  • The Gaussian integral. On a disc of radius R,R\mathclose{\text{,}} the double integral of e−(x2+y2)e^{-(x^2+y^2)} is π(1−e−R2)\pi(1-e^{-R^2}) by polar coordinates. Compare discs and squares as R→∞R\to\infty to obtain ∫−∞∞e−x2 dx=π\int_{-\infty}^{\infty}e^{-x^2}\,dx=\sqrt{\pi} (Module 19).

Vector calculus

Module 20 teaches these. F=⟨P,Q,R⟩\vb{F} = \langle P, Q, R\rangle is a vector field and CC is an oriented smooth path traced by r(t)\vb{r}(t) for a≤t≤b.a\le t\le b\mathclose{\text{.}} For a piecewise smooth path, add the integrals over its pieces.

Idea Formula Holds for
Line integral of a function ∫Cf ds=∫abf(r(t)) ∥r′(t)∥ dt{\displaystyle\int_C f\,ds = \int_a^b f\big(\vb{r}(t)\big)\,\norm{\vb{r}'(t)}\,dt} f{f} continuous on C{C}
Line integral of a field (work) ∫CF⋅dr=∫abF(r(t))⋅r′(t) dt{\displaystyle\int_C \vb{F}\cdot d\vb{r} = \int_a^b \vb{F}\big(\vb{r}(t)\big)\cdot\vb{r}'(t)\,dt} F{\vb{F}} continuous on C.{C}\mathclose{\text{.}} Reversing the path negates the integral
Fundamental theorem for line integrals ∫C∇f⋅dr=f(r(b))−f(r(a)){\displaystyle\int_C \nabla f\cdot d\vb{r} = f\big(\vb{r}(b)\big) - f\big(\vb{r}(a)\big)} f{f} differentiable with continuous gradient on a neighbourhood of C{C}
Conservative fields ⟨P,Q⟩=∇f{\langle P, Q\rangle = \nabla f} for some f{f} exactly when Py=Qx;{P_y = Q_x;} in space, F=∇f{\vb{F} = \nabla f} exactly when curl⁡F=0{\operatorname{curl}\vb{F} = \vb{0}} continuous first partials on an open, simply connected region (connected, with every closed path contractible to a point in the region)
Curl curl⁡F=∇×F=⟨Ry−Qz, Pz−Rx, Qx−Py⟩{\operatorname{curl}\vb{F} = \nabla\times\vb{F} = \langle R_y - Q_z,\ P_z - R_x,\ Q_x - P_y\rangle} subscripts are partial derivatives: Ry=∂R/∂y{R_y = \partial R/\partial y}
Divergence div⁡F=∇⋅F=Px+Qy+Rz{\operatorname{div}\vb{F} = \nabla\cdot\vb{F} = P_x + Q_y + R_z}
Identities curl⁡(∇f)=0,{\operatorname{curl}(\nabla f) = \vb{0},}  div⁡(curl⁡F)=0{\ \operatorname{div}(\operatorname{curl}\vb{F}) = 0} continuous second partials
Surface integral ∬Sf dS=∬Df(r(u,v)) ∥ru×rv∥ du dv{\displaystyle\iint_S f\,dS = \iint_D f\big(\vb{r}(u, v)\big)\,\norm{\vb{r}_u\times\vb{r}_v}\,du\,dv} f{f} continuous on S,{S}\mathclose{\text{,}} with a smooth parametrisation that covers S{S} once, apart from possible boundary repeats
Flux ∬SF⋅dS=∬DF(r(u,v))⋅(ru×rv) du dv{\displaystyle\iint_S \vb{F}\cdot d\vb{S} = \iint_D \vb{F}\big(\vb{r}(u, v)\big)\cdot(\vb{r}_u\times\vb{r}_v)\,du\,dv} the same parametrisation, with F{\vb{F}} continuous and ru×rv{\vb{r}_u\times\vb{r}_v} pointing to the chosen side of S{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=⟨−y,x⟩x2+y2\vb{F} = \dfrac{\langle -y, x\rangle}{x^2 + y^2} has ∂P/∂y=∂Q/∂x\partial P/\partial y = \partial Q/\partial x away from the origin, yet its line integral once anticlockwise round the unit circle is 2π,2\pi\mathclose{\text{,}} so it is not conservative on the punctured plane.

Theorem Formula Holds for
Green’s theorem ∮CP dx+Q dy=∬D(∂Q∂x−∂P∂y) dA{\displaystyle\oint_C P\,dx + Q\,dy = \iint_D \Big(\frac{\partial Q}{\partial x} - \frac{\partial P}{\partial y}\Big)\,dA} C{C} a piecewise smooth simple closed curve traced anticlockwise, bounding D;{D;} P,{P,} Q{Q} with continuous first partials on an open region containing D{D}
Area from Green’s theorem A=12∮Cx dy−y dx{A = \dfrac12\displaystyle\oint_C x\,dy - y\,dx} the same C{C} and D{D}
Stokes’ theorem ∮CF⋅dr=∬Scurl⁡F⋅dS{\displaystyle\oint_C \vb{F}\cdot d\vb{r} = \iint_S \operatorname{curl}\vb{F}\cdot d\vb{S}} S{S} oriented and piecewise smooth, with piecewise smooth simple closed boundary C{C} oriented by S.{S}\mathclose{\text{.}} The field has continuous first partials on a neighbourhood of S{S}
Divergence theorem ∬SF⋅dS=∭Ediv⁡F dV{\displaystyle\iint_S \vb{F}\cdot d\vb{S} = \iiint_E \operatorname{div}\vb{F}\,dV} S{S} is the outward-oriented, piecewise smooth boundary of a bounded solid E.{E}\mathclose{\text{.}} The field has continuous first partials on a neighbourhood of E{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 1, 6
f.subs(x, 2) substitutes 2{2} for x{x} in f 1
sp.expand(f) expands products and powers 1
sp.factor(f) factorises 1
sp.simplify(f) simplifies 1
sp.N(f, 10) a numerical approximation to f at 10 significant digits of precision 1
sp.lambdify(x, f) turns f into a callable for numerical evaluation 1
sp.log(x) ln⁡x,{\ln x,} as is math.log(x); sp.log(x, 10) is log⁡10x{\log_{10} x} 1
sp.limit(f, x, a, '+-') the limit as x→a;{x \to a;} without '+-' SymPy gives the limit from the right ('+', its default); '-' gives the limit from the left 2
sp.oo ∞,{\infty,} as in sp.limit(f, x, sp.oo) 2, 3
sp.diff(f, x) the derivative; sp.diff(f, x, 2) is the second derivative 4
sp.solve(f, x) tries to solve f=0{f=0} for x. It returns a list when it solves a single equation for one symbol 8
sp.summation(a, (n, 1, N)) the sum ∑n=1Na;{\sum_{n=1}^{N} a;} N{N} may be sp.oo 9, 14
sp.integrate(f, x) tries to find an antiderivative, without + C{+\,C} 10
sp.integrate(f, (x, a, b)) tries to evaluate the definite integral ∫abf dx{\int_a^b f\,dx} 10
sp.dsolve(eq, y(x)) tries to solve a differential equation; first y = sp.Function('y') 13
sp.series(f, x, a, n) expands near a{a} to order n,{n}\mathclose{\text{,}} usually with an O((x−a)n){O\big((x-a)^n\big)} remainder. A Taylor expansion is the case with ordinary nonnegative integer powers 15
Compute itEleven commands in one session
Python
import sympy as sp
x, n = sp.symbols('x n')
y = sp.Function('y')
f = x**2 * sp.exp(x)
print("diff:     ", sp.diff(f, x))
print("integrate:", sp.integrate(f, x))
print("definite: ", sp.integrate(f, (x, 0, 1)))
print("limit:    ", sp.limit(sp.sin(x)/x, x, 0, '+-'))
print("series:   ", sp.series(sp.cos(x), x, 0, 6))
print("solve:    ", sp.solve(x**2 - 5*x + 6, x))
print("summation:", sp.summation(1/n**2, (n, 1, sp.oo)))
print("dsolve:   ", sp.dsolve(y(x).diff(x) - 2*y(x), y(x)))
print("N:        ", sp.N(sp.pi, 10))
print("simplify: ", sp.simplify(sp.sin(x)**2 + sp.cos(x)**2))
print("lambdify: ", sp.lambdify(x, f)(1.0))
Output
diff:      x**2*exp(x) + 2*x*exp(x)
integrate: (x**2 - 2*x + 2)*exp(x)
definite:  -2 + E
limit:     1
series:    1 - x**2/2 + x**4/24 + O(x**6)
solve:     [2, 3]
summation: pi**2/6
dsolve:    Eq(y(x), C1*exp(2*x))
N:         3.141592654
simplify:  1
lambdify:  2.718281828459045

SymPy writes E for ee and exp(x) for ex,e^x\mathclose{\text{,}} so the definite integral is e−2.e - 2\mathclose{\text{.}} The antiderivative (x2−2x+2)ex(x^2 - 2x + 2)e^x comes without + C,+\,C\mathclose{\text{,}} while dsolve names its arbitrary constant C1. The series of cos⁡x\cos x stops before x6x^6 and says so with O(x**6). sp.N gives π\pi to 10 significant digits, and the function made by sp.lambdify returns an ordinary floating-point number: e1≈2.718281828459045.e^1 \approx 2.718281828459045\mathclose{\text{.}}