Mathematics · NCERT Class 12 Mathematics Part I, Chapter 1Free · full access
Relations and Functions
CUET (UG) Mathematics 319, Section B1 · 63 min read · 23 worked examples · 12 practice questions
1.1 Introduction
The symbols of this chapter
Every symbol below comes up again and again. Read the table once, then come back to it whenever a line looks strange.
Symbol
Read it as
Example
a∈A
a belongs to A
2∈{2,3}
a∈/A
a does not belong to A
5∈/{2,3}
n(A)
the number of elements of A
n({2,3})=2
(a,b)
an ordered pair: a first, b second
(2,4)=(4,2)
ϕ
the empty set, with no element
{x∈N:x<1}=ϕ
N, Z, R
natural numbers, integers, real numbers
N={1,2,3,…}
⇒
"implies": if the left is true, so is the right
x=3⇒x2=9
⇔
"if and only if": each side gives the other
2x=6⇔x=3
{x:…}
the set of all x such that ...
{x∈N:x<4}={1,2,3}
∣x∣
the modulus of x: its distance from 0, never negative
∣−3∣=∣3∣=3; ∣x∣=2⇒x=±2
The Cartesian product A×B
A×B, read "A cross B", is the Cartesian product: every ordered pair whose first entry is from A and second entry is from B.
The colon ":" reads "such that".
When to use it: every relation is cut out of A×B. On small sets, list A×B first.
Tiny use: A={1,2}, B={p,q,r} give A×B={(1,p),(1,q),(1,r),(2,p),(2,q),(2,r)}, which is 2×3=6 pairs.
The common slip: putting (p,1) in A×B. The first entry must come from A.
A relation
⊆ reads "is a subset of": every pair in R is also a pair of A×B.
aRb reads "a is related to b". (a,b)∈/R means a is not related to b.
When to use it: a rule such as "a divides b" picks the pairs. Go through A×B and keep the pairs that obey the rule.
The common slip: thinking a relation needs a pattern. Any set of pairs from A×B is a relation, even {(3,4)} alone.
Take A={2,3} and B={4,6,8,9}. A×B has 2×4=8 pairs. Keep the pairs where a divides b, that is, where b=a× (a whole number):
Figure 1.1 A × B for A = {2, 3} and B = {4, 6, 8, 9}: all eight ordered pairs. The ringed pairs, where a divides b, form the relation R
Pair
Is b a multiple of a?
In R?
(2,4)
4=2×2
yes
(2,6)
6=2×3
yes
(2,8)
8=2×4
yes
(2,9)
9=2×4.5, not whole
no
(3,4)
4=3×1.33…, not whole
no
(3,6)
6=3×2
yes
(3,8)
8=3×2.66…, not whole
no
(3,9)
9=3×3
yes
R={(2,4),(2,6),(2,8),(3,6),(3,9)}
That is a relation from A to B. We write 2R8 because (2,8)∈R. And (3,4)∈/R.
The domain of a relation is the set of its first entries. For this R: {2,3}.
Its range is the set of its second entries. For this R: {4,6,8,9}.
For a relation from A to B, B is the codomain. The range is only the second entries actually used; here it happens to be all of B.
How many relations?
m and n are the numbers of elements of A and of B; mn is the number of pairs in A×B. The letter n does two jobs here: n(B) means "the number of elements of B", and n is that number.
Why 2mn: a relation is made by deciding, for each pair, "in" or "out". That is 2 choices, mn times.
When to use it: "how many relations from A to B", in an MCQ or the first part of a case study.
Tiny use: A={1,2}, B={p}. A×B={(1,p),(2,p)}, so there are 22=4 relations: ϕ, {(1,p)}, {(2,p)} and {(1,p),(2,p)}.
The common slip: answering mn. That counts the pairs, not the relations.
For A={2,3} and B={4,6,8,9}: mn=2×4=8 pairs, so 28=256 relations, from the empty set ϕ up to the whole of A×B.
Figure 1.2 A relation is any set of arrows from A to B. In a function every element of A sends exactly one arrow: here 2 sends three, so 'divides' is not a function
A function is a special relation
f:A→B reads "f from A to B". We write y=f(x): x is the input, y its output.
f(a) is the image of a, and a is a preimage of f(a).
The domain is A, the set f starts from. The codomain is B, where the images must lie.
The range is the set of images actually used, {f(a):a∈A}. It always sits inside the codomain.
When to use it: to test a listed relation, take the elements of A one by one and count the pairs that start with each.
The common slip: rejecting a function because two inputs share an image. That is allowed; one input with two images is not.
Example 1Basic
A={2,3}, B={4,6,8,9}. Is R={(2,4),(2,6),(2,8),(3,6),(3,9)} a function from A to B? Is f={(2,4),(3,9)}? For the function, write its domain, codomain and range.
See the solution
Step 1: In R, the pairs that start with 2 are (2,4),(2,6),(2,8): three images
a function gives exactly one image
Step 2: So R is not a function
one input with two or more images is enough
Step 3: In f, 2 has one pair, (2,4); so f(2)=4
exactly one image of 2
Step 4: 3 has one pair, (3,9); so f(3)=9
exactly one image of 3
Step 5: Every element of A has exactly one image, so f is a function; in fact f(x)=x2
the meaning of a function
Step 6: Domain {2,3}, codomain {4,6,8,9}, range {f(2),f(3)}={4,9}
range = images actually used
Answer:R is not a function; f is, with range {4,9}
Word
Meaning
For this f
Domain
the set f starts from
{2,3}
Codomain
the set the images must lie in
{4,6,8,9}
Range
the images actually used
{4,9}
In this chapter you will:
test a relation: reflexive, symmetric, transitive, equivalence
find an equivalence class
decide if a function is one-one, onto or bijective, and prove it
count relations and functions on small sets
read compositiong∘f and the inversef−1
Try it
Is {(1,p),(2,q),(3,p)} a function from {1,2,3} to {p,q,r}? What is its range?
Try it
How many relations are there in a set with 2 elements?