Skip to content
← Explore another subjectCBSE · 041

Relations and functions: what you bring from Class XI, and three new facts

Mathematics (041) · Relations and Functions

ONE COMPLETE FREE SECTION

Your course level

Everyone in this class reads the same notes.

The sample stays complete. Sign up when you’re ready to continue the unit.

0 highlighted

Relations and functions: what you bring from Class XI, and three new facts

A school in Pune runs three clubs, and every student may join as many clubs as they like, or none.

Write down every pair (student, club) for which the student belongs to the club, and you have a relation.

Some students appear in several pairs, some in none.

A function is the special, tidy case in which every student appears in exactly one pair.

This chapter studies relations and functions more closely: which relations behave like "equality", and which functions match the elements of two sets perfectly.

This section recalls what you met in Class XI, then adds three facts that recent board papers have asked about directly: how many relations there are between two finite sets, when a relation fails to be a function, and the domain of a sum of two functions.

In this unit you need to know:

  • relations from a set AA to a set BB and relations in a set AA, and how to count them;
  • the types of relations: reflexive, symmetric, transitive and equivalence relations, together with the empty and universal relations;
  • how to test a relation for each property, with a proof for general elements when it holds and one numerical counterexample when it fails;
  • equivalence classes, and the smallest equivalence relation that contains a given relation;
  • one-one (injective), onto (surjective) and bijective functions, and how to prove or disprove each for rules on N\mathbf{N}, Z\mathbf{Z} and R\mathbf{R};
  • why, on a finite set, a function from the set to itself is one-one exactly when it is onto.

How this unit is examined

Relations and Functions shares the 8 marks of Unit I with Inverse Trigonometric Functions.

Recent board papers have given this chapter about 4 to 6 marks, and the 2026-27 sample paper gives it 5.

Item

What it usually asks

MCQ (1 mark)

the type of a relation on a small set; whether a rule on N\mathbf{N}, Z\mathbf{Z} or R\mathbf{R} is one-one, onto, both or neither; the number of relations or equivalence classes

Assertion-Reason (1 mark)

a claim about one-one or onto functions, the type of a relation, or the domain of a sum of functions

VSA (2 marks)

an onto check, or an injectivity check, often as an OR pair

SA (3 marks)

one-one and onto for a rational function, OR an equivalence relation by divisibility

LA (5 marks)

an equivalence relation proof with an equivalence class, OR a one-one and onto proof with a rider such as "find the set" or "find pp"

Case study (4 marks)

relations and functions between small sets in a school, a competition or a game, as 1 + 1 + 2

How the marks work
  • Answers in Sections B to E are marked in ½-mark and 1-mark steps that add up to the question's marks. Working earns marks; a bare answer in Sections B to D earns very little.
  • An error is penalised once. If you carry a wrong value forward correctly, the later steps still score.
  • Any correct method earns the marks, but a method named in the question must be used.
  • MCQs and Assertion-Reason items carry 1 mark each, with no part marks. If you answer both alternatives of an OR question, only the better one counts.
  • The fixed prices in this unit: in a 5-mark equivalence proof, reflexive 1½, symmetric 1½, transitive 1½ and the conclusion line "Hence R is an equivalence relation" ½; in a 5-mark one-one and onto proof, 2½ for each half, with the domain check inside the onto half.
  • When a property fails, one counterexample with actual numbers earns the mark. A general sentence such as "it is not true for all values" earns nothing.

Ordered pairs and the Cartesian product

An ordered pair (a,b)(a, b) has a first entry and a second entry, and order matters: (2,5)≠(5,2)(2, 5) \neq (5, 2).

The Cartesian product of sets AA and BB is

A×B={(a,b):a∈A, b∈B},A \times B = \{(a, b) : a \in A, \ b \in B\},

the set of all ordered pairs whose first entry comes from AA and second entry from BB.

If AA has mm elements and BB has nn elements, then A×BA \times B has mnmn elements, because each of the mm first entries can be paired with each of the nn second entries.

