01 / A return to mathematics
Mathematical Foundations
Perhaps you remember the pleasure of a proof clicking into place, or a pattern appearing where you least expected it. Life may have taken you elsewhere. The mathematics is still here.
For the part of you that always wanted to know why.
A selective memory map, from school arithmetic to ideas you meet in graduate study. Identities invite recall; assumptions and examples invite understanding.
No matching reminders.
Arithmetic & number sense
The small facts that make larger ideas feel lighter.
Order of operationsConvention
Grouping first, then powers, then multiplication and division left to right, then addition and subtraction left to right. A fraction bar groups its numerator and denominator. Parentheses are kinder than ambiguous notation.Fractions: add, multiply, divideIdentity
Denominators must be nonzero; division also requires . Use a common denominator for addition. Cancel common factors, not terms: in general.Ratios, percentages, and successive changeRule
A ratio compares quantities in compatible units. A 20% increase multiplies by 1.2; a 20% decrease multiplies by 0.8. Together they multiply by 0.96, not 1. Percentage change is for a positive old value.Factors, gcd, and lcmTheorem
For positive integers. Euclid's algorithm uses until the remainder is zero. For 18 and 24: gcd = 6 and lcm = 72. Every integer greater than 1 has a unique prime factorization, apart from factor order.Divisibility testsRule
By 2: last digit even. By 3 or 9: digit sum divisible by 3 or 9. By 4: last two digits divisible by 4. By 5: last digit 0 or 5. By 6: divisible by both 2 and 3. By 8: last three digits divisible by 8. By 10: last digit 0. By 11: alternating digit sum divisible by 11. These tests are for base-ten integers.Arithmetic and geometric progressionsIdentity
The geometric formula requires ; for the sum is . The infinite sum is only when .Remainders and modular arithmeticDefinition
This means divides , with integer modulus . Addition and multiplication respect congruence. Division requires an inverse: has an inverse modulo exactly when . On a clock, .
Numbers worth knowing
Patterns to recognize, not a test to pass.
Multiplication table: 1 through 20Table
Multiplication table, 1 through 20 times 1 through 10 × 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 3 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 4 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 5 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 6 6 12 18 24 30 36 42 48 54 60 66 72 78 84 90 96 102 108 114 120 7 7 14 21 28 35 42 49 56 63 70 77 84 91 98 105 112 119 126 133 140 8 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 136 144 152 160 9 9 18 27 36 45 54 63 72 81 90 99 108 117 126 135 144 153 162 171 180 10 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 160 170 180 190 200 Squares: 1 through 25Table
Consecutive squares differ by successive odd numbers:Squares up to 25 squared n n squared 1 1 2 4 3 9 4 16 5 25 6 36 7 49 8 64 9 81 10 100 11 121 12 144 13 169 14 196 15 225 16 256 17 289 18 324 19 361 20 400 21 441 22 484 23 529 24 576 25 625 All primes up to 1000Table
A prime is an integer greater than 1 whose only positive divisors are 1 and itself. There are 168 here; 1 is not prime, and 2 is the only even prime.
- 2
- 3
- 5
- 7
- 11
- 13
- 17
- 19
- 23
- 29
- 31
- 37
- 41
- 43
- 47
- 53
- 59
- 61
- 67
- 71
- 73
- 79
- 83
- 89
- 97
- 101
- 103
- 107
- 109
- 113
- 127
- 131
- 137
- 139
- 149
- 151
- 157
- 163
- 167
- 173
- 179
- 181
- 191
- 193
- 197
- 199
- 211
- 223
- 227
- 229
- 233
- 239
- 241
- 251
- 257
- 263
- 269
- 271
- 277
- 281
- 283
- 293
- 307
- 311
- 313
- 317
- 331
- 337
- 347
- 349
- 353
- 359
- 367
- 373
- 379
- 383
- 389
- 397
- 401
- 409
- 419
- 421
- 431
- 433
- 439
- 443
- 449
- 457
- 461
- 463
- 467
- 479
- 487
- 491
- 499
- 503
- 509
- 521
- 523
- 541
- 547
- 557
- 563
- 569
- 571
- 577
- 587
- 593
- 599
- 601
- 607
- 613
- 617
- 619
- 631
- 641
- 643
- 647
- 653
- 659
- 661
- 673
- 677
- 683
- 691
- 701
- 709
- 719
- 727
- 733
- 739
- 743
- 751
- 757
- 761
- 769
- 773
- 787
- 797
- 809
- 811
- 821
- 823
- 827
- 829
- 839
- 853
- 857
- 859
- 863
- 877
- 881
- 883
- 887
- 907
- 911
- 919
- 929
- 937
- 941
- 947
- 953
- 967
- 971
- 977
- 983
- 991
- 997
To test an integer, trial division only needs primes up to its square root. A composite number must have a factor no larger than its square root.
Axioms, logic & proof
What we assume, what we define, and what follows.
Axiom, definition, identity, theoremLanguage
An axiom or postulate is an assumption of a mathematical system. A definition gives a term its meaning. An identity is an equality valid for every allowed value. A theorem is proved from assumptions. The square and cube expansions below are identities, not axioms.Real-number arithmetic: the field lawsAxioms
Addition and multiplication are associative and commutative. There are identities 0 and 1, additive inverses , and multiplicative inverses for . Distributivity connects the two operations. These laws justify the algebraic expansions.Order and completeness of the real lineAxioms
Adding the same number preserves an inequality. Multiplying by a positive number preserves it; multiplying by a negative number reverses it. Completeness: every nonempty set of reals bounded above has a least upper bound. This is the property behind the real line having no rational-style gaps.Euclid's postulatesPostulates
In Euclidean geometry: a straight segment joins any two points; a segment can be extended straight; a circle can be drawn with any center and positive radius; all right angles are equal; and the parallel postulate holds. A familiar equivalent of the last: through a point not on a line, exactly one parallel line passes. Non-Euclidean geometries change that assumption, so triangle angle sums need not be 180 degrees.Mathematical inductionProof method
Prove a base case. Then show that if the claim holds at , it holds at . Together these establish it for every integer from the base onward. Example: adding to gives , proving the sum formula's induction step.Implication, quantifiers, and counterexamplesLogic
An implication equals its contrapositive, not its converse. means "for every"; means "there exists." Negating "every" gives "there exists a counterexample":A thousand confirming examples do not prove a universal claim; one counterexample refutes it.Sets and De Morgan's lawsIdentity
Complements are relative to a specified universe. "Not either" means "neither"; "not both" means "at least one is not." For finite sets, .
Algebra & the binomial theorem
The same structure, written in a more useful way.
Square of a sumIdentity
Expand by distributivity. Two cross terms each contribute . In the area model below, a square of side is divided into four rectangles.Teal: a squared. Gold: the two ab rectangles. Rose: b squared. Square of a differenceIdentity
Replace with in the square-of-a-sum identity. Example: .Difference of squaresIdentity
The cross terms cancel. Example: . Over the reals, does not factor into .Cube of a sumIdentity
Multiply the square expansion by and collect terms. Coefficients 1, 3, 3, 1 count how many ways each product occurs.Cube of a differenceIdentity
The signs alternate because odd powers of the negative term are negative.Sum and difference of cubesIdentity
Multiplying back is a quick way to check the middle sign.Quadratic formula and completing the squareFormula
Requires . The discriminant distinguishes two real roots, one repeated real root, or two nonreal complex roots. Completing the square givesThe roots sum to and multiply to .The binomial theoremTheorem
For nonnegative integer .Choose which of the factors contribute . Pascal's triangle records these coefficients; each interior entry is the sum of the two above it.Pascal's triangle Power n Coefficients 0 1 1 1 1 2 1 2 1 3 1 3 3 1 4 1 4 6 4 1 5 1 5 10 10 5 1 6 1 6 15 20 15 6 1 Absolute value and triangle inequalityInequality
Absolute value is distance from zero. and . For , means .
Powers, roots & logarithms
Multiplication becomes addition. Scale becomes distance.
Multiply and divide powersIdentity
The quotient requires . For arbitrary real exponents use ; integer exponents also allow negative bases wherever defined. .Powers of powers and productsIdentity
For real exponents take positive bases; the quotient needs a nonzero denominator. Integer-exponent laws extend more broadly. These laws do not extend blindly to principal complex powers.Zero, negative, and fractional exponentsIdentity
Here . For , with integer . In real arithmetic , not always . The expression needs a context-specific convention; it is not covered by the nonzero-base rule.A logarithm asks for an exponentDefinition
For real logarithms: , , . uses base . and . The exponential and logarithm are inverse functions.Teal: exp(x). Rose: ln(x). Dashed: y = x. Inverse functions exchange horizontal and vertical coordinates. Products, quotients, and powers inside a logIdentity
Use positive and a valid log base. There is no corresponding rule . A tenfold increase adds 1 to a base-ten logarithm.Change of base and exponential growthIdentity
For . Under , doubling time is for ; half-life is for .Stable log-sum-expNumerical method
Choose for finite real logits. The exponentials are then at most 1, avoiding overflow. Softmax is unchanged by a common shift because the common exponential factor cancels. Compute log-softmax as , rather than taking the log of probabilities that may round to zero.
Geometry & measurement
Lengths, areas, and the shapes behind the symbols.
Angles, polygons, and similarityTheorem
A Euclidean triangle's interior angles sum to ; a simple -gon's sum is . Corresponding angles of similar triangles agree and corresponding side lengths have a common ratio. Scaling lengths by scales areas by and volumes by .Pythagoras and the distance formulaTheorem
In a right triangle, is the hypotenuse. The converse holds for positive side lengths forming a triangle.The midpoint is .Areas of familiar shapesFormulas
Heights are perpendicular to the base. For a trapezoid, a and b are the parallel side lengths. For an ellipse, a and b are semiaxes.Plane areas Shape Area Rectangle Parallelogram Triangle Trapezoid Circle Ellipse Circles: circumference, arcs, sectorsFormulas
The angle is in radians. A tangent is perpendicular to the radius at the point of contact. An inscribed angle subtending a fixed arc is half the corresponding central angle.Volumes and surface areasFormulas
For the cone, slant height . A prism has volume base area times perpendicular height; a pyramid has one third of that. Units matter: area is square units, volume is cubic units.Solids Solid Volume Total surface area Box Sphere Right cylinder Right circular cone Lines and slopesFormulas
For a nonvertical line, . Parallel nonvertical lines have equal slopes; perpendicular lines with finite nonzero slopes satisfy . A vertical line is . The general form includes both vertical and horizontal lines.
Trigonometry
A circle quietly contains a world of waves.
The unit circle and right-triangle ratiosDefinition
The triangle ratios apply to acute angles; the unit circle extends them to all real angles. Tangent requires .Special angles worth rememberingTable
Sine is positive above the horizontal axis; cosine to the right of the vertical axis. These signs extend the table to other quadrants.Exact trigonometric values Degrees Radians sin cos tan 0 0 0 1 0 30 45 1 60 90 1 0 Undefined Pythagorean identities, symmetry, periodicityIdentity
The second identity needs . Sine is odd; cosine is even. Sine and cosine have period ; tangent has period .Angle addition and double anglesIdentity
Also . These turn angle combinations into algebra.Sine rule, cosine rule, and triangle areaTheorem
Sides face angles . These hold for nondegenerate Euclidean triangles; the cosine rule becomes Pythagoras when .Euler's formulaIdentity
Here . Multiplication of unit complex numbers adds angles, explaining the angle-addition identities. At , . A complex number has magnitude and argument modulo .
Calculus: change & accumulation
Two questions: how fast, and how much?
Limits and continuityDefinition
A derivative is the limiting slope, when the limit exists. Continuity at means . Differentiability implies continuity, not conversely: is continuous but not differentiable at 0.Linearity, product, quotient, chainRules
Functions must be differentiable where used, and the quotient requires . Composition multiplies local rates of change.Known derivativesTable
Derivative reference (angles in radians) Function Derivative Real domain note 0 Constant x > 0 for general real r All real x a > 0 x nonzero x > 0; a > 0, a not 1 All real x All real x cos x nonzero |x| < 1 All real x Known antiderivativesTable
The power rule needs , with for arbitrary real powers. For , require . Work on intervals where the integrand is defined; for the final row . Constants can differ on disconnected intervals.Every row includes an arbitrary constant C Integrand Antiderivative The fundamental theorem of calculusTheorem
For continuous and an antiderivative on the interval. AlsoDifferentiation and integration undo one another under these conditions. Definite integration records signed accumulation, not automatically geometric area.Substitution and integration by partsRules
Here . Substitution reverses the chain rule; integration by parts reverses the product rule. For a definite integral, transform bounds under substitution and include the boundary term in integration by parts.Taylor expansions and local approximationsTheorem
The first two series converge for all real ; the log series converges for . A finite Taylor polynomial approximates locally with a remainder; infinitely differentiable does not guarantee equality to the Taylor series.Gradient, Jacobian, HessianDefinitions
For scalar , the gradient is the vector of first partial derivatives and the Hessian is the matrix of second partials. For , the Jacobian has shape .The second-order expansion requires suitable twice differentiability; with continuous second partials the Hessian is symmetric.Divergence, curl, and boundary theoremsTheorems
Divergence measures local outward flux; curl measures local circulation. The divergence theorem equates total divergence to outward boundary flux. Stokes' theorem equates flux of curl to boundary circulation:Use sufficiently smooth fields and piecewise smooth regions or oriented surfaces with compatible boundary orientation.
Linear algebra & optimization
Many numbers at once, with structure.
Dot products, norms, and projectionTheorem
For real Euclidean vectors; projection needs . Orthogonal vectors have zero dot product. Cauchy-Schwarz says ; it controls how large a correlation can be.Matrix products, rank, and inversesRules
produces an matrix. Generally . Rank is the dimension of the column space. A square matrix is invertible exactly when it has full rank, equivalently nonzero determinant. If both are invertible, . In computation, solve rather than explicitly forming an inverse.Eigenvectors and the spectral theoremTheorem
An eigenvector keeps its direction under the map, up to scaling. A real symmetric matrix has an orthonormal eigenbasis:It is positive definite exactly when all eigenvalues are positive. Not every nonsymmetric matrix is diagonalizable.Singular value decompositionTheorem
Every real matrix has an SVD, with orthogonal and rectangular diagonal containing nonnegative singular values. Keeping the largest gives a best rank-at-most- approximation in Frobenius and spectral norms. This connects least squares, compression, and principal components.Least squares and orthogonalityMethod
The residual is orthogonal to the columns of . Full column rank gives a unique solution. QR or SVD is usually numerically preferable to forming , which squares the 2-norm condition number when full rank.Convexity and stationary pointsDefinition
For on a convex domain. For a differentiable convex function, any point with zero gradient is a global minimum. Strict convexity makes a minimizer unique if it exists. For twice continuously differentiable functions on an open convex domain, a positive semidefinite Hessian everywhere characterizes convexity. A zero gradient alone does not imply a minimum for a nonconvex function.Equality constraints and Lagrange multipliersMethod
At a constrained local extremum of differentiable subject to , this necessary condition holds when . It produces candidates, not a guarantee of a minimum. Inequality constraints lead to KKT conditions with additional sign and complementary-slackness requirements.
Probability, statistics & beyond
Reasoning when certainty is not available.
The probability axiomsAxioms
The final rule is countable additivity for pairwise disjoint events. It implies and . Mutually exclusive is not the same as independent.Conditional probability and BayesTheorem
Require ; the displayed conditional on also needs . More generally . Independent events satisfy . Update prior odds with evidence, but keep base rates in the calculation.Permutations, combinations, and factorialsFormulas
For integers , with . Permutations count ordered choices without replacement; combinations ignore order. With replacement and order, draws from choices give sequences.Expectation, variance, and covarianceIdentity
Linearity of expectation needs no independence, assuming the expectations exist.These variance formulas require finite second moments. Independence implies zero covariance, but the converse generally fails.Three distributions to recognizeTable
Bernoulli models one yes/no outcome; binomial counts successes in n independent trials with common probability p. A normal distribution describes a symmetric continuous bell curve, not every real dataset.Common distributions Distribution Mean Variance Bernoulli(p) Binomial(n,p) Normal(mu, sigma squared) Law of large numbers and central limit theoremTheorems
For independent identically distributed variables with finite mean and finite positive variance, the classical CLT gives this convergence in distribution. The law of large numbers says the sample mean approaches the population mean; it is a different claim. Neither removes bias from a badly sampled dataset.Standard error, intervals, and p-valuesInterpretation
For independent observations with common variance. Estimate with when appropriate. A 95% confidence procedure covers the fixed true parameter in 95% of repeated samples under its assumptions; it is not a 95% posterior probability. A p-value is the null-model probability of a statistic at least as extreme as observed, not the probability that the null is true.Entropy and cross entropyDefinition
For discrete distributions. Use by continuity. If but , cross entropy and KL divergence are infinite. Natural logs give nats; base-two logs give bits.Fourier: decomposing a signal into frequenciesConnection
One common convention; other normalizations exist. For absolutely integrable this transform is defined; inversion needs additional conditions. Linearity and the convolution theorem turn combinations of signals into algebra. Trigonometry, complex numbers, and linear algebra meet here.Compactness and existence of extremaTheorem
In finite-dimensional Euclidean space, a set is compact exactly when it is closed and bounded. A continuous real-valued function on a nonempty compact set attains a maximum and a minimum. Closed and bounded is not enough for compactness in general infinite-dimensional normed spaces. Conditions are part of the theorem, not fine print.