• NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • Class 6-10
      • Class 6th
      • Class 7th
      • Class 8th
      • Class 9th
      • Class 10th
    • View All Options
      • Online Courses
      • Offline Courses
      • Distance Learning
      • Hindi Medium Courses
      • International Olympiad
    • NEET
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE (Main+Advanced)
      • Class 11th
      • Class 12th
      • Class 12th Plus
    • JEE Main
      • Class 11th
      • Class 12th
      • Class 12th Plus
  • NEW
    • JEE MAIN 2025
    • NEET
      • 2024
      • 2023
      • 2022
    • Class 6-10
    • JEE Main
      • Previous Year Papers
      • Sample Papers
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • JEE Advanced
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NEET
      • Previous Year Papers
      • Sample Papers
      • Mock Test
      • Result
      • Analysis
      • Syllabus
      • Exam Date
    • NCERT Solutions
      • Class 6
      • Class 7
      • Class 8
      • Class 9
      • Class 10
      • Class 11
      • Class 12
    • CBSE
      • Notes
      • Sample Papers
      • Question Papers
    • Olympiad
      • NSO
      • IMO
      • NMTC
    • ALLEN e-Store
    • AOSAT
    • ALLEN for Schools
    • About ALLEN
    • Blogs
    • News
    • Careers
    • Request a call back
    • Book home demo
JEE PhysicsJEE Chemistry
Home
JEE Maths
Sets, Relation, and Function: Previous year questions with solutions

Sets, Relation, and Function: Previous year questions with solutions

1.0Introduction

Sets, Relations, and Functions is a fundamental topic in the JEE syllabus, forming the basis for understanding more advanced mathematical concepts. Previous year questions from this chapter typically focus on key concepts like the definition and representation of sets, types of sets (finite, infinite, equal, null, etc.), Venn diagrams, Cartesian products, types of relations (reflexive, symmetric, transitive, equivalence), and various types of functions (one-one, onto, bijective, identity, inverse, composition of functions).

Examples include identifying and proving the type of a given relation, determining the domain and range of a function, checking if a function is invertible, or simplifying expressions using set operations like union, intersection, and complement.

Solutions generally involve using set identities, understanding mappings and their properties, analyzing graphs of functions, and applying logical reasoning to determine the nature of relations and functions.

Practicing these previous year questions builds a strong conceptual base, enhances your ability to visualize abstract mathematical structures, and sharpens problem-solving skills crucial for success in JEE.

2.0Sets, Relations, and Functions – Key Concept and Formula

Sets 

  • Set: A collection of well-defined, distinct objects.
  • Represented by capital letters: A, B, C.
  • Element: An object in a set.
  • Roster Method: Listing all elements, e.g., A = {1, 2, 3}.
  • Set Builder Method: Describing properties, e.g., A = {x: x is an odd number < 10}.

Relations and Functions:

  • Relation: A relation from set A to set B is a subset of A × B.
  • Function: A special relation where every element of A is associated with exactly one element of B.

Types of Functions:

  • One-One (Injective)
  • Onto (Surjective)
  • Bijective (One-One and Onto)

Sets: Key Concepts & Formulas

  1. Representation of Sets:
  • Roster form: {a, b, c}
  • Set-builder form: {x | condition on x}
  1. Types of Sets:
  • Empty set: ∅
  • Finite/Infinite set
  • Equal sets: A = B if all elements are same
  • Subset: A ⊆ B ⇔ every element of A is in B
  • Proper subset: A ⊂ B and A ≠ B
  • Power set: P(A) = set of all subsets of A, including ∅ and A itself
  • If n(A) = n, then n(P(A)) = 2ⁿ

3. Operations on Sets:

  • Union: A ∪ B = {x | x ∈ A or x ∈ B}
  • Intersection: A ∩ B = {x | x ∈ A and x ∈ B}
  • Difference: A - B = {x | x ∈ A and x ∉ B}
  • Complement: A' = {x ∈ U | x ∉ A}, where U is universal set
  1. Laws of Set Algebra:
  • Commutative: A ∪ B = B ∪ A, A ∩ B = B ∩ A
  • Associative: (A ∪ B) ∪ C = A ∪ (B ∪ C)
  • Distributive: A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
  • De Morgan’s Laws:

(A ∪ B)' = A' ∩ B'

(A ∩ B)' = A' ∪ B'

Cardinality Formulas:

If A and B are finite sets:

n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

For three sets:

n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) − n(C ∩ A) + n(A ∩ B ∩ C)

Relations: Key Concepts

Cartesian Product:

  • A × B = {(a, b) | a ∈ A, b ∈ B}
  • If n(A) = m, n(B) = n, then n(A × B) = m × n

Relation:

A relation R from A to B is a subset of A × B

Types of Relations on a Set A:

Reflexive: (a, a) ∈ R ∀ a ∈ A

Symmetric: (a, b) ∈ R ⇒ (b, a) ∈ R

Transitive: (a, b) ∈ R and (b, c) ∈ R ⇒ (a, c) ∈ R

Equivalence Relation: A relation that is reflexive, symmetric, and transitive

Functions: Key Concepts & Formulas

  1. Definition:
    A function f: A → B assigns every element of A to a unique element of B.
  2. Domain, Co-domain, Range:
  • Domain: input set A
  • Co-domain: set B
  • Range: actual outputs f(A) ⊆ B
  • Types of Functions:
  • One-One (Injective): f(a1) = f(a2) ⇒ a1 = a2
  • Onto (Surjective): Range(f) = Co-domain
  • Bijective: Both one-one and onto
  • Identity Function: f(x) = x
  • Constant Function: f(x) = c
  • Polynomial, Rational, Modulus, Greatest Integer, etc.
  1. Operations on Functions:

Sum: (f + g)(x) = f(x) + g(x)

Product: (f × g)(x) = f(x) × g(x)

Quotient: (f/g)(x) = f(x)/g(x), g(x) ≠ 0

  1. Composition of Functions:

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

Associative: (f ∘ g) ∘ h = f ∘ (g ∘ h)

  1. Inverse of a Function:

If f: A → B is bijective, then its inverse f⁻¹: B → A exists such that:

f(f⁻¹(x)) = x and f⁻¹(f(x)) = x

3.0JEE Mains Past Year Questions with Solutions on Sets, Relation and Functions

Previous Year Questions From Sets

1. In a survey of 220 students of a higher secondary school, it was found that at least 125 and at most 130 students studied Mathematics; at least 85 and at most 95 studied Physics; at least 75 and at most 90 studied Chemistry; 30 studied both Physics and Chemistry; 50 studied both Chemistry and Mathematics; 40 studied both Mathematics and Physics and 10 studied none of these subjects. Let m and n respectively, be the least and the most number of students who studied all the three subjects. Then m + n is equal to _____

Ans. (45)

Sol.

Let m and n respectively, be the least and the most number of students who studied all the three subjects.

125 ≤ m + 90 – x ≤ 130

85 ≤ P + 70 – x ≤ 95

75 ≤ C + 80 – x ≤ 90

m + P + C + 120 – 2x = 210

⇒ 15 ≤ x ≤ 45 & 30 – x ≥ 0

⇒ 15 ≤ x ≤ 30

30 + 15 = 45


2. Let S={x∈R:(3​+2​)x+(3​−2​)x=10}

Then the number of elements in S is :

(1) 4

(2) 0

(3) 2

(4) 1

Ans. (3)

Sol.

Let

t2 – 10t + 1 = 0 

x = 2 or x = –2

(3​+2​)x+(3​−2​)x=10Let(3​+2​)x=t,then:t+t1​=10t2−10t+1=0t=210±100−4​​=210±96​​=5±26​(3​+2​)x=(3​±2​)2x=2orx=−2Number of solutions = 2


3. Let A and B be two finite sets with m and n elements respectively. The total number of subsets of the set A is 56 more than the total number of subsets of B. Then the distance of the point P(m, n) from the point Q(–2, –3) is

(1) 10

(2) 6

(3) 4

(4) 8

Ans. (1)

Sol.