For example, if A={1,2}A = \{1, 2\} and B={x,y,z}B = \{x, y, z\}, then A×B={(1,x),(1,y),(1,z),(2,x),(2,y),(2,z)}A \times B = \{(1, x), (1, y), (1, z), (2, x), (2, y), (2, z)\}, which has 2×3=62 \times 3 = 6 elements.

Notice that B×AB \times A is a different set: its pairs start with a letter.

A relation is a set of ordered pairs

Mathematics strips the idea of "being connected" down to its bare bones.

A relation from AA to BB is simply a collection of ordered pairs from A×BA \times B: any subset at all.

You do not need a sensible rule.

The pairs are the relation.

The figure below shows a relation RR from a set AA of four students to a set BB of three clubs, "student aa is a member of club bb".

Each arrow is one ordered pair.

An arrow diagram of a relation from the set A of four students, Asha, Bilal, Chitra and Dev, to the set B of three clubs, Chess, Dance and Music. Asha has arrows to Chess and to Music, Bilal to Dance, Chitra to Chess, and Dev has no arrow.
An arrow diagram of a relation from the set A of four students, Asha, Bilal, Chitra and Dev, to the set B of three clubs, Chess, Dance and Music. Asha has arrows to Chess and to Music, Bilal to Dance, Chitra to Chess, and Dev has no arrow.

In roster form, R={(Asha,Chess),(Asha,Music),(Bilal,Dance),(Chitra,Chess)}R = \{(\text{Asha}, \text{Chess}), (\text{Asha}, \text{Music}), (\text{Bilal}, \text{Dance}), (\text{Chitra}, \text{Chess})\}.

Three features of this picture matter for everything that follows:

  • Asha has two arrows. A relation allows that.
  • Dev has no arrow. A relation allows that too.
  • Two students point to Chess. Again, no problem for a relation.

The domain of a relation is the set of first entries that actually occur, here {Asha,Bilal,Chitra}\{\text{Asha}, \text{Bilal}, \text{Chitra}\}.

The range is the set of second entries that occur, here {Chess,Dance,Music}\{\text{Chess}, \text{Dance}, \text{Music}\}.

The whole of BB is the codomain.

When A=BA = B, a relation from AA to AA is called a relation in AA (or on AA).

It is a subset of A×AA \times A.

Almost every relation in the next three sections is of this kind: "is a sibling of" on the students of a class, "divides" on a set of numbers, "is parallel to" on a set of lines.

Counting relations

Recent board papers have asked how many relations there are from one finite set to another.

The argument is short and worth understanding.

Suppose AA has mm elements and BB has nn elements.

Then A×BA \times B has mnmn ordered pairs.

To build a relation, you go through these pairs one by one and make a yes-or-no decision for each: put it in, or leave it out.

Two choices for each of mnmn pairs gives

number of relations from A to B=2mn.\text{number of relations from } A \text{ to } B = 2^{mn}.

This count includes the empty relation (every answer "no") and the whole of A×BA \times B (every answer "yes").

A relation in a set with nn elements is a subset of a set with n2n^2 pairs, so there are 2n22^{n^2} of them.

The same yes-or-no idea answers variations.

If a particular pair must be included, its decision is already made, and the other mn−1mn - 1 pairs give 2mn−12^{mn - 1} relations.

If you want non-empty relations, subtract the one empty relation: 2mn−12^{mn} - 1.

Functions: the special relations

A function ff from AA to BB, written f:A→Bf : A \to B, is a relation from AA to BB in which every element of AA has exactly one image in BB.

In arrow diagrams, every element of AA sends out exactly one arrow.

Elements of BB may receive many arrows, one, or none.

So a relation fails to be a function in exactly two ways:

1. some element of AA has no image (no arrow leaves it); or

2. some element of AA has two or more images (two arrows leave it).

The club relation above fails on both counts: Dev has no image and Asha has two.

The figure below shows the difference on two small sets.

