Admission Open New Batches for Classes 9–12, IIT & NEET
CLASS XI MATHEMATICS CHAPTER 2

Relations & Functions

Complete CBSE-pattern chapter notes covering Cartesian products, relations, functions, domain and range, types of functions, algebra of functions, composition of functions and graphical interpretation.

CBSE Pattern Complete Notes Visual Learning Formula Focus Solved Examples
Relations and Functions Mapping Diagram Relations → Functions Set A Set B 1 2 3 a b c f : A → B
01 • Introduction

Understanding Relations and Functions

Relations and functions provide a mathematical way of describing how elements of one set are associated with elements of another set. A function is a special type of relation in which every input has exactly one output.

R

Relation

A relation from set A to set B is a subset of the Cartesian product A × B.

R ⊆ A × B
f

Function

A function f from A to B associates every element of A with exactly one element of B.

f : A → B

Relation vs Function

A function gives exactly one output for every input.

Mapping diagram showing a function Domain A 1 2 3 Codomain B 2 4 6 f : A → B one output per input
02 • Cartesian Product

Cartesian Product of Sets

The Cartesian product of two sets A and B is the set of all ordered pairs (a,b), where a ∈ A and b ∈ B.

A × B = { (a,b) : a ∈ A and b ∈ B }

If n(A) = m and n(B) = n, then n(A × B) = mn.

Example of Cartesian Product

Let A = {1, 2} and B = {x, y, z}.

Cartesian product ordered pairs A 1 2 B x y z A × B 6 ordered pairs
1

Ordered Pair

(a,b) and (b,a) are generally different.

mn

Number of Pairs

n(A × B) = n(A)n(B).

∅

Empty Set

If A or B is empty, A × B is empty.

03 • Relations

Relations

A relation from A to B is any subset of A × B. If R is a relation from A to B, we write R ⊆ A × B.

Definition

R ⊆ A × B

Every ordered pair in R belongs to A × B.

Domain and Range of Relation

  • Domain: Set of first components.
  • Range: Set of second components.

Relation Example

R = {(1,a), (1,b), (2,b), (3,c)}

Relation mapping diagram A B 1 2 3 a b c Multiple arrows may originate from one element
04 • Functions

Functions

A function is a relation in which every element of the domain is associated with exactly one element of the codomain.

f : A → B

For every x ∈ A, there exists exactly one y ∈ B such that y = f(x).

Function as a Machine

An input enters the function machine and produces exactly one output.

Function machine diagram Input x Domain f Function Machine one input → one output Output y y = f(x)

Valid Function

Every domain element has exactly one image.

Not a Function

If one domain element maps to two different outputs, the relation is not a function.

05 • Domain & Range

Domain, Codomain and Range

D

Domain

Set of all possible input values.

C

Codomain

Set into which the function maps the domain.

R

Range

Set of actual output values.

INPUT
x ∈ A
FUNCTION
y = f(x)
OUTPUT
y ∈ B

Common Domain Restrictions

Function Restriction Domain
1/x Denominator ≠ 0 R − {0}
√x x ≥ 0 [0, ∞)
1/√x x > 0 (0, ∞)
06 • Types of Functions

Types of Functions

1–1

One-One Function

Different elements of the domain have different images.

f(a) = f(b) ⇒ a = b
M–1

Many-One Function

Two or more elements of the domain may have the same image.

ON

Onto Function

Every element of the codomain has at least one pre-image.

Range = Codomain
IN

Into Function

At least one element of the codomain is not an image of any domain element.

Function Classification Map

Classification of functions Functions f : A → B One-One Unique images Many-One Common images allowed Into / Onto based on range
07 • Algebra of Functions

Algebra of Functions

If f and g are functions with suitable domains, new functions can be formed using addition, subtraction, multiplication and division.

(f + g)(x) = f(x) + g(x)
(f − g)(x) = f(x) − g(x)
(fg)(x) = f(x)g(x)
(f/g)(x) = f(x)/g(x), g(x) ≠ 0

Example

f(x) = 2x + 3

g(x) = x − 1

(f + g)(x) = 3x + 2

(f − g)(x) = x + 4

(fg)(x) = (2x + 3)(x − 1)

08 • Composition

Composition of Functions

The composition of two functions combines them so that the output of one function becomes the input of another.

FIRST
x → g(x)
→
THEN
g(x) → f(g(x))
Composition
(f ∘ g)(x) = f(g(x))

Composition Flow

Composition of functions flow x input g g(x) f f(g(x))

Important

In general, f ∘ g ≠ g ∘ f . Composition of functions is generally not commutative.

09 • Graphical View

Graphs of Functions

A graph gives a visual representation of the ordered pairs (x, f(x)). The vertical line test is a useful way of checking whether a graph represents a function.

Graph of y = x²

Graph of y equals x squared (0,0) x y y = x²

Vertical Line Test: If every vertical line intersects the graph at most once, the graph represents a function.

10 • Solved Examples

Solved Examples

1

Find A × B

If A = {1,2} and B = {a,b,c}, find A × B.

A × B = {(1,a),(1,b),(1,c),(2,a),(2,b),(2,c)}
2

Find the number of elements

If n(A)=4 and n(B)=5, find n(A×B).

n(A × B) = n(A)n(B) = 4 × 5 = 20
3

Determine whether a relation is a function

R = {(1,a),(2,b),(3,c)}.

R is a function.

Each element of the domain {1,2,3} has exactly one image.

4

Find the domain and range

