Cartesian Product and Relations
- A × B is the set of all ordered pairs (a, b) with a in A and b in B. n(A × B) = n(A) × n(B).
- A relation from A to B is any subset of A × B. If n(A) = m and n(B) = n, the number of relations is 2mn.
- The number of relations on a set with n elements is 2n².
Types of Relations (on a set A)
| Type | Condition |
|---|---|
| Reflexive | (a, a) ∈ R for every a in A |
| Symmetric | (a, b) ∈ R ⇒ (b, a) ∈ R |
| Transitive | (a, b) and (b, c) ∈ R ⇒ (a, c) ∈ R |
| Equivalence | reflexive, symmetric and transitive |
The empty relation has no pairs, the universal relation is A × A, and the identity relation is {(a, a) : a ∈ A}.
Functions
- A function f : A → B gives exactly one image in B to every element of A. A is the domain, B the codomain; the set of images is the range (range ⊆ codomain).
- The number of functions from A (m elements) to B (n elements) is nm.
- One-one (injective): different inputs give different outputs. Onto (surjective): range = codomain. Bijective: both.
- The number of one-one functions from A (m) to B (n), with m ≤ n, is nPm. The number of bijections between two sets of n elements is n!.
- Composition: (g∘f)(x) = g(f(x)). A function has an inverse only if it is bijective.
Example: f(x) = 2x + 3 on real numbers is bijective. Its inverse: y = 2x + 3 gives x = (y − 3)/2, so f−1(x) = (x − 3)/2. But f(x) = x² on real numbers is not one-one, since f(2) = f(−2).
Quick Revision
- n(A × B) = mn; relations from A to B = 2mn; functions from A to B = nm.
- Equivalence = reflexive + symmetric + transitive.
- An inverse exists only for a bijection; the number of bijections on n elements is n!.