2m−2n=562n(2m−n−1)=23×72n=23and2m−n−1=7⇒n=3and2m−n=8⇒n=3andm−n=3⇒n=3andm=6P(6,3)and Q(−2,−3)PQ=(6−(−2))2+(3−(−3))2​=82+62​   =100​=10

Hence, option (1) is correct

4. Let the set C={(x,y)∣x2−2y2=2023,x,y∈Z}. Then (x,y)∈C∑​(x+y) is equal to _______.

Ans. 46

Sol.

x2−2y2=2023⇒x=45,y=1∑(x,y)∈C​(x+y)=46

4.0Previous Year Questions on Relation 

1. Let a relation R on be defined as: (x1, y1) R(x2, y2) if and only if x1 < x2 or y1 < y2 

Consider the two statements: 

(I) R is reflexive but not symmetric.

(II) R is transitive 

Then, which one of the following is true? 

(1) Only (II) is correct.

(2) Only (I) is correct.

(3) Both (I) and (II) are correct.

(4) Neither (I) nor (II) is correct.

Ans. (3)

Sol.

For Reflexive: 

All ((x1, y1), (x1, y1)) are in R where 

x1, y1 ∈ N ∴ R is reflexive

For Symmetric: 

((1, 1), (2, 3)) ∈ R but ((2, 3), (1, 1)) ∉ R

∴ R is not symmetric 

For Reflexive: 

If (x1, y1) R (x2, y2) ⇒ x1 ≤ x2 & y1 ≤ y2  

& (x2, y2) R (x3, y3) ⇒ x2 ≤ x3 & y2 ≤ y3  

For (x1, y1) R (x3, y3) ⇒ x1 ≤ x3 & y1 ≤ y3  

So, R is transitive 

2. Let the relations R1 and R2 on the set 

X = {1, 2, 3, ..., 20} be given by 

R1 = {(x, y) : 2x – 3y = 2} and 

R2 = {(x, y) : –5x + 4y = 0}. If M and N be the minimum number of elements required to be added in R1 and R2, respectively, in order to make the relations symmetric, then M + N equals

(1) 8

(2) 16

(3) 12

(4) 10

Ans. (4)

Sol. x = {1, 2, 3, .......20}

R1 = {(x, y) : 2x – 3y = 2}

R2 = {(x, y) : –5x + 4y = 0}

R1 = {(4, 2), (7, 4), (10, 6), (13, 8), (16, 10), (19, 12)}

R2 = {(4, 5), (8, 10), (12, 15), (16, 20)}

in R1 6 element needed

in R2 4 element needed

So, total 6 + 4 = 10 element


3. If a function f satisfies f(m + n) = f(m) + f(n) for all m, n ∈ N and  f(1) = 1, then the largest natural number λ such that ∑k=12022​f(λ+k)≤(2022)2 is equal to  ________.

Ans. (1010)

Sol. f (m + n) = f(m) + f(n)

⇒f(x)=kx⇒f(1)=1⇒k=1f(x)=xNow∑k=12022​f(λ+k)≤(2022)2⇒∑k=12022​(λ+k)≤(2022)2⇒2022λ+22022×2023​≤(2022)2⇒λ≤2022−22023​⇒λ≤1010.5∴largest natural number λ is 1010​.


4. Let A = {2, 3, 6, 7} and B = {4, 5, 6, 8}. Let R be a relation defined on A × B by (a1, b1) R (a2, b2) is and only if a1 + a2 = b1 + b2. Then the number of elements in R is ________.

Ans. (25)

Sol. A = {2, 3, 6, 7}

B = { 2, 5, 6, 8}

(a1, b1) R (a2, b2)

a1 + a2 = b1 + b2

the number of elements

Total 24 + 1 = 25


5. Let S = {l, 2, 3, ... , 10}. Suppose M is the set of all the subsets of S, then the relation

R = {(A, B): A ∩ B ≠ φ; A, B ∈ M} is : 

(1) symmetric and reflexive only

(2) reflexive only

(3) symmetric and transitive only

(4) symmetric only

Ans. (4)

Sol. Let S = {1, 2, 3, …, 10}

R = {(A, B): A ∩ B ≠ φ; A, B ∈ M}

For Reflexive,

