MCQIndia.comCBSE
CBSE
Class 12 · Mathematics · Part 1

Chapter 1: Relations and Functions

Revision notes, worked problems, a question bank, assertion and reason questions and answers to the NCERT exercises. Tap a group to open it; opening one closes the others.

1.1Relations and the idea of relatingSubsets of A × A, a R b

What a relation is

A relation R from a set A to a set B is any subset of A × B. If (a, b) ∈ R we say a is related to b and write a R b. A relation in a set A is a subset of A × A.

The connection need not be a rule you can put into words: any collection of pairs is a relation.

The two extreme relations

  • Empty relation: R = ∅, so no element is related to any element. In a boys' school, 'a is sister of b' is empty.
  • Universal relation: R = A × A, so every element is related to every element. 'The heights of a and b differ by less than 3 metres' is universal for the students of a school.
  • Both are called trivial relations.
1.2Types of relationsReflexive, symmetric, transitive, equivalence

The three properties

PropertyMeaningTo prove itTo disprove it
Reflexive(a, a) ∈ R for every a ∈ ATake any a and show a R aFind one a with (a, a) ∉ R
Symmetric(a, b) ∈ R ⇒ (b, a) ∈ RAssume a R b and show b R aFind one pair with (a, b) ∈ R, (b, a) ∉ R
Transitive(a, b), (b, c) ∈ R ⇒ (a, c) ∈ RAssume a R b, b R c and show a R cFind a, b, c with (a, b), (b, c) ∈ R, (a, c) ∉ R

Equivalence relation

A relation that is reflexive, symmetric and transitive is an equivalence relation.

  • 'T₁ is congruent to T₂' on the set of triangles is an equivalence relation.
  • '2 divides a − b' on Z is an equivalence relation: a − a = 0; a − b even gives b − a even; (a − b) + (b − c) = a − c is even.
  • 'L₁ is perpendicular to L₂' on lines is symmetric but neither reflexive nor transitive (L₁ ⊥ L₂ ⊥ L₃ gives L₁ ∥ L₃).
  • R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)} in {1, 2, 3} is reflexive but neither symmetric nor transitive.

A tip for checking transitivity

List the pairs of the form (a, b) and (b, c). If there is no such pair, the relation is transitive vacuously. For example R = {(1, 2)} is transitive.

1.2Equivalence classesPartitions of a set

Equivalence class

For an equivalence relation R on X, the equivalence class of a ∈ X is [a] = {b ∈ X : b R a}, the set of all elements related to a.

Example: even and odd integers

In Z with 'a − b is even': [0] = E, the set of all even integers, and [1] = O, the set of all odd integers.

  • All elements of E are related to each other, and all elements of O are related to each other.
  • No element of E is related to an element of O.
  • E and O are disjoint and Z = E ∪ O.

Partition

An equivalence relation cuts X into mutually disjoint subsets A₁, A₂, … whose union is X, where all elements of one class are related and elements of different classes are not. And conversely, every such partition defines an equivalence relation.

[0]multiples of 3…, −6, −3, 0, 3, 6, …[1]1 more than a multiple of 3…, −5, −2, 1, 4, 7, …[2]2 more than a multiple of 3…, −4, −1, 2, 5, 8, …Every integer lies in exactly one box: Z = [0] ∪ [1] ∪ [2], and the boxes do not overlap.
The relation 'a − b is divisible by 3' on Z cuts Z into three equivalence classes.
1.3Types of functionsOne-one, onto, bijective

One-one (injective)

f : X → Y is one-one if distinct elements of X have distinct images:

f(x₁) = f(x₂) ⇒ x₁ = x₂, for all x₁, x₂ ∈ X

Otherwise f is many-one.

Onto (surjective)

f : X → Y is onto if every element of Y is the image of some element of X: for every y ∈ Y there is an x ∈ X with f(x) = y.

f is onto if and only if the range of f = Y.

Bijective

f is bijective (one-one and onto) if it is both. A bijective function pairs every element of X with exactly one element of Y.

XY123pqrsf₁one-one, not ontoXY1234pqrf₂onto, not one-oneXY123pqrf₃one-one and onto
Left: distinct inputs, but r (in grey) is missed. Middle: every element of Y is hit, but 1 and 2 share p. Right: a perfect pairing.

How to check

  • One-one: assume f(x₁) = f(x₂) and simplify to x₁ = x₂. To disprove, show two different inputs with one output.
  • Onto: take any y in the co-domain, solve y = f(x) for x, and check that this x is in the domain. To disprove, find one y with no solution.
  • The domain and co-domain matter: f(x) = x² is not onto R, but it is onto [0, ∞).

Standard examples

