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.
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.
Relation
A relation from set A to set B is a subset of the Cartesian product A × B.
Function
A function f from A to B associates every element of A with exactly one element of B.
Relation vs Function
A function gives exactly one output for every input.
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.
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}.
Ordered Pair
(a,b) and (b,a) are generally different.
Number of Pairs
n(A × B) = n(A)n(B).
Empty Set
If A or B is empty, A × B is empty.
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
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)}
Functions
A function is a relation in which every element of the domain is associated with exactly one element of the codomain.
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.
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.
Domain, Codomain and Range
Domain
Set of all possible input values.
Codomain
Set into which the function maps the domain.
Range
Set of actual output values.
Common Domain Restrictions
| Function | Restriction | Domain |
|---|---|---|
| 1/x | Denominator ≠ 0 | R − {0} |
| √x | x ≥ 0 | [0, ∞) |
| 1/√x | x > 0 | (0, ∞) |
Types of Functions
One-One Function
Different elements of the domain have different images.
Many-One Function
Two or more elements of the domain may have the same image.
Onto Function
Every element of the codomain has at least one pre-image.
Into Function
At least one element of the codomain is not an image of any domain element.
Function Classification Map
Algebra of Functions
If f and g are functions with suitable domains, new functions can be formed using addition, subtraction, multiplication and division.
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)
Composition of Functions
The composition of two functions combines them so that the output of one function becomes the input of another.
Composition Flow
Important
In general, f ∘ g ≠ g ∘ f . Composition of functions is generally not commutative.
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²
Vertical Line Test: If every vertical line intersects the graph at most once, the graph represents a function.
Solved Examples
Find A × B
If A = {1,2} and B = {a,b,c}, find A × B.
Find the number of elements
If n(A)=4 and n(B)=5, find n(A×B).
Determine whether a relation is a function
R = {(1,a),(2,b),(3,c)}.
Each element of the domain {1,2,3} has exactly one image.
Find the domain and range
R = {(1,2),(2,4),(3,4),(4,8)}.
Range = {2,4,8}
Evaluate a function
If f(x)=2x+5, find f(3).
Find domain of a rational function
Find the domain of f(x)=1/(x−3).
x ≠ 3
Domain = R − {3}
Determine whether f is one-one
f:R→R is defined by f(x)=3x+2.
Therefore f is one-one.
Find a composite function
If f(x)=2x+1 and g(x)=x², find (f∘g)(x).
= f(x²)
= 2x² + 1
Find the range of f(x)=x²
Consider f:R→R defined by f(x)=x².
Range = [0,∞)
Algebra of functions
If f(x)=x+2 and g(x)=2x−1, find (f+g)(x).
= 3x+1
Check whether f is onto
Let f:R→R be f(x)=x+5.
Thus every y ∈ R has a pre-image. Hence f is onto.
Determine whether a relation is a function
R = {(1,2),(1,3),(2,4)}.
Therefore R is not a function.
Practice Questions
Attempt these questions independently before opening the answer section.
1. If A={1,2,3} and B={a,b}, find A×B.
2. If n(A)=5 and n(B)=4, find n(A×B).
3. Find the domain and range of R={(1,3),(2,4),(3,4),(4,5)}.
Range = {3,4,5}
4. Determine whether R={(1,2),(2,3),(3,4)} is a function.
5. Determine whether R={(1,2),(1,3),(2,4)} is a function.
6. Find f(4), if f(x)=3x−2.
7. Find the domain of f(x)=1/(x+2).
8. Find the range of f(x)=x², x∈R.
9. If f(x)=2x+1 and g(x)=x−3, find (f+g)(x).
10. If f(x)=x² and g(x)=x+1, find (f∘g)(x).
11. Is f:R→R, f(x)=2x+7 one-one?
12. Is f:R→R, f(x)=x² onto?
13. Find (g∘f)(x), if f(x)=x+2 and g(x)=3x.
14. State the condition for f to be one-one.
15. What is the relation between range and codomain for an onto function?
Higher Order Thinking Questions
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.
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.
Determine the range of f(x)=x²+1.
View Answer
Since x² ≥ 0,
x²+1 ≥ 1.
Range = [1,∞)
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.
Find the domain of f(x)=√(5−x).
View Answer
5−x ≥ 0
x ≤ 5
Domain = (−∞,5]
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.
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
Exam Tips for Relations & Functions
Remember the Definition
A function must assign exactly one output to every domain element.
Domain Comes First
Check denominators, square roots and other restrictions before finding the range.
Do Not Confuse Range & Codomain
The range contains actual outputs, while the codomain is the target set.
Composition Order Matters
In f∘g, apply g first and then f.
For One-One Proofs
Start with f(a)=f(b) and prove a=b.
Use the Vertical Line Test
A vertical line should intersect a function graph at most once.
Strengthen Your Mathematics Concepts
Build strong foundations with structured lessons, chapter notes, practice questions, doubt support and regular revision.