Home › Study notes › JEE Main › Sets, relations and functions

Sets, relations and functions: full study notes

Sets and their algebra, power sets, Cartesian products, types of relations, equivalence relations, functions, counting, composition and inverses for JEE.

Edited by Alex C · Free sample unit · NTA JEE Main syllabus, Mathematics Unit 1 (Sets, relations and functions); JEE Advanced syllabus, Mathematics – Sets, relations and functions; NTA CUET UG Mathematics syllabus, Relations and functions; NCERT Class XI Mathematics chapters 1–2 and Class XII Mathematics chapter 1 · 39 min read

Part of: JEE Main Mathematics notes · JEE Advanced Mathematics notes · CUET-UG Mathematics notes

What this unit covers

This unit builds the language the rest of mathematics is written in. It starts with sets – how to describe them, how to combine them, and how to count elements in unions and intersections. It then pairs elements of two sets to form Cartesian products and relations, studies the properties a relation can have (reflexive, symmetric, transitive, equivalence), and treats a function as a special kind of relation. The second half is about functions: domain and range, the standard real functions, one-one and onto functions and how to count them, even and odd functions, composition and inverses.

JEE Main lists sets and their representation, union, intersection and complement with their algebraic properties, the power set, types of relations, equivalence relations, one-one, into and onto functions and composition of functions. JEE Advanced goes further, into practical counting problems, special functions such as the greatest integer function, even and odd functions and invertible functions. CUET UG concentrates on the types of relations and on one-one and onto functions. These notes are written to JEE Advanced depth and cover everything the other two ask. Inverse trigonometric functions are taught in the Trigonometry unit, and limits and continuity of functions in Limits, continuity and differentiability.

How to use these notes: read sections 1–4 once, then do every worked example yourself before looking at the solution. Sections 6–9 (domain, range, types of functions and inverses) carry most of the marks in JEE – keep the checklist in section 6 and the counting formulas in section 8 at your fingertips.

1. Sets and how to describe them

A set is a well-defined collection of distinct objects. "Well-defined" means that for any object we can say definitely whether it belongs to the collection. "The vowels of the English alphabet" is a set; "the good cricketers of India" is not, because "good" is a matter of opinion. The objects are called elements or members. We write a ∈ A for "a belongs to A" and a ∉ A for "a does not belong to A".

1.1 Two ways to write a set

Standard sets used throughout: N (natural numbers 1, 2, 3, …), Z (integers), Q (rational numbers), R (real numbers) and C (complex numbers). Z+ denotes the positive integers.

1.2 Kinds of sets

TermMeaningExample
Empty (null, void) setHas no element; written ∅ or { }{x ∈ R : x2 = −1}
Singleton setHas exactly one element{0}
Finite setEmpty, or its elements can be counted and the counting ends{x : x is a prime less than 20}
Infinite setNot finiteN, the set of points on a line
Equal setsExactly the same elements{1, 2} = {2, 1}
Equivalent setsSame number of elements, n(A) = n(B){a, b, c} and {1, 2, 3}
Universal set UThe set containing all elements under discussionR when working with real functions

n(A) denotes the number of elements of a finite set A (its cardinality). Note that {0} and {∅} are not empty: each has one element.

1.3 Subsets and the power set

A is a subset of B, written A ⊆ B, if every element of A is an element of B. A is a proper subset of B, written A ⊂ B, if A ⊆ B and A ≠ B. Two consequences are used constantly:

The power set P(A) is the set of all subsets of A. If n(A) = n, each element is either in or out of a subset, so

For example, A = {1, 2} gives P(A) = {∅, {1}, {2}, {1, 2}}, with 22 = 4 elements. Elements of P(A) are sets, so {1} ∈ P(A) while 1 ∉ P(A).

1.4 Intervals as subsets of R

For real numbers a < b: the open interval (a, b) = {x : a < x < b}; the closed interval [a, b] = {x : a ≤ x ≤ b}; the half-open intervals [a, b) and (a, b]; and the infinite intervals such as [a, ∞) = {x : x ≥ a} and (−∞, b) = {x : x < b}. A square bracket includes the end point; a round bracket excludes it. Infinity is never included. These are the sets in which domains and ranges are written.

