Skip to chapter text
MathematicsCh 1 Relations and Functions

Relations and Functions: Class 12 Maths · Chapter 1

Mathematics Part 1 · Companion notes, simulations and practice · Official NCERT chapter PDF ↗

Published · Updated

  • 105 min
  • 1 simulation
  • 41 practice questions
  • 17 MCQs

What you will learn in Relations and Functions

  • Describe a relation as a set of ordered pairs and recognise empty and universal relations.
  • Test a relation for the reflexive, symmetric and transitive properties, giving a counterexample whenever a property fails.
  • Prove that a relation is an equivalence relation and find its equivalence classes as a partition of the set.
  • Decide whether a function is one-one, onto or bijective, using algebra, graphs or counting.
  • Explain why a one-one function on a finite set is onto, and why this can fail on an infinite set.
  • Form the composition of two functions and show that the order of composition matters.
  • Decide whether a function is invertible, find its inverse and check it through both compositions.
  • Count functions and relations with given properties on small finite sets.

Original companion text aligned to NCERT Mathematics Class 12, Chapter 1, pp. 1–17. Not affiliated with or endorsed by NCERT.

1.1 Introduction

A class register pairs each student with a roll number, a railway chart pairs each passenger with a berth, and a scorecard pairs each batter with a score. Mathematics keeps only the bare bones of such pairings, a collection of ordered pairs, and studies the shapes that collection can take. You met relations, functions, domain, codomain and range in Class XI. In this chapter we sort relations by three properties, sort functions by how they cover their codomain, and then chain functions together and run them backwards.

Recall that for sets A and B, the Cartesian product A×B is the set of all ordered pairs (a,b) with a∈A and b∈B. A relation (संबंध) from A to B is nothing more than a subset of A×B. The pairs may be chosen by a meaningful rule, such as is a factor of, or by no rule at all; once they are chosen, the relation simply is that set of pairs. When (a,b)∈R we write aRb and say that a is related to b.

Definition
Relation

A relation R from A to B is any subset of A×B. When A=B, we call R a relation in A; it is then a subset of A×A.

ExampleWith A={2,3,5} and B={4,6,9,10}, the rule 'a divides b' selects R={(2,4),(2,6),(2,10),(3,6),(3,9),(5,10)}.

2/3The rule a divides b keeps 6 of them. That set of pairs is the relation R.

Fig. 1.1A relation is a choice of cells in the grid of all pairs.

A grid has rows 2, 3 and 5 for the set A and columns 4, 6, 9 and 10 for the set B, with a small dot in each of its 12 cells. In the first step every cell is plain: these are all the pairs of A × B, and the label says there are 3 × 4 = 12 of them. In the second step six cells are ringed, the pairs where a divides b: (2, 4), (2, 6), (2, 10), (3, 6), (3, 9) and (5, 10); the other dots fade and the label names the relation R. In the third step the grid slides to the left and the same six pairs appear on the right as arrows from the circles 2, 3 and 5 to the circles 4, 6, 9 and 10.

A function is a relation of a special kind: every element of the first set has exactly one arrow leaving it. In Fig. 1.1 the number 2 has three arrows, so this relation is not a function from A to B. Keep both pictures in mind, the grid and the arrows, as we classify relations in Section 1.2 and functions in Section 1.3.

Quick check
1 of 3
A set A has 3 elements and a set B has 4. How many different relations from A to B are there? Count every subset of A×B, the empty one included.
Show answer

Answer 4096

A×B has 3×4=12 pairs, and each pair is either in R or out of it, so there are 212=4096 relations.

1.2 Types of Relations

From now on most of our relations live inside a single set: a relation in A is a subset of A×A. Two subsets are always available, however strange A is. One is the empty set ∅, which relates nothing to anything. The other is the whole of A×A, which relates everything to everything.

Definition
Empty relation

The relation R=∅: the subset of A×A that contains no pairs at all, so nothing in A is linked to anything.

ExampleIn A={1,2,…,9} the rule a+b=20 is never met, because the largest possible sum is 9+9=18.

Definition
Universal relation

The relation R=A×A, which contains every ordered pair from A; each element is linked to all elements, itself included.

ExampleIn the same A, the rule ∣a−b∣<10 holds for all 9×9=81 pairs.

These two extremes, the empty (रिक्त) and the universal (सार्वत्रिक) relation, are called the trivial relations. On their own they are dull, but they make excellent test cases for the properties that follow.

Example 1NCERT Example 1 · p. 2

Months of the year

Let M be the set of the 12 months of a non-leap year. In M, let aR1b mean that months a and b together have more than 62 days, and let aR2b mean that the numbers of days in a and b differ by at most 3. Show that R1 is the empty relation and R2 is the universal relation.

Try it yourself first. Then reveal the solution one step at a time.

Three ways to write one relation. Take R in {1,2,3,4} where b is twice a. In roster form, R={(1,2),(2,4)}. In set-builder form, R={(a,b):b=2a}. In a third, very common style, we just say that aRb if and only if b=2a. All three describe the same set of pairs, so use whichever is clearest at the moment.

Reflexive, symmetric and transitive relations

The relations that matter most in mathematics, such as equality, congruence of triangles and 'leaves the same remainder', share three habits. Draw a relation in A as arrows between the elements of A, with a small loop when an element is related to itself. Each habit then becomes a rule about the arrows (Fig. 1.2).

Definition
Reflexive relation

A relation R in A with (a,a)∈R for every a∈A: each element is related to itself.

Example'was born in the same year as', in a set of people.

Definition
Symmetric relation

A relation R in A such that (a,b)∈R implies (b,a)∈R, for all a,b∈A.

Example∣a−b∣=5 in the set 𝐙 of integers.

Definition
Transitive relation

A relation R in A such that (a,b)∈R and (b,c)∈R together imply (a,c)∈R, for all a,b,c∈A.

Example'is older than', in a set of people.

4/4Side by side. A relation with all three habits is an equivalence relation.

Fig. 1.2Loops, return arrows and shortcuts: the three properties as pictures.

Three panels each show the points 1, 2 and 3 as circles. In the first step the left panel is highlighted: every point has a loop arrow back to itself, and one ordinary arrow runs from 1 to 2, so the relation is reflexive. In the second step the middle panel is highlighted: arrows join 1 and 2 in both directions, and 2 and 3 in both directions, so every arrow has a partner coming back and the relation is symmetric. In the third step the right panel is highlighted: arrows go from 1 to 2 and from 2 to 3, and a dashed shortcut arrow goes straight from 1 to 3, as transitivity demands. In the last step all three panels are shown at full strength side by side.

Two warnings save many marks. First, symmetry and transitivity are if–then statements. If a relation has no two-step paths at all, transitivity demands nothing, and the relation is transitive automatically (we say vacuously). Second, reflexivity is a claim about every element, so one missing loop spoils it: in {1,2,3} the relation {(1,1),(2,2)} is not reflexive, because (3,3) is absent.

To prove that a property holds, argue with arbitrary elements. To show that it fails, one specific counterexample is enough, and you should name it.

Definition
Equivalence relation

A relation that is reflexive, symmetric and transitive.

ExampleEquality, a=b, in any set; 'leaves the same remainder on division by 7 as' in 𝐙.

InteractiveRelation lab

A 4 by 4 grid of switches, one for each ordered pair (a, b) with a and b from 1 to 4, next to an arrow diagram of the same relation on four points. Tapping a switch adds or removes that pair, and you can shrink the set to three elements. A panel says whether the relation is reflexive, symmetric and transitive; when a property fails it names a missing pair that proves it, and when all three hold it lists the equivalence classes. Buttons load ready-made relations, clear the grid, or add the pairs that each property needs, and a challenge menu asks you to build relations with given properties, such as symmetric and transitive but not reflexive.

Fig. 1.3Switch pairs on and off in a relation on {1,2,3,4} and watch the three properties update, with a reason for every failure.
Example 2NCERT Example 2 · p. 3

