Blog
Mathematics

7 Smart Tricks for Sets, Relations & Functions (JEE Main & Advanced)

Master Sets, Relations, and Functions for JEE with 7 accurate tricks on De Morgan’s laws, counting in Cartesian products, equivalence relations, function types, inverses, composition, and domain-range shortcuts.

PPracticeJEE2 May 2026~3 min read

Introduction

Sets, Relations and Functions looks deceptively simple in Class 11 — but JEE uses it to test precise definitions, not computation. Most marks are dropped by confusing domain and codomain, misapplying inverse function rules, or missing small set identities under time pressure.

Here are 7 focused tricks to handle this chapter faster and more reliably in JEE Main and Advanced.


1De Morgan's Laws — Flip the Operator

The two laws are:

(AB)=ABand(AB)=AB(A \cup B)' = A' \cap B' \qquad \text{and} \qquad (A \cap B)' = A' \cup B'

The rule is simple: whenever a complement is pulled inside brackets, the operator flips. Union becomes intersection; intersection becomes union. This reduces four-step Venn diagram expansions to a single line.

💡

Exam Tip — In Venn-diagram questions, spotting a De Morgan pattern instantly saves 30–40 seconds versus expanding manually.


2Cartesian Product — Count Without Listing

If n(A)=mn(A) = m and n(B)=nn(B) = n, then n(A×B)=mnn(A \times B) = mn. Every element of AA pairs with every element of BB, giving mnmn ordered pairs total. No listing required.

⚠️

Watch Out(a,b)(b,a)(a,\, b) \neq (b,\, a) in general, so A×BB×AA \times B \neq B \times A unless A=BA = B. Order matters in every ordered pair.


3Number of Relations — The 2mn2^{mn} Rule

A relation from AA to BB is any subset of A×BA \times B. Since A×BA \times B has mnmn elements, the total number of possible relations is:

2mn2^{mn}

Whenever a JEE question asks "how many relations exist from AA to BB?", plug straight into this formula — no derivation needed.


4Equivalence Relation — The RST Checklist

A relation is an equivalence relation if and only if it passes all three tests:

  • Reflexive — every element relates to itself: aRaaRa for all aa
  • Symmetric — if aRbaRb then bRabRa
  • Transitive — if aRbaRb and bRcbRc, then aRcaRc

Remember the mnemonic RST. If even one property fails, stop immediately — it is not an equivalence relation.

Quick check: aRbaRb if (ab)(a - b) is divisible by 2. All three properties hold, making this an equivalence relation.


5One-One and Onto — Codomain Matters Most

One-one (injective): different inputs always produce different outputs.
Onto (surjective): every element of the codomain has at least one pre-image.

For a linear function f(x)=ax+bf(x) = ax + b with a0a \neq 0: it is always one-one. Whether it is onto depends entirely on the codomain — the declared output set — not just the range.

⚠️

Watch Out — Range and codomain are not the same thing. Confusing them is the single most common error in this section.


6Inverse Functions — Bijective or Nothing

An inverse f1f^{-1} exists only if ff is bijective — that is, both one-one and onto. If any two inputs share the same output, the inverse does not exist.

f(x)=x2 over R    f(2)=f(2)=4f(x) = x^2 \text{ over } \mathbb{R} \implies f(2) = f(-2) = 4

No inverse over R\mathbb{R}. But restrict the domain to x0x \geq 0 and ff becomes one-one — the inverse now exists as f1(x)=xf^{-1}(x) = \sqrt{x}.

💡

Exam Tip — Domain restriction questions appear very frequently in JEE. Always re-verify the one-one condition after any restriction is applied.


7Composition of Functions — Always Right to Left

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)): apply gg first, then feed the result into ff.

f(x)=x+1,g(x)=x2f(x) = x + 1, \quad g(x) = x^2

(fg)(x)=x2+1but(gf)(x)=(x+1)2(f \circ g)(x) = x^2 + 1 \qquad \text{but} \qquad (g \circ f)(x) = (x+1)^2

These are different values. Composition is not commutative — order always matters, and swapping ff and gg gives a completely different function.


Quick Revision Table

ConceptShortcut
De Morgan's lawsFlip operator under complement
Cartesian productn(A)×n(B)n(A) \times n(B)
Number of relations2mn2^{mn}
Equivalence relationRST checklist
One-one / ontoCheck codomain, not just range
Inverse functionMust be bijective
CompositionApply right to left

Common Mistakes to Avoid

  • Treating range and codomain as interchangeable
  • Assuming an inverse exists without verifying one-one
  • Forgetting that (a,b)(b,a)(a,\, b) \neq (b,\, a) — ordered pairs are ordered
  • Assuming function composition is commutative
  • Missing transitivity when testing an equivalence relation

Final Tip

Sets and Functions is definition-heavy, not calculation-heavy. Strong, precise definitions will save you more time in JEE than any shortcut formula. Master the fundamentals and these 7 tricks will click into place naturally.