Worked example 1 (easy). A set A has 3 elements. How many elements does P(P(A)) have? Which of these are true: ∅ ∈ P(A), ∅ ⊆ P(A), {∅} ⊆ P(A)?

Solution. n(P(A)) = 23 = 8, so n(P(P(A))) = 28 = 256. The empty set is a subset of A, so ∅ ∈ P(A) is true. The empty set is a subset of every set, so ∅ ⊆ P(A) is true. The only element of {∅} is ∅, which belongs to P(A), so {∅} ⊆ P(A) is also true. All three are true.

Exam point: questions that mix ∈ and ⊆ are a favourite. Ask "is the thing on the left an element, or a collection of elements?" An element goes with ∈; a set whose every element lies in the right-hand set goes with ⊆.

2. Operations on sets and their laws

Let A and B be subsets of a universal set U.

OperationDefinitionRead as
Union A ∪ B{x : x ∈ A or x ∈ B}in A or B (or both)
Intersection A ∩ B{x : x ∈ A and x ∈ B}in both
Difference A − B{x : x ∈ A and x ∉ B}in A but not in B
Complement A′U − A = {x ∈ U : x ∉ A}not in A
Symmetric difference A Δ B(A − B) ∪ (B − A)in exactly one of A, B

Sets with A ∩ B = ∅ are disjoint. Useful identities: A − B = A ∩ B′, and A Δ B = (A ∪ B) − (A ∩ B). The three sets A − B, A ∩ B and B − A are pairwise disjoint and their union is A ∪ B; drawing them as the three regions of a Venn diagram makes most counting problems routine.

2.1 Algebraic laws

For all subsets A, B, C of U:

LawUnion formIntersection form
IdempotentA ∪ A = AA ∩ A = A
IdentityA ∪ ∅ = AA ∩ U = A
DominationA ∪ U = UA ∩ ∅ = ∅
CommutativeA ∪ B = B ∪ AA ∩ B = B ∩ A
Associative(A ∪ B) ∪ C = A ∪ (B ∪ C)(A ∩ B) ∩ C = A ∩ (B ∩ C)
DistributiveA ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C)
De Morgan(A ∪ B)′ = A′ ∩ B′(A ∩ B)′ = A′ ∪ B′
ComplementA ∪ A′ = UA ∩ A′ = ∅
AbsorptionA ∪ (A ∩ B) = AA ∩ (A ∪ B) = A

Also (A′)′ = A, U′ = ∅ and ∅′ = U. De Morgan's laws work for differences too: A − (B ∪ C) = (A − B) ∩ (A − C) and A − (B ∩ C) = (A − B) ∪ (A − C). Each law is proved by showing each side is a subset of the other, or by checking every region of a Venn diagram.

The symmetric difference is commutative and associative, A Δ ∅ = A and A Δ A = ∅. Intersection distributes over it: A ∩ (B Δ C) = (A ∩ B) Δ (A ∩ C).

Exam point: JEE likes to ask which of several set identities is false. The quickest test is a small concrete example – take U = {1, 2, 3, 4} and choose A, B, C to break the identity. One counterexample settles it; a proof is never needed in an MCQ.

3. Counting with unions and intersections

For finite sets the inclusion–exclusion principle gives:

and, from these:

For three sets, write a = Σn(A) (sum of the three single counts), b = Σn(A ∩ B) (sum of the three pairwise counts) and c = n(A ∩ B ∩ C). Then the number of elements in exactly one set is a − 2b + 3c, and the number in exactly two sets is b − 3c.

Worked example 2 (JEE Main level). In a group of 60 students, 25 like tea, 26 like coffee and 26 like juice; 9 like tea and coffee, 11 like tea and juice, 8 like coffee and juice, and 3 like all three. How many like none of the three? How many like exactly one?

Solution. Let T, C, J be the three sets.

n(T ∪ C ∪ J) = 25 + 26 + 26 − 9 − 11 − 8 + 3 = 52.

None of the three: 60 − 52 = 8.

Exactly one: a = 77, b = 28, c = 3, so a − 2b + 3c = 77 − 56 + 9 = 30.

