Formula sheet: Relations and Functions
Relations and Functions16 min readLesson 1 of 5
1.1 Definitions to keep on the tip of your tongue
A relation R from set A to set B is any subset of the Cartesian product A × B. Write it as a set of ordered pairs, as an arrow diagram, or as a rule. The set of first entries is the domain, the set of second entries is the range, and B is the codomain when R is a relation from A to B.
A function f : A → B is a relation in which every element of A has exactly one image in B. Functions are the special relations that pass the vertical line test on their graphs.
1.2 Equivalence relation checklist
A relation R on a set A is an equivalence relation when all three conditions hold together. Check reflexivity first because it is the quickest to test.
1.3 Functions, images and inverses
For f : X → Y, the image of x is f(x). A one-one (injective) function never sends two different inputs to one output. An onto (surjective) function uses every element of Y. A bijection is both, and only a bijection can be reversed.
Composition works right to left. If f : A → B and g : B → C, then gof : A → C and gof(x) = g(f(x)). For an invertible function f, the inverse satisfies f⁻¹(f(x)) = x and f(f⁻¹(y)) = y.
1.4 Counting results worth memorising
From a set with m elements to a set with n elements there are 2 to the power mn relations, and n to the power m of them are functions. A one-one function needs n at least m, and then the count is n(n - 1)(n - 2) ... (n - m + 1). On a set with m elements the total number of relations is 2 to the power m², and the identity relation is the smallest equivalence relation on that set. Remember the range of 2x/(1 + x²) over the reals is [-1, 1]; board questions use it to ask about surjectivity.
Exam
Board papers rarely ask only for a definition. They give a rule and expect three labelled checks, then a conclusion. Write the reflexive check, the symmetric check and the transitive check as separate steps so the examiner can award each mark.
