- 1. What is a relation, really?
- 2. Types of relations: empty, universal, reflexive, symmetric, transitive
- 3. When is a relation an equivalence relation?
- 4. Sorting a set into boxes: equivalence classes
- 5. How many relations? Counting with pairs
- 6. Different inputs, different outputs: one-one (injective) functions
- 7. Is every output used? Onto (surjective) functions
- 8. Both at once: bijective functions, and the finite vs infinite surprise
- 9. How many functions? Counting maps between finite sets
- 10. One function after another: composition of functions
- 11. Running a function backwards: invertible functions
- Review
1 of 11·NCERT §1.1·4 min
What is a relation, really?
The big ideaIn mathematics, a relation from a set A to a set B is simply any collection of ordered pairs (a, b) with a from A and b from B: any subset of A × B, whether or not the pairs share an obvious link.
In simple words
Write the names of two groups of people on two lists. Now draw lines joining some people on the first list to some on the second. Any set of lines you choose to draw counts as a way of linking the two lists. It does not matter if the lines follow a sensible rule or are drawn at random. Each choice of lines is one way of linking.
You met relations and functions in Class 11, along with domain (the inputs), co-domain (the set the outputs are allowed to come from) and range (the outputs actually used). This chapter picks up from there and asks: what kinds of relations and functions are there?
From everyday links to sets of pairs
In English, two things are "related" when there is some link between them. Take A = the Class 12 students of a school and B = the Class 11 students. Some natural relations from A to B are:
- {(a, b) : a and b take the same school bus},
- {(a, b) : a is the cousin of b},
- {(a, b) : a scored more runs than b in the inter-house match}.
Mathematics strips away the story and keeps only the pairs. A relation R from A to B is any subset of A × B, the set of all ordered pairs (a, b) with a in A and b in B. If (a, b) is in R, we say a is related to b and write a R b. We do not need a sensible reason for a pair to be in R; being on the list is enough.
When both ends come from the same set, so R ⊆ A × A, we call R a relation in A (many books say "on A"). Almost all of this chapter is about relations in one set.
Two ways to write a relation, from Class 11:
- Roster form: list the pairs, R = {(1, 2), (2, 3), (3, 4)}.
- Set-builder form: give the rule, R = {(a, b) : b = a + 1} in A = {1, 2, 3, 4}. Many authors also say "a R b if and only if b = a + 1".
Functions are special relations
A function f from A to B is a relation in which every element of A appears as a first entry exactly once: every input gets one and only one output. So every function is a relation, but most relations are not functions.
Try it: call each arrow diagram before you see the verdict, then draw your own.
Guess first: how many relations?
Take A = {1, 2, 3}. Guess: how many different relations in A are there? 3? 9? 27? Something bigger?
See what happens
See it for yourself: every relation is one way of setting 9 switches.
Among those 512, two are special at the ends: the one with no pairs at all, and the one with all 9. The next page names them, and then sorts the rest by three simple tests.
Remember
- A relation from A to B is any subset of A × B; a relation in A is any subset of A × A.
- (a, b) ∈ R is written a R b, "a is related to b".
- A function is a relation where each element of the domain has exactly one image.
- An \( n \)-element set has \( 2^{n^2} \) relations in it.
Try it. A = {1, 2}. List A × A, and write the relation R = {(a, b) : a ≤ b} in roster form.
Answer
- Relation from A to B
- Any set of ordered pairs (a, b) with a in A and b in B.
- Relation in A
- A relation whose pairs both come from the same set A.
- a R b
- Short for "(a, b) is in R".
- Domain
- The set the inputs come from.
- Co-domain
- The set the outputs are allowed to come from.
- Range
- The outputs that actually turn up.
Words to know
How many relations are there from A = {1, 2} to B = {x, y, z}?
- 6
- 9
- 64
Which of these relations from {1, 2, 3} to {p, q} is a function?
- {(1, p), (2, q)}
- {(1, p), (1, q), (2, p), (3, q)}
- {(1, p), (2, p), (3, q)}
R is the relation {(a, b) : a − b = 7} in A = {1, 2, 3, 4}. What is R?
- The empty set \( \phi \)
- {(4, 1)}
- All of A × A
Picture and video credits