GRADE 12 · Mathematics · CHAPTER 1 · CBSE

Relations and Functions

Test relations for equivalence, tell one-one and onto functions apart, and decide when a function is bijective, including counting maps between small finite sets.

Original learning companion

Original learning companion for selected outcomes of this chapter: types of relations and equivalence classes, one-one and onto functions with proofs, and bijective functions on finite sets and ℝ with counting of maps. It does not reproduce the textbook, its activities or its exercise solutions.

Watch: Relations and Functions in three lessons

Silent animation. The same steps are explained in the lessons below.

Concept animations

Cartesian products and relations · Lesson 1
Reflexive, symmetric and transitive relations · Lesson 1
Functions and their types · Lesson 2, 3

Silent animations of one idea each. An animation is shared by every lesson that teaches the idea.

Solution animations

Every problem of this chapter, solved step by step. Try the problem first, then watch.

Lesson 1 · Relations and their types (9)
Lesson 2 · Types of functions: one-one, onto, bijective (9)
Lesson 3 · Bijective functions and counting maps (9)

Read all lessons

These explanations remain available without JavaScript. The separate learner and solution pages can be printed on A4.

LESSON 1

Relations and their types

Describe a relation as a set of ordered pairs, test it for reflexive, symmetric and transitive, and find equivalence classes.

Cartesian products and relations
Cartesian products and relations

An ordered pair (a, b) is a pair where the order matters, so (1, 2) and (2, 1) are different pairs. Divisibility such as 2 divides 4 is a relation between numbers.

  1. A relation is a set of pairs

    On A = {1, 2, 3, 4} let a R b mean a divides b. Then R = {(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4), (3, 3), (4, 4)}, a set of 8 ordered pairs. The pair (2, 4) is in R but (4, 2) is not.

    ab with a dividing b11, 2, 3, 422, 43344
  2. Test the three properties

    Reflexive: every a divides itself, so (a, a) ∈ R for all a. Symmetric: (1, 2) ∈ R but (2, 1) ∉ R, so R is not symmetric. Transitive: if a divides b and b divides c, then a divides c, so R is transitive. One counter-example is enough to disprove a property.

    PropertyRuleDivides on AReflexive(a, a) ∈ RYesSymmetric(a, b) ⇒ (b, a)No: (1, 2), not (2, 1)Transitive(a, b), (b, c) ⇒ (a, c)Yes
  3. Prove an equivalence relation

    On A = {1, 2, …, 7} let a R b mean 3 divides a − b. Reflexive: a − a = 0 = 3 × 0. Symmetric: if a − b = 3m then b − a = 3(−m). Transitive: a − b = 3m and b − c = 3n give a − c = 3(m + n). All three hold, so R is an equivalence relation.

    a R b means 3 divides a − bReflexive: a − a = 0 = 3 × 0Symmetric: a − b = 3m ⇒ b − a = 3(−m)Transitive: a − b = 3m, b − c = 3nSo a − c = 3(m + n)
  4. Equivalence classes split the set

    For the same R, [1] = {1, 4, 7}, [2] = {2, 5} and [3] = {3, 6}. Elements in one class leave the same remainder when divided by 3. The classes do not overlap and together make all of A, so they split A into parts.

    ClassElementsRemainder by 3[1]1, 4, 71[2]2, 52[3]3, 60

Worked example: On {1, 2, 3} test R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}. Reflexive: all three (a, a) are present. Symmetric: (1, 2) and (2, 1) both present. Transitive: (1, 2), (2, 1) force (1, 1), and (2, 1), (1, 2) force (2, 2); both are in R. So R is an equivalence relation with classes {1, 2} and {3}.

Watch for this: Symmetric does not mean (a, a) must be present, and reflexive does not mean the relation is symmetric. Also a relation can be symmetric and transitive yet fail to be reflexive if some element has no pair at all, such as R = {(1, 1)} on {1, 2}.

Discuss: Let a R b mean a and b have the same number of letters in your first name's spelling, across a group of friends. Check the three properties and describe the equivalence classes in words.

LESSON 2

Types of functions: one-one, onto, bijective

Say whether a function is one-one, onto or bijective, with a proof or a counter-example.

Functions and their types
Functions and their types

A function f: A → B gives each element of A exactly one element of B. A is the domain and B the codomain; the values actually taken form the range.

  1. What makes a function

    Let f: {1, 2, 3, 4} → ℤ, f(x) = 2x − 1. The domain is {1, 2, 3, 4}, the codomain is ℤ and the range is {1, 3, 5, 7}. Each input has exactly one output. A rule that sent 2 to both 3 and 4 would not be a function.

    x (domain)f(x) = 2x − 111233547
  2. One-one: no two inputs share an output

    To prove f is one-one, assume f(x₁) = f(x₂) and show x₁ = x₂. For f(x) = 3x + 2: 3x₁ + 2 = 3x₂ + 2 gives x₁ = x₂, so f is one-one. To disprove, find one pair: for g(x) = x² we have g(2) = g(−2) = 4, so g is not one-one.

    f(x) = 3x + 2: one-one3x₁ + 2 = 3x₂ + 2⇒ x₁ = x₂ alwaysg(x) = x²: not one-oneg(2) = 4g(−2) = 42 ≠ −2 but same output
  3. Onto: every codomain element is hit

    For f: ℝ → ℝ, f(x) = 3x + 2, take any y in ℝ. Solving 3x + 2 = y gives x = (y − 2)/3, which is a real number with f(x) = y. So every y is an output and f is onto. For x²: ℝ → ℝ the value −1 is never reached, so it is not onto.

    f: ℝ → ℝ, f(x) = 3x + 2Take any y ∈ ℝSolve 3x + 2 = y: x = (y − 2)/3x ∈ ℝ and f(x) = ySo f is onto
  4. Bijective and the role of the codomain

    A bijective function is one-one and onto. Changing domain or codomain can change the type: x² is not onto ℝ but is onto [0, ∞). For finite sets with the same size, one-one and onto go together; for infinite sets they may not, as n + 1 on ℕ is one-one but misses 1.

    FunctionOne-one?Onto?x + 5, ℝ → ℝYesYesn + 1, ℕ → ℕYesNo: 1 is missedx², ℝ → ℝNoNox², ℝ → [0, ∞)NoYes

