Skip to content

Lesson 1 of 4 · Relations

Count Relations and Functions

Functions and Graphs · for IPMAT Indore, IPMAT Rohtak and JIPMAT

Video lesson: Count Relations and Functions

Sign in to watch · 5 min video

The exam method

  1. Count choices per element. , never list unless the set is tiny.

Worked examples

Example 2EasyIndore 2022

PP(relation A→BA\to B is a function), A={1,2,3}A=\{1,2,3\}, B={a,b}B=\{a,b\}

Example 1Sitter

Functions from {1,2,3}\{1,2,3\} to {x,y}\{x,y\}

Formulas you need

Probability that a relation is a function

P(random relation A→B is a function)=nm2mnP(\text{random relation }A\to B\text{ is a function})=\dfrac{n^{m}}{2^{mn}}

Indore 2022 Q28: A = {1, 2, 3}, B = {a, b} gives 8/64 = 1/8.
Number of relations

#relations A→B=2mn,#relations on A=2m2\#\text{relations }A\to B=2^{mn},\qquad \#\text{relations on }A=2^{m^{2}}

A relation is any subset of A x B; 2^(m^2) = 512 means m = 3.
Number of onto functions

#onto A→B=∑j=0n(−1)j(nj)(n−j)m\#\text{onto }A\to B=\sum_{j=0}^{n}(-1)^{j}\binom{n}{j}(n-j)^{m}

For 2 target elements: n^m - 2 (remove the two constant functions).
Reflexive and symmetric relations

#reflexive=2m2−m,#symmetric=2m(m+1)/2\#\text{reflexive}=2^{m^{2}-m},\qquad \#\text{symmetric}=2^{m(m+1)/2}

Diagonal pairs are compulsory for reflexive; symmetric relations choose diagonal pairs and unordered pairs freely.

How Relations is asked

  • probability random relation A->B is a function
  • n(AxB)
  • is R an equivalence relation
  • A x B with (1, 4) and (4, 1) and 4 elements (Indore 2022 Q36)
  • number of relations on A is 512 -> |A| = 3
  • number of equivalence relations on {1, 2, 3}

Picked from the Relations note for this micro-concept automatically. The whole note: Relations.

Practise this free. Every mistake is saved and comes back until you fix it.

Start free