Two arrow diagrams from P = {1, 2, 3} to Q = {u, v, w}. In the left diagram every element of P has exactly one arrow: 1 to u, 2 to u and 3 to w, so it is a function. In the right diagram 1 has two arrows, to u and to v, 2 has an arrow to w and 3 has none, so it is not a function.
Two arrow diagrams from P = {1, 2, 3} to Q = {u, v, w}. In the left diagram every element of P has exactly one arrow: 1 to u, 2 to u and 3 to w, so it is a function. In the right diagram 1 has two arrows, to u and to v, 2 has an arrow to w and 3 has none, so it is not a function.

In the left diagram, 1 and 2 both go to uu.

That is allowed: a function may send two inputs to the same output.

Nothing goes to vv, which is also allowed.

Each element of PP has one arrow, so this is a function.

In the right diagram, 1 has two images and 3 has none, so it is not a function.

Recent board papers have used exactly this test inside case studies: if one element has two images, the relation is not a function, so the question "is it one-one?"

does not even arise.

For a function you keep the same words with sharper meanings.

The domain is all of AA (every element has an image).

The codomain is BB, the set you declared the outputs live in.

The range is the set of images actually used, f(A)={f(x):x∈A}f(A) = \{f(x) : x \in A\}, which is a subset of the codomain.

Whether the range fills the codomain is the whole question of "onto" later in this chapter.

Counting functions uses the same choice-by-choice idea.

Each of the mm elements of AA must choose exactly one of the nn elements of BB, so there are n×n×⋯×n=nmn \times n \times \cdots \times n = n^m functions from AA to BB.

Compare this with 2mn2^{mn} relations: functions are a small part of all relations.

Graphs of real functions

For a real function (domain and codomain subsets of R\mathbf{R}), the graph is the set of points (x,f(x))(x, f(x)).

A curve in the xyxy-coordinate system is the graph of a function of xx exactly when every vertical line meets it at most once; a vertical line meeting it twice means one xx with two yy values.

The circle x2+y2=9x^2 + y^2 = 9 fails this test, so it is a relation in R\mathbf{R} but not a function.

When a real function is given only by a formula, its domain is taken to be every real xx for which the formula gives a real number.

Two Class XI rules decide most cases:

  • a square root g(x)\sqrt{g(x)} needs g(x)≥0g(x) \geq 0;
  • a fraction p(x)q(x)\dfrac{p(x)}{q(x)} needs q(x)≠0q(x) \neq 0.

Sums and products of functions, and their domains

For real functions ff and gg, Class XI defined

(f+g)(x)=f(x)+g(x),(f−g)(x)=f(x)−g(x),(fg)(x)=f(x) g(x),(fg)(x)=f(x)g(x).(f + g)(x) = f(x) + g(x), \quad (f - g)(x) = f(x) - g(x), \quad (fg)(x) = f(x)\,g(x), \quad \left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}.

To compute f(x)+g(x)f(x) + g(x) you need both f(x)f(x) and g(x)g(x) to exist.

So

domain of (f+g)=Df∩Dg,\text{domain of } (f + g) = D_f \cap D_g,

and the same holds for f−gf - g and fgfg.

For fg\dfrac{f}{g} you must also throw out the points where g(x)=0g(x) = 0.