M is subset of ‘S’

So φ ∈ M

for φ ∩ φ = φ

⇒ but relation is A ∩ B ≠ φ

So, it is not reflexive.

For symmetric, 

ARB A ∩ B ≠ φ,

⇒ BRA ⇒ B ∩ A ≠ φ,

So, it is symmetric.

For transitive,

If A = {(1, 2), (2, 3)}

B = {(2, 3), (3, 4)}

C = {(3, 4), (5, 6)}

ARB & BRC but A does not relate to C 

So it not transitive


6. The number of symmetric relations defined on the set {1, 2, 3, 4} which are not reflexive is _____ .

Ans. (960)

Sol. Total number of relation both symmetric and reflexive =22n2−n​

Total number of symmetric relation =2(2n2+n​)

⇒ Then number of symmetric relation which are not reflexive

=22n(n+1)​−22n(n−1)​

⇒ 210 – 26

⇒ 1024 – 64

= 960


7. Let A = {1, 2, 3, ………100}. Let R be a relation on A defined by (x, y) ∈R if and only if 2x = 3y. Let R1 be a symmetric relation on A such that R⊆R1​ and the number of elements in R1 is n. Then, the minimum value of n is ___________.

Ans. (66)

Sol.-

R={(3,2), (6,4), (9,6), (12,8), …, (99,66)}n(R)=33∴66​

5.0Previous Year Questions on Functions

1. Let A = {1, 3, 7, 9, 11} and B = {2, 4, 5, 7, 8, 10, 12}. Then the total number of one-one maps
f : A → B, such that f (1) + f(3) = 14, is: 

(1) 180

(2) 120 

(3) 480

(4) 240 

Ans. (4)

Sol.

 total number of one-one maps

A = {1, 3, 7, 9, 11}

B = {2, 4, 5, 7, 8, 10, 12}

f(1) + f(3) = 14

(i) 2 + 12

(ii) 4 + 10

2 × (2 × 5 × 4 × 3) = 240 


2. The number of distinct real roots of the equation |x| |x + 2| – 5|x + l| – 1 = 0 is __________.

Ans. (3)

Sol.

The number of distinct real roots of the equation |x| |x + 2| – 5|x + l| – 1 = 0 is

Case-1

x ≥ 0

x2 + 2x – 5x – 5 – 1 = 0

x2 – 3x – 6 = 0

x=23±9+24​​=23±33​​

One positive root

Case-2

–1 ≤ x < 0

–x2 – 2x – 5x – 5 – 1 = 0

x2 + 7x + 6 = 0

(x + 6) (x + 1) = 0

x = –1

one root in range

Case-3

–2 ≤ x < –1

x2 – 2x + 5x + 5 – 1 = 0

x2 – 3x – 4 = 0

(x – 4) (x + 1) = 0

No root in range

Case-4

x < –2

x2 + 7x + 4 = 0

x=2−7±49−16​​=2−7±33​​

one root in range

Total number of distinct roots are 3


3. Let  

f(x)={−a if −a≤x≤0x+a if 0<x≤a​

where a > 0 and g(x) = (f |x| ) – | f (x)| )/2. 

Then the function g : [ –a, a] → [ –a, a] is

(1) neither one-one nor onto.

(2) both one-one and onto.

(3) one-one.

(4) onto

Ans. (1)

Sol. y = f(x)

neither one-one nor onto.

y = f|x|

 both one-one and onto.

y = |f(x)|

one-one.

g(x) = 2f(∣x∣)−∣f(x)∣​

onto

4. If the domain of the function f(x)=4−x2x2−25​​ +log10 (x2 + 2x – 15) is (– ∞, α) U [β,∞), then α2 + β3 is equal to : 

(1) 140

(2) 175

(3) 150

(4) 125

Ans. (3)

Sol.

ƒ(x)=4−x2x2−25​​ + log10(x2 + 2x - 15)

Domain : x2 – 25 ≥ 0  ⇒ x ∈ (–∞, -5] ∪ [5, ∞)

4 – x2 ≠ 0 ⇒ x ≠{–2, 2}