R = {(1,2),(2,4),(3,4),(4,8)}.

Domain = {1,2,3,4}

Range = {2,4,8}
5

Evaluate a function

If f(x)=2x+5, find f(3).

f(3) = 2(3)+5 = 11
6

Find domain of a rational function

Find the domain of f(x)=1/(x−3).

x − 3 ≠ 0
x ≠ 3

Domain = R − {3}
7

Determine whether f is one-one

f:R→R is defined by f(x)=3x+2.

f(a)=f(b)
3a+2=3b+2
a=b

Therefore f is one-one.

8

Find a composite function

If f(x)=2x+1 and g(x)=x², find (f∘g)(x).

(f ∘ g)(x) = f(g(x))

= f(x²)

= 2x² + 1
9

Find the range of f(x)=x²

Consider f:R→R defined by f(x)=x².

Since x² ≥ 0 for every x ∈ R,

Range = [0,∞)
10

Algebra of functions

If f(x)=x+2 and g(x)=2x−1, find (f+g)(x).

(f+g)(x) = (x+2)+(2x−1)

= 3x+1
11

Check whether f is onto

Let f:R→R be f(x)=x+5.

For any y ∈ R,
y=x+5
x=y−5

Thus every y ∈ R has a pre-image. Hence f is onto.

12

Determine whether a relation is a function

R = {(1,2),(1,3),(2,4)}.

The element 1 has two images: 2 and 3.

Therefore R is not a function.

11 • Practice

Practice Questions

Attempt these questions independently before opening the answer section.

1. If A={1,2,3} and B={a,b}, find A×B.
{(1,a),(1,b),(2,a),(2,b),(3,a),(3,b)}
2. If n(A)=5 and n(B)=4, find n(A×B).
20
3. Find the domain and range of R={(1,3),(2,4),(3,4),(4,5)}.
Domain = {1,2,3,4}
Range = {3,4,5}
4. Determine whether R={(1,2),(2,3),(3,4)} is a function.
Yes. Every domain element has exactly one image.
5. Determine whether R={(1,2),(1,3),(2,4)} is a function.
No. The element 1 has two images.
6. Find f(4), if f(x)=3x−2.
f(4)=3(4)−2=10
7. Find the domain of f(x)=1/(x+2).
R − {−2}
8. Find the range of f(x)=x², x∈R.
[0,∞)
9. If f(x)=2x+1 and g(x)=x−3, find (f+g)(x).
3x−2
10. If f(x)=x² and g(x)=x+1, find (f∘g)(x).
(x+1)²
11. Is f:R→R, f(x)=2x+7 one-one?
Yes. It is one-one.
12. Is f:R→R, f(x)=x² onto?
No. Negative real numbers are not in the range.
13. Find (g∘f)(x), if f(x)=x+2 and g(x)=3x.
3(x+2)=3x+6
14. State the condition for f to be one-one.
f(a)=f(b) ⇒ a=b
15. What is the relation between range and codomain for an onto function?
Range = Codomain
12 • HOT Questions

Higher Order Thinking Questions

HOT 01

Can a one-one function be many-one?

Explain using the definitions of one-one and many-one functions.

View Answer

No. A one-one function requires distinct domain elements to have distinct images, while a many-one function allows different domain elements to share an image.

HOT 02

Is every onto function one-one?

View Answer

No. An onto function only requires every codomain element to be reached. Multiple domain elements may still map to the same codomain element.

HOT 03

Determine the range of f(x)=x²+1.

View Answer

Since x² ≥ 0,
x²+1 ≥ 1.

Range = [1,∞)

HOT 04

If f and g are one-one, is f∘g one-one?

View Answer

Yes, provided the composition is defined. If f(g(a)) = f(g(b)), one-one nature of f gives g(a)=g(b), and one-one nature of g gives a=b.

HOT 05

Find the domain of f(x)=√(5−x).

View Answer

5−x ≥ 0
x ≤ 5

Domain = (−∞,5]

HOT 06

Is f(x)=x³ one-one on R?

View Answer

Yes. The function x³ is strictly increasing on R, so different inputs produce different outputs.

13 • Quick Revision

Quick Revision Sheet

Concept Key Formula / Idea
Cartesian Product A×B={(a,b):a∈A,b∈B}
Number of Ordered Pairs n(A×B)=n(A)n(B)
Relation R⊆A×B
Function f:A→B
One-One f(a)=f(b)⇒a=b
Onto Range=Codomain
Addition (f+g)(x)=f(x)+g(x)
Multiplication (fg)(x)=f(x)g(x)
Composition (f∘g)(x)=f(g(x))
Function Graph Vertical line test

Formula Memory Map

PRODUCT
n(A×B)=mn
FUNCTION
f:A→B
COMPOSITION
f(g(x))
ONTO
Range=Codomain
14 • Exam Tips

Exam Tips for Relations & Functions

1

Remember the Definition

A function must assign exactly one output to every domain element.

2

Domain Comes First

Check denominators, square roots and other restrictions before finding the range.

3

Do Not Confuse Range & Codomain

The range contains actual outputs, while the codomain is the target set.

4

Composition Order Matters

In f∘g, apply g first and then f.

5

For One-One Proofs

Start with f(a)=f(b) and prove a=b.

6

Use the Vertical Line Test

A vertical line should intersect a function graph at most once.

TES • Class XI Mathematics

Strengthen Your Mathematics Concepts

Build strong foundations with structured lessons, chapter notes, practice questions, doubt support and regular revision.

Enroll Now