Recent board papers have set Assertion-Reason items on exactly this point, with a wrong domain (the union, or one function's domain) offered as the assertion.

Key terms
  • How to read these boxes: where a Key term gives a sentence in italics, that italic sentence is the exact wording to learn.
  • Relation from A to B: the wording to learn is we define mathematically a relation R from A to B as an arbitrary subset of A × B. If (a, b) ∈ R, we say that a is related to b under the relation R and we write as a R b.
  • Functions and relations: functions are special kind of relations.
  • Function: a relation ff from a set AA to a set BB is a function if every element of AA has one and only one image in BB; we write f:A→Bf : A \to B.
  • Domain, codomain and range of f:A→Bf : A \to B: the domain is AA, the codomain is BB, and the range is the set of images {f(x):x∈A}\{f(x) : x \in A\}, a subset of BB.
  • Number of relations: if n(A)=mn(A) = m and n(B)=nn(B) = n, then n(A×B)=mnn(A \times B) = mn and the number of relations from AA to BB is 2mn2^{mn}.
  • Domain of a sum: the domain of f+gf + g (and of f−gf - g and fgfg) is Df∩DgD_f \cap D_g; the domain of fg\dfrac{f}{g} is Df∩DgD_f \cap D_g with the zeros of gg removed.
Worked example 1: counting relations and functions

Let A={2,4,6}A = \{2, 4, 6\} and B={1,3,5,7}B = \{1, 3, 5, 7\}.

Find (i) the number of relations from AA to BB, (ii) the number of relations from AA to BB that contain the pair (4,5)(4, 5), (iii) the number of functions from AA to BB.

n(A×B)=3×4=12n(A \times B) = 3 \times 4 = 12 ........

½

(i) Each of the 12 pairs is either in the relation or not, so there are 212=40962^{12} = 4096 relations ........ ½

(ii) The pair (4,5)(4, 5) must be in; the other 11 pairs are free: 211=20482^{11} = 2048 relations ........ ½

(iii) Each of the 3 elements of AA chooses one of the 4 elements of BB: 43=644^3 = 64 functions ........ ½

Answer: 4096; 2048; 64.

Exactly half the relations contain any one given pair, which is why (ii) is half of (i).

Worked example 2: is the relation a function?

Let A={Ravi,Meena,Arjun,Sana}A = \{\text{Ravi}, \text{Meena}, \text{Arjun}, \text{Sana}\} be four students of a school in Kochi and B={Red,Blue,Green,Yellow}B = \{\text{Red}, \text{Blue}, \text{Green}, \text{Yellow}\} the four school houses.

Three relations from AA to BB are

R1={(Ravi,Red),(Meena,Blue),(Arjun,Red),(Sana,Green)}R_1 = \{(\text{Ravi}, \text{Red}), (\text{Meena}, \text{Blue}), (\text{Arjun}, \text{Red}), (\text{Sana}, \text{Green})\},

R2={(Ravi,Red),(Meena,Blue),(Meena,Yellow),(Arjun,Green),(Sana,Red)}R_2 = \{(\text{Ravi}, \text{Red}), (\text{Meena}, \text{Blue}), (\text{Meena}, \text{Yellow}), (\text{Arjun}, \text{Green}), (\text{Sana}, \text{Red})\},

R3={(Ravi,Yellow),(Arjun,Blue),(Sana,Green)}R_3 = \{(\text{Ravi}, \text{Yellow}), (\text{Arjun}, \text{Blue}), (\text{Sana}, \text{Green})\}.

Find which of them are functions from AA to BB, and write the range of each function.

R1R_1: each of the four students appears exactly once as a first entry, so R1R_1 is a function.

Its range is {Red,Blue,Green}\{\text{Red}, \text{Blue}, \text{Green}\} ........

1

R2R_2: Meena has two images, Blue and Yellow, so R2R_2 is not a function ........

½

R3R_3: Meena has no image, so R3R_3 is not a function from AA to BB ........

½

Answer: only R1R_1 is a function.

Its range, {Red,Blue,Green}\{\text{Red}, \text{Blue}, \text{Green}\}, is smaller than the codomain BB, because nobody is in Yellow house and two students share Red.

You will meet both of these features again under "onto" and "one-one".

Worked example 3: the domain of a sum and of a quotient

Let f(x)=x+1f(x) = \sqrt{x + 1} and g(x)=5−xg(x) = \sqrt{5 - x}.

Find the domains of f+gf + g and of fg\dfrac{f}{g}.

DfD_f: x+1≥0x + 1 \geq 0, so Df=[−1,∞)D_f = [-1, \infty).

DgD_g: 5−x≥05 - x \geq 0, so Dg=(−∞,5]D_g = (-\infty, 5] ........

½ + ½

Domain of f+gf + g =Df∩Dg=[−1,5]= D_f \cap D_g = [-1, 5] ........

½

For fg\dfrac{f}{g} also need g(x)≠0g(x) \neq 0: 5−x=0\sqrt{5 - x} = 0 only at x=5x = 5, so the domain is [−1,5)[-1, 5) ........

½

Answer: [−1,5][-1, 5] and [−1,5)[-1, 5).

Check one point outside: at x=6x = 6, g(6)=−1g(6) = \sqrt{-1} is not real, so (f+g)(6)(f + g)(6) cannot be found.

Worked example 4: a relation from a rule, with domain and range

Let A={1,2,3,…,9}A = \{1, 2, 3, \ldots, 9\} and let RR be the relation in AA given by R={(x,y):y=2x+1}R = \{(x, y) : y = 2x + 1\}.

Write RR in roster form, find its domain and range, and find whether RR is a function from AA to AA.

x=1,2,3,4x = 1, 2, 3, 4 give y=3,5,7,9y = 3, 5, 7, 9, all in AA; x=5x = 5 gives y=11∉Ay = 11 \notin A ........

½

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

½

Domain ={1,2,3,4}= \{1, 2, 3, 4\}, range ={3,5,7,9}= \{3, 5, 7, 9\} ........

½

5,6,7,8,9∈A5, 6, 7, 8, 9 \in A have no image, so RR is not a function from AA to AA ........

½

Answer: as above; RR is not a function from AA to AA.

It is a function from its domain {1,2,3,4}\{1, 2, 3, 4\} to AA, which shows how much the declared sets matter.

Exam tip

When a question says "relation from AA to BB", count with n(A)×n(B)n(A) \times n(B) pairs; when it says "relation in AA" (or "on AA"), the pairs come from A×AA \times A, so use n(A)2n(A)^2.

Many wrong MCQ answers come from using m+nm + n or mnmn in place of 2mn2^{mn}, and the options are built to catch both slips.

Common mistakes
  • Writing mnmn or 2m+n2^{m+n} for the number of relations. mnmn is the number of ordered pairs; each pair is then in or out, so the count is 2mn2^{mn}. It is tempting because both numbers appear in the working.
  • Thinking an element of BB with no arrow stops ff being a function. Only elements of the domain must have exactly one image. Unused elements of the codomain affect "onto", not "function".
  • Taking the union of domains for f+gf + g. You need both f(x)f(x) and g(x)g(x), so you need the intersection. For fg\dfrac{f}{g}, also remove the zeros of gg.
  • Treating (a,b)(a, b) and (b,a)(b, a) as the same pair. In A×BA \times B order matters, and when A≠BA \neq B the pair (b,a)(b, a) may not even be in A×BA \times B.

Check your understanding

1. Let A={a,b}A = \{a, b\} and B={1,2,3,4,5}B = \{1, 2, 3, 4, 5\}. The number of relations from AA to BB is

(A) 1010

(B) 3232

(C) 128128

(D) 10241024

[1]

2. Which of the following relations from P={1,2,3}P = \{1, 2, 3\} to Q={4,5}Q = \{4, 5\} is a function from PP to QQ?

(A) {(1,4),(2,5)}\{(1, 4), (2, 5)\}

(B) {(1,4),(1,5),(2,4),(3,5)}\{(1, 4), (1, 5), (2, 4), (3, 5)\}

(C) {(1,5),(2,5),(3,5)}\{(1, 5), (2, 5), (3, 5)\}

(D) {(4,1),(5,2),(5,3)}\{(4, 1), (5, 2), (5, 3)\}

[1]

3. Assertion (A): For f(x)=x+2f(x) = \sqrt{x + 2} and g(x)=1x−1g(x) = \dfrac{1}{x - 1}, the domain of f+gf + g is [−2,1)∪(1,∞)[-2, 1) \cup (1, \infty).

Reason (R): The domain of f+gf + g is Df∩DgD_f \cap D_g, the set of points where both ff and gg are defined.

(A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).

(B) Both Assertion (A) and Reason (R) are true but Reason (R) is not the correct explanation of Assertion (A).

(C) Assertion (A) is true but Reason (R) is false.

(D) Assertion (A) is false but Reason (R) is true.

[1]

4. Let A={1,2}A = \{1, 2\} and B={3,4,5}B = \{3, 4, 5\}. Find the number of relations from AA to BB, and the number of these relations that are functions from AA to BB.

[2]

5. (a) Let A={2,3,4,5}A = \{2, 3, 4, 5\}, B={3,6,7,10,15}B = \{3, 6, 7, 10, 15\} and R={(a,b):a∈A, b∈B, a divides b}R = \{(a, b) : a \in A, \ b \in B, \ a \text{ divides } b\}. Write RR in roster form. Find its domain and range, and check whether RR is a function from AA to BB.

OR

(b) Let f(x)=x−2f(x) = \sqrt{x - 2} and g(x)=8−xg(x) = \sqrt{8 - x}. Find the domains of f+gf + g, fgfg and fg\dfrac{f}{g}, and find (f+g)(6)(f + g)(6).

[3]

6. Find the number of non-empty relations in the set A={p,q,r}A = \{p, q, r\}, and the number of relations in AA that contain both (p,q)(p, q) and (q,p)(q, p).

[2]

Answers

1. (D) 10241024. n(A×B)=10n(A \times B) = 10, so there are 210=10242^{10} = 1024 relations. [1]

2. (C) {(1,5),(2,5),(3,5)}\{(1, 5), (2, 5), (3, 5)\}. Each of 1, 2, 3 has exactly one image. (A) gives 3 no image, (B) gives 1 two images, and (D) is a set of pairs from Q×PQ \times P. [1]

3. (A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). Df=[−2,∞)D_f = [-2, \infty) and Dg=R−{1}D_g = \mathbf{R} - \{1\}, so the intersection is [−2,1)∪(1,∞)[-2, 1) \cup (1, \infty); R is the reason. [1]

4. n(A×B)=6n(A \times B) = 6, so the number of relations is 26=642^6 = 64 ........ 1

Each of 1 and 2 chooses one of 3 images: 32=93^2 = 9 functions ........

1 [2]

5. (a) R={(2,6),(2,10),(3,3),(3,6),(3,15),(5,10),(5,15)}R = \{(2, 6), (2, 10), (3, 3), (3, 6), (3, 15), (5, 10), (5, 15)\} ........ 1

Domain ={2,3,5}= \{2, 3, 5\}, range ={3,6,10,15}= \{3, 6, 10, 15\} ........

½ + ½

Not a function: 22 has two images (6 and 10), and 44 has no image ........

1 [3]

OR

(b) Df=[2,∞)D_f = [2, \infty), Dg=(−∞,8]D_g = (-\infty, 8] ........ ½ + ½

Domain of f+gf + g and of fgfg =[2,8]= [2, 8] ........

½ + ½

Domain of fg\dfrac{f}{g} =[2,8)= [2, 8), since g(8)=0g(8) = 0 ........

½

(f+g)(6)=4+2=2+2(f + g)(6) = \sqrt{4} + \sqrt{2} = 2 + \sqrt{2} ........

½ [3]

6. n(A×A)=9n(A \times A) = 9, so there are 29=5122^9 = 512 relations, and 512−1=511512 - 1 = 511 are non-empty ........ 1

With (p,q)(p, q) and (q,p)(q, p) fixed, the other 7 pairs are free: 27=1282^7 = 128 ........

1 [2]

Ready for the next section?

Create a free account to read the rest of this free unit, save highlights, track your confidence and plan your revision.

Your next step

Put this topic into practice.

These tools belong to this free unit. Create an account to open them and save your progress.

Section A quiz · Sign up to open

Class XII Mathematics 041 Topic 1: Relations and Functions. Exam-style practice

10 questions

Check your understanding and get explanations after you submit.

Create free account to try this quiz
Practice paper · Sign up to open

Class XII Mathematics 041 Topic 1: Relations and Functions. Exam-style practice

19 questions · Theory

Attempt the questions, check the mark scheme and record your own marks.

Create free account to open this practice

Other units and paper downloads depend on your plan.

Already have an account? Sign in →

Give your revision a routine.

Build a timetable, tick off daily tasks, catch up on missed work and opt in to weekly email reviews. Connect with your teacher when you want to share your progress.