FunctionOne-one?Onto?Why
f : R → R, f(x) = 2xyesyesx = y/2
f : N → N, f(x) = 2xyesno1 is not 2x for any x ∈ N
f : R → R, f(x) = x²nonof(−1) = f(1); −2 is not a square
f : R → R, f(x) = |x|nonof(−1) = f(1); negatives are missed
f : R → R, f(x) = [x]nonof(1.2) = f(1.5); 1/2 is missed
f : R → R, signumnonoonly the values −1, 0, 1
f : R• → R•, f(x) = 1/xyesyesx = 1/y (R• = non-zero reals)

Graphs

A horizontal line y = c meets the graph of a one-one function at most once, and meets the graph of an onto function at least once for every c in the co-domain.

xy−22−4−224O(1.5, 3)xy−222468O(−2, 4)(2, 4)y = 2x: a horizontal line meets it oncey = x²: a horizontal line meets it twiceone-one and ontoneither one-one nor onto
Horizontal-line test: if some horizontal line meets the graph twice, the function is not one-one. If some horizontal line in the co-domain misses the graph, it is not onto.

Finite sets

For a finite set X, a function f : X → X is one-one if and only if it is onto. So an onto f : {1, 2, 3} → {1, 2, 3} is always one-one, and a one-one one is always onto.

This fails for infinite sets: f(x) = 2x on N is one-one but not onto, and f(1) = f(2) = 1, f(x) = x − 1 for x > 2 on N is onto but not one-one. That is a characteristic difference between finite and infinite sets.

1.4Composition of functionsgof and why order matters

Definition

For f : A → B and g : B → C, the composition gof : A → C is

(gof)(x) = g(f(x)), for all x ∈ A
ABCxf(x)g(f(x))fggof
gof does f first and g second, so (gof)(x) = g(f(x)). It goes straight from A to C.

Worked example

f : {2, 3, 4, 5} → {3, 4, 5, 9}, f(2) = 3, f(3) = 4, f(4) = f(5) = 5 and g : {3, 4, 5, 9} → {7, 11, 15}, g(3) = g(4) = 7, g(5) = g(9) = 11. Then

  • gof(2) = g(3) = 7
  • gof(3) = g(4) = 7
  • gof(4) = g(5) = 11
  • gof(5) = g(5) = 11

Order matters

In general gof ≠ fog. For f(x) = cos x and g(x) = 3x²:

gof(x) = 3 cos² xfog(x) = cos 3x²

At x = 0 the first is 3 and the second is 1, so gof ≠ fog. Also, fog may not even be defined when gof is.

1.4Invertible functionsInverse of a bijection

Definition

f : X → Y is invertible if there is g : Y → X with gof = I_X and fog = I_Y, where I is the identity function. Then g is the inverse of f, written f⁻¹.

The key fact

f is invertible if and only if f is one-one and onto. So to prove a function is invertible, prove it is one-one and onto; you need not find the inverse.

Finding the inverse

  • Write y = f(x).
  • Solve for x in terms of y.
  • The inverse is f⁻¹(y) = that expression. Check that it lies in the domain.

Example: f(x) = 4x + 3 on N, with Y = {y : y = 4x + 3 for some x ∈ N}. Then x = (y − 3)/4, so g(y) = (y − 3)/4. Then gof(x) = (4x + 3 − 3)/4 = x and fog(y) = 4(y − 3)/4 + 3 = y.

RefMiscellaneous results and quick referenceResults from the examples, and common slips

Results to remember

  • If R₁ and R₂ are equivalence relations in A, then R₁ ∩ R₂ is an equivalence relation (Example 18).
  • f(a) = f(b) defines an equivalence relation on the domain of any function f (Example 21).
  • The number of one-one functions from {1, 2, 3} to itself is 3! = 6, and in general n! for an n-element set (Example 22).
  • In {1, 2, 3}: three relations containing (1, 2), (2, 3) are reflexive and transitive but not symmetric; two equivalence relations contain (1, 2) (Examples 23 and 24).
  • f and g one-one need not give f + g one-one: sin and cos on [0, π/2] (Example 26).

Quick reference

PropertyCondition
Empty relationR = ∅
Universal relationR = A × A
Reflexive(a, a) ∈ R for all a
Symmetric(a, b) ∈ R ⇒ (b, a) ∈ R
Transitive(a, b), (b, c) ∈ R ⇒ (a, c) ∈ R
One-onef(x₁) = f(x₂) ⇒ x₁ = x₂
Ontorange = co-domain
Invertibleone-one and onto
Composition(gof)(x) = g(f(x))

Common slips

  • Checking only some pairs: a relation is symmetric or transitive only if the condition holds for every pair.
  • Forgetting the co-domain when testing onto: f(x) = x² is onto [0, ∞), not R.
  • Reading gof as 'g first': the function written on the right acts first.
  • Calling 1/x invertible on all of R: 0 is not in the domain, so use R•.
  • Believing 'one-one implies onto' for infinite sets: it is true only for finite sets.