x2 + 2x – 15 > 0 ⇒  (x + 5) (x – 3) > 0 

⇒ x ∈ (–∞, –5) ∪ (3, ∞)

∴ x ∈ (–∞, –5) ∪ [5, ∞)

α = –5; β = 5

∴ α2 + β3 = 150


5. Let f : R → R  and g : R → R be defined as

f(x) = {loge​x, x>0e−x, x≤0​ and g(x)={x, x≥0ex, x<0​ . Then, go f : R → R is :

(1) one-one but not onto

(2) neither one-one nor onto

(3) onto but not one-one

(4) both one-one and onto

Ans. (2)

Sol.

g(f(x))= {f(x),f′(x)≥0ef(x),f′(x)<0​g(f(x))= ⎩⎨⎧​e−x, (−∞,0]elnx, (0,1)lnx, [1,∞)​

 g : R → R be defined as f(x

Graph of g(f(x))

g(f(x)) ⇒ Many one into 

6. The function f : N – {1} → N; defined by f(n) = the highest prime factor of n, is :

(1) both one-one and onto

(2) one-one only

(3) onto only

(4) neither one-one nor onto

Ans. (4)

Sol. f : N – {1} → N

f(n) = The highest prime factor of n.

f(2) = 2

f(4) = 2

⇒ many one

4 is not image of any element 

⇒ into

Hence many one and into

Neither one-one nor onto.


7. If the function f:(−∞,−1]→(a,b], defined byf(x)=ex3−3x+1  is one-one and onto, then the distance of the point P(2b + 4, a + 2) from the line x + e–3y = 4 is : 

(1)1+e62​​ (2)1+e64​​(3)1+e63​​ (4)1+e61​​

Ans. (1)

Sol.-

f(x)=ex3−3x+1f′(x)=ex3−3x+1⋅(3x2−3)=ex3−3x+1⋅3(x−1)(x+1)Forf′(x)≥0∴f(x) is increasing function∴a=e−∞=0=f(−∞)b=e−13+3⋅1+1=e3=f(−1)Given:P(2b+4,a+2)∴P(2e3+4,2)d=1+e−6​(2e3+4)+2e3−4​=1+e−6​4e3​=21+e6​

 one-one and onto, then the distance of the point P


Table of Contents


  • 1.0Introduction
  • 2.0Sets, Relations, and Functions – Key Concept and Formula
  • 2.1Sets: Key Concepts & Formulas
  • 2.2Relations: Key Concepts
  • 2.3Functions: Key Concepts & Formulas
  • 3.0JEE Mains Past Year Questions with Solutions on Sets, Relation and Functions
  • 3.1Previous Year Questions From Sets
  • 4.0Previous Year Questions on Relation 
  • 5.0Previous Year Questions on Functions

Frequently Asked Questions

Set of all subsets of A

All elements in A or B or both

n(A) + n(B) − n(A ∩ B) 

If it is bijective (one-one and onto)

Reflexive, symmetric, and transitive

Different inputs give different outputs

[0, ∞)

Join ALLEN!

(Session 2025 - 26)


Choose class
Choose your goal
Preferred Mode
Choose State
  • About
    • About us
    • Blog
    • News
    • MyExam EduBlogs
    • Privacy policy
    • Public notice
    • Careers
    • Dhoni Inspires NEET Aspirants
    • Dhoni Inspires JEE Aspirants
  • Help & Support
    • Refund policy
    • Transfer policy
    • Terms & Conditions
    • Contact us
  • Popular goals
    • NEET Coaching
    • JEE Coaching
    • 6th to 10th
  • Courses
    • Online Courses
    • Distance Learning
    • Online Test Series
    • International Olympiads Online Course
    • NEET Test Series
    • JEE Test Series
    • JEE Main Test Series
  • Centers
    • Kota
    • Bangalore
    • Indore
    • Delhi
    • More centres
  • Exam information
    • JEE Main
    • JEE Advanced
    • NEET UG
    • CBSE
    • NCERT Solutions
    • NEET Mock Test
    • Olympiad
    • NEET 2025 Answer Key

ALLEN Career Institute Pvt. Ltd. © All Rights Reserved.

ISO