Rectangles with equal area

Let S be the set of all rectangles drawn on a sheet of paper, and let let PRQ mean that P and Q have the same area. Show that R is an equivalence relation in S.

Try it yourself first. Then reveal the solution one step at a time.

Notice the pattern in Example 2: the relation was 'has the same area as', an equality of some attribute. Every relation of the form 'has the same ___ as' inherits all three properties directly from equality. Example 21 proves this once and for all.

Example 3NCERT Example 3 · p. 3

Opposite signs

In the set 𝐑∗ of non-zero real numbers, let R={(a,b):ab<0}, so that aRb when a and b have opposite signs. Prove that R is symmetric, and that it fails to be reflexive and fails to be transitive.

Try it yourself first. Then reveal the solution one step at a time.

There is a simple reason behind Example 3. Two 'opposite sign' steps bring you back to your original sign, so the shortcut that transitivity asks for would always join two numbers of the same sign, and R never contains such a pair.

Example 4NCERT Example 4 · p. 3

Reading properties off a list

Let A={4,5,6} and R={(4,4),(5,5),(6,6),(5,6),(6,4)}. Decide which of the three properties R has.

Try it yourself first. Then reveal the solution one step at a time.

For a small relation given as a list, check transitivity systematically: for every pair (a,b), look at each pair (b,c) that starts where it ends, and confirm that (a,c) is present. Loops never cause trouble, since (a,a) followed by (a,c) only asks for (a,c) itself.

Example 5NCERT Example 5 · p. 3

Same remainder on division by 4

Show that R={(a,b):4 divides a−b} is an equivalence relation in the set 𝐙 of integers.

Try it yourself first. Then reveal the solution one step at a time.

Equivalence classes

Run the relation of Example 5 on the numbers 0 to 11 and watch what happens (Fig. 1.4). The number 1 is related to 5 and 9, which differ from it by multiples of 4, and to nothing else in the list. The number 2 is related to 6 and 10. The twelve numbers fall into four clusters, and every number lands in exactly one of them.

3/3Every number belongs to exactly one of [0],[1],[2],[3], and the four classes together make up the whole set.

Fig. 1.4An equivalence relation sorts a set into classes that do not overlap.

Twelve circles numbered 0 to 11. In the first step they are scattered with no order, and the rule a R b if 4 divides a minus b is written below. In the second step only 1, 5 and 9 stay bright and are ringed, forming the class of 1, while the other numbers fade. In the third step all the circles slide into four dashed boxes labelled [0], [1], [2] and [3]: the box [0] holds 0, 4 and 8; [1] holds 1, 5 and 9; [2] holds 2, 6 and 10; and [3] holds 3, 7 and 11. The boxes do not overlap and together they contain every number, as the label below them states.

Why does the remainder decide everything? Write a=4q+r and b=4q′+r′, with remainders r,r′∈{0,1,2,3}. Then a−b=4(q−q′)+(r−r′), so 4 divides a−b exactly when 4 divides r−r′. Since −3≤r−r′≤3, the only multiple of 4 it can equal is 0. So aRb if and only if r=r′.

Definition
Equivalence class

For an equivalence relation R in A and an element a∈A, the class of a is [a]={x∈A:xRa}, the set of everything related to a.

ExampleUnder 'same remainder on division by 4' in 𝐙, [1]={…,−7,−3,1,5,9,… }, and [1]=[5]=[−3].

PropertyEquivalence relations and partitions

Let R be an equivalence relation in a set A. Then (i) every element lies in its own class, a∈[a]; (ii) any two classes are either identical or disjoint; (iii) the union of all the classes is A. Conversely, if A is split into non-empty, pairwise disjoint pieces whose union is A (a partition of A), then 'lies in the same piece as' is an equivalence relation whose classes are exactly those pieces.

So the same information can be given in two ways: as an equivalence relation, or as a partition of the set into classes. The integers split into 2 classes under 'same parity', into 4 classes under 'same remainder on division by 4', and into n classes [0],[1],…,[n−1] under 'same remainder on division by n'. In the other direction, any way of sorting a set into non-overlapping groups defines an equivalence relation: 'is in the same group as'.

Example 6NCERT Example 6 · p. 4

Sorting by number of digits

Let A={1,2,…,20}, and let aRb mean that a and b have the same number of digits. Prove that R is an equivalence relation, list its classes, and confirm that R never links two numbers from different classes.

Try it yourself first. Then reveal the solution one step at a time.

Classes need not be finite lists. In the plane, call two points related when they are at the same distance from the origin O. This is again 'has the same ___ as', so it is an equivalence relation. Use the simulation to explore the class of the point P(3,4).

SimulationPoints related to P

A coordinate grid from minus 6 to 6 on both axes, with the origin O and a fixed point P at (3, 4), whose distance 5 from O is drawn and measured. A second point Q can be dragged to any grid point; its distance from O is drawn and updated as it moves, so you can hunt for the points that are related to P under the relation 'same distance from O'.

Fig. 1.5Drag Q to grid points whose distance from O equals OP=5.
Try this
  • Drag Q to (4,3), then to (0,−5). Is each one related to P?
  • Find all 12 grid points at distance 5 from O. What shape do they lie on?
  • Drag Q to (1,1). Which grid points are in the same class as (1,1)?

The class of P(3,4) is the whole circle of radius 5 centred at O. It contains infinitely many points, only twelve of which have whole-number coordinates: (±5,0), (0,±5), (±3,±4) and (±4,±3). The classes of this relation are the circles centred at O, together with the one-point class {O}, and they partition the plane.

Quick check
1 of 4
In {1,2,3}, which relation is transitive?
Show answer

Answer (C) {(1,3),(2,3)}

In C no arrow leaves 3, so there is no two-step path and nothing is demanded: C is transitive vacuously. A fails because (1,2),(2,1) demands the loop (1,1); D has (1,1) but (2,1),(1,2) still demands (2,2). B lacks the shortcut (1,3).
Practice · 16 questions

