Skip to content

Mathematics · Ch 1 — Relations and Functions

Summary

Summary

  • A relation from set AA to set BB is a subset of A×BA \times B. The domain is the set of all first coordinates, the range is the set of all second coordinates, and the codomain is BB.
  • A relation is a function f:A→Bf: A \to B if every element of AA has exactly one image in BB. The domain is AA, the codomain is BB, and the range is {f(x):x∈A}\{ f(x) : x \in A \}.
  • A function is one-one (injective) if f(x1)=f(x2)  ⟹  x1=x2f(x_1) = f(x_2) \implies x_1 = x_2; onto (surjective) if its range equals its codomain; and bijective if it is both one-one and onto.
  • The composition of two functions f:A→Bf: A \to B and g:B→Cg: B \to C is (g∘f)(x)=g(f(x))(g \circ f)(x) = g(f(x)), defined only when the range of ff is a subset of the domain of gg.
  • A function f:A→Bf: A \to B is invertible iff it is bijective. Its inverse f−1:B→Af^{-1}: B \to A satisfies f−1(y)=xf^{-1}(y) = x exactly when f(x)=yf(x) = y.
  • The empty relation ∅\emptyset and the universal relation A×BA \times B are special cases. The identity relation on AA is {(a,a):a∈A}\{ (a,a) : a \in A \}.
  • For any function, the image of a subset X⊆AX \subseteq A is f(X)={f(x):x∈X}f(X) = \{ f(x) : x \in X \}, and the preimage of Y⊆BY \subseteq B is f−1(Y)={x∈A:f(x)∈Y}f^{-1}(Y) = \{ x \in A : f(x) \in Y \}.
  • The number of relations from AA to BB is 2∣A∣⋅∣B∣2^{|A| \cdot |B|}; the number of functions from AA to BB is ∣B∣∣A∣|B|^{|A|}. …