CBSE Class 11 Sets, Relations and Functions: Worked Examples for a Strong Start

Worked results: 45 students from 30 plus 25 minus 10, 64 relations from a 3-element to a 2-element set, and the domain of 1 over x minus 2.

Sets and Relations and Functions open the NCERT Class 11 Mathematics textbook, and the notation they introduce is used for the rest of Classes 11 and 12. The ideas are not hard, but marks are lost on precise details: listing ordered pairs in the right order, counting overlaps twice, or giving a domain that leaves out an excluded value. This guide covers each with examples you can check.

Counting with sets: do not count the overlap twice

For two finite sets, n(A ∪ B) = n(A) + n(B) − n(A ∩ B). Example: in a class, 30 students play cricket, 25 play football and 10 play both. Every student plays at least one of the two.

  1. n(C ∪ F) = 30 + 25 − 10 = 45 students.
  2. Students who play only cricket: 30 − 10 = 20.
  3. Students who play only football: 25 − 10 = 15.
  4. Check: 20 + 15 + 10 = 45.

Draw the Venn diagram and fill in the overlap first. Working from the middle outwards avoids double counting.

Cartesian products: order matters

A × B is the set of all ordered pairs (a, b) with a in A and b in B. If A = {1, 2, 3} and B = {x, y}, then A × B = {(1, x), (1, y), (2, x), (2, y), (3, x), (3, y)}, which has 3 × 2 = 6 elements. B × A contains (x, 1) rather than (1, x), so A × B ≠ B × A unless A = B or one of the sets is empty.

Relations: a subset of A × B

A relation from A to B is any subset of A × B. Since A × B above has 6 elements, there are 2⁶ = 64 possible relations from A to B.

Example: on A = {1, 2, 3, 4}, define R = {(a, b) : b = a + 1}.

  1. Roster form: R = {(1, 2), (2, 3), (3, 4)}. The pair (4, 5) is not included because 5 is not in A.
  2. Domain (first elements): {1, 2, 3}.
  3. Range (second elements): {2, 3, 4}.
  4. Codomain: the whole of A, {1, 2, 3, 4}. The range is a subset of the codomain, not the same thing.

Functions: one output for every input

A function from A to B is a relation in which every element of A has exactly one image in B. The relation {(1, 2), (2, 3), (1, 4)} is not a function, because 1 has two images. A relation that leaves an element of A without an image is not a function from A either.

If A has 3 elements and B has 2, there are 2³ = 8 functions from A to B, because each of the 3 inputs can independently go to either of the 2 outputs.

Finding the domain and range of a real function

Example: f(x) = 1/(x − 2).

  1. Domain: the denominator cannot be zero, so x ≠ 2. Domain = R − {2}.
  2. Range: write y = 1/(x − 2), so x = 2 + 1/y. This gives a real x for every y except y = 0.
  3. Range = R − {0}. Check: f(3) = 1 and f(1) = −1, and no x makes 1/(x − 2) equal to 0.

A short self-test

  1. If A = {1, 2} and B = {3, 4, 5}, how many elements does A × B have? (Answer: 6.)
  2. How many relations are there from a 2-element set to itself? (Answer: 2⁴ = 16.)
  3. In a survey, 40 people read newspaper P, 35 read Q and 15 read both. How many read at least one? (Answer: 60.)

Check the current chapter list in the CBSE 2026–27 curriculum before planning your revision. If the notation or domain questions keep causing trouble, a CBSE Class 11 Maths tutor can go through your own work with you.

← Back to blog Find tuition pages How we write our guides Request a Free CBSE Demo