Practice 1.1: questions with answers

  1. Short answerMediumNCERT Exercise 1.1, Q1

    Decide whether each relation is reflexive, symmetric and transitive. Give a counterexample for every property that fails.

    1. R={(x,y):x+y=10} in A={1,2,…,10}

      Show solution

      AnswerSymmetric only.

      Not reflexive: 1+1≠10, so (1,1)∉R (the only loop is (5,5)). Symmetric: x+y=10 gives y+x=10. Not transitive: (1,9) and (9,1) are in R, but (1,1) is not.

    2. R={(x,y):x<0 and y>0} in 𝐙

      Show solution

      AnswerTransitive only.

      Not reflexive: (1,1)∉R. Not symmetric: (−1,1)∈R but (1,−1)∉R. Transitive: (x,y),(y,z)∈R would need y>0 and y<0 at once, which never happens, so there are no two-step paths and the condition holds vacuously.

    3. In A={2,3,…,10}, xRy when x and y have a common factor greater than 1

      Show solution

      AnswerReflexive and symmetric, not transitive.

      Reflexive: each x≥2 shares the factor x with itself. Symmetric: a common factor of x and y is a common factor of y and x. Not transitive: (2,6) and (6,3) are in R, but 2 and 3 have no common factor greater than 1.

    4. R={(x,y):⌊x⌋=⌊y⌋} in 𝐑, where ⌊x⌋ is the greatest integer not exceeding x

      Show solution

      AnswerAn equivalence relation.

      This is 'has the same greatest integer as', an equality of an attribute, so it is reflexive, symmetric and transitive. Its classes are the intervals [n,n+1) for n∈𝐙.

    5. In the set of students of a school: 'x and y belong to the same house'

      Show solution

      AnswerAn equivalence relation.

      Equality of an attribute (the house), so all three properties hold.

    6. In the same set: 'x was born exactly one day before y'

      Show solution

      AnswerNone of the three.

      Not reflexive: nobody is born a day before themselves. Not symmetric: if x was born a day before y, then y was born a day after x. Not transitive: if x is a day older than y and y a day older than z, then x is two days older than z.

    7. In the same set: 'x is younger than y'

      Show solution

      AnswerTransitive only.

      Not reflexive and not symmetric (if x is younger than y, then y is not younger than x). Transitive: younger than someone who is younger than z means younger than z.

  2. ProofMediumNCERT Exercise 1.1, Q2

    Show that R={(a,b):a≥2b} in 𝐑 is neither reflexive, nor symmetric, nor transitive.

    Show solution

    Not reflexive: 1≥2×1 is false, so (1,1)∉R.

    Not symmetric: (4,1)∈R since 4≥2, but (1,4)∉R since 1≥8 is false.

    Not transitive: (−8,−4)∈R since −8≥−8, and (−4,−2)∈R since −4≥−4. But (−8,−2)∉R, since −8≥−4 is false.

  3. Short answerEasyNCERT Exercise 1.1, Q3

    In A={1,2,…,10}, list the relation R={(a,b):b=2a} and check whether it is reflexive, symmetric or transitive.

    Show solution

    AnswerR={(1,2),(2,4),(3,6),(4,8),(5,10)}; none of the three properties holds.

    R={(1,2),(2,4),(3,6),(4,8),(5,10)}. Not reflexive: (1,1)∉R. Not symmetric: (1,2)∈R but (2,1)∉R. Not transitive: (1,2),(2,4)∈R but (1,4)∉R.

  4. ProofEasyNCERT Exercise 1.1, Q4

    In a group of people, let xRy mean 'x is not taller than y'. Prove that R has the reflexive and transitive properties but lacks symmetry (assume the group has two people of different heights).

    Show solution

    xRy means h(x)≤h(y), where h is height. Reflexive: h(x)≤h(x). Transitive: h(x)≤h(y) and h(y)≤h(z) give h(x)≤h(z).

    Not symmetric: if Asha is 150 cm and Ravi is 165 cm tall, then Asha R Ravi, but Ravi is taller than Asha, so Ravi is not related to Asha.

  5. Short answerMediumNCERT Exercise 1.1, Q5

    Check whether R={(a,b):a≤b+1} in 𝐑 is reflexive, symmetric or transitive.

    Show solution

    AnswerReflexive only.

    Reflexive: a≤a+1 always. Not symmetric: (0,5)∈R since 0≤6, but (5,0)∉R since 5≤1 is false.

    Not transitive: (2,1)∈R since 2≤2, and (1,0)∈R since 1≤1, but (2,0)∉R since 2≤1 is false.

  6. ProofEasyNCERT Exercise 1.1, Q6

    Show that R={(4,6),(6,4),(5,5)} in A={4,5,6} is symmetric but neither reflexive nor transitive.

    Show solution

    Symmetric: (4,6) and (6,4) come as a pair, and the loop (5,5) is its own reverse.

    Not reflexive: (4,4)∉R. Not transitive: the path (4,6),(6,4) demands (4,4), which is missing.

  7. ProofEasyNCERT Exercise 1.1, Q7

    In the set of mobile phones on sale in a shop, show that 'x and y have the same price' is an equivalence relation.

    Show solution

    Let p(x) be the price of phone x. Reflexive: p(x)=p(x). Symmetric: p(x)=p(y)⇒p(y)=p(x). Transitive: p(x)=p(y) and p(y)=p(z) give p(x)=p(z).

  8. ProofMediumNCERT Exercise 1.1, Q8

    Let A={10,11,…,17} and R={(a,b):a+b is even}. Prove that R is reflexive, symmetric and transitive. Then check that any two numbers from {10,12,14,16} are linked by R, that the same holds inside {11,13,15,17}, and that R never links a number of the first set with a number of the second.

    Show solution

    Reflexive: a+a=2a is even. Symmetric: a+b=b+a. Transitive: if a+b and b+c are even, then a+c=(a+b)+(b+c)−2b is even.

    Two even numbers have an even sum, and so do two odd numbers, so each of the two sets is related within itself. An even number plus an odd number is odd, so no element of {10,12,14,16} is related to any element of {11,13,15,17}. These two sets are the equivalence classes.

  9. Short answerMediumNCERT Exercise 1.1, Q9

    Let A={x∈𝐙:−6≤x≤6}. Show that each relation is an equivalence relation in A, and find the class of 1 in each case.

    1. R1={(a,b):5 divides a−b}

      Show solution

      Answer[1]={−4,1,6}

      Reflexive: a−a=0=5×0. Symmetric: if a−b=5k then b−a=5(−k). Transitive: if a−b=5k and b−c=5m, then a−c=5(k+m). The elements of A that differ from 1 by a multiple of 5 are 1−5=−4, 1 and 1+5=6, so [1]={−4,1,6}.

    2. R2={(a,b):a2=b2}

      Show solution

      Answer[1]={−1,1}

      This is 'has the same square as', an equality of an attribute, so it is an equivalence relation. b2=1 means b=±1, so [1]={−1,1}.

  10. Short answerHardNCERT Exercise 1.1, Q10

    Using A={1,2,3}, give an example of a relation in A that is:

    1. reflexive, but neither symmetric nor transitive;

      Show solution

      AnswerFor example, the pairs (2,1) and (1,3) together with the three loops (1,1), (2,2), (3,3).

      All loops are present. (2,1)∈R but (1,2)∉R, so it is not symmetric; (2,1),(1,3) demands (2,3), which is missing, so it is not transitive.

    2. symmetric and transitive, but not reflexive;

      Show solution

      AnswerFor example, {(1,2),(2,1),(1,1),(2,2)}.

      Every pair among 1 and 2 is present, so it is symmetric and transitive, but (3,3) is missing.

    3. transitive, but neither reflexive nor symmetric;

      Show solution

      AnswerFor example {(1,2)}.

      There is no two-step path, so it is transitive vacuously; there are no loops, and (2,1) is missing.

    4. reflexive and symmetric, but not transitive;

      Show solution

      AnswerFor example, the pairs (1,2), (2,1), (2,3), (3,2) together with the three loops.

      All loops are present and every pair has its reverse, but (1,2),(2,3) demands (1,3), which is missing.

    5. an equivalence relation other than the identity and universal relations.

      Show solution

      AnswerFor example, the pairs (1,3) and (3,1) together with the three loops.

      Its classes are {1,3} and {2}, a partition of A, so by the partition theorem it is an equivalence relation.

  11. ProofHardNCERT Exercise 1.1, Q11

    In the set of points of the coordinate plane, let PRQ when ∣xP∣+∣yP∣=∣xQ∣+∣yQ∣. Show that R is an equivalence relation, and describe the class of the point (2,1).

    Show solution

    AnswerThe square with vertices (3,0), (0,3), (−3,0) and (0,−3).

    R is 'has the same value of ∣x∣+∣y∣ as', an equality of an attribute, so it is an equivalence relation.

    For (2,1) the value is 3, so its class is {(x,y):∣x∣+∣y∣=3}. In the first quadrant this is the segment x+y=3 from (3,0) to (0,3); the other quadrants give its mirror images. Together they form a square with vertices (±3,0) and (0,±3), standing on one corner.

  12. Short answerMediumNCERT Exercise 1.1, Q12

    Two rectangles are similar when the ratio of the longer side to the shorter side is the same. Show that similarity is an equivalence relation in the set of all rectangles. Which of these are related: R1 is 2 cm×3 cm, R2 is 4 cm×5 cm, R3 is 6 cm×10 cm, R4 is 4 cm×6 cm and R5 is 3 cm×5 cm?

    Show solution

    AnswerR1 and R4 are related; R3 and R5 are related; R2 is related only to itself.

    Similarity is 'has the same side ratio as', so it is an equivalence relation.

    The ratios are R1:32, R2:54, R3:106=53, R4:64=32 and R5:53. So R1RR4 and R3RR5, while R2 is in a class of its own among these five.

  13. Short answerMediumNCERT Exercise 1.1, Q13

    In the set of all polyhedra (solids with flat faces), let PRQ when P and Q have the same number of faces. Show that R is an equivalence relation. Is a square pyramid related to a cube? Is a pentagonal pyramid?

    Show solution

    AnswerA square pyramid (5 faces) is not related to a cube (6 faces); a pentagonal pyramid (6 faces) is.

    R is 'has the same number of faces as', an equality of an attribute, so it is an equivalence relation.

    A cube has 6 faces. A square pyramid has 1+4=5 faces, so it is not related to the cube (it is related to a triangular prism, which also has 5). A pentagonal pyramid has 1+5=6 faces, so it is in the cube's class, together with every cuboid.

  14. Short answerMediumNCERT Exercise 1.1, Q14

    In the set of all circles in the xy-plane, let C1RC2 when C1 and C2 have the same centre. Show that R is an equivalence relation, and describe the class of the circle x2+y2−4x+6y−3=0.

    Show solution

    AnswerAll circles (x−2)2+(y+3)2=r2 with r>0.

    'Has the same centre as' is an equality of an attribute, so R is an equivalence relation.

    x2−4x+y2+6y=3 gives (x−2)2+(y+3)2=3+4+9=16, a circle with centre (2,−3) and radius 4. Its class is the family of all circles centred at (2,−3): (x−2)2+(y+3)2=r2, r>0.

  15. Quick answerMediumNCERT Exercise 1.1, Q15

    In {1,2,3,4}, let R consist of the four loops together with (2,3),(3,2),(1,2),(2,1). Which statement is correct?

    Show answer

    Answer (D) R has only the reflexive and symmetric properties.

    All four loops are present and every pair comes with its reverse, but (1,2),(2,3)∈R while (1,3)∉R.
  16. Quick answerEasyNCERT Exercise 1.1, Q16

    Let R={(a,b):a2+b=10, b<0} in 𝐙. Which pair belongs to R?

    Show answer

    Answer (C) (4,−6)

    42+(−6)=10 and −6<0. The pairs (2,6) and (−3,1) satisfy the equation but have b>0, and (3,−1) gives 9−1=8.

