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 to a set and relations in a set , 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 , and ;
- 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 , or 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 "
Case study (4 marks)
relations and functions between small sets in a school, a competition or a game, as 1 + 1 + 2
- 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 has a first entry and a second entry, and order matters: .
The Cartesian product of sets and is
the set of all ordered pairs whose first entry comes from and second entry from .
If has elements and has elements, then has elements, because each of the first entries can be paired with each of the second entries.
For example, if and , then , which has elements.
Notice that 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 to is simply a collection of ordered pairs from : any subset at all.
You do not need a sensible rule.
The pairs are the relation.
The figure below shows a relation from a set of four students to a set of three clubs, "student is a member of club ".
Each arrow is one ordered pair.
In roster form, .
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 .
The range is the set of second entries that occur, here .
The whole of is the codomain.
When , a relation from to is called a relation in (or on ).
It is a subset of .
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 has elements and has elements.
Then has 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 pairs gives
This count includes the empty relation (every answer "no") and the whole of (every answer "yes").
A relation in a set with elements is a subset of a set with pairs, so there are 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 pairs give relations.
If you want non-empty relations, subtract the one empty relation: .
Functions: the special relations
A function from to , written , is a relation from to in which every element of has exactly one image in .
In arrow diagrams, every element of sends out exactly one arrow.
Elements of may receive many arrows, one, or none.
So a relation fails to be a function in exactly two ways:
1. some element of has no image (no arrow leaves it); or
2. some element of 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.
In the left diagram, 1 and 2 both go to .
That is allowed: a function may send two inputs to the same output.
Nothing goes to , which is also allowed.
Each element of 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 (every element has an image).
The codomain is , the set you declared the outputs live in.
The range is the set of images actually used, , 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 elements of must choose exactly one of the elements of , so there are functions from to .
Compare this with relations: functions are a small part of all relations.
Graphs of real functions
For a real function (domain and codomain subsets of ), the graph is the set of points .
A curve in the -coordinate system is the graph of a function of exactly when every vertical line meets it at most once; a vertical line meeting it twice means one with two values.
The circle fails this test, so it is a relation in but not a function.
When a real function is given only by a formula, its domain is taken to be every real for which the formula gives a real number.
Two Class XI rules decide most cases:
- a square root needs ;
- a fraction needs .
Sums and products of functions, and their domains
For real functions and , Class XI defined
To compute you need both and to exist.
So
and the same holds for and .
For you must also throw out the points where .
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.
- 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 from a set to a set is a function if every element of has one and only one image in ; we write .
- Domain, codomain and range of : the domain is , the codomain is , and the range is the set of images , a subset of .
- Number of relations: if and , then and the number of relations from to is .
- Domain of a sum: the domain of (and of and ) is ; the domain of is with the zeros of removed.
Let and .
Find (i) the number of relations from to , (ii) the number of relations from to that contain the pair , (iii) the number of functions from to .
........
½
(i) Each of the 12 pairs is either in the relation or not, so there are relations ........ ½
(ii) The pair must be in; the other 11 pairs are free: relations ........ ½
(iii) Each of the 3 elements of chooses one of the 4 elements of : functions ........ ½
Answer: 4096; 2048; 64.
Exactly half the relations contain any one given pair, which is why (ii) is half of (i).
Let be four students of a school in Kochi and the four school houses.
Three relations from to are
,
,
.
Find which of them are functions from to , and write the range of each function.
: each of the four students appears exactly once as a first entry, so is a function.
Its range is ........
1
: Meena has two images, Blue and Yellow, so is not a function ........
½
: Meena has no image, so is not a function from to ........
½
Answer: only is a function.
Its range, , is smaller than the codomain , because nobody is in Yellow house and two students share Red.
You will meet both of these features again under "onto" and "one-one".
Let and .
Find the domains of and of .
: , so .
: , so ........
½ + ½
Domain of ........
½
For also need : only at , so the domain is ........
½
Answer: and .
Check one point outside: at , is not real, so cannot be found.
Let and let be the relation in given by .
Write in roster form, find its domain and range, and find whether is a function from to .
give , all in ; gives ........
½
........
½
Domain , range ........
½
have no image, so is not a function from to ........
½
Answer: as above; is not a function from to .
It is a function from its domain to , which shows how much the declared sets matter.
When a question says "relation from to ", count with pairs; when it says "relation in " (or "on "), the pairs come from , so use .
Many wrong MCQ answers come from using or in place of , and the options are built to catch both slips.
- Writing or for the number of relations. is the number of ordered pairs; each pair is then in or out, so the count is . It is tempting because both numbers appear in the working.
- Thinking an element of with no arrow stops 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 . You need both and , so you need the intersection. For , also remove the zeros of .
- Treating and as the same pair. In order matters, and when the pair may not even be in .
Check your understanding
1. Let and . The number of relations from to is
(A)
(B)
(C)
(D)
[1]
2. Which of the following relations from to is a function from to ?
(A)
(B)
(C)
(D)
[1]
3. Assertion (A): For and , the domain of is .
Reason (R): The domain of is , the set of points where both and 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 and . Find the number of relations from to , and the number of these relations that are functions from to .
[2]
5. (a) Let , and . Write in roster form. Find its domain and range, and check whether is a function from to .
OR
(b) Let and . Find the domains of , and , and find .
[3]
6. Find the number of non-empty relations in the set , and the number of relations in that contain both and .
[2]
Answers
1. (D) . , so there are relations. [1]
2. (C) . 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 . [1]
3. (A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A). and , so the intersection is ; R is the reason. [1]
4. , so the number of relations is ........ 1
Each of 1 and 2 chooses one of 3 images: functions ........
1 [2]
5. (a) ........ 1
Domain , range ........
½ + ½
Not a function: has two images (6 and 10), and has no image ........
1 [3]
OR
(b) , ........ ½ + ½
Domain of and of ........
½ + ½
Domain of , since ........
½
........
½ [3]
6. , so there are relations, and are non-empty ........ 1
With and fixed, the other 7 pairs are free: ........
1 [2]