Section 1 · Revision
Engineering Mathematics formula sheet
Formulas, standard counts and quick rules for logic, discrete maths, linear algebra, calculus and probability, for last-day revision.
Propositional and first order logic
| Law | Form |
|---|---|
| Implication | |
| Exportation | |
| Not associative | |
| Biconditional | |
| De Morgan (quantifiers) | , |
| Distribution | over , over (both directions only) |
| Pull out of antecedent | ; |
- Valid one way only: ; ; .
- "Only are ": . "All are ": . "Some are ": .
- Boolean functions of variables: . Self-dual ones: .
- Functionally complete: , , , , , . Not complete: , (all preserve 1), (affine).
- Inference: modus ponens, modus tollens, hypothetical syllogism, disjunctive syllogism, resolution .
- If you see "how many assignments satisfy", count the complement or split on one variable.
Sets, relations, functions, partial orders and lattices
Counts on an -element set:
| Relations that are | Count |
|---|---|
| Any | |
| Reflexive (or irreflexive) | |
| Symmetric | |
| Reflexive and symmetric | |
| Antisymmetric | |
| Asymmetric | |
| Equivalence | Bell : for |
| Partial orders | for |
| Functions , , | Count | |---|---| | All | | | Injective () | | | Surjective | | | Bijective () | |
- An equivalence relation with class sizes has ordered pairs.
- Transitive closure: in iff a path of length from to . Warshall is .
- injective implies injective; surjective implies surjective.
- Lattice: every pair has a lub (join) and glb (meet). Finite lattice is bounded.
- Distributive iff no sublattice (diamond) or (pentagon). In a distributive lattice complements are unique if they exist.
- Boolean lattice = complemented + distributive, .
- : join lcm, meet gcd. Always distributive. Boolean iff is squarefree. Elements with a complement: , where is the number of distinct primes.
- Partitions of a 3-set under refinement form (not distributive).
- Hasse diagram: drop reflexive and transitive edges, draw smaller below.
Monoids and groups
| Structure | Needs |
|---|---|
| Semigroup | closure, associativity |
| Monoid | + identity |
| Group | + inverses |
| Abelian | + commutativity |
- is not associative. and are monoids, not groups. is a group iff is prime.
- Lagrange: and the order of every element divide . The converse fails (, order 12, has no subgroup of order 6).
- Order of in : . Generators of : . Subgroups of : one per divisor, total. Elements of order : .
- Order of in : . is cyclic iff .
- Prime order implies cyclic implies abelian. Every group of order is abelian; smallest non-abelian is (order 6).
- for all implies abelian. .
- Order of a permutation = lcm of cycle lengths. Number of -cycles in : .
- If you see on : identity 0, inverse .
Graph theory
| Fact | Formula |
|---|---|
| Handshake | ; odd-degree vertices are even in number |
| Tree on vertices | edges; forest with trees: |
| Max edges, vertices, components | |
| Planar, simple, | ; no triangles: |
| Euler formula | ( components; if connected) |
| Spanning trees | : ; : ; : |
| Perfect matchings of | |
| Hamiltonian cycles | : ; : |
Chromatic polynomials: : ; tree on vertices: ; : ; wheel (hub + ): .
- iff bipartite with an edge iff no odd cycle. or 3 (odd). or 4 (odd rim). Petersen: , not Hamiltonian, 3-regular, 15 edges.
- (clique size) and . Brooks: unless complete or odd cycle. Planar: .
- Euler circuit iff connected (ignoring isolated vertices) and all degrees even. Euler trail iff exactly 0 or 2 odd vertices.
- Hamiltonian: Dirac (), Ore ( for non-adjacent ). Bipartite with unequal sides: no Hamiltonian cycle.
- Non-planar: , and anything containing a subdivision of them (Kuratowski).
- König (bipartite): max matching = min vertex cover. Always: (independent set + vertex cover). No isolated vertices: max matching + min edge cover .
- Hall: bipartite has a matching saturating iff for all .
Combinatorics
| Pattern | Count |
|---|---|
| , | |
| Same, | |
| Strictly increasing length- strings from symbols | |
| Non-decreasing | |
| Derangements | : |
| Exactly fixed points | |
| Catalan | : |
| Binary strings, no two adjacent 1s | (length 10: 144) |
- Stirling second kind (set partitions): ; ; . Row : .
- Stirling first kind (permutations with cycles): . Row : .
- Inclusion-exclusion: . Count "none of" as total minus union.
- Pigeonhole: objects in boxes, some box has . To force in one box: objects.
- Recurrences: roots : ; double root : . Fit to , then check .
| Generating function | Coefficient of |
|---|---|
| for | |
Linear algebra
- , , , . Row swap flips sign; adding a multiple of a row changes nothing. Triangular: product of diagonal.
- , with the all-ones matrix.
- Rank-nullity: number of columns. .
| , is , | Result |
|---|---|
| no solution | |
| unique | |
| infinitely many, free variables | |
| , | always a non-zero solution |
- Eigenvalues: , . , , , . and share eigenvalues.
- Triangular: eigenvalues on the diagonal. Real symmetric: real eigenvalues, orthogonal eigenvectors, diagonalisable. Idempotent: . Nilpotent: . Orthogonal: .
- Distinct eigenvalues imply diagonalisable. Independent eigenvectors for : (geometric algebraic multiplicity).
- : ; .
- Cayley-Hamilton: satisfies its characteristic polynomial; use it for and high powers.
- LU (Doolittle, unit lower): , ; then are the elimination multipliers and is the echelon form. . For invertible , LU without row swaps exists iff every leading principal minor is non-zero.
Calculus
| Limit | Value |
|---|---|
| , , , as | 1 |
| as ; | ; |
- L'Hospital for or . Convert , , , with logs.
- Differentiable implies continuous, not conversely ( at 0). , : continuous for , differentiable at 0 for .
- Rolle: continuous on , differentiable on , gives . MVT: . For on , .
- Extrema: , then min, max. On a closed interval also check endpoints. Distance problems: minimise the squared distance.
- , ending in ( even) or 1 ( odd).
- . Odd on : 0. Even: .
- ; by parts .
- -test: converges iff ; converges iff .
- integrals: split at the roots of .
Probability and statistics
| Distribution | or density | Mean | Variance |
|---|---|---|---|
| Binomial | |||
| Geometric (trials to 1st success) | |||
| Poisson | |||
| Uniform | |||
| Exponential | |||
| Normal |
- Exponential: , memoryless, median . Geometric is the discrete memoryless one.
- Normal: (divide by , not ). . , . .
- Poisson approximation: Binomial with large, small: . Sum of independent Poissons is Poisson with .
- ; ; ; .
- Total probability: . Bayes: . Multi-stage: compute each branch's joint probability, then divide one branch by the sum.
- Conditional expectation over a finite equally likely event: average the value over the outcomes in the event. .
- Two uniforms on : probabilities are areas in the unit square; .
- Mean, median, mode: right-skewed usually gives mode median mean. Empirical: mean mode (mean median).