Check with the Venn regions: tea only = 25 − 9 − 11 + 3 = 8, coffee only = 26 − 9 − 8 + 3 = 12, juice only = 26 − 11 − 8 + 3 = 10, total 8 + 12 + 10 = 30.

Exam point: in survey problems, fill the Venn diagram from the centre outwards – all three first, then the "exactly two" regions, then the "only" regions. Many wrong answers come from subtracting the pairwise numbers without first removing the triple overlap.

Questions sometimes give a range rather than a value: "if 70% like A and 80% like B, what is the least possible percentage who like both?" From n(A ∪ B) ≤ 100%, n(A ∩ B) = n(A) + n(B) − n(A ∪ B) ≥ 70 + 80 − 100 = 50%. The largest possible overlap is the smaller of the two, 70%.

4. Ordered pairs, Cartesian products and relations

4.1 Cartesian product

An ordered pair (a, b) has a first and a second entry, so (a, b) = (c, d) exactly when a = c and b = d; in general (a, b) ≠ (b, a). The Cartesian product of non-empty sets A and B is

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

If n(A) = p and n(B) = q, then n(A × B) = pq. If either set is empty, A × B = ∅. A × B ≠ B × A unless A = B (or one of them is empty). R × R is the coordinate plane, and A × A × A = {(a, b, c) : a, b, c ∈ A} is the set of ordered triples.

Properties worth remembering:

4.2 Relations

A relation R from A to B is any subset of A × B. If (a, b) ∈ R we write a R b and call b the image of a under R. The domain of R is the set of first entries, the range is the set of second entries actually used, and the codomain is the whole of B. The range is always a subset of the codomain.

Because a relation is just a subset of A × B, and A × B has pq elements, the number of relations from A to B is 2pq. A relation from A to A is called a relation on A; a set with n elements carries 2n2 relations.

The inverse relation is R−1 = {(b, a) : (a, b) ∈ R}, a relation from B to A. Its domain is the range of R and its range is the domain of R.

Worked example 3. Let A = {1, 2, 3, 4} and R = {(a, b) : a, b ∈ A, b = a + 1}. Write R, its domain, range and inverse, and find how many relations there are from A to B = {x, y, z}.

Solution. R = {(1, 2), (2, 3), (3, 4)}. Domain {1, 2, 3}; range {2, 3, 4}; codomain A. R−1 = {(2, 1), (3, 2), (4, 3)}. Since n(A × B) = 4 × 3 = 12, there are 212 = 4096 relations from A to B.

5. Types of relations and equivalence relations

Let R be a relation on a set A.

TypeCondition
Empty (void) relationR = ∅: no element is related to any element
Universal relationR = A × A: every element is related to every element
Identity relationR = {(a, a) : a ∈ A}
Reflexive(a, a) ∈ R for every a ∈ A
Symmetric(a, b) ∈ R implies (b, a) ∈ R
Antisymmetric(a, b) ∈ R and (b, a) ∈ R imply a = b
Transitive(a, b) ∈ R and (b, c) ∈ R imply (a, c) ∈ R
Equivalence relationReflexive, symmetric and transitive together

Points that catch students:

Standard examples: "is congruent to" on triangles, "is parallel to or coincident with" on lines, and "a − b is divisible by m" on Z are equivalence relations. "≤" on R is reflexive, antisymmetric and transitive but not symmetric. "Is perpendicular to" on lines in a plane is symmetric only. "|a − b| ≤ 1" on R is reflexive and symmetric but not transitive, since 0 R 1 and 1 R 2 but 0 is not related to 2.

5.1 Equivalence classes and partitions

If R is an equivalence relation on A, the equivalence class of a is [a] = {x ∈ A : x R a}. Any two classes are either identical or disjoint, and together they cover A, so the classes form a partition of A (a split of A into non-empty, pairwise disjoint subsets whose union is A). Conversely every partition of A defines an equivalence relation: "x R y when x and y lie in the same block". So counting equivalence relations on A is the same as counting partitions of A. A set of 3 elements has 5 partitions, and a set of 4 elements has 15.

Worked example 4 (JEE Main level). On Z define a R b when a − b is divisible by 3. Show that R is an equivalence relation and find its classes.