Worked example: Decide whether f: ℝ → ℝ, f(x) = 5 − 2x is bijective. One-one: 5 − 2x₁ = 5 − 2x₂ gives x₁ = x₂. Onto: for any y, solve 5 − 2x = y to get x = (5 − y)/2, which is real. So f is one-one and onto, hence bijective.

Watch for this: Checking a few values does not prove one-one. f(x) = x² gives different outputs for 1, 2 and 3, yet it is not one-one on ℝ because f(2) = f(−2). To prove one-one you need a general argument; to disprove you need one counter-example.

Discuss: A hall has 30 seats and 30 guests, and each guest picks a seat. Explain why if no two guests share a seat, every seat is taken. Then say why this fails for infinitely many guests and seats.

LESSON 3

Bijective functions and counting maps

Test a function for one-one and onto together, and count one-one, onto and bijective maps between small finite sets.

Functions and their types
Functions and their types

A function is one-one when different inputs give different outputs, and onto when every element of the codomain is an output.

  1. Check both properties together

    Let f: {1, 2, 3} → {a, b, c} with f(1) = b, f(2) = c and f(3) = a. The outputs b, c, a are all different, so f is one-one. Each of a, b, c is an output, so f is onto. Both hold, so f is bijective.

    xf(x)1b2c3aResultbijective
  2. Sizes decide on finite sets

    With 3 inputs and 4 possible outputs, the 3 inputs give at most 3 different outputs, so one output is always missed: f can be one-one but never onto. With 4 inputs and 3 outputs, two inputs must share an output: f can be onto but never one-one. A bijection needs equal sizes.

    3 inputs, 4 outputsOne-one is possibleOnto is impossibleOne output is always missed4 inputs, 3 outputsOnto is possibleOne-one is impossibleTwo inputs share an output
  3. Bijective functions on ℝ

    For f: ℝ → ℝ, f(x) = 4x − 7, if 4x₁ − 7 = 4x₂ − 7 then x₁ = x₂, so f is one-one. For any y, x = (y + 7)/4 is real and f(x) = y, so f is onto. Hence f is bijective. By contrast x² on ℝ is neither: 2 and −2 share the output 4 and −1 is never reached.

    f(x) = 4x − 7, f: ℝ → ℝOne-one: 4x₁ − 7 = 4x₂ − 7 ⇒ x₁ = x₂Onto: y = 4x − 7 ⇒ x = (y + 7)/4(y + 7)/4 is real and f((y + 7)/4) = ySo f is bijective
  4. Counting maps between small sets

    Let A = {1, 2, 3}. With a 3-element codomain there are 3 × 3 × 3 = 27 functions, 3 × 2 × 1 = 6 one-one ones, and these 6 are also onto, so there are 6 bijections. With 2 elements: 2³ = 8 functions, none one-one, and 8 − 2 = 6 onto (leave out the 2 constant maps). With 4 elements: 64 functions, 4 × 3 × 2 = 24 one-one, none onto.

    Codomain sizeAll mapsOne-oneOnto280632766464240

Worked example: Decide whether f: ℝ → ℝ, f(x) = 6 − 5x is bijective. One-one: 6 − 5x₁ = 6 − 5x₂ gives x₁ = x₂. Onto: for any y, x = (6 − y)/5 is real and f(x) = y. So f is bijective. Next, count the bijections from {1, 2, 3, 4} to {p, q, r, s}: 4 × 3 × 2 × 1 = 24.

Watch for this: One-one alone is not enough for a bijection. f(n) = 2n from ℤ to ℤ is one-one, but no odd number is an output, so it is not onto and not bijective. Always check both properties and name the domain and codomain.

Discuss: Six students each pick a different locker from a row. First there are exactly 6 lockers, then 8 lockers. Count the ways in each case, say which case gives bijections, and explain why some lockers stay empty in the second case.

Continue on paper

Sources and coverage

Original learning companion for selected outcomes of this chapter: types of relations and equivalence classes, one-one and onto functions with proofs, and bijective functions on finite sets and ℝ with counting of maps. It does not reproduce the textbook, its activities or its exercise solutions.

Original HelioLearn teaching and questions, aligned to the listed CBSE topics. It is not an official publication of the board or a textbook solution bank. Independent teacher review is pending.