1.3 Types of Functions

In Class XI you met the identity, constant, polynomial, rational, modulus and signum functions, drew their graphs and combined functions by adding and multiplying them. Here we ask a new question about a function f:X→Y: how does it cover the codomain Y? Does it ever send two inputs to the same output? Does it reach every element of Y?

Definition
Function

A relation f from X to Y in which every x∈X is related to exactly one element of Y, written f(x). X is the domain, Y the codomain, and {f(x):x∈X} the range.

ExampleThe PIN code of a post office: every post office has exactly one PIN code, though one PIN code may serve several post offices.

Fig. 1.6 shows the four possibilities with four inputs. Look at two things in each picture: whether two arrows ever land on the same square, and whether some square is left without an arrow.

1/4Two inputs share the output a, and b is never reached.

Fig. 1.6Two questions about every function: are outputs ever shared, and is anything in the codomain missed?NCERT Fig. 1.2 · p. 8

Four circles labelled 1 to 4, the set X, sit in a row above a row of squares, the set Y, and each circle sends one arrow down to a square. Step one: 1 and 2 both point to a, 3 points to c and 4 to d, while b receives no arrow and is drawn dashed; the labels read one-one: no and onto: no. Step two: there are five squares a to e, and the arrows go to a, b, d and e, all different, but c is missed and dashed: one-one yes, onto no. Step three: there are three squares; 1 goes to a, 2 and 3 both go to b, and 4 goes to c, so every square is hit but b is hit twice: one-one no, onto yes. Step four: four squares, with arrows 1 to b, 2 to d, 3 to a and 4 to c, so every square is hit exactly once: one-one yes, onto yes.

Definition
One-one (injective) function

A function f:X→Y in which different inputs give different outputs. Equivalently, whenever f(x1)=f(x2) we must have x1=x2. A function that is not one-one is called many-one.

Examplef(x)=x+3 on 𝐍 is one-one; g(x)=x2 on 𝐙 is many-one, since g(−2)=g(2).

The form 'f(x1)=f(x2)⇒x1=x2' is the one to use in proofs: assume two outputs are equal and deduce that the inputs were equal. To show that f is not one-one, exhibit two different inputs with the same output.

Definition
Onto (surjective) function

A function f:X→Y in which every y∈Y is the image of at least one x∈X; that is, the equation f(x)=y has a solution in X for every y∈Y.

Examplef:𝐑→𝐑, f(x)=x3 is onto, because y is the image of y3.

Put differently, f is onto exactly when its range equals its codomain. So 'onto' depends on the codomain we declare: x↦x2 is not onto as a map 𝐑→𝐑, since nothing goes to −1, but it is onto as a map 𝐑→[0,∞). Always read the arrow f:X→Y before you judge.

Definition
Bijective function

A function that is both one-one and onto. Every element of the codomain is then the image of exactly one element of the domain.

Examplef:𝐑→𝐑, f(x)=2x−7.

InteractiveMapping lab

Two columns of points: the domain X with 2 to 5 elements numbered from 1, and the codomain Y with 2 to 5 elements lettered from a, with menus to set the two sizes. For each element of X a drop-down menu chooses its image in Y, and the arrow diagram updates. A status panel says whether the function is one-one, naming two inputs that share an output if not, and onto, naming a missed output if not. A Reverse arrows switch flips every arrow and says whether the reversed picture is a function from Y to X. Challenge buttons ask for a function with given properties and explain when one is impossible for the chosen sizes, and a counter shows how many functions and how many one-one functions exist for those sizes.

Fig. 1.7Choose where each element of X goes and see at once whether your function is one-one, onto or bijective, and whether reversing its arrows gives a function.
Example 7NCERT Example 7 · p. 8

Accession numbers in a library

A school library has 1850 books, and each book is stamped with an accession number from 1 to 1850, no two books sharing a number. Let B be the set of these books and f:B→𝐍, f(b)= the accession number of b. Prove that f is one-one and that it is not onto.

Try it yourself first. Then reveal the solution one step at a time.

Example 8NCERT Example 8 · p. 8

Shifting the natural numbers

Show that f:𝐍→𝐍, f(x)=x+3, is one-one but not onto.

Try it yourself first. Then reveal the solution one step at a time.

Example 9NCERT Example 9 · p. 9

A bijection of the real line

Prove that f:𝐑→𝐑, f(x)=x+43, is one-one and onto.

Try it yourself first. Then reveal the solution one step at a time.

Graphs give a quick picture of both properties (Fig. 1.8). Draw horizontal lines y=c across the graph of a function f:𝐑→𝐑. If some line meets the graph twice, two inputs share the output c, and f is not one-one. If some line misses the graph, c is never reached, and f is not onto. A bijection of 𝐑 is a graph that every horizontal line meets exactly once; the straight line of Example 9, with slope 13, passes this test.

1/3The line y=5 meets y=x2−4x at x=−1 and x=5: not one-one.

Fig. 1.8The horizontal-line test for a function from 𝐑 to 𝐑.NCERT Fig. 1.4 · p. 9

Axes with x from minus 2 to 6 and y from minus 7 to 9. Step one: the U-shaped graph of y = x squared minus 4x, lowest at the point (2, minus 4), is cut by the dashed horizontal line y = 5 at two marked points, x = minus 1 and x = 5. Step two: the dashed line moves down to y = minus 6, below the lowest point, and meets the graph nowhere. Step three: the U-shaped graph fades and an S-shaped cubic, y equals one half of (x minus 2) cubed plus 1, appears; three dashed lines at y = minus 5, minus 1 and 5 each meet it at exactly one marked point.

Example 10NCERT Example 10 · p. 9

Counting digits

Let f:𝐍→𝐍 give the number of digits of n, so that f(7)=1, f(42)=2 and f(2026)=4. Show that f is onto but not one-one.

