Sets, Relations and Functions: JEE Formulas and Key Ideas
JEE Mathematics Sets, Relations and Functions
Sets, Relations and Functions for JEE Main and Advanced is built on counting: inclusion–exclusion for sets, free-choice reasoning for reflexive and symmetric relations, and counts of one-one and onto functions. The chapter also covers composition and invertibility, periods, the greatest integer and fractional part functions, the modulus and the domains of standard functions.
Practise Sets, Relations and Functions: 163 JEE Main PYQs with a study plan.
Inclusion–exclusion: counting elements in unions of sets
For finite sets, . Adding the two sizes counts the common elements twice, so the intersection is subtracted once.
With three sets the same idea extends. Add the single sets, subtract the pairwise intersections, then add back , because the subtraction removed it once too often.
Two related counts follow directly. The elements in but not in number . The symmetric difference contains the elements in exactly one of the sets. It has elements, because the common part is removed from both sets.
De Morgan's laws, and , turn a "neither" condition into the complement of a union.
Two further counts underpin the rest of the chapter. A set with elements has subsets, because each element is either in a subset or out of it. It has proper subsets once the set itself is excluded. The Cartesian product of ordered pairs has elements. Relations are built from this product.

JEE Maths Formula Book – All Chapters, JEE Main & Advanced
In the StudentCurio app
Chapter-wise JEE Mathematics formulas for quick revision: algebra, trigonometry, coordinate geometry, calculus, vectors, 3D geometry, statistics and probability
Reflexive, symmetric and transitive relations and how to count them
A relation from to is a subset of . Since , and each ordered pair is either included or left out, there are relations. On a single set of elements there are ordered pairs, which gives relations.
Each type condition changes which pairs remain free choices: - Reflexive relations must contain every . The diagonal pairs are fixed and pairs stay free, giving . - Symmetric relations link with . The free choices are the diagonal pairs plus off-diagonal pairs, giving . - Reflexive and symmetric relations also fix the diagonal, which leaves .
A relation is transitive when . A relation with all three properties is an equivalence relation. The inverse relation reverses every pair: .

One-one, onto and invertible functions
Let have elements and have . Each element of chooses its image independently, so there are functions.
A one-one function gives different elements different images. Choosing these images is an arrangement of images from , giving , and it is possible only when . When , the one-one functions are bijections and there are of them.
Onto functions require . They are counted by inclusion–exclusion on the images that are missed: . For this reduces to , which removes the two constant functions.
A function has an inverse if and only if it is bijective. Composition is read right to left, . Its inverse reverses the order: .
Any function on a domain symmetric about splits into an even part and an odd part . An even function satisfies , and an odd function satisfies .
Periods, greatest integer, fractional part, modulus and domains
The functions , , and repeat after . The functions , , and repeat after , and the fractional part repeats after .
If has period , then has period . Only the coefficient changes the period; the shift does not.
The greatest integer function satisfies . Integers pass straight through it: for integer . Negative arguments need care. The sum is when is an integer and otherwise. For example, . The fractional part always lies in .
The modulus turns inequalities into intervals. For , means , and means or .
Finding a domain also starts with checking conditions. A square root needs a non-negative argument and a logarithm needs a positive argument. The functions and accept only values in , and is undefined at odd multiples of . When an expression combines several of these, its domain is the set of that satisfies every condition at once.
Sets, Relations and Functions formulas and when each applies
- Union of finite sets: . For three sets: .
- Difference and symmetric difference: and .
- Power set: a set with elements has subsets and proper subsets.
- Cartesian product: .
- Relations from ( elements) to ( elements): . On an -element set there are relations in total, reflexive, symmetric and both reflexive and symmetric.
- Functions from to : in total. One-one functions number (only for ), bijections number (only for ), and onto functions number (only for ).
- Inverse: exists if and only if is bijective, and then .
- Period: has period , where is the period of .
- Domains: needs ; needs ; and need ; needs for integer .

Worked example: counting all, one-one and onto functions
Problem. Let and . Find the number of (i) functions from to , (ii) one-one functions from to , and (iii) onto functions from to .
Step 1: all functions. Here and . Each of the 4 elements has 3 possible images, so there are functions.
Step 2: one-one functions. A one-one function needs , but . Two elements of must therefore share an image, so there are one-one functions.
Step 3: onto functions. Since , apply the alternating sum: .
Answer: there are 81 functions, 0 one-one functions and 36 onto functions.
Check: in an onto map from 4 elements to 3, exactly two elements share one image. Choose that pair in ways, then assign the three images in ways. This gives , which matches Step 3.
Common mistakes with relation counts, inverses and [x]
- Mixing up relation counts. counts symmetric relations. Reflexive relations number .
- Reversing composition incorrectly. equals , not .
- Treating [x] as odd. Writing is valid only for integer . Otherwise .
- Ignoring the conditions on function counts. The onto formula is stated for , and for .
- Dropping the modulus in the period. For a negative , the period of is still .
Revising Chapter 01 rows on the formula sheet
The PDF sets out this chapter as two-column tables under Sets, Relations and Functions, with each description on the left and its result on the right. It defines as the greatest integer function and as the fractional part. Its suggested routine suits this chapter: read every row once, then cover the right-hand column before a mock test and revise only the rows you got wrong. For the relation and function counts, rebuild each exponent from the free-choice reasoning instead of memorising it.
Frequently asked questions
Does a function need to be both one-one and onto to have an inverse?
Yes. A function has an inverse if and only if it is bijective, which means it is both one-one and onto.
Why can there be no one-one function from a 4-element set to a 3-element set?
A one-one function needs at least as many possible images as inputs (). With only 3 images for 4 inputs, two inputs must share an image.
Spotted an error? Report a correction. Practise this in the app: notes, formula sheets and mind maps.
Loading comments…