Solution. Reflexive: a − a = 0 = 3 × 0. Symmetric: if a − b = 3k, then b − a = 3(−k). Transitive: if a − b = 3k and b − c = 3m, then a − c = 3(k + m). So R is an equivalence relation. The classes are [0] = {…, −3, 0, 3, 6, …}, [1] = {…, −2, 1, 4, 7, …} and [2] = {…, −1, 2, 5, 8, …}: three disjoint classes, given by the remainder on division by 3, whose union is Z.

5.2 Counting relations with a property

For a set A with n elements there are n2 ordered pairs: n "diagonal" pairs (a, a) and n2 − n off-diagonal pairs, which fall into n(n − 1)/2 unordered couples {(a, b), (b, a)}.

Relations on an n-element setNumberReason
All relations2n2each pair in or out
Reflexive2n2 − ndiagonal forced in; off-diagonal free
Symmetric2n(n+1)/2diagonal free; each couple in or out together
Reflexive and symmetric2n(n−1)/2diagonal forced; each couple in or out together
Antisymmetric2n × 3n(n−1)/2diagonal free; each couple: neither, first only, or second only

For n = 3: 512 relations in all, 64 reflexive, 64 symmetric, 8 reflexive and symmetric, 216 antisymmetric, and 5 equivalence relations. There is no simple closed formula for transitive relations; JEE questions on transitivity are about checking, not counting.

Exam point: a common question asks for the smallest relation containing given pairs that is an equivalence relation, or how many equivalence relations contain a given pair. Think in partitions: on {1, 2, 3}, the equivalence relations containing (1, 2) are those whose partition puts 1 and 2 in the same block – {1, 2}{3} and {1, 2, 3} – so there are exactly 2.

6. Functions: definition, domain and range

A function (or map) f from A to B, written f : A → B, is a relation from A to B in which every element of A has exactly one image in B. A is the domain, B the codomain, and the set of images actually taken, f(A) = {f(x) : x ∈ A}, is the range. The range is a subset of the codomain.

Two failures stop a relation from being a function: an element of A with no image, or an element of A with two or more images. Several elements may share one image – that is allowed. On a graph, a curve is the graph of a function of x when every vertical line through a point of the domain meets it exactly once (the vertical line test).

If n(A) = m and n(B) = n, each of the m elements can choose its image in n ways, so the number of functions from A to B is nm.

Two functions are equal when they have the same domain, the same codomain and f(x) = g(x) for every x. So f(x) = x and g(x) = x2/x are not equal: g is not defined at 0.

6.1 Finding the domain of a real function

When a real function is given only by a formula, its domain is taken to be the largest subset of R on which the formula gives a real value. Collect every condition and intersect them:

ExpressionCondition
p(x)/q(x)q(x) ≠ 0
√(g(x)), any even rootg(x) ≥ 0
1/√(g(x))g(x) > 0
loga g(x)g(x) > 0, with base a > 0 and a ≠ 1 (if the base depends on x, apply both to it)
sin−1 g(x) or cos−1 g(x)−1 ≤ g(x) ≤ 1
tan x, sec xx ≠ (2k + 1)π/2, k ∈ Z
cot x, cosec xx ≠ kπ, k ∈ Z

Worked example 5 (JEE Main level). Find the domain of f(x) = √(log10((5x − x2)/4)).

Solution. Two conditions. The logarithm needs (5x − x2)/4 > 0, which is 0 < x < 5. The square root needs log10((5x − x2)/4) ≥ 0, that is (5x − x2)/4 ≥ 1, so 5x − x2 ≥ 4, so x2 − 5x + 4 ≤ 0, so (x − 1)(x − 4) ≤ 0, giving 1 ≤ x ≤ 4. This lies inside (0, 5), so the domain is [1, 4].

6.2 Finding the range