Try it yourself first. Then reveal the solution one step at a time.

Example 11NCERT Example 11 · p. 9

A parabola that fails twice

Show that f:𝐑→𝐑, f(x)=x2−4x, is neither one-one nor onto.

Try it yourself first. Then reveal the solution one step at a time.

Example 12NCERT Example 12 · p. 9

Swapping neighbours

Define f:𝐍→𝐍 by f(n)=n+1 if n leaves remainder 1 on division by 3, f(n)=n−1 if it leaves remainder 2, and f(n)=n if n is a multiple of 3. So f swaps 1 and 2, swaps 4 and 5, swaps 7 and 8, and fixes 3, 6, 9, …. Show that f is one-one and onto.

Try it yourself first. Then reveal the solution one step at a time.

On a finite set the two properties are tied together. Picture four letters being posted into four letter-boxes, each letter going into exactly one box.

Example 13NCERT Example 13 · p. 10

Onto forces one-one on a finite set

Let S={a,b,c,d}. Show that every onto function f:S→S is one-one.

Try it yourself first. Then reveal the solution one step at a time.

Example 14NCERT Example 14 · p. 10

One-one forces onto on a finite set

With S={a,b,c,d} again, show that every one-one function f:S→S is onto.

Try it yourself first. Then reveal the solution one step at a time.

PropertyOne-one and onto on a finite set

Let X be a finite set and f a map from X to itself. Then f is one-one exactly when it is onto, so either property alone makes f a bijection.

Quick check
1 of 4
Which function from 𝐙 to 𝐙 is one-one but not onto?
Show answer

Answer (B) f(n)=2n

2n is never odd, so 7 (for instance) is missed, yet 2n1=2n2 forces n1=n2. The maps n−5 and −n are bijections of 𝐙, and n2 is not one-one because (−1)2=12.
Practice · 12 questions

Practice 1.2: questions with answers

  1. ProofMediumNCERT Exercise 1.2, Q1

    Let f:𝐑∖{1}→𝐑∖{0} be f(x)=1x−1.

    1. Show that f is one-one and onto.

      Show solution

      AnswerIt is a bijection.

      One-one: 1x1−1=1x2−1 gives x1−1=x2−1, so x1=x2.

      Onto: for y≠0 put x=1+1y. Since 1y≠0, x≠1, so x is in the domain, and f(x)=11/y=y.

    2. If the domain is replaced by 𝐙∖{1} (same rule, same codomain), is f still one-one? Is it still onto?

      Show solution

      AnswerStill one-one, but not onto.

      Still one-one: the argument in (a) works for any inputs. Not onto: y=2 would need x=1+12=1.5, which is not an integer.

  2. Short answerMediumNCERT Exercise 1.2, Q2

    Decide, for each function, whether it is one-one and whether it is onto.

    1. f:𝐍→𝐍, f(x)=2x+1

      Show answer

      Answer (B) one-one, not onto

      2x1+1=2x2+1⇒x1=x2. The range is {3,5,7,… }, so 1 and every even number are missed.
    2. f:𝐙→𝐙, f(x)=2x+1

      Show answer

      Answer (B) one-one, not onto

      Still one-one, and now every odd integer is reached, but even integers such as 0 are not.
    3. f:𝐑→𝐑, f(x)=2x+1

      Show answer

      Answer (A) one-one and onto

      One-one as before, and f(y−12)=y for every real y.
    4. f:𝐍→𝐍, f(x)=x2+x

      Show answer

      Answer (B) one-one, not onto

      On 𝐍 the values 2,6,12,20,… strictly increase, so different inputs give different outputs; but 1 is never reached.
    5. f:𝐙→𝐙, f(x)=x2+x

      Show answer

      Answer (D) neither one-one nor onto

      f(0)=f(−1)=0. Also x2+x=x(x+1) is a product of consecutive integers, so it is always even and 1 is missed.
  3. ProofMediumNCERT Exercise 1.2, Q3

    The fractional-part function is f:𝐑→𝐑, f(x)=x−⌊x⌋, where ⌊x⌋ is the greatest integer not exceeding x. Prove that f fails both tests: it is not one-one and not onto.

    Show solution

    Not one-one: f(0)=0−0=0 and f(1)=1−1=0.

    Not onto: ⌊x⌋≤x<⌊x⌋+1 gives 0≤f(x)<1, so the range is [0,1) and, for example, 2 is never reached. (The greatest integer function itself, x↦⌊x⌋, fails both tests too: ⌊0.3⌋=⌊0.7⌋, and 0.5 is never an output.)

  4. ProofEasyNCERT Exercise 1.2, Q4

    Show that f:𝐑→𝐑, f(x)=∣x∣+x, is not one-one and is not onto.

    Show solution

    f(x)=2x for x≥0 and f(x)=0 for x<0. Not one-one: f(−1)=f(−2)=0. Not onto: f(x)≥0 for all x, so −1 is never reached.

  5. ProofMediumNCERT Exercise 1.2, Q5

    Dirichlet's function f:𝐑→𝐑 is defined by f(x)=1 if x is rational and f(x)=0 if x is irrational. Explain why it is not one-one and not onto.

    Show solution

    Not one-one: f(1)=f(2)=1. Not onto: the range is {0,1}, so for example 5 is never reached.

  6. Short answerEasyNCERT Exercise 1.2, Q6

    Let A={2,4,6}, B={1,3,5,7,9} and f={(2,3),(4,7),(6,1)}. Show that f is a one-one function from A to B. Is it onto?

    Show solution

    AnswerOne-one, not onto.

    Each of 2, 4, 6 appears exactly once as a first entry, so f is a function. The images 3, 7, 1 are all different, so it is one-one. It is not onto, because 5 and 9 are never reached (three inputs cannot cover five outputs).

  7. Short answerMediumNCERT Exercise 1.2, Q7

    State whether each function is one-one, onto or bijective, and justify your answer.

    1. f:𝐑→𝐑, f(x)=5−2x3

      Show solution

      AnswerBijective.

      One-one: 5−2x13=5−2x23⇒−2x1=−2x2⇒x1=x2. Onto: for any real y, x=5−3y2 gives f(x)=5−(5−3y)3=y.

    2. f:𝐑→𝐑, f(x)=x2+2x+3

      Show solution

      AnswerNeither one-one nor onto.

      Not one-one: f(0)=3=f(−2). Not onto: f(x)=(x+1)2+2≥2, so 0 is never reached.

  8. ProofMediumNCERT Exercise 1.2, Q8

    Show that f:𝐑×𝐑→𝐑×𝐑, f(x,y)=(x+y, x−y), is a bijection.

    Show solution

    One-one: if (x1+y1,x1−y1)=(x2+y2,x2−y2), adding the two coordinates gives 2x1=2x2, so x1=x2, and then y1=y2.

    Onto: for any (u,v), the pair x=u+v2, y=u−v2 gives f(x,y)=(u,v).

  9. Short answerMediumNCERT Exercise 1.2, Q9

    Let f:𝐍→𝐍 be f(n)=2n if n is odd and f(n)=n2 if n is even. Is f bijective? Justify your answer.

    Show solution

    AnswerNo: it is onto but not one-one.

    Not one-one: f(1)=2 and f(4)=2. Onto: any m∈𝐍 equals f(2m), because 2m is even. So f is onto but not bijective.

  10. ProofHardNCERT Exercise 1.2, Q10

    Let A=𝐑∖{−2}, B=𝐑∖{3} and f:A→B, f(x)=3x−1x+2. Decide, with reasons, whether f is a bijection.

    Show solution

    AnswerYes, f is a bijection.

    f really maps into B: 3x−1x+2=3 would mean 3x−1=3x+6, which is impossible.

    One-one: 3a−1a+2=3b−1b+2 gives 3ab+6a−b−2=3ab+6b−a−2, so 7a=7b and a=b.

    Onto: for y≠3, y(x+2)=3x−1 gives x(y−3)=−1−2y, so x=1+2y3−y. This x is never −2, since 1+2y=−2(3−y) would mean 1=−6. So x∈A and f(x)=y.

  11. Quick answerMediumNCERT Exercise 1.2, Q11

    Let f:𝐑→𝐑 be f(x)=x3−x. Which statement is correct?

    Show answer

    Answer (B) f is many-one and onto

    f(0)=f(1)=0, so f is many-one. For any real y, the cubic equation x3−x−y=0 has at least one real root (the graph of a cubic rises from far below the x-axis to far above it without a break), so f is onto.
  12. Quick answerEasyNCERT Exercise 1.2, Q12

    Let f:𝐙→𝐙 be f(x)=3x+1. Which statement is correct?

    Show answer

    Answer (D) f is one-one but not onto

    3x1+1=3x2+1 forces x1=x2, so f is one-one. But 3x+1=0 needs x=−13, not an integer, so 0 is missed and f is not onto.

