Math Lab
Home/Class XI/Ch 2/Relations

Relations

A relation is just a precise way of saying "xx is linked to yy". Once we have the Cartesian product A×BA \times B, every relation is simply a subset , a chosen list of pairs that we call related. This single idea unifies geometry, algebra, and (later) calculus.

Definitions

Let AA and BB be non-empty sets. A relation RR from AA to BB is a subset of A×BA \times B. We write aRbor(a,b)Ra\,R\,b \quad\text{or}\quad (a, b) \in R to mean "aa is related to bb" under RR. A relation from AA to itself is called a relation on AA.

The domain of RR is the set of first coordinates that actually appear: Dom(R)={aA:bB, (a,b)R}.\text{Dom}(R) = \{a \in A : \exists b \in B,\ (a, b) \in R\}.

The range of RR is the set of second coordinates that actually appear: Range(R)={bB:aA, (a,b)R}.\text{Range}(R) = \{b \in B : \exists a \in A,\ (a, b) \in R\}.

The codomain of RR is the entire set BB. Note range \subseteq codomain, but they need not be equal.

Three ways to describe a relation

A relation can be given in three equivalent ways.

1. Roster form. List the pairs. R={(1,2),(1,3),(2,4)}R = \{(1, 2), (1, 3), (2, 4)\}.

2. Set-builder form. Use a rule. R={(x,y)A×B:x+y=5}R = \{(x, y) \in A \times B : x + y = 5\}.

3. Arrow diagram. Draw the sets AA and BB as ovals of dots and connect aba \to b when (a,b)R(a, b) \in R. Helpful for visualising small relations.

Any single relation can be reformulated freely between these three.

Counting relations

How many relations are there from AA to BB when both are finite? A relation is any subset of A×BA \times B, and A×B=AB|A \times B| = |A| \cdot |B|. The number of subsets of a finite set with kk elements is 2k2^k. Hence Number of relations from A to B=2AB.\text{Number of relations from } A \text{ to } B = 2^{|A| \cdot |B|}.

For A=2,B=3|A| = 2, |B| = 3 this is 26=642^6 = 64 , already too many to enumerate by hand for casual problems.

A first taste of "kinds of relations"

You will study these formally in Class XII, but the vocabulary is worth meeting now. A relation RR on AA is called:

  • Reflexive if aRaa\,R\,a for every aAa \in A.
  • Symmetric if aRbbRaa\,R\,b \Rightarrow b\,R\,a.
  • Transitive if aRba\,R\,b and bRcb\,R\,c together imply aRca\,R\,c.

The equality relation == has all three properties; the relation "is a brother of" is not reflexive but (loosely) symmetric, and the relation "is less than or equal to" is reflexive and transitive but not symmetric.

Worked examples

Example 1. Let A={1,2,3,4}A = \{1, 2, 3, 4\}, B={1,4,9,16}B = \{1, 4, 9, 16\}. Define R={(x,y)A×B:y=x2}R = \{(x, y) \in A \times B : y = x^2\}. List the pairs, domain, range, codomain.

For each xAx \in A, check if x2Bx^2 \in B:

  • x=1x = 1: 1B1 \in B, pair (1,1)(1, 1).
  • x=2x = 2: 4B4 \in B, pair (2,4)(2, 4).
  • x=3x = 3: 9B9 \in B, pair (3,9)(3, 9).
  • x=4x = 4: 16B16 \in B, pair (4,16)(4, 16).

R={(1,1),(2,4),(3,9),(4,16)}R = \{(1, 1), (2, 4), (3, 9), (4, 16)\}.

Dom(R)={1,2,3,4}\text{Dom}(R) = \{1, 2, 3, 4\}, Range(R)={1,4,9,16}\text{Range}(R) = \{1, 4, 9, 16\}, Codomain=B={1,4,9,16}\text{Codomain} = B = \{1, 4, 9, 16\}.

Example 2. Let A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\}. Define R={(x,y):y=x+2, x,yA}R = \{(x, y) : y = x + 2,\ x, y \in A\}. List RR and find its domain and range.

For each xAx \in A check if x+2Ax + 2 \in A. x=1:3Ax = 1: 3 \in A. x=2:4Ax = 2: 4 \in A. x=3:5Ax = 3: 5 \in A. x=4:6Ax = 4: 6 \notin A. x=5:7Ax = 5: 7 \notin A. So R={(1,3),(2,4),(3,5)}R = \{(1, 3), (2, 4), (3, 5)\}.

Domain ={1,2,3}= \{1, 2, 3\}, Range ={3,4,5}= \{3, 4, 5\}.

Example 3. How many relations are there from a 33-element set AA to a 22-element set BB?

2AB=26=642^{|A| \cdot |B|} = 2^6 = 64.

Example 4. The relation RR on R\mathbb{R} is defined by xRy    x+y=0x\,R\,y \iff x + y = 0. Describe RR as a set of ordered pairs and as a graph.

R={(x,x):xR}R = \{(x, -x) : x \in \mathbb{R}\}. The graph is the line y=xy = -x in the Cartesian plane.

Example 5 (harder). Let A={1,2,3,4,6}A = \{1, 2, 3, 4, 6\} and define RR on AA by xRy    x divides yx\,R\,y \iff x \text{ divides } y. List RR, find Dom and Range, and decide if RR is reflexive, symmetric, transitive.

For each pair (x,y)(x, y) with xyx | y and both in AA:

  • 11: divides 1,2,3,4,61, 2, 3, 4, 6 , pairs (1,1),(1,2),(1,3),(1,4),(1,6)(1,1), (1,2), (1,3), (1,4), (1,6).
  • 22: divides 2,4,62, 4, 6 , (2,2),(2,4),(2,6)(2,2), (2,4), (2,6).
  • 33: divides 3,63, 6 , (3,3),(3,6)(3,3), (3,6).
  • 44: divides 44 , (4,4)(4,4).
  • 66: divides 66 , (6,6)(6,6).

R={(1,1),(1,2),(1,3),(1,4),(1,6),(2,2),(2,4),(2,6),(3,3),(3,6),(4,4),(6,6)}R = \{(1,1),(1,2),(1,3),(1,4),(1,6),(2,2),(2,4),(2,6),(3,3),(3,6),(4,4),(6,6)\}.

Domain == Range =A= A (since each element divides itself).

Reflexive: yes, (a,a)R(a, a) \in R for all aa. Symmetric: no, e.g. (1,2)R(1, 2) \in R but (2,1)R(2, 1) \notin R. Transitive: yes (aba | b and bcb | c imply aca | c).

Try it yourself

  1. Let A={1,2,3}A = \{1, 2, 3\}, B={4,5,6}B = \{4, 5, 6\}. Write R={(x,y):x+y=7}R = \{(x, y) : x + y = 7\} in roster form. Find Dom, Range, Codomain.
  2. Find the number of relations from a set of 55 elements to itself.
  3. Define RR on Z\mathbb{Z} by xRy    xyx\,R\,y \iff x - y is divisible by 33. Is RR reflexive? Symmetric? Transitive?
  4. Let A={1,2,3,4}A = \{1, 2, 3, 4\}. Write R={(x,y):y=2x}R = \{(x, y) : y = 2x\} in roster form.
  5. Let A={2,1,0,1,2}A = \{-2, -1, 0, 1, 2\}. Write R={(x,y):y=x,yA}R = \{(x, y) : y = |x|, y \in A\} in roster form.
  6. Find Dom and Range of R={(x,x3):x{1,2,3,4}}R = \{(x, x^3) : x \in \{1, 2, 3, 4\}\}.
  7. Draw the arrow diagram of R={(1,a),(2,a),(3,b)}R = \{(1, a), (2, a), (3, b)\} from {1,2,3}\{1, 2, 3\} to {a,b,c}\{a, b, c\}.
  8. Express the relation "x+2y=8x + 2y = 8, x,yNx, y \in \mathbb{N}" in roster form.
  9. Find the relation RR on {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\} given by xRy    y=x+1x\,R\,y \iff y = x + 1.
  10. Decide if "is a friend of" (on people) is reflexive, symmetric, transitive.
  11. If AA has 44 elements, how many relations on AA are reflexive? (Hint: each "diagonal" pair must be in; each off-diagonal pair is free.)
  12. The relation RR on N\mathbb{N} is aRb    aba\,R\,b \iff a \le b. Is it reflexive, symmetric, transitive?

Pitfalls / Tricks

  • Range vs codomain. The codomain is what you declare the output set to be; the range is what actually appears. Always answer the question literally , many MCQs distinguish these.
  • A relation from AA to BB that lists (a,b)(a, b) does not imply bRab\,R\,a. Ordered pairs in a relation are directed.
  • An empty subset of A×BA \times B is a relation too (the empty relation).
  • Insight. Every equation linking two variables , say x2+y2=1x^2 + y^2 = 1 , defines a relation on R\mathbb{R}. The graph of the equation is the relation viewed as a subset of R2\mathbb{R}^2.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Relations
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6