There is no single method; choose by the form of the function.

  1. Solve for x. Put y = f(x), make x the subject, and find the y for which a real x exists in the domain. Works well for f(x) = (ax + b)/(cx + d).
  2. Discriminant method. For y = (quadratic)/(quadratic), clear denominators to get a quadratic in x; real x requires discriminant ≥ 0. Check separately the value of y that makes the leading coefficient zero, and any x the original function excludes.
  3. Completing the square or known bounds. x2 ≥ 0, −1 ≤ sin x ≤ 1, ax > 0, the AM–GM inequality x + 1/x ≥ 2 for x > 0.
  4. Monotonicity. A continuous increasing function on [a, b] has range [f(a), f(b)]. (Derivatives are developed in the calculus units.)

Worked example 6 (JEE Advanced level). Find the range of f(x) = (x2 − x + 1)/(x2 + x + 1), x ∈ R.

Solution. The denominator x2 + x + 1 has discriminant 1 − 4 < 0, so it is never zero and the domain is R. Put y = f(x):

y(x2 + x + 1) = x2 − x + 1, so (y − 1)x2 + (y + 1)x + (y − 1) = 0.

If y = 1 this becomes 2x = 0, so x = 0 gives y = 1 – that value is attained. If y ≠ 1, real x needs discriminant ≥ 0:

(y + 1)2 − 4(y − 1)2 ≥ 0, which factorises as (y + 1 − 2y + 2)(y + 1 + 2y − 2) ≥ 0, that is (3 − y)(3y − 1) ≥ 0, so 1/3 ≤ y ≤ 3.

Range = [1/3, 3]. Check: f(1) = 1/3 and f(−1) = 3.

Exam point: in the discriminant method always ask two extra questions – is the value of y that kills the x2 term actually attained, and does any boundary value of y come from an x outside the domain? Missing either gives a wrong interval end.

7. Standard real functions

Know the domain, range and graph of each. In the table, "abs" is used for the modulus to keep it readable.

FunctionRuleDomainRange
Identityf(x) = xRR
Constantf(x) = cR{c}
Polynomiala0 + a1x + … + anxnRdepends on degree; all of R for odd degree
Rationalp(x)/q(x)R minus zeros of qdepends
Modulusabs(x) = x for x ≥ 0, −x for x < 0R[0, ∞)
Signumsgn x = 1, 0, −1 for x > 0, x = 0, x < 0R{−1, 0, 1}
Greatest integer[x] = greatest integer ≤ xRZ
Fractional part{x} = x − [x]R[0, 1)
Exponentialax, a > 0, a ≠ 1R(0, ∞)
Logarithmicloga x, a > 0, a ≠ 1(0, ∞)R
Square root√x[0, ∞)[0, ∞)
Reciprocal1/xR minus {0}R minus {0}
sin x, cos xR[−1, 1]
tan xR minus odd multiples of π/2R

The modulus satisfies |x| = √(x2), |xy| = |x||y|, |x + y| ≤ |x| + |y| (the triangle inequality, with equality when xy ≥ 0), and |x| < a (a > 0) means −a < x < a. For x ≠ 0, sgn x = |x|/x.

Greatest integer function. [x] is the integer n with n ≤ x < n + 1; so [2.7] = 2, [−2.7] = −3, [5] = 5. Its graph is a staircase, constant on each [n, n + 1). Properties:

Fractional part. {x} = x − [x] lies in [0, 1); {2.7} = 0.7, {−2.7} = 0.3. It is periodic with period 1. (Some books use (x) or frac(x); read the question's notation.)

Worked example 7. Solve [x]2 − 5[x] + 6 = 0.

Solution. Treat [x] as an unknown integer t: t2 − 5t + 6 = 0 gives t = 2 or t = 3. [x] = 2 means 2 ≤ x < 3 and [x] = 3 means 3 ≤ x < 4. The solution set is [2, 4).

Exam point: [−x] is not −[x]. For x = 2.3, [−2.3] = −3 but −[2.3] = −2. Equations and domains involving [x] are solved by first finding the allowed integer values of [x], then turning each into an interval.

8. One-one, onto and their counts

8.1 Definitions and tests

Let f : A → B.

Ways to test:

Examples on R → R: f(x) = 2x + 3 is bijective; f(x) = x2 is neither (f(−1) = f(1), and −1 is not an image); f(x) = x3 is bijective; f(x) = ex is one-one but into (range (0, ∞)). Restricting the domain or codomain changes the answer: x2 from [0, ∞) to [0, ∞) is bijective.

For finite sets: if f : A → B is one-one then n(A) ≤ n(B); if onto then n(A) ≥ n(B). If n(A) = n(B) and A, B are finite, then f is one-one exactly when it is onto.

8.2 Counting functions between finite sets

Let n(A) = m and n(B) = n.

Functions from A to BNumber
All functionsnm
One-one (m ≤ n)n(n − 1)(n − 2)…(n − m + 1) = nPm; zero if m > n
Bijections (m = n)n!
Onto (m ≥ n)nm − nC1(n − 1)m + nC2(n − 2)m − … (alternating sum up to the (n − 1) term)
Many-onenm − (number of one-one)
Intonm − (number of onto)

The onto formula is inclusion–exclusion: from all nm functions remove those missing at least one element of B. For n = 2 it gives 2m − 2; for n = 3 it gives 3m − 3 × 2m + 3.

Worked example 8 (JEE Main level). A = {1, 2, 3, 4, 5}, B = {a, b, c}. How many functions from A to B are onto? How many are into?

Solution. All functions: 35 = 243. Onto: 243 − 3 × 25 + 3 × 15 = 243 − 96 + 3 = 150. Into: 243 − 150 = 93. (No function from A to B is one-one, since 5 > 3.)

9. Even, odd and periodic functions

Let the domain D be symmetric about 0 (x ∈ D implies −x ∈ D).

Most functions are neither (for example x + 1 or ex). The only function that is both even and odd on a symmetric domain is f(x) = 0. Every function on a symmetric domain splits uniquely as

f(x) = [f(x) + f(−x)]/2 + [f(x) − f(−x)]/2,

the first part even and the second odd. For f(x) = ex these are cosh x = (ex + e−x)/2 and sinh x = (ex − e−x)/2.

Combination rules: even × even and odd × odd are even; even × odd is odd; the sum of two odd functions is odd and of two even functions is even. If g is even, f∘g is even; if both f and g are odd, f∘g is odd.

A useful odd function: f(x) = log(x + √(x2 + 1)). Here f(−x) = log(√(x2 + 1) − x), and multiplying and dividing by √(x2 + 1) + x gives log(1/(x + √(x2 + 1))) = −f(x).

A function is periodic with period T > 0 if f(x + T) = f(x) for every x in the domain; the smallest such T is the fundamental period. sin x and cos x have period 2π; tan x and |sin x| have period π; {x} has period 1. If f has period T, then f(ax + b) (a > 0) has period T/a.

10. Algebra and composition of functions

For f : D1 → R and g : D2 → R, the functions f + g, f − g and fg are defined on D1 ∩ D2 by adding, subtracting or multiplying values, and f/g on D1 ∩ D2 with the points where g(x) = 0 removed. A scalar multiple cf has the domain of f.

The composition g∘f ("g after f") is (g∘f)(x) = g(f(x)). It is defined at x when x is in the domain of f and f(x) is in the domain of g. Facts:

Worked example 9 (JEE Advanced level). Let f(x) = 1/(1 − x). Find f∘f and f∘f∘f, with their domains.

Solution. f is defined for x ≠ 1. For f(f(x)) we need x ≠ 1 and f(x) ≠ 1; f(x) is never 0, and f(x) = 1 only at x = 0, so we need x ≠ 0, 1. Then

f(f(x)) = 1/(1 − 1/(1 − x)) = (1 − x)/(1 − x − 1) = (1 − x)/(−x) = (x − 1)/x.

For the third application we also need f(f(x)) ≠ 1, but (x − 1)/x = 1 has no solution, so the domain stays R − {0, 1}:

f(f(f(x))) = 1/(1 − (x − 1)/x) = 1/(1/x) = x, for x ≠ 0, 1.

So applying f three times returns every allowed x to itself. It follows that f applied 3k times is the identity on R − {0, 1}, and f applied 3k + 1 times is f.

11. Invertible functions

A function f : A → B is invertible if there is a function g : B → A with g(f(x)) = x for all x in A and f(g(y)) = y for all y in B. Then g is unique and is written f−1.

f is invertible exactly when f is a bijection. If f is not one-one, some y comes from two x's and cannot be sent back to both; if f is not onto, some y in B has nowhere to go.

To find f−1:

  1. Check that f is one-one and onto (restrict the domain or codomain if needed).
  2. Write y = f(x) and solve for x in terms of y, choosing the branch that lies in the original domain.
  3. Swap the letters: f−1(x) = that expression. Its domain is the range of f.

Properties:

Worked example 10 (JEE Advanced level). Let f : [2, ∞) → [1, ∞), f(x) = x2 − 4x + 5. Show that f is invertible, find f−1, and solve f(x) = f−1(x).

Solution. f(x) = (x − 2)2 + 1. On [2, ∞), x − 2 ≥ 0 and increases with x, so f is strictly increasing and therefore one-one. Its least value is f(2) = 1 and it grows without bound, so its range is [1, ∞): f is onto. Hence f is invertible.

Put y = (x − 2)2 + 1. Then (x − 2)2 = y − 1 and, because x − 2 ≥ 0, x − 2 = +√(y − 1). So f−1(x) = 2 + √(x − 1), x ≥ 1.

Since f is increasing, f(x) = f−1(x) reduces to f(x) = x: x2 − 4x + 5 = x, so x2 − 5x + 5 = 0, x = (5 ± √5)/2. The root (5 − √5)/2 ≈ 1.38 is not in [2, ∞). The only solution is x = (5 + √5)/2 (about 3.618). Check: f−1(3.618) = 2 + √2.618 ≈ 2 + 1.618 = 3.618.

Exam point: a function is never "invertible" on its own – it is invertible as a map from a stated domain to a stated codomain. If a question says f : R → R and f is not onto R, the answer is "not invertible", even when a formula for x can be written.

12. A note on simple functional equations

JEE Advanced sometimes defines a function by a property instead of a formula. Standard moves are to substitute convenient values (x = 0, y = 0, y = x, y = −x) and to compare.

13. Common mistakes

14. Quick revision

FactFormula or value
Subsets of an n-element set2n; proper subsets 2n − 1
Union of two setsn(A ∪ B) = n(A) + n(B) − n(A ∩ B)
Union of three setsΣn(A) − Σn(A ∩ B) + n(A ∩ B ∩ C)
Exactly one of threeΣn(A) − 2Σn(A ∩ B) + 3n(A ∩ B ∩ C)
Symmetric difference countn(A) + n(B) − 2n(A ∩ B)
De Morgan(A ∪ B)′ = A′ ∩ B′; (A ∩ B)′ = A′ ∪ B′
DifferenceA − B = A ∩ B′
Cartesian productn(A × B) = n(A) × n(B)
Relations from A (m) to B (n)2mn
Reflexive relations on n elements2n2 − n
Symmetric relations on n elements2n(n+1)/2
Equivalence relationscorrespond to partitions: 5 on 3 elements, 15 on 4
Equivalence relationreflexive + symmetric + transitive
Functions from A (m) to B (n)nm
One-one functions (m ≤ n)nPm
Onto functions to 3 elements3m − 3 × 2m + 3
Onto functions to 2 elements2m − 2
Invertibleexactly when bijective
Inverse of a composition(g∘f)−1 = f−1∘g−1
Graph of f−1reflection of graph of f in y = x
Greatest integer boundsx − 1 < [x] ≤ x
[x] + [−x]0 for integer x, −1 otherwise
Fractional part{x} = x − [x], range [0, 1), period 1
Even and odd parts[f(x) ± f(−x)]/2
Domain of loga g(x)g(x) > 0, a > 0, a ≠ 1
Range of ax(0, ∞)

15. Practice questions

  1. Let A = {1, 2, 3, 4} and B = {p, q, r}. The number of relations from A to B is ____ (numerical value).
  2. Set A has m elements and set B has n elements. A has 56 more subsets than B. The value of m + n is ____ (numerical value).
  3. In a class of 60, 25 study French, 26 study German and 26 study Spanish; 9 study French and German, 11 French and Spanish, 8 German and Spanish, and 3 all three. The number who study exactly one of the three is ____ (numerical value).
  4. On A = {1, 2, 3}, R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)} is: (a) an equivalence relation (b) reflexive and transitive but not symmetric (c) reflexive but neither symmetric nor transitive (d) symmetric and transitive but not reflexive
  5. On R, define a R b when the modulus of a − b is at most 1. Then R is: (a) an equivalence relation (b) reflexive and symmetric but not transitive (c) reflexive and transitive but not symmetric (d) symmetric and transitive but not reflexive
  6. The number of equivalence relations on {1, 2, 3} that contain the pair (1, 2) is: (a) 1 (b) 2 (c) 3 (d) 5
  7. The domain of f(x) = 1/√([x]2 − [x] − 6), where [x] is the greatest integer function, is: (a) (−∞, −2) ∪ [4, ∞) (b) (−∞, −2] ∪ [3, ∞) (c) (−∞, −3) ∪ (3, ∞) (d) [−2, 4)
  8. The range of f(x) = x/(1 + x2), x ∈ R, is: (a) [−1, 1] (b) [−1/2, 1/2] (c) [0, 1/2] (d) R
  9. The number of onto functions from {1, 2, 3, 4} to {a, b, c} is ____ (numerical value).
  10. f : R → R is defined by f(x) = x times the modulus of x. Then f is: (a) one-one but not onto (b) onto but not one-one (c) one-one and onto (d) neither one-one nor onto
  11. If f(x) = (3x + 4)/(5x − 3), x ≠ 3/5, then f(f(2)) is ____ (numerical value).
  12. Which function is odd? (a) f(x) = x2 + cos x (b) f(x) = log(x + √(x2 + 1)) (c) f(x) = ex + x (d) f(x) = [x]
  13. f : [−1, ∞) → [−1, ∞) is given by f(x) = x2 + 2x. Then f−1(8) is ____ (numerical value).

Answers

  1. 4096 – n(A × B) = 12, so there are 212 relations.
  2. 9 – 2m − 2n = 56 = 64 − 8 = 26 − 23, so m = 6, n = 3 (the only powers of 2 differing by 56).
  3. 30 – Σ singles = 77, Σ pairs = 28, all three = 3; exactly one = 77 − 56 + 9 = 30.
  4. (c) – all (a, a) are present, but (2, 1) is missing, and (1, 2), (2, 3) are present without (1, 3).
  5. (b) – the modulus of a − a is 0 and the condition is symmetric in a and b, but 0 R 1 and 1 R 2 while 0 and 2 are not related.
  6. (b) – the partitions with 1 and 2 together are {1, 2}{3} and {1, 2, 3}.
  7. (a) – ([x] − 3)([x] + 2) > 0 needs [x] ≥ 4 (so x ≥ 4) or [x] ≤ −3 (so x < −2).
  8. (b) – y(1 + x2) = x gives yx2 − x + y = 0; for y ≠ 0, 1 − 4y2 ≥ 0; y = 0 is attained at x = 0; f(1) = 1/2, f(−1) = −1/2.
  9. 36 – 34 − 3 × 24 + 3 = 81 − 48 + 3 = 36.
  10. (c) – f(x) = x2 for x ≥ 0 and −x2 for x < 0 is strictly increasing with range R.
  11. 2 – f is of the form (ax + b)/(cx − a) with a2 + bc = 9 + 20 ≠ 0, so f∘f is the identity; directly, f(2) = 10/7 and f(10/7) = (58/7)/(29/7) = 2.
  12. (b) – f(−x) = log(√(x2 + 1) − x) = −log(x + √(x2 + 1)) = −f(x).
  13. 2 – f(x) = (x + 1)2 − 1 is a bijection here, f−1(x) = −1 + √(x + 1), and f−1(8) = −1 + 3 = 2 (check: f(2) = 8).

Next step: practise this unit in the EduAlx question bank for your exam (JEE Main, JEE Advanced or CUET UG – choose Mathematics) and try the full-length practice papers; then move to the next unit, Complex numbers and quadratic equations. EduAlx is not affiliated with NTA or the IITs.

References

Like these notes? Get the whole subject

Every unit of the subject, written the same way, read online for 12 months. JEE Main Mathematics, JEE Advanced Mathematics, CUET-UG Mathematics.

See subjects and prices