1.4 Composition of Functions and Invertible Function

A taxi fare depends on the distance travelled, and the distance depends on the destination you choose. Feed a destination into the first rule, feed the result into the second, and you get the fare directly. Chaining two functions in this way produces a new function, called their composition.

Definition
Composition of functions

For f:A→B and g:B→C, the composite g∘f:A→C is defined by (g∘f)(x)=g(f(x)) for every x∈A. Read it as 'g after f'. NCERT writes it as gof.

ExampleIf f(x)=x+2 and g(x)=x2 on 𝐑, then (g∘f)(3)=g(5)=25.

Two details matter. The function written on the right, f, acts first. And the composite only makes sense when every output of f is a valid input for g, which is why the codomain of f is the domain of g in the definition (Fig. 1.9).

4/4Seen from outside, the two machines form one function, (g∘f)(x)=(x+2)2.

Fig. 1.9g∘f runs f first, then g.NCERT Fig. 1.5 · p. 12

A dashed conveyor belt runs from left to right through two square machines, f on the left and g on the right, with f(x) = x + 2 written under f and g(x) = x squared written under g. Step one: a chip showing 3 waits at the input end. Step two: a chip showing 5 slides in between the machines, since f(3) = 5, and the input chip fades. Step three: a chip showing 25 slides in at the output end, since g(5) = 25. Step four: a dashed box encloses both machines and is labelled g composed with f, with (g composed with f)(x) = (x + 2) squared written below, so the pair acts as one machine that turns 3 into 25.

Example 15NCERT Example 15 · p. 12

Composing finite functions

Let f:{0,1,2,3}→{1,2,5,10} be f(x)=x2+1, and let g:{1,2,5,10}→{0,1,2} give the remainder when y is divided by 3. Find g∘f.

Try it yourself first. Then reveal the solution one step at a time.

Example 16NCERT Example 16 · p. 12

Order matters

Let f,g:𝐑→𝐑 be f(x)=x+2 and g(x)=x2. Find g∘f and f∘g, and show that they are different functions.

Try it yourself first. Then reveal the solution one step at a time.

So composition is not commutative. It is, however, associative: for f:A→B, g:B→C and h:C→D, both h∘(g∘f) and (h∘g)∘f send x to h(g(f(x))). That is why we may write h∘g∘f without brackets.

Invertible functions

Some functions can be run backwards. If f(x)=x+2 sends 3 to 5, then y↦y−2 sends 5 back to 3, and it undoes f for every input. To say this precisely we use the identity function IX:X→X, IX(x)=x, which leaves every element where it is.

Definition
Invertible function

A function f:X→Y is invertible if there is a function g:Y→X with g∘f=IX and f∘g=IY. We then call g the inverse of f and write it as f−1.

Examplef:𝐑→𝐑, f(x)=x+2, is invertible with f−1(y)=y−2.

Both conditions are needed. g∘f=IX says that g undoes f: start in X, go to Y and come back to where you began. f∘g=IY says that f undoes g. Which functions have an inverse? Reverse the arrows of f and ask whether the result is still a function (Fig. 1.10).

2/3Reversed, each element of B has exactly one arrow out: this is f−1.

Fig. 1.10Reversing the arrows gives a function exactly when every element of B was hit exactly once.

Two columns of circles: A with 1, 2 and 3 on the left and B with p, q and r on the right. Step one: the arrows of f go from 1 to q, from 2 to r and from 3 to p, and the line below lists these values. Step two: the arrows are reversed and highlighted, running from q to 1, from r to 2 and from p to 3; every element of B has exactly one arrow leaving it, so the reversed picture is the function f inverse. Step three shows a different function h with h(1) = h(2) = p and h(3) = q, reversed: p now has two arrows leaving it, labelled two arrows, and r, drawn dashed, has none, labelled no arrow, so the reversed picture is not a function.

TheoremInvertible means bijective

A function f:X→Y is invertible if and only if it is one-one and onto.

This gives two practical routes. To show that f is invertible without finding f−1, prove that it is one-one and onto. To find f−1, solve y=f(x) for x: the expression you get is f−1(y), and you can confirm it by checking both compositions.

Example 17NCERT Example 17 · p. 12

Finding and checking an inverse

Let Y={8,11,14,17,… }={y∈𝐍:y=3x+5 for some x∈𝐍} and let f:𝐍→Y be f(x)=3x+5. Show that f is invertible and find f−1.

Try it yourself first. Then reveal the solution one step at a time.

Example

Restricting the domain

The rule x↦x2+4 is not invertible as a map from 𝐑 to 𝐑. Show that f:[0,∞)→[4,∞), f(x)=x2+4, is invertible and find f−1.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 4
For f(x)=2x−1 and g(x)=x2+3 on 𝐑, find (f∘g)(2).
Show answer

Answer 13

g acts first: g(2)=7, then f(7)=13. Doing f first would give (g∘f)(2)=g(3)=12, the other order.

Miscellaneous Examples

These examples mix the ideas of the chapter. Several are proofs about relations in general; others count relations or functions on small sets, where listing the cases carefully is the whole skill.

Example 18NCERT Example 18 · p. 13

Combining two equivalence relations

In 𝐙, let R1 be 'same parity' (2 divides a−b) and R2 be 'same remainder on division by 3' (3 divides a−b). (a) Show that if R1 and R2 are any two equivalence relations in a set A, then R1∩R2 is an equivalence relation. (b) Describe R1∩R2 for the two relations above. (c) Show that R1∪R2 is not an equivalence relation here.

Try it yourself first. Then reveal the solution one step at a time.

Example 19NCERT Example 19 · p. 13

Pairs with equal differences

In the set A=𝐍×𝐍 of ordered pairs of natural numbers, define (a,b)R(c,d) if and only if a+d=b+c. Show that R is an equivalence relation.

Try it yourself first. Then reveal the solution one step at a time.

Example 20NCERT Example 20 · p. 13

One relation, two descriptions

Let X={1,2,…,10}, R1={(x,y):4 divides x−y} and let xR2y mean that x and y both lie in the same one of the sets {1,5,9}, {2,6,10}, {3,7} and {4,8}. Show that R1=R2.

Try it yourself first. Then reveal the solution one step at a time.

Example 21NCERT Example 21 · p. 14

Same output, same class

In 𝐑, call two numbers related when they have the same square: a∼b if a2=b2. (a) Show that ∼ is an equivalence relation and find its classes. (b) Explain why 'have the same output under f' is an equivalence relation in X for every function f:X→Y, and what its classes tell you about f.

Try it yourself first. Then reveal the solution one step at a time.

Example 22NCERT Example 22 · p. 14

Counting one-one functions

How many one-one functions are there from A={1,2,3} to B={p,q,r,s,t}?

Try it yourself first. Then reveal the solution one step at a time.

Example 23NCERT Example 23 · p. 14

Counting relations with given properties

Let A={1,2,3}. How many relations in A contain (2,1) and (3,1) and are reflexive and transitive, but not symmetric?

Try it yourself first. Then reveal the solution one step at a time.

Counting equivalence relations is the same as counting the ways to sort the elements into groups, which is easy to picture (Fig. 1.11).

4/41+3+1=5 partitions, so 5 equivalence relations.

Fig. 1.11Each way of sorting {a,b,c} into classes is one equivalence relation.

Five panels each show the points a, b and c with shaded outlines around the classes. In the first step only the first panel is highlighted: one outline holds all three points, which gives the universal relation. In the second step the second panel is highlighted: each point has its own outline, three classes, which gives the identity relation. In the third step the last three panels are highlighted: in each, two points share an outline and the third stands alone, once for each choice of the lone point. In the last step all five panels are shown and the count 1 + 3 + 1 = 5 is written below.

Example 24NCERT Example 24 · p. 14

All equivalence relations on three elements

Find all the equivalence relations in A={a,b,c} and count them.

Try it yourself first. Then reveal the solution one step at a time.

Example 25NCERT Example 25 · p. 14

A sum of onto functions

Let f,g:𝐙→𝐙 be f(n)=n and g(n)=−n. Show that f and g are both onto, but f+g is not.

Try it yourself first. Then reveal the solution one step at a time.

Example 26NCERT Example 26 · p. 15

A sum of one-one functions

Prove that the maps x↦x3 and x↦−3x of 𝐑 are both one-one, and that their sum x↦x3−3x is not. Call the maps f and g.

Try it yourself first. Then reveal the solution one step at a time.

Quick check
1 of 2
How many functions are there from {1,2,3,4} to {0,1}?
functions
Show answer

Answer 16 functions

Each of the 4 inputs independently chooses one of 2 outputs: 24=16.
Recap

Relations and Functions: key points and summary

  1. A relation from A to B is any subset of A×B; a relation in A is a subset of A×A (Section 1.1).
  2. The empty relation ∅ and the universal relation A×A are the two trivial relations (Section 1.2).
  3. Reflexive: (a,a)∈R for every a. Symmetric: (a,b)∈R⇒(b,a)∈R. Transitive: (a,b),(b,c)∈R⇒(a,c)∈R (Reflexive, symmetric and transitive relations).
  4. An equivalence relation has all three properties; 'has the same ___ as' is the typical example (Example 21).
  5. The class [a] is the set of elements related to a. The classes partition the set, and every partition comes from an equivalence relation (Property).
  6. f:X→Y is one-one if f(x1)=f(x2)⇒x1=x2, onto if its range is Y, and bijective if it is both (Section 1.3).
  7. For f:𝐑→𝐑: one-one means no horizontal line meets the graph twice; onto means every horizontal line meets it (Fig. 1.8).
  8. For maps from a finite set to itself, one-one and onto are equivalent; for infinite sets they are not (Property).
  9. (g∘f)(x)=g(f(x)), so f acts first. Composition is associative, but in general g∘f≠f∘g (Section 1.4).
  10. f is invertible when some g has g∘f=IX and f∘g=IY; this happens exactly when f is bijective (Theorem).
  11. To find f−1, solve y=f(x) for x, then check both compositions (Example 17).
  12. There are nk functions from a k-element set to an n-element set, and n(n−1)⋯(n−k+1) of them are one-one (Example 22).
Timeline

How the idea of a function grew

  1. 1637

    Curves become equations

    René Descartes's La Géométrie describes curves by equations in two unknowns, so that one quantity depends on another.

  2. 1673

    Leibniz uses the word 'function'

    In his notes on curves, Gottfried Leibniz uses it for quantities such as the slope or the tangent at a point.

  3. 1718

    A function of a variable

    Johann Bernoulli calls a function a quantity built from a variable and constants, and writes it φx.

  4. 1734

    Euler writes f(x)

    Leonhard Euler introduces the notation f(x), and later makes functions the central objects of analysis.

  5. 1797

    Lagrange's analytic functions

    Joseph-Louis Lagrange builds calculus on functions in Théorie des fonctions analytiques and writes f′(x) for the derivative.

  6. 1837

    Dirichlet: any rule will do

    Peter Gustav Lejeune Dirichlet lets y depend on x by any rule at all, not necessarily a formula.

  7. Early 1900s

    Functions as sets of pairs

    With Georg Cantor's set theory in place, a function becomes a set of ordered pairs in which no first entry repeats: the definition used in this chapter.

Practice · 13 questions

Practice questions with answers (NCERT “Miscellaneous exercises”)

  1. ProofHardNCERT Miscellaneous Exercise, Q1

    Show that f:(−1,1)→𝐑, f(x)=x1−∣x∣, is a bijection.

    Show solution

    For 0≤x<1, f(x)=x1−x≥0; for −1<x<0, f(x)=x1+x<0. So f(x) has the same sign as x, and f(x)=0 only at x=0.

    One-one: if f(x1)=f(x2), then x1 and x2 lie on the same side of 0. If both are ≥0, x11−x1=x21−x2 gives x1−x1x2=x2−x1x2, so x1=x2. If both are negative, x11+x1=x21+x2 gives x1=x2 in the same way.

    Onto: for y≥0, take x=y1+y∈[0,1); then 1−x=11+y and f(x)=y. For y<0, take x=y1−y∈(−1,0); then 1+x=11−y and f(x)=y. In both cases x=y1+∣y∣, which is in fact the formula for f−1.

  2. ProofMediumNCERT Miscellaneous Exercise, Q2

    Show that f:𝐑→𝐑, f(x)=x3+x, is one-one.

    Show solution

    If x13+x1=x23+x2, then (x1−x2)(x12+x1x2+x22+1)=0.

    The second factor equals (x1+12x2)2+34x22+1≥1, so it is never zero. Hence x1−x2=0, and f is one-one.

  3. Short answerMediumNCERT Miscellaneous Exercise, Q3

    Let X be a non-empty finite set and P(X) the set of all its subsets. For A,B∈P(X), let ARB when A and B have the same number of elements.

    1. Is R an equivalence relation in P(X)? Justify your answer.

      Show solution

      AnswerYes.

      R is 'has the same size as', an equality of an attribute, so it is reflexive, symmetric and transitive.

    2. For X={1,2,3}, list the equivalence classes. How many are there?

      Show solution

      Answer4 classes.

      The classes are {∅}; the three one-element subsets; the three two-element subsets; and {X}. So there are 4 classes, with 1, 3, 3 and 1 members (8 subsets in all).

  4. NumericalMediumNCERT Miscellaneous Exercise, Q4

    Let S={1,2,3,4,5}.

    1. How many functions S→S are there?

      Show answer

      Answer 3125

      Each of 5 inputs has 5 choices: 55=3125.
    2. How many of them are one-one?

      Show answer

      Answer 120

      5×4×3×2×1=5!=120.
    3. How many of them are onto?

      Show answer

      Answer 120

      On a finite set, onto is the same as one-one, so again 5!=120.
    4. How many are neither one-one nor onto?

      Show answer

      Answer 3005

      The 120 one-one functions are exactly the onto ones, so 3125−120=3005 functions are neither.
  5. Short answerMediumNCERT Miscellaneous Exercise, Q5

    Let A={1,2,3}, B={1,8,27}, and let f,g:A→B be f(x)=x3 and g(x)=6x2−11x+6. Two functions with the same domain and codomain are equal when they agree at every point of the domain.

    1. Are f and g equal?

      Show solution

      AnswerYes.

      g(1)=6−11+6=1, g(2)=24−22+6=8 and g(3)=54−33+6=27, which match f(1)=1, f(2)=8 and f(3)=27. So f=g, even though the formulas look different.

    2. Would f and g still be equal on the domain {1,2,3,4} (with a large enough codomain)?

      Show solution

      AnswerNo.

      f(4)=64 but g(4)=96−44+6=58. Indeed f(x)−g(x)=(x−1)(x−2)(x−3), which vanishes only at 1, 2 and 3.

  6. Quick answerMediumNCERT Miscellaneous Exercise, Q6

    Let A={1,2,3}. How many relations in A contain (1,2) and are reflexive and symmetric, but not transitive?

    Show answer

    Answer 2

    The link {1,2} must be present, so there are 4 candidates: add nothing, add {1,3}, add {2,3}, or add both. Adding nothing gives an equivalence relation, and adding both gives the universal relation, both transitive. Adding exactly one link breaks transitivity (for example (3,1),(1,2) needs (3,2)), so the answer is 2.
  7. Quick answerMediumNCERT Miscellaneous Exercise, Q7

    How many equivalence relations in {1,2,3,4} contain the pair (1,2)?

    Show answer

    Answer 5

    The partitions with 1 and 2 together are {12}{3}{4}, {123}{4}, {124}{3}, {12}{34} and {1234}: 5 in all.
  8. Quick answerEasy

    How many relations in a set with 3 elements are reflexive?

    Show answer

    Answer 64

    Of the 9 pairs, the 3 loops must be in, and each of the other 6 can be in or out: 26=64.
  9. Quick answerMedium

    How many relations in {1,2,3} are both reflexive and symmetric?

    Show answer

    Answer 8

    The loops are forced, and each of the three two-way links {1,2}, {1,3}, {2,3} is in or out: 23=8.
  10. Quick answerMedium

    If f:A→B and g:B→C are both one-one, then g∘f is

    Show answer

    Answer (A) always one-one

    g(f(x1))=g(f(x2)) gives f(x1)=f(x2) because g is one-one, and then x1=x2 because f is one-one.
  11. Quick answerMedium

    Match each function with its type.

    Tap an item on the left, then its match on the right.

    Show answer
    Answer
    • x↦x3 on 𝐑 : bijective
    • x↦x+3 on 𝐍 : one-one, not onto
    • x↦∣x∣ on 𝐑 : neither
    • number of digits, 𝐍→𝐍 : onto, not one-one
    x3 has the inverse y3; x+3 misses 1, 2, 3; ∣x∣ has ∣−1∣=∣1∣ and misses −1; the digit count is onto with f(1)=f(2).
  12. Quick answerEasy

    A function f:X→Y is invertible if and only if it is and .

    Show answer

    Answer (1) one-one, (2) onto

    Invertible means bijective: one-one and onto (Theorem).
  13. Quick answerEasy

    Put the steps for finding the inverse of a bijection f in order.

    1. Check f−1(f(x))=x and f(f−1(y))=y
    2. Call the result f−1(y)
    3. Solve for x in terms of y
    4. Write y=f(x)
    Show answer
    Answer
    1. Write y=f(x)
    2. Solve for x in terms of y
    3. Call the result f−1(y)
    4. Check f−1(f(x))=x and f(f−1(y))=y
    Solving y=f(x) for x gives the inverse formula, and the two compositions confirm it.

Find your NCERT exercise question

Our practice questions are written for ncert.ai and follow the NCERT exercises. Find the one that matches the question in your textbook; its answer is with it.

In your NCERT textbookPractice question here
NCERT Exercise 1.1, Q1Practice 1.1 · Q1
NCERT Exercise 1.1, Q2Practice 1.1 · Q2
NCERT Exercise 1.1, Q3Practice 1.1 · Q3
NCERT Exercise 1.1, Q4Practice 1.1 · Q4
NCERT Exercise 1.1, Q5Practice 1.1 · Q5
NCERT Exercise 1.1, Q6Practice 1.1 · Q6
NCERT Exercise 1.1, Q7Practice 1.1 · Q7
NCERT Exercise 1.1, Q8Practice 1.1 · Q8
NCERT Exercise 1.1, Q9Practice 1.1 · Q9
NCERT Exercise 1.1, Q10Practice 1.1 · Q10
NCERT Exercise 1.1, Q11Practice 1.1 · Q11
NCERT Exercise 1.1, Q12Practice 1.1 · Q12
NCERT Exercise 1.1, Q13Practice 1.1 · Q13
NCERT Exercise 1.1, Q14Practice 1.1 · Q14
NCERT Exercise 1.1, Q15Practice 1.1 · Q15
NCERT Exercise 1.1, Q16Practice 1.1 · Q16
NCERT Exercise 1.2, Q1Practice 1.2 · Q1
NCERT Exercise 1.2, Q2Practice 1.2 · Q2
NCERT Exercise 1.2, Q3Practice 1.2 · Q3
NCERT Exercise 1.2, Q4Practice 1.2 · Q4
NCERT Exercise 1.2, Q5Practice 1.2 · Q5
NCERT Exercise 1.2, Q6Practice 1.2 · Q6
NCERT Exercise 1.2, Q7Practice 1.2 · Q7
NCERT Exercise 1.2, Q8Practice 1.2 · Q8
NCERT Exercise 1.2, Q9Practice 1.2 · Q9
NCERT Exercise 1.2, Q10Practice 1.2 · Q10
NCERT Exercise 1.2, Q11Practice 1.2 · Q11
NCERT Exercise 1.2, Q12Practice 1.2 · Q12
NCERT Miscellaneous Exercise, Q1Miscellaneous exercises · Q1
NCERT Miscellaneous Exercise, Q2Miscellaneous exercises · Q2
NCERT Miscellaneous Exercise, Q3Miscellaneous exercises · Q3
NCERT Miscellaneous Exercise, Q4Miscellaneous exercises · Q4
NCERT Miscellaneous Exercise, Q5Miscellaneous exercises · Q5
NCERT Miscellaneous Exercise, Q6Miscellaneous exercises · Q6
NCERT Miscellaneous Exercise, Q7Miscellaneous exercises · Q7

Quick check: MCQs on Relations and Functions

  1. 1.1 Introduction3 questions
  2. Equivalence classes4 questions
  3. 1.3 Types of Functions4 questions
  4. Invertible functions4 questions
  5. Miscellaneous Examples2 questions
Glossary · 15

Key terms (English–Hindi)

bijective functionएकैकी आच्छादक फलनekaiki aachchhaadak phalan
A function that is both one-one and onto.
compositionफलनों का संयोजनphalanon ka sanyojan
For f:A→B and g:B→C, the function g∘f:A→C, (g∘f)(x)=g(f(x)).First seen in the chapter →
empty relationरिक्त संबंधrikt sambandh
The relation ∅, in which no element is related to any element.
equivalence classतुल्यता वर्गtulyata varg
For an equivalence relation, the set [a] of all elements related to a.
equivalence relationतुल्यता संबंधtulyata sambandh
A relation that is reflexive, symmetric and transitive.
functionफलनphalan
A relation from X to Y that relates each element of X to exactly one element of Y.
identity functionतत्समक फलनtatsamak phalan
The function IX:X→X with IX(x)=x for every x.First seen in the chapter →
invertible functionव्युत्क्रमणीय फलनvyutkramaniya phalan
A function f:X→Y with a function f−1:Y→X such that f−1∘f=IX and f∘f−1=IY.
one-one functionएकैकी फलनekaiki phalan
A function with f(x1)=f(x2)⇒x1=x2: different inputs give different outputs.
onto functionआच्छादक फलनaachchhaadak phalan
A function whose range equals its codomain: every element of the codomain is an image.
reflexive relationस्वतुल्य संबंधsvatulya sambandh
A relation with (a,a)∈R for every a in the set.
relationसंबंधsambandh
A subset of A×B; a relation in A is a subset of A×A.First seen in the chapter →
symmetric relationसममित संबंधsammit sambandh
A relation in which (a,b)∈R always implies (b,a)∈R.
transitive relationसंक्रामक संबंधsankraamak sambandh
A relation in which (a,b)∈R and (b,c)∈R always imply (a,c)∈R.
universal relationसार्वत्रिक संबंधsaarvatrik sambandh
The relation A×A, in which every element is related to every element.

You reached the end