NDA Mathematics · 124 questions · 2017 to 2026

NDA Relations and Functions previous year questions with solutions

Relations and Functions carries 122 past questions in 19 sittings, 2017-I to 2026-II (10 of them companions from Calculus and Integration): about 6 a paper, rising from 5.9 a paper over the seven sittings of 2017–2020 to 7.9 over the eight of 2023–2026 (63 of the 122). Composition (17%), functional equations (15%) and domain-and-range (25%) are the weight; functional equations and the ordered-pair questions of §1 are the part that has grown since 2021. Every Relations and Functions question of UPSC's NDA/NA Mathematics papers from 2017 (I) to 2026 (II). Grouped by the method each needs, newest first; open a question for its answer and worked solution.

2.1 Ordered pairs, Cartesian products and relations (12)2.2 Types of relations: reflexive, symmetric, transitive, equivalence (12)2.3 Functions: value, domain, range and graph (32)2.4 One-one, onto and bijective functions; the inverse of a function (10)2.5 Composition of functions (21)2.6 Functional equations and identities (19)2.7 Modulus, greatest-integer, even–odd and periodic functions (18)

2.1 Ordered pairs, Cartesian products and relations

1. NDA 2026 (II)
Consider the following relations from A to B, where A = {1, 3, 5} and B = {2, 4, 6, 8}:
I. {(1, 2), (3, 2), (3, 6), (5, 8)}
II. {(3, 4), (5, 8), (1, 6), (3, 2)}
III. {(1, 2), (3, 6)}
IV. {(1, 6), (3, 2), (5, 2)}
Which of the above is/⁠are function(s) from A to B?
Answer and solution

Answer: (b) IV only

Method. a function from A to B gives each element of A exactly one image

I: 3 has two images (2 and 6) → not a function.
II: 3 has two images (4 and 2) → not a function.
III: 5 has no image → not a function from A.
IV: 1 → 6, 3 → 2, 5 → 2; each element of A has exactly one image → a function.
Only IV.

2. NDA 2026 (II)
Consider the following statements in respect of a relation R from a set A to a set B:
I. The set B is called codomain of the relation R.
II. The range of the relation is always equal to codomain of the relation R.
III. The domain of the relation R must be equal to the set A.
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (a) I only

Method. definitions of domain, codomain and range of a relation

I: for R ⊆ A × B, B is the codomain. Correct.
II: range = set of second elements actually used, a subset of B; e.g. R = {(1, 2)} from {1} to {2, 3} has range {2} ≠ B. Wrong.
III: domain = set of first elements actually used, a subset of A; the same R from {1, 4} gives domain {1} ≠ A. Wrong.
Only I.

3. NDA 2025 (II)
Set X contains 3n elements and set Y contains 2n elements, and they have n elements in common. How many elements does (X − Y) × (Y − X) have?
Answer and solution

Answer: (d) 2n2

Method. n(P × Q) = n(P) n(Q)

n(X −⁠ Y) = n(X) − n(X ∩ Y) = 3n − n = 2n.
n(Y −⁠ X) = n(Y) − n(X ∩ Y) = 2n − n = n.
n((X −⁠ Y) × (Y −⁠ X)) = 2n × n = 2n2.

4. NDA 2025 (II)
Let A = {-3, -2, -1, 0, 1, 2, 3} and B = {0, 1, 4, 9}. How many elements does the subset of A × B corresponding to the relation R = {(x, y): |x| < y} have, where x ∈ A and y ∈ B?
Answer and solution

Answer: (c) 15

Method. count pairs y by y

y = 0: |x| < 0 is impossible → 0 pairs.
y = 1: |x| < 1 → x = 0 → 1 pair.
y = 4: |x| < 4 → all 7 elements of A → 7 pairs.
y = 9: |x| < 9 → 7 pairs.
Total = 0 + 1 + 7 + 7 = 15.

5. NDA 2024 (II)
If A and B are two non-empty sets having 10 elements in common, then how many elements do A × B and B × A have in common?
Answer and solution

Answer: (d) 100

Method. (A × B) ∩ (B × A) = (A ∩ B) × (A ∩ B)

(x, y) is in both A × B and B × A exactly when x ∈ A ∩ B and y ∈ A ∩ B.
So the common part is (A ∩ B) × (A ∩ B), with 10 × 10 = 100 elements.

6. NDA 2023 (II)
The Cartesian product A × A has 16 elements among which are (0, 2) and (1, 3). Which of the following statements is/⁠are correct?
1. It is possible to determine set A.
2. A × A contains the element (3, 2).
Select the correct answer using the code given below:
Answer and solution

Answer: (c) Both 1 and 2

Method. n(A × A) = n(A)2

n(A)2 = 16, so n(A) = 4.
(0, 2) ∈ A × A gives 0, 2 ∈ A; (1, 3) ∈ A × A gives 1, 3 ∈ A.
These are four distinct elements, so A = {0, 1, 2, 3}: statement 1 is correct.
3 ∈ A and 2 ∈ A, so (3, 2) ∈ A × A: statement 2 is correct.

7. NDA 2023 (II)
Let A = {1, 2, 3, …, 20}. Define a relation R from A to A by R = {(x, y): 4x − 3y = 1}, where x, y ∈ A. Which of the following statements is/⁠are correct?
1. The domain of R is {1, 4, 7, 10, 13, 16}.
2. The range of R is {1, 5, 9, 13, 17}.
3. The range of R is equal to codomain of R.
Select the correct answer using the code given below:
Answer and solution

Answer: (b) 2 only

Method. list the pairs with y = 4x − 13 inside A

y = 4x − 13 is an integer only when x = 1, 4, 7, 10, 13, 16, 19.
These give y = 1, 5, 9, 13, 17, 21, 25; y must be ≤ 20, so x = 16 and 19 drop out.
R = {(1, 1), (4, 5), (7, 9), (10, 13), (13, 17)}.
Domain = {1, 4, 7, 10, 13}: statement 1 (which includes 16) is wrong.
Range = {1, 5, 9, 13, 17}: statement 2 is correct.
Codomain is A = {1, …, 20} ≠ range: statement 3 is wrong.

8. NDA 2023 (II)
Consider the following statements:
1. The relation f defined by f(x) = x3,0 ≤ x ≤ 24x,2 ≤ x ≤ 8 is a function.
2. The relation g defined by g(x) = x2,0 ≤ x ≤ 43x,4 ≤ x ≤ 8 is a function.
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (a) 1 only

Method. a piecewise rule is a function only if overlapping pieces agree at the common point

Both rules cover x = 2 (in f) and x = 4 (in g) twice.
f at x = 2: x3 = 8 and 4x = 8 — the same value, so f is a function.
g at x = 4: x2 = 16 but 3x = 12 — two images of 4, so g is not a function.
Only statement 1 is correct.

9. NDA 2022 (II)
Consider the following statements:
1. If f is the subset of Z × Z defined by f = {(xy, x − y); x, y ∈ Z}, then f is a function from Z to Z.
2. If f is the subset of N × N defined by f = {(xy, x + y); x, y ∈ N}, then f is a function from N to N.
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (d) Neither 1 nor 2

Method. a function needs a single image for each input

1. Input 0 arises from (x, y) = (0, 1) and (0, 2), giving images 0 − 1 = -1 and 0 − 2 = -2. One input, two images, so f is not a function.
2. Input 4 arises from (x, y) = (1, 4) and (2, 2), giving images 5 and 4. Again not a function.
Neither statement is correct.

10. NDA 2021 (II)
Consider the following statements in respect of relations and functions:
1. All relations are functions but all functions are not relations.
2. A relation from A to B is a subset of Cartesian product A × B.
3. A relation in A is a subset of Cartesian product A × A.
Which of the above statements are correct?
Answer and solution

Answer: (b) 2 and 3 only

Method. a function is a special kind of relation; a relation is a subset of a Cartesian product

Statement 1: every function is a relation, but not every relation is a function (an element may be related to two images). Statement 1 states the reverse, so it is false.
Statement 2: a relation from A to B is, by definition, a subset of A × B. True.
Statement 3: a relation in A is a relation from A to A, a subset of A × A. True.

11. NDA 2021 (I)
Let R be a relation defined as xRy if and only if 2x + 3y = 20, where x, y ∈ N. How many elements of the form (x, y) are there in R?
Answer and solution

Answer: (b) 3

Method. list natural-number solutions of a linear equation

2x = 20 − 3y must be even and positive, so y is even and 3y < 20.
y = 2 ⇒ x = 7; y = 4 ⇒ x = 4; y = 6 ⇒ x = 1.
R = {(7, 2), (4, 4), (1, 6)}: 3 elements.

12. NDA 2018 (II)
Let A = {x ∈ R: -1 ≤ x ≤ 1}, B = {y ∈ R: -1 ≤ y ≤ 1} and S be the subset of A × B, defined by S = {(x, y) ∈ A × B: x2 + y2 = 1}.
Which one of the following is correct?
Answer and solution

Answer: (d) S is not a function

Method. a function from A gives each x exactly one image

x2 + y2 = 1 gives y = ±⁠√(1⁠ −⁠ x2).
For x = 0, both (0, 1) and (0, -1) are in S.
So the element 0 of A has two images, and S is not a function.

2.2 Types of relations: reflexive, symmetric, transitive, equivalence

13. NDA 2026 (II)
Let S be the set of all real numbers and R be a relation on S defined by xRy ⇒ |x| ≤ y. Then R is
Answer and solution

Answer: (b) transitive only

Method. test reflexivity with a negative number; transitivity via y ≥ 0

Reading xRy as |x| ≤ y.
Reflexive needs |x| ≤ x for all real x; x = -1 gives 1 ≤ -1, false. Not reflexive.
Transitive: if |x| ≤ y and |y| ≤ z, then y ≥ |x| ≥ 0 so |y| = y, and |x| ≤ y ≤ z, i.e. xRz. Transitive.
R is transitive only.

14. NDA 2026 (I)
Let R be a relation on the set N of natural numbers defined by
R = {(x, y): x, y ∈ N and x = y3}.
Which of the following statements is/⁠are correct?
I. R is symmetric relation
II. R is transitive relation
Select the answer using the code given below:
Answer and solution

Answer: (d) Neither I nor II

Method. test each property with a counterexample

Symmetric: (8, 2) ∈ R since 8 = 23, but (2, 8) ∉ R since 2 ≠ 83. Not symmetric: I is wrong.
Transitive: (512, 8) ∈ R (512 = 83) and (8, 2) ∈ R, but (512, 2) ∉ R since 23 = 8 ≠ 512. Not transitive: II is wrong.
Neither statement is correct.

15. NDA 2024 (II)
Let P and Q be two non-void relations on a set A. Which of the following statements are correct?
I. P and Q are reflexive ⇒ P ∩ Q is reflexive.
II. P and Q are symmetric ⇒ P ∪ Q is symmetric.
III. P and Q are transitive ⇒ P ∩ Q is transitive.
Select the answer using the code given below.
Answer and solution

Answer: (d) I, II and III

Method. check each property against the definitions

I: (a, a) ∈ P and (a, a) ∈ Q for every a ∈ A, so (a, a) ∈ P ∩ Q: true.
II: (a, b) ∈ P ∪ Q lies in P or in Q; that relation is symmetric, so (b, a) lies in it too, hence in P ∪ Q: true.
III: (a, b), (b, c) ∈ P ∩ Q give (a, c) ∈ P(P transitive) and (a, c) ∈ Q (Q transitive), so (a, c) ∈ P ∩ Q: true.
All three are correct.

16. NDA 2024 (I)
Let R be a relation on the open interval (-1, 1) and is given by R = {(x, y): |x + y| < 2}. Then which one of the following is correct?
Answer and solution

Answer: (d) R is an equivalence relation

Method. for x, y in (-1, 1) the condition |x + y| < 2 always holds

For x, y ∈ (-1, 1): -2 < x + y < 2, so |x + y| < 2 for every pair.
Hence R = (-1, 1) × (-1, 1), the universal relation.
The universal relation is reflexive, symmetric and transitive, so R is an equivalence relation.

17. NDA 2022 (II)
Let R be a relation from N to N defined by R = {(x, y): x, y ∈ N and x2 = y3}. Which of the following are not correct?
1. (x, x) ∈ R for all x ∈ N
2. (x, y) ∈ R ⇒ (y, x) ∈ R
3. (x, y) ∈ R and (y, z) ∈ R ⇒ (x, z) ∈ R
Select the correct answer using the code given below:
Answer and solution

Answer: (d) 1, 2 and 3

Method. x2 = y3 in ℕ forces x = t3, y = t2; test each property

1. (x, x) ∈ R needs x2 = x3, true only for x = 1; e.g. (2, 2) ∉ R. Not correct.
2. (8, 4) ∈ R since 64 = 64, but (4, 8) ∉ R since 16 ≠ 512. Not correct.
3. (512, 64) ∈ R (5122 = 218 = 643) and (64, 16) ∈ R (642 = 212 = 163), but (512, 16) ∉ R since 218 ≠ 212. Not correct.
All three are not correct.

18. NDA 2022 (I)
Consider the following statements in respect of the relation R in the set ℕ of natural numbers defined by xRy if x2 - 5xy + 4y2 = 0 :
1. R is reflexive
2. R is symmetric
3. R is transitive
Which of the above statements is/⁠are correct?
Answer and solution

Answer: (a) 1 only

Method. factorise the condition: xRy ⇔ x = y or x = 4y

x2 - 5xy + 4y2 = (x − y)(x − 4y), so xRy ⇔ x = y or x = 4y.
Reflexive: x = x always, so xRx. True.
Symmetric: 4R1 (4 = 4 × 1), but 1R4 fails (1 ≠ 4 and 1 ≠ 16). False.
Transitive: 16R4 and 4R1, but 16R1 fails (16 ≠ 1 and 16 ≠ 4). False.
Only statement 1 is correct.

19. NDA 2022 (I)
Consider the following statements in respect of any relation R on a set A:
1. If R is reflexive, then R-1 is also reflexive
2. If R is symmetric, then R-1 is also symmetric
3. If R is transitive, then R-1 is also transitive
Which of the above statements are correct?
Answer and solution

Answer: (d) 1, 2 and 3

Method. R-1 = {(b, a): (a, b) ∈ R} inherits each property

1. R reflexive ⇒ (a, a) ∈ R for all a ⇒ (a, a) ∈ R-1. True.
2. R symmetric ⇒ R-1 = R, which is symmetric. True.
3. (a, b), (b, c) ∈ R-1 ⇒ (c, b), (b, a) ∈ R ⇒ (c, a) ∈ R (R transitive) ⇒ (a, c) ∈ R-1. True.

20. NDA 2020 (I)
Let S = {1, 2, 3, …}. A relation R on S × S is defined by xRy if loga x > loga y when a = 12. Then the relation is
Answer and solution

Answer: (c) transitive only

Method. log to a base below 1 is decreasing, so xRy means x < y

With a = 12, loga t is a decreasing function, so loga x > loga y ⇔ x < y.
Reflexive: x < x is false, so not reflexive.
Symmetric: 1 < 2 but not 2 < 1, so not symmetric.
Transitive: x < y and y < z ⇒ x < z, so transitive.
Hence R is transitive only.

21. NDA 2019 (I)
Suppose X = {1, 2, 3, 4} and R is a relation on X. If R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1), (2, 3), (3, 2)}, then which one of the following is correct?
Answer and solution

Answer: (d) R is neither reflexive nor transitive, but symmetric

Method. check each property against the listed pairs

Reflexive: (4, 4) ∉ R though 4 ∈ X, so R is not reflexive.
Symmetric: (1, 2), (2, 1) and (2, 3), (3, 2) both appear; the rest are (a, a). So R is symmetric.
Transitive: (1, 2) ∈ R and (2, 3) ∈ R but (1, 3) ∉ R, so R is not transitive.
So R is symmetric but neither reflexive nor transitive.

22. NDA 2019 (I)
A relation R is defined on the set N of natural numbers as xRy ⇒ x2 - 4xy + 3y2 = 0. Then which one of the following is correct?
Answer and solution

Answer: (d) R is reflexive, but neither symmetric nor transitive

Method. factor the quadratic: x R y ⇔ x = y or x = 3y

x2 - 4xy + 3y2 = (x − y)(x − 3y), so x R y ⇔ x = y or x = 3y.
Reflexive: x = x, so x R x.
Not symmetric: 3 R 1 (3 = 3.1) but 1 R 3 fails (1 ≠ 3, 1 ≠ 9).
Not transitive: 9 R 3 and 3 R 1, but 9 R 1 fails (9 ≠ 1, 9 ≠ 3).
So R is reflexive, but neither symmetric nor transitive.

23. NDA 2017 (II)
If we define a relation R on the set N × N as (a, b) R (c, d) ⇔ a + d = b + c for all (a, b), (c, d) ∈ N × N, then the relation is
Answer and solution

Answer: (c) equivalence relation

Method. check reflexive, symmetric, transitive; equivalently a − b = c − d

a + d = b + c ⇔ a − b = c − d.
Reflexive: a − b = a − b, so (a, b) R (a, b).
Symmetric: a − b = c − d ⇒ c − d = a − b.
Transitive: a − b = c − d and c − d = e − f ⇒ a − b = e − f.
So R is an equivalence relation.

24. NDA 2017 (I)
Let S be the set of all persons living in Delhi. We say that x, y in S are related if they were born in Delhi on the same day. Which one of the following is correct?
Answer and solution

Answer: (b) The relation is not reflexive but it is symmetric and transitive

Method. test each property of 'born in Delhi on the same day'

Reflexive needs x R x for every x ∈ S, i.e. every Delhi resident was born in Delhi. A resident born elsewhere is not related to himself, so R is not reflexive.
Symmetric: if x and y were born in Delhi on the same day, so were y and x.
Transitive: x, y born in Delhi on the same day and y, z born in Delhi on the same day ⇒ x, z born in Delhi on the same day.
So R is symmetric and transitive but not reflexive.

2.3 Functions: value, domain, range and graph

25. NDA 2026 (II)
What is the domain of the function f(x) = logx e?
Answer and solution

Answer: (b) (0, ∞) - {1}

Method. change of base: logx e = 1/⁠ln x

logx e = ln eln x = 1ln x.
Need x > 0 (base positive) and ln x ≠ 0, i.e. x ≠ 1.
Domain = (0, ∞) - {1}.

26. NDA 2025 (II)
For the following two (02) items:
Consider the function f(x) = 1 - ∛((x − 1)2).
What is the domain of the function?
Answer and solution

Answer: (b) (-∞, ∞)

Method. a cube root is defined for every real number

(x − 1)2 is defined for all real x, and ∛ of any real number is real.
So f(x) = 1 - ∛((x − 1)2) is defined for every x: domain = (-∞, ∞).

27. NDA 2025 (II)
The function has
Answer and solution

Answer: (b) a maximum at x = 1

Method. ∛((x − 1)2) ≥ 0 with equality only at x = 1

∛((x − 1)2) ≥ 0 for all x, and = 0 only at x = 1.
So f(x) = 1 - ∛((x − 1)2) ≤ 1 = f(1) for all x, with f(x) < 1 for x ≠ 1.
f has a maximum (value 1) at x = 1 (a cusp, where f' does not exist, but the maximum stands).

28. NDA 2025 (I)
Consider the following for the two (02) items that follow:
Let the function y = (1 − cos x)-1, where x ≠ 2nπ and n is an integer.
What is the range of the function?
Answer and solution

Answer: (b) [0.5, ∞)

Method. bound 1 − cos x and take the reciprocal

x ≠ 2nπ, so cos x ≠ 1 and -1 ≤ cos x < 1; hence 0 < 1 − cos x ≤ 2.
Taking reciprocals reverses the order: y =
11 − cos x ≥ 12, with y = 1/⁠2 at x = (2n + 1)π.
As cos x → 1, 1 − cos x → 0+ and y → ∞. Range = [0.5, ∞).

29. NDA 2025 (I)
What is ∫ y dx equal to?
where c is the constant of integration.
Answer and solution

Answer: (b) -cot(x/⁠2) + c

Method. half-angle identity 1 − cos x = 2 sin2(x/⁠2)

y = 11 − cos x = 12 sin2(x/⁠2) = 12 cosec2(x/⁠2).
∫
12 cosec2(x/⁠2) dx = 12 × (-cot(x/⁠2)) × 2 + c = -cot(x/⁠2) + c.

30. NDA 2025 (I)
Consider the following for the two (02) items that follow:
Let the curve f(x) = |x − 3|.
What is the domain of the function f(x)?
Answer and solution

Answer: (c) (-∞, ∞)

Method. modulus is defined for every real number

|x − 3| is defined for every real x (it equals x − 3 for x ≥ 3 and 3 − x for x < 3).
Domain = (-∞, ∞).

31. NDA 2025 (I)
What is the area bounded by the curve f(x) and y = 3?
Answer and solution

Answer: (d) 9 square units

Method. area of the triangle cut off by y = 3 from the V-shaped graph

y = |x − 3| meets y = 3 where |x − 3| = 3, i.e. x = 0 and x = 6; the vertex of the V is (3, 0).
The bounded region is the triangle with vertices (0, 3), (6, 3), (3, 0): base 6, height 3.
Area =
12 × 6 × 3 = 9 square units.

Shortcut. ∫06 (3 − |x − 3|) dx = 18 − 9 = 9.

32. NDA 2025 (I)
Consider the following for the two (02) items that follow:
Let f = {(1, 1), (2, 4), (3, 7), (4, 10)}.
If f(x) = px + q, then what is the value of (p + q)?
Answer and solution

Answer: (c) 1

Method. fit a line through the given pairs

From (1, 1): p + q = 1. From (2, 4): 2p + q = 4, so p = 3, q = -2.
Check: f(3) = 7, f(4) = 10. (holds)
p + q = 3 − 2 = 1.

Shortcut. p + q = f(1) = 1 directly.

33. NDA 2025 (I)
Consider the following statements:
I. f is one-one function.
II. f is onto function if the codomain is the set of natural numbers.
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (a) I only

Method. one-one: distinct inputs give distinct outputs; onto: range equals codomain

f maps 1, 2, 3, 4 to 1, 4, 7, 10, which are all different, so f is one-one: I is correct.
Range = {1, 4, 7, 10} ≠ N (for example 2 has no pre-image), so f is not onto N: II is wrong.
Only I is correct.

34. NDA 2024 (I)
Which one of the following is correct in respect of f(x) = 1⁠√(|x|⁠ −⁠ x) and g(x) = 1⁠√(x⁠ −⁠ |x|)?
Answer and solution

Answer: (a) f(x) has some domain and g(x) has no domain

Method. the expression under a square root in a denominator must be > 0

f: need |x| − x > 0. For x ≥ 0, |x| − x = 0; for x < 0, |x| − x = -2x > 0. Domain of f = (-∞, 0).
g: need x − |x| > 0. For x ≥ 0 it is 0; for x < 0 it is 2x < 0. Never positive, so g has empty domain.
f has some domain, g has none.

35. NDA 2023 (II)
Consider the following for the next two (02) items that follow:
A function is defined by f(x) = π + sin2 x.
What is the range of the function?
Answer and solution

Answer: (b) [π, π + 1]

Method. 0 ≤ sin2 x ≤ 1

sin2 x takes every value from 0 (at x = 0) to 1 (at x = π2).
Adding π: π ≤ π + sin2 x ≤ π + 1.
Range = [π, π + 1].

36. NDA 2023 (II)
What is the period of the function?
Answer and solution

Answer: (b) π

Method. sin2 x = 1 − cos 2x2 has period π

f(x) = π + 1 − cos 2x2.
cos 2x has period
2π2 = π, and adding constants does not change the period.
Check: f(x + π) = π + sin2(x + π) = π + (-sin x)2 = f(x); no smaller positive period works: a period T needs f(T) = f(0), i.e. sin2 T = 0, so T is a multiple of π (in particular f(
π2) = π + 1 ≠ f(0) = π).
Period = π.

37. NDA 2023 (II)
Consider the following for the next two (02) items that follow:
Let f(x) = ⁠√(2⁠ −⁠ x) + ⁠√(2⁠ + x).
What is the domain of the function?
Answer and solution

Answer: (b) [-2, 2]

Method. both expressions under the square roots must be ≥ 0

2 − x ≥ 0 gives x ≤ 2; 2 + x ≥ 0 gives x ≥ -2.
Domain = [-2, 2] (the end points are allowed, since ⁠√0⁠ = 0).

38. NDA 2023 (II)
What is the greatest value of the function?
Answer and solution

Answer: (c) ⁠√8⁠

Method. square f and maximise 4 − x2

f(x)2 = (2 − x) + (2 + x) + 2⁠√((2⁠ −⁠ x)(2 + x)) = 4 + 2⁠√(4⁠ −⁠ x2).
4 − x2 is largest (= 4) at x = 0, so f2 ≤ 4 + 2.2 = 8.
Greatest value = ⁠√8⁠ (at x = 0: f(0) = ⁠√2⁠ + ⁠√2⁠ = 2⁠√2⁠ = ⁠√8).⁠

39. NDA 2022 (II)
Let A = {7, 8, 9, 10, 11, 12, 13, 14, 15, 16} and let f: A → N be defined by f(x) = the highest prime factor of x. How many elements are there in the range of f?
Answer and solution

Answer: (c) 6

Method. list the highest prime factor of each element

7 → 7, 8 → 2, 9 → 3, 10 → 5, 11 → 11, 12 → 3, 13 → 13, 14 → 7, 15 → 5, 16 → 2.
Range = {2, 3, 5, 7, 11, 13}: 6 elements.

40. NDA 2022 (II)
What is the minimum value of the function f(x) = log10(x2 + 2x + 11)?
Answer and solution

Answer: (b) 1

Method. complete the square inside the log; log10 is increasing

x2 + 2x + 11 = (x + 1)2 + 10 ≥ 10, with equality at x = -1.
Since log10 is increasing, minimum f = log10 10 = 1.

41. NDA 2022 (I)
What is the domain of the function f(x) = ⁠√(1⁠ −⁠ (x −⁠ 1)2)?
Answer and solution

Answer: (d) [0, 2]

Method. expression under the square root must be non-negative

Need 1 − (x − 1)2 ≥ 0 ⇒ (x − 1)2 ≤ 1 ⇒ -1 ≤ x − 1 ≤ 1 ⇒ 0 ≤ x ≤ 2.
The end points give ⁠√0⁠ = 0, so they are included: domain = [0, 2].

42. NDA 2021 (II)
What is the range of the function f(x) = 1 − sin x defined on entire real line?
Answer and solution

Answer: (b) [0, 2]

Method. range of sin x is [-1, 1]; transform it

-1 ≤ sin x ≤ 1, both ends attained.
Multiply by -1: -1 ≤ -sin x ≤ 1.
Add 1: 0 ≤ 1 − sin x ≤ 2.
Range = [0, 2] (closed: 0 at x =
π2, 2 at x = -π2).

43. NDA 2021 (I)
What is the domain of the function f(x) = 3x?
Answer and solution

Answer: (a) (-∞, ∞)

Method. an exponential with positive base is defined for every real exponent

3x is defined (and positive) for every real x, including x = 0 (30 = 1) and negative x (3-x = 13x).
Domain = (-∞, ∞). (The range, not the domain, is (0, ∞).)

44. NDA 2020 (I)
The value of ordinate of the graph of y = 2 + cos x lies in the interval
Answer and solution

Answer: (d) [1, 3]

Method. range of cos x is [-1, 1]; shift it by 2

-1 ≤ cos x ≤ 1 for every x, with both ends attained (x = π and x = 0).
Adding 2: 1 ≤ 2 + cos x ≤ 3.
So the ordinate y takes exactly the values in [1, 3]; [0, 3] also contains them but is not the set of values taken.

45. NDA 2020 (I)
If f(x) = 2x − x2, then what is the value of f(x + 2) + f(x − 2) when x = 0?
Answer and solution

Answer: (a) -8

Method. put x = 0 and evaluate f(2) + f(-2)

At x = 0 the expression is f(2) + f(-2).
f(2) = 2(2) − 22 = 0.
f(-2) = 2(-2) − (-2)2 = -4 − 4 = -8.
Sum = 0 + (-8) = -8.

46. NDA 2020 (I)
Which one of the following is correct in respect of the graph of y = 1x − 1?
Answer and solution

Answer: (b) The domain is {x ∈ R | x ≠ 1}, the range is {y ∈ R | y ≠ 0} and the graph intersects y-axis at (0, -1).

Method. domain, range and y-intercept of a rectangular hyperbola

Domain: x − 1 ≠ 0 ⇒ x ≠ 1.
Range: y =
1x − 1 ⇒ x = 1 + 1y, defined for every y ≠ 0, and 1x − 1 is never 0; so range = {y ∈ R | y ≠ 0}.
y-axis: x = 0 gives y =
1-1 = -1, so the graph meets it at (0, -1).
Option (a) is wrong because 0 is not in the range; (c) and (d) are wrong outright.

47. NDA 2019 (II)
Which one of the following is the second degree polynomial function f(x) where f(0) = 5, f(-1) = 10 and f(1) = 6?
Answer and solution

Answer: (c) 3x2 - 2x + 5

Method. f(x) = ax2 + bx + c with three conditions

f(0) = 5 ⇒ c = 5.
f(-1) = a − b + 5 = 10 ⇒ a − b = 5.
f(1) = a + b + 5 = 6 ⇒ a + b = 1.
So a = 3, b = -2, and f(x) = 3x2 - 2x + 5.

Shortcut. Test f(1) = 6 in the options: (a) gives 8, (b) -4, (c) 6, (d) -2; only (c) fits (and its f(0) = 5, f(-1) = 10).

48. NDA 2019 (I)
For r > 0, f(r) is the ratio of perimeter to area of a circle of radius r. Then f(1) + f(2) is equal to
Answer and solution

Answer: (c) 3

Method. perimeter/⁠area of a circle = 2/⁠r

f(r) = 2πrπr2 = 2r.
f(1) + f(2) = 2 + 1 = 3.

49. NDA 2019 (I)
The domain of the function f(x) = ⁠√((2⁠ −⁠ x)(x −⁠ 3)) is
Answer and solution

Answer: (c) [2, 3]

Method. radicand ≥ 0

(2 − x)(x − 3) ≥ 0 ⇔ (x − 2)(x − 3) ≤ 0.
The product of (x − 2) and (x − 3) is ≤ 0 between the roots, endpoints included: 2 ≤ x ≤ 3.
Domain = [2, 3].

50. NDA 2018 (II)
If f(x) = ⁠√(x⁠ −⁠ 1)x − 4 defines a function on R, then what is its domain?
Answer and solution

Answer: (d) [1, 4) ∪ (4, ∞)

Method. radicand ≥ 0 and denominator ≠ 0

⁠√(x⁠ −⁠ 1) is real only for x − 1 ≥ 0, i.e. x ≥ 1.
The denominator x − 4 must not be 0, so x ≠ 4.
Domain = [1, 4) ∪ (4, ∞).

51. NDA 2018 (II)
A function f: A → R is defined by the equation f(x) = x2 - 4x + 5 where A = (1, 4). What is the range of the function?
Answer and solution

Answer: (c) [1, 5)

Method. complete the square and track the open ends of A

f(x) = (x − 2)2 + 1.
On (1, 4) the minimum is f(2) = 1, attained since 2 ∈ (1, 4).
On (1, 2], f falls from values near f(1) = 2 down to 1; on [2, 4), f rises from 1 towards f(4) = 5, never reaching it.
So the range is [1, 5).

52. NDA 2018 (I)
Suppose f: R → R is defined by f(x) = x21 + x2. What is the range of the function?
Answer and solution

Answer: (a) [0, 1)

Method. write x2/⁠(1 + x2) = 1 − 1/⁠(1 + x2)

f(x) = 1 − 11 + x2.
1 + x2 ≥ 1, so 0 <
11 + x2 ≤ 1, with the value 1 at x = 0.
Hence 0 ≤ f(x) < 1: f(0) = 0, and f(x) → 1 as |x| → ∞ but never reaches 1.
Every value in [0, 1) is attained (x = ⁠√(
y1⁠ −⁠ y)), so the range is [0, 1).

53. NDA 2018 (I)
If f: R → S defined by f(x) = 4 sin x − 3 cos x + 1 is onto, then what is S equal to?
Answer and solution

Answer: (d) [-4, 6]

Method. a sin x + b cos x ranges over [-⁠√(a2⁠ + b2), ⁠√(a2⁠ + b2)]

4 sin x − 3 cos x = 5 sin(x − α), where cos α = 45, sin α = 35.
So 4 sin x − 3 cos x takes every value in [-5, 5].
f(x) = 4 sin x − 3 cos x + 1 takes every value in [-4, 6].
f is onto exactly when S is its range, so S = [-4, 6].

54. NDA 2018 (I)
For f to be a function, what is the domain of f, if f(x) = 1⁠√(|x|⁠ −⁠ x)?
Answer and solution

Answer: (a) (-∞, 0)

Method. the expression under the root in a denominator must be positive

Need |x| − x > 0.
For x ≥ 0: |x| − x = 0, not allowed.
For x < 0: |x| − x = -2x > 0, allowed.
Domain = (-∞, 0).

55. NDA 2017 (II)
If x is any real number, then x21 + x4 belongs to which one of the following intervals?
Answer and solution

Answer: (d) [0, 1]

Method. AM ≥ GM bounds x2/⁠(1 + x4) to [0, 1/⁠2]

At x = 0 the value is 0; for x ≠ 0, x21 + x4 = 1x2 + 1x2.
x2 +
1x2 ≥ 2 (AM ≥ GM), with equality at x = ±1, so 0 < value ≤ 12 for x ≠ 0.
Hence the expression takes every value in [0,
12], including 0 at x = 0.
(a), (b), (c) all exclude 0, the value at x = 0; only [0, 1] contains every value.

56. NDA 2017 (II)
Which one of the following graph represents the function f(x) = xx, x ≠ 0?
(a) x y 0 +1 (b) x y 0 +1 −1 (c) x y 0 +1
Answer and solution

Answer: (c) Graph (c)

Method. simplify x/⁠x and mark the excluded point

For every x ≠ 0, xx = 1, and f is undefined at x = 0.
So the graph is the line y = 1 with the point (0, 1) removed.
Graph (c) shows y = 1 across the plane with an open circle at (0, 1). (a) has no gap at x = 0; (b) is the graph of
x|x|.

2.4 One-one, onto and bijective functions; the inverse of a function

57. NDA 2026 (II)
Consider the following statements in respect of the function
f: R - {
35} → R - {35}
such that f(x) =
3x + 25x − 3:
I. f(x) is a bijective function.
II. f-1(x) = f(x)
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (c) Both I and II

Method. f(x) = (ax + b)/⁠(cx − a) with a2 + bc ≠ 0 is its own inverse

Range check: 3x + 25x − 3 = 35 ⇒ 15x + 10 = 15x − 9, impossible; so f maps R - {3/⁠5} into R - {3/⁠5}.
f(f(x)) =
3 · 3x + 25x − 3 + 25 · 3x + 25x − 3 − 3 = 9x + 6 + 10x − 615x + 10 − 15x + 9 = 19x19 = x.
So f ∘ f is the identity on R - {3/⁠5}: f is one-one and onto (bijective), and f-1 = f.
Both I and II are correct.

58. NDA 2026 (II)
Let A and B be the sets having only 2 and 3 elements respectively. What is the total number of mappings from A to B?
Answer and solution

Answer: (d) 9

Method. each element of A independently chooses an image in B

Each of the 2 elements of A can map to any of the 3 elements of B.
Number of mappings = 3 × 3 = 32 = 9.

59. NDA 2024 (I)
Let A = {x ∈ R: -1 < x < 1}. Which of the following is/⁠are bijective functions from A to itself?
1. f(x) = x|x|
2. g(x) = cos(πx)
Select the correct answer using the code given below:
Answer and solution

Answer: (a) 1 only

Method. check one-one and onto on (-1, 1) for each function

f(x) = x|x| equals x2 for x ≥ 0 and -x2 for x < 0: it is strictly increasing and continuous.
As x runs over (-1, 1), f(x) runs over (-1, 1) exactly, so f is a bijection of A onto A.
g(x) = cos(πx) is even: g(-
12) = g(12) = 0, so g is not one-one.
(Also g(0) = 1 ∉ A, so g does not even map A into A.)
Only 1 is bijective.

60. NDA 2024 (I)
Let A = {1, 2, 3, 4, 5} and B = {6, 7}. What is the number of onto functions from A to B?
Answer and solution

Answer: (c) 30

Method. onto maps to a 2-element set = all maps minus the 2 constant maps

Total functions A → B: 25 = 32.
A function fails to be onto B only if all of A goes to 6 or all to 7: 2 such functions.
Onto functions = 32 − 2 = 30.

61. NDA 2023 (I)
A mapping f: A → B defined as f(x) = 2x + 33x + 5, x ∈ A. If f is to be onto, then what are A and B equal to?
Answer and solution

Answer: (d) A = R ∖ {-53} and B = R ∖ {23}

Method. domain excludes the zero of the denominator; range excludes the ratio of leading coefficients

Domain: 3x + 5 ≠ 0 ⇒ A = R ∖ {-53}.
Solve y =
2x + 33x + 5 for x: 3xy + 5y = 2x + 3 ⇒ x = 3 − 5y3y − 2, which exists for every y ≠ 23.
y =
23 is never taken (it would need 6x + 10 = 6x + 9). So for onto, B = R ∖ {23}.

62. NDA 2021 (I)
Consider the following statements:
1. A function f: ℤ → ℤ, defined by f(x) = x + 1, is one-one as well as onto.
2. A function f: ℕ → ℕ, defined by f(x) = x + 1, is one-one but not onto.
Which of the above statements is/⁠are correct?
Answer and solution

Answer: (c) Both 1 and 2

Method. one-one and onto tests for x ↦ x + 1 on ℤ and on ℕ

Both maps are one-one: x + 1 = y + 1 ⇒ x = y.
On ℤ: any y ∈ ℤ has preimage y − 1 ∈ ℤ, so f is onto. Statement 1 is correct.
On ℕ: y = 1 would need x = 0 ∉ ℕ, so 1 has no preimage and f is not onto. Statement 2 is correct.

63. NDA 2019 (I)
If f(x) = x − 2x + 2, x ≠ -2, then what is f-1(x) equal to?
Answer and solution

Answer: (d) 2(1 + x)1 − x

Method. put y = f(x) and solve for x

y = x − 2x + 2 ⇒ xy + 2y = x − 2 ⇒ x(1 − y) = 2 + 2y ⇒ x = 2(1 + y)1 − y.
So f-1(x) =
2(1 + x)1 − x.
Check: x = 0 gives f-1(0) = 2, and f(2) = 0.

64. NDA 2017 (II)
The inverse of the function y = 5ln x is
Answer and solution

Answer: (a) x = y1/⁠(ln 5), y > 0

Method. rewrite 5ln x as a power of x and solve for x

y = 5ln x = eln x · ln 5 = xln 5, defined for x > 0, so y > 0.
Raise both sides to
1ln 5: x = y1/⁠(ln 5), y > 0.

Shortcut. Take ln: ln y = ln x · ln 5, so ln x = ln yln 5.

65. NDA 2017 (I)
The function f: X → Y defined by f(x) = cos x, where x ∈ X, is one-one and onto if X and Y are respectively equal to
Answer and solution

Answer: (a) [0, π] and [-1, 1]

Method. a bijection needs cos to be monotonic on X and Y to be exactly its range

On [0, π], cos x decreases strictly from 1 to -1, so it is one-one there.
Its range on [0, π] is [-1, 1], so with Y = [-1, 1] it is onto.
(b) fails: cos(-x) = cos x on [-
π2, π2], and the range is only [0, 1].
(c) fails: cos 0 = 1 ∉ (-1, 1). (d) fails: cos π = -1 ∉ [0, 1].

66. NDA 2017 (I)
Let f(x): x,x is rational0,x is irrational
and g(x): 0,x is rationalx,x is irrational
If f: ℝ → ℝ and g: ℝ → ℝ, then (f − g) is
Answer and solution

Answer: (d) one-one and onto

Method. write f − g piecewise and test one-one and onto

(f − g)(x) = x − 0 = x if x is rational; 0 − x = -x if x is irrational.
One-one: rational x gives a rational value and irrational x gives an irrational value, so equal values come from the same type; then x1 = x2 (or -x1 = -x2).
Onto: a rational y is the image of y; an irrational y is the image of the irrational -y.
So f − g is one-one and onto.

2.5 Composition of functions

67. NDA 2025 (II)
For the following two (02) items:
Consider the function f(x) =
10x - 10-x10x + 10-x.
What is f ∘ f ∘ f ∘ f ∘ f(0) equal to?
Answer and solution

Answer: (a) 0

Method. f(0) = 0, so 0 is a fixed point

f(0) = 100 - 100100 + 100 = 1 − 12 = 0.
Then f(f(0)) = f(0) = 0, and each further application again gives 0.
f ∘ f ∘ f ∘ f ∘ f(0) = 0.

68. NDA 2025 (II)
What is the inverse of the function?
Answer and solution

Answer: (d) 12 log10(1 + x1 − x)

Method. solve y = f(x) for x

Multiply numerator and denominator by 10x: y = 102x - 1102x + 1.
y(102x + 1) = 102x - 1 ⇒ 102x(1 − y) = 1 + y ⇒ 102x =
1 + y1 − y.
x =
12 log10(1 + y1 − y); so f-1(x) = 12 log10(1 + x1 − x), -1 < x < 1.

69. NDA 2024 (II)
If f(x) = 4x + 1 and g(x) = kx + 2 such that f ∘ g(x) = g ∘ f(x), then what is the value of k?
Answer and solution

Answer: (a) 7

Method. equate the constant terms of f(g(x)) and g(f(x))

f(g(x)) = 4(kx + 2) + 1 = 4kx + 9.
g(f(x)) = k(4x + 1) + 2 = 4kx + k + 2.
Equality for all x: 9 = k + 2, so k = 7.

70. NDA 2024 (II)
Direction: Consider the following for the two (02) items that follow:
Let f ∘ g(x) = cos2 ⁠√x⁠ and g ∘ f(x) = |cos x|.
Which one of the following is f(x)?
Answer and solution

Answer: (c) cos2 x

Method. match √ and cos2 so that both composites come out right

Try f(x) = cos2 x and g(x) = ⁠√x.⁠
f(g(x)) = cos2(⁠√x)⁠ (holds).
g(f(x)) = ⁠√(cos2⁠ x) = |cos x| (holds).
So f(x) = cos2 x.
(No other option works: e.g. f = cos x would need cos(g(x)) = cos2 ⁠√x,⁠ which none of the listed g gives.)

71. NDA 2024 (II)
Which one of the following is g(x)?
Answer and solution

Answer: (a) ⁠√x⁠

Method. from the previous item, f(x) = cos2 x and g(x) = ⁠√x⁠

With g(x) = ⁠√x⁠ and f(x) = cos2 x: f(g(x)) = cos2 ⁠√x⁠ and g(f(x)) = ⁠√(cos2⁠ x) = |cos x|, both as given.
So g(x) = ⁠√x.⁠

72. NDA 2024 (I)
If f(x) = ax − b and g(x) = cx + d are such that f(g(x)) = g(f(x)), then which one of the following holds?
Answer and solution

Answer: (d) f(d) + g(b) = 2d

Method. equate the constant terms of f(g(x)) and g(f(x))

f(g(x)) = a(cx + d) − b = acx + ad − b.
g(f(x)) = c(ax − b) + d = acx − bc + d.
Equality gives ad − b = d − bc.
Now f(d) + g(b) = (ad − b) + (bc + d) = (d − bc) + bc + d = 2d.
(Option a would need ad − b = bc + d, i.e. bc = 0, which is not forced.)

73. NDA 2024 (I)
Consider the following for the next two (02) items that follow:
Let f(x) and g(x) be two functions such that g(x) = x −
1x and f ∘ g(x) = x3 - 1x3.
What is g[f(x) − 3x] equal to?
Answer and solution

Answer: (a) x3 - 1x3

Method. write x3 - 1x3 in terms of t = x − 1x

(x − 1x)3 = x3 - 1x3 − 3(x − 1x), so x3 - 1x3 = t3 + 3t.
Hence f(t) = t3 + 3t, i.e. f(x) = x3 + 3x.
f(x) − 3x = x3.
g[f(x) − 3x] = g(x3) = x3 -
1x3.

74. NDA 2024 (I)
What is f''(x) equal to?
Answer and solution

Answer: (d) 6x

Method. differentiate f(x) = x3 + 3x twice

From the previous item, f(x) = x3 + 3x.
f'(x) = 3x2 + 3; f''(x) = 6x.

75. NDA 2023 (II)
Consider the following for the next two (02) items that follow:
Let f(x) = x2 - 1 and gof(x) = x - ⁠√x⁠ + 1.
Which one of the following is a possible expression for g(x)?
Answer and solution

Answer: (b) ⁠√(x⁠ + 1) - ∜(x + 1) + 1

Method. substitute t = f(x) = x2 - 1 and write x in terms of t

g(f(x)) = g(x2 - 1) = x - ⁠√x⁠ + 1 (x ≥ 0, since ⁠√x⁠ appears).
Let t = x2 - 1, so x = ⁠√(t⁠ + 1) and ⁠√x⁠ = ∜(t + 1).
g(t) = ⁠√(t⁠ + 1) - ∜(t + 1) + 1.
So g(x) = ⁠√(x⁠ + 1) - ∜(x + 1) + 1.

76. NDA 2023 (II)
What is g(15) equal to?
Answer and solution

Answer: (c) 3

Method. evaluate g(x) = ⁠√(x⁠ + 1) - ∜(x + 1) + 1 at x = 15

g(15) = ⁠√16⁠ - ∜16 + 1 = 4 − 2 + 1 = 3.

Shortcut. g(15) = g(f(4)) since f(4) = 15, so g(15) = 4 - ⁠√4⁠ + 1 = 3.

77. NDA 2023 (I)
If f(x) = x2 + 2 and g(x) = 2x − 3, then what is (fg)(1) equal to?
Answer and solution

Answer: (d) -3

Method. (fg)(x) means the product f(x)·g(x)

(fg)(1) = f(1)·g(1).
f(1) = 12 + 2 = 3; g(1) = 2(1) − 3 = -1.
(fg)(1) = 3 × (-1) = -3.
(The composite f∘g would give f(g(1)) = f(-1) = 3; the printed fg is the product.)

(fg)(1) is the product f(1) g(1), the standard notation (NCERT writes the composite as gof or g∘f), which gives −⁠3. Read as the composite f(g(1)), it would give 3, option (a).

78. NDA 2022 (II)
If f(x) = 4x + 1 and g(x) = kx + 2 such that fog(x) = gof(x), then what is the value of k?
Answer and solution

Answer: (a) 7

Method. equate fog and gof and compare constant terms

fog(x) = 4(kx + 2) + 1 = 4kx + 9.
gof(x) = k(4x + 1) + 2 = 4kx + k + 2.
The x terms agree; equal constants give 9 = k + 2, so k = 7.

79. NDA 2022 (I)
If f(x) = 4x + 3, then what is f∘f∘f(-1) equal to?
Answer and solution

Answer: (a) -1

Method. -1 is a fixed point of f

f(-1) = 4(-1) + 3 = -1.
So f(f(-1)) = f(-1) = -1 and f(f(f(-1))) = -1.

80. NDA 2019 (II)
Directions for the following two (02) items:
Read the following information and answer the two items that follow:
Let f(x) = x2, g(x) = tan x and h(x) = ln x.
For x = ⁠√π2,⁠ what is the value of [ho(gof)](x)?
Answer and solution

Answer: (a) 0

Method. composition worked from the inside out: f first, then g, then h

[ho(gof)](x) = h(g(f(x))).
f(
⁠√π2)⁠ = (⁠√π2)2⁠ = π4.
g(
π4) = tan π4 = 1.
h(1) = ln 1 = 0.

81. NDA 2019 (II)
What is [fo(fof)](2) equal to?
Answer and solution

Answer: (d) 256

Method. repeated composition of the squaring function

[fo(fof)](2) = f(f(f(2))).
f(2) = 22 = 4.
f(4) = 42 = 16.
f(16) = 162 = 256.

Shortcut. f applied three times gives x8, and 28 = 256.

82. NDA 2019 (II)
Directions for the following three (03) items:
Read the following information and answer the three items that follow:
Let f(x) = x2 + 2x − 5 and g(x) = 5x + 30
What are the roots of the equation g[f(x)] = 0?
Answer and solution

Answer: (b) -1, -1

Method. substitute f(x) into g and solve the quadratic

g[f(x)] = 5(x2 + 2x − 5) + 30 = 5x2 + 10x + 5 = 5(x + 1)2.
g[f(x)] = 0 ⇒ (x + 1)2 = 0 ⇒ x = -1, -1 (a repeated root).

83. NDA 2019 (II)
Consider the following statements:
1. f[g(x)] is a polynomial of degree 3.
2. g[g(x)] is a polynomial of degree 2.
Which of the above statements is/⁠are correct?
Answer and solution

Answer: (d) Neither 1 nor 2

Method. degree of a composite = product of the degrees

f has degree 2, g has degree 1.
f[g(x)] = (5x + 30)2 + 2(5x + 30) − 5 has degree 2 × 1 = 2, not 3: statement 1 is false.
g[g(x)] = 5(5x + 30) + 30 = 25x + 180 has degree 1, not 2: statement 2 is false.

84. NDA 2019 (II)
If h(x) = 5f(x) − xg(x), then what is the derivative of h(x)?
Answer and solution

Answer: (b) -20

Method. expand h(x), the x2 terms cancel, then differentiate

h(x) = 5(x2 + 2x − 5) − x(5x + 30) = 5x2 + 10x − 25 − 5x2 - 30x = -20x − 25.
h'(x) = -20.

85. NDA 2017 (II)
If f(x) = 4x + x41 + 4x3 and g(x) = ln(1 + x1 − x), then what is the value of f o g(e − 1e + 1) equal to?
Answer and solution

Answer: (b) 1

Method. evaluate g first, then f

Let t = e − 1e + 1. Then 1 + t = 2ee + 1 and 1 − t = 2e + 1.
1 + t1 − t = e, so g(t) = ln e = 1.
f(1) =
4 + 11 + 4 = 1.
So f o g(
e − 1e + 1) = 1.

86. NDA 2017 (I)
Let f: [-6, 6] → ℝ be defined by f(x) = x2 - 3. Consider the following:
(1) (fofof)(-1) = (fofof)(1)
(2) (fofof)(-1) − 4(fofof)(1) = (fof)(0)
Which of the above is/⁠are correct?
Answer and solution

Answer: (c) Both 1 and 2

Method. evaluate the compositions from the inside out

f(-1) = 1 − 3 = -2, f(-2) = 4 − 3 = 1, f(1) = 1 − 3 = -2.
(fofof)(-1) = f(f(-2)) = f(1) = -2.
(fofof)(1) = f(f(-2)) = f(1) = -2. So statement 1 is correct.
(fofof)(-1) − 4(fofof)(1) = -2 − 4(-2) = 6.
(fof)(0) = f(-3) = 9 − 3 = 6. So statement 2 is correct.

Shortcut. f is even, so f(-1) = f(1) and statement 1 is immediate.

87. NDA 2017 (I)
Let f(x) = px + q and g(x) = mx + n. Then f(g(x)) = g(f(x)) is equivalent to
Answer and solution

Answer: (c) f(n) = g(q)

Method. compare the constant terms of f(g(x)) and g(f(x))

f(g(x)) = p(mx + n) + q = pmx + pn + q.
g(f(x)) = m(px + q) + n = mpx + mq + n.
The x-terms agree, so f(g(x)) = g(f(x)) ⇔ pn + q = mq + n.
pn + q = f(n) and mq + n = g(q), so the condition is f(n) = g(q).

2.6 Functional equations and identities

88. NDA 2026 (II)
Let f(x) = xn + k, where n is a natural number and k is a positive real constant such that f(x) + f(1x) = f(x)f(1x) and f(2) = 9. What is f(-1) equal to?
Answer and solution

Answer: (c) 0

Method. compare coefficients in f(x) + f(1/⁠x) = f(x)f(1/⁠x)

LHS = xn + x-n + 2k. RHS = (xn + k)(x-n + k) = 1 + k xn + k x-n + k2.
Coefficient of xn: k = 1 (constants then agree: 2 = 1 + 1). So f(x) = xn + 1.
f(2) = 2n + 1 = 9 ⇒ n = 3.
f(-1) = (-1)3 + 1 = 0.

89. NDA 2026 (I)
If 2f(x) + f(1 − x) = x, then what is f(x) equal to?
Answer and solution

Answer: (b) x − (13)

Method. replace x by 1 − x and solve the two equations

Given: 2f(x) + f(1 − x) = x … (1). Replace x by 1 − x: 2f(1 − x) + f(x) = 1 − x … (2).
2 × (1) − (2): 4f(x) − f(x) = 2x − (1 − x) ⇒ 3f(x) = 3x − 1.
f(x) = x −
13.

Shortcut. Test x = 0 and x = 1 in the options: only x − 1/⁠3 gives 2f(0) + f(1) = 0.

90. NDA 2025 (II)
For the following two (02) items:
Consider the function
f(x) =
x1 − x (x > 0, x ≠ 1)
What is f(x)f(x + 1) equal to?
Answer and solution

Answer: (a) -f(x2)

Method. substitute and simplify

f(x + 1) = x + 11 − (x + 1) = -x + 1x.
f(x)f(x + 1) = x1 − x × (-xx + 1) = -x2(1 − x)(1 + x) = -x21 − x2.
And f(x2) =
x21 − x2, so the ratio = -f(x2).

91. NDA 2025 (II)
What is (1 − x)f(⁠√x)⁠ + xf(⁠√x⁠ + 1) equal to?
Answer and solution

Answer: (d) 0

Method. substitute and use 1 − x = (1 - ⁠√x)(1⁠ + ⁠√x)⁠

(1 − x)f(⁠√x)⁠ = (1 - ⁠√x)(1⁠ + ⁠√x)⁠ × ⁠√x1⁠ - ⁠√x⁠ = ⁠√x(1⁠ + ⁠√x).⁠
f(⁠√x⁠ + 1) =
⁠√x⁠ + 11 − (⁠√x⁠ + 1) = -⁠√x⁠ + 1⁠√x,⁠ so xf(⁠√x⁠ + 1) = -⁠√x(√x⁠ + 1).
Sum = ⁠√x(1⁠ + ⁠√x)⁠ - ⁠√x(1⁠ + ⁠√x)⁠ = 0.

92. NDA 2025 (I)
Consider the following for the two (02) items that follow:
The function f(x) satisfies f(
xy) = f(x)f(y) for all positive real values of x and y, and f(2) = 3.
What is f(16) equal to?
Answer and solution

Answer: (d) 81

Method. the functional equation makes f multiplicative: f(xy) = f(x)f(y)

Put x = y: f(1) = f(x)/⁠f(x) = 1.
Replace x by xy: f(x) = f(xy)/⁠f(y), so f(xy) = f(x)f(y).
f(4) = f(2)f(2) = 9, f(16) = f(4)f(4) = 81.

Shortcut. f(2k) = 3k, so f(16) = 34 = 81.

93. NDA 2025 (I)
What is f(1) f(4) equal to?
Answer and solution

Answer: (c) 9

Method. f(1) = 1 and f multiplicative

Put x = y: f(1) = 1.
From f(xy) = f(x)f(y) (previous item): f(4) = f(2)2 = 9.
f(1) f(4) = 1 × 9 = 9.

94. NDA 2025 (I)
Consider the following for the two (02) items that follow:
A function f is such that f(xy) = f(x + y) for all real values of x and y, and f(5) = 10.
What is f(0) equal to?
Answer and solution

Answer: (d) 10

Method. put y = 0 to show f is constant

Put y = 0: f(x · 0) = f(x + 0), i.e. f(0) = f(x) for every real x.
So f is a constant function, and f(0) = f(5) = 10.

95. NDA 2025 (I)
What is f(20) + f(-20) equal to?
Answer and solution

Answer: (c) 20

Method. f is constant

From y = 0, f(x) = f(0) for all x, and f(5) = 10, so f(x) = 10 for every x.
f(20) + f(-20) = 10 + 10 = 20.

96. NDA 2024 (II)
Let f(x) f(y) = f(xy) for all real x, y. If f(2) = 4, then what is the value of f(1/⁠2)?
Answer and solution

Answer: (a) 1/⁠4

Method. use y = 1 to get f(1), then x = 2, y = 12

x = 2, y = 1: f(2)f(1) = f(2); since f(2) = 4 ≠ 0, f(1) = 1.
x = 2, y =
12: f(2)f(12) = f(1) = 1.
f(
12) = 14.

Shortcut. f(x) = x2 fits: f(2) = 4, f(12) = 14.

97. NDA 2024 (I)
Consider the following for the next two (02) items that follow:
Let 3f(x) + f(
1x) = 1x + 1
What is f(x) equal to?
Answer and solution

Answer: (d) 38x − x8 + 14

Method. replace x by 1x and solve the two equations for f(x)

3f(x) + f(1x) = 1x + 1 …(1)
x →
1x: 3f(1x) + f(x) = x + 1 …(2)
3×(1) − (2): 8f(x) =
3x + 3 − x − 1 = 3x − x + 2.
f(x) =
38x − x8 + 14.

98. NDA 2024 (I)
What is 8∫12 f(x)dx equal to?
Answer and solution

Answer: (a) ln(8⁠√e)⁠

Method. integrate 8f(x) = 3x − x + 2 from 1 to 2

8∫12 f(x)dx = ∫12 (3x − x + 2)dx.
= [3 ln x −
x22 + 2x]12 = 3 ln 2 − 32 + 2 = 3 ln 2 + 12.
= ln 8 + ln ⁠√e⁠ = ln(8⁠√e).⁠

99. NDA 2023 (II)
A function satisfies f(x − y) = f(x)f(y), where f(y) ≠ 0. If f(1) = 0.5, then what is f(2) + f(3) + f(4) + f(5) + f(6) equal to?
Answer and solution

Answer: (d) 3164

Method. the equation forces f(n + 1) = f(n)·f(1), so f(n) = (0.5)n

Put x = y: f(0) = f(x)f(x) = 1.
Put x = n + 1, y = 1: f(n) =
f(n + 1)f(1), so f(n + 1) = f(n)·f(1) = 12f(n).
Hence f(n) = (
12)n: f(2) = 14, f(3) = 18, …, f(6) = 164.
Sum =
16 + 8 + 4 + 2 + 164 = 3164.

Shortcut. f(x) = (12)x satisfies the equation; the sum is a GP.

100. NDA 2023 (II)
Consider the following for the next two (02) items that follow:
Let a function f be defined on R - {0} and 2f(x) + f(
1x) = x + 3.
What is f(0.5) equal to?
Answer and solution

Answer: (b) 23

Method. replace x by 1x and solve the two equations for f(x)

2f(x) + f(1x) = x + 3 …(1)
x →
1x: 2f(1x) + f(x) = 1x + 3 …(2)
2×(1) − (2): 3f(x) = 2x −
1x + 3, so f(x) = 13(2x − 1x + 3).
f(0.5) =
13(1 − 2 + 3) = 23.

Shortcut. Put x = 0.5 and x = 2 in the given equation: 2f(0.5) + f(2) = 3.5 and 2f(2) + f(0.5) = 5; eliminate f(2).

101. NDA 2023 (II)
If f is differentiable, then what is f'(0.5) equal to?
Answer and solution

Answer: (c) 2

Method. differentiate f(x) = 13(2x − 1x + 3)

From the previous item, f(x) = 13(2x − 1x + 3).
f'(x) =
13(2 + 1x2).
f'(0.5) =
13(2 + 4) = 2.

102. NDA 2022 (I)
If 4f(x) − f(1x) = (2x + 1x)(2x − 1x), then what is f(2) equal to?
Answer and solution

Answer: (d) 4

Method. replace x by 1x and solve the two equations for f(x)

The right side is 4x2 - 1x2, so 4f(x) − f(1x) = 4x2 - 1x2 … (1)
Replace x by
1x: 4f(1x) − f(x) = 4x2 − x2 … (2)
4 × (1) + (2): 15f(x) = 16x2 -
4x2 + 4x2 − x2 = 15x2, so f(x) = x2.
f(2) = 4.

Shortcut. Put x = 2 and x = 12: 4f(2) − f(12) = 634 and 4f(12) − f(2) = -3; 4 × the first plus the second gives 15f(2) = 60.

103. NDA 2021 (I)
If f(x + 1) = x2 - 3x + 2, then what is f(x) equal to?
Answer and solution

Answer: (b) x2 - 5x + 6

Method. substitute t = x + 1, i.e. x = t − 1

Let t = x + 1, so x = t − 1.
f(t) = (t − 1)2 - 3(t − 1) + 2 = t2 - 2t + 1 − 3t + 3 + 2 = t2 - 5t + 6.
So f(x) = x2 - 5x + 6.

Shortcut. Check x = 0: f(1) must be 2; only x2 - 5x + 6 gives 1 − 5 + 6 = 2.

104. NDA 2019 (I)
If f(x) = 31+x, then f(x) f(y) f(z) is equal to
Answer and solution

Answer: (c) f(x + y + z + 2)

Method. add the exponents

f(x) f(y) f(z) = 31+x · 31+y · 31+z = 33+x+y+z.
f(t) = 31+t, so 33+x+y+z = 31+(x+y+z+2) = f(x + y + z + 2).

105. NDA 2017 (I)
If f(x) = xx − 1, then what is f(a)f(a + 1) equal to?
Answer and solution

Answer: (b) f(a2)

Method. substitute and simplify the ratio

f(a) = aa − 1, f(a + 1) = a + 1a.
f(a)f(a + 1) = aa − 1 · aa + 1 = a2a2 - 1.
This is
tt − 1 with t = a2, i.e. f(a2).

106. NDA 2017 (I)
Let f(a) = a − 1a + 1.
Consider the following:
(1) f(2a) = f(a) + 1
(2) f(
1a) = -f(a)
Which of the above is/⁠are correct?
Answer and solution

Answer: (b) 2 only

Method. substitute 2a and 1a into f

(1) f(2a) = 2a − 12a + 1, while f(a) + 1 = a − 1 + a + 1a + 1 = 2aa + 1. At a = 1: f(2) = 13 but f(1) + 1 = 1. So 1 is false.
(2) f(
1a) = 1a − 11a + 1 = 1 − a1 + a = -f(a). So 2 is true.

2.7 Modulus, greatest-integer, even–odd and periodic functions

107. NDA 2026 (II)
If f(x) = cos{π3[x] + x} for 1 < x < 2, where [·] is the greatest integer function, then what is f(π2) equal to?
Answer and solution

Answer: (b) -⁠√3/⁠2⁠

Method. [π/⁠2] = 1 since 1 < π/⁠2 < 2

π/⁠2 ≈ 1.571 lies in (1, 2), so [π/⁠2] = 1.
f(
π2) = cos(π3 + π2) = cos(5π6) = -⁠√32.⁠

108. NDA 2024 (II)
Let z = [y] and y = [x] - x, where [·] is the greatest integer function. If x is not an integer but positive, then what is the value of z?
Answer and solution

Answer: (a) -1

Method. [x] - x = -{x} lies strictly between -1 and 0 for non-integer x

For non-integer x, 0 < x - [x] < 1.
So y = [x] - x satisfies -1 < y < 0.
z = [y] = -1.

109. NDA 2024 (II)
Direction: Consider the following for the two (02) items that follow:
Let f(x) = [x]2 - [x2].
What is f(0.999) + f(1.001) equal to?
Answer and solution

Answer: (b) 0

Method. evaluate [x] and [x2] at each point

x = 0.999: [x] = 0, x2 = 0.998001, [x2] = 0, so f = 0 − 0 = 0.
x = 1.001: [x] = 1, x2 = 1.002001, [x2] = 1, so f = 1 − 1 = 0.
Sum = 0.

110. NDA 2024 (II)
Consider the following statements:
I. f(x) is continuous at x = 0.
II. f(x) is continuous at x = 1.
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (b) II only

Method. compare left limit, right limit and value at each point

At x = 0: f(0) = 0 − 0 = 0.
For -1 < x < 0: [x] = -1, 0 < x2 < 1, so f(x) = 1 − 0 = 1; left limit 1 ≠ 0. Not continuous at 0.
At x = 1: f(1) = 1 − 1 = 0.
For 0 ≤ x < 1: f(x) = 0 − 0 = 0; for 1 ≤ x < ⁠√2:⁠ f(x) = 1 − 1 = 0. Both limits are 0 = f(1). Continuous at 1.
Only II is correct.

111. NDA 2024 (II)
Direction: Consider the following for the two (02) items that follow:
Let f(t) = ln (t + ⁠√(1⁠ + t2)) and g(t) = tan(f(t)).
Consider the following statements:
I. f(t) is an odd function.
II. g(t) is an odd function.
Which of the statements given above is/⁠are correct?
Answer and solution

Answer: (c) Both I and II

Method. odd-function test f(-t) = -f(t); an odd function of an odd function is odd

f(-t) = ln(⁠√(1⁠ + t2) − t) = ln((⁠√(1⁠ + t2) − t)(⁠√(1⁠ + t2) + t)⁠√(1⁠ + t2) + t) = ln(1t + ⁠√(1⁠ + t2)) = -f(t). So f is odd: I is correct.
g(-t) = tan(f(-t)) = tan(-f(t)) = -tan(f(t)) = -g(t), since tan is odd. So g is odd wherever it is defined: II is correct.
Both statements are correct.

112. NDA 2024 (II)
What is ∫-ππ g(t) dt equal to?
Answer and solution

No correct option. This question is defective as printed in UPSC's paper.

Method. integral of an odd function over a symmetric interval

g is odd (previous item), so the intended answer is ∫-ππ g(t) dt = 0.
But f(t) = π/⁠2 when t = sinh(π/⁠2) = (eπ/⁠2 - e-π/⁠2)/⁠2 ≈ 2.30, which lies inside [-π, π]; there tan(f(t)) → ±∞ like 1/⁠(t − 2.30).
So g has vertical asymptotes at t = ±2.30 in the interval, and the integral diverges; it is 0 only as a principal value.

g(t) = tan(f(t)) is unbounded at t = ±sinh(π/⁠2) ≈ ±2.30, inside [-π, π], so the integral does not exist; the intended odd-function reading gives 0, option (b).

113. NDA 2023 (I)
Consider the following for the next two (02) items that follow:
Consider the function
f(x) = |x − 2| + |3 − x| + |4 − x|, where x ∈ R.
At what value of x does the function attain minimum value?
Answer and solution

Answer: (b) 3

Method. a sum of distances |x − ai| is least at the median of the ai

f(x) = |x − 2| + |x − 3| + |x − 4| is the sum of distances from x to 2, 3, 4.
|x − 2| + |x − 4| ≥ 2 with equality for 2 ≤ x ≤ 4, and |x − 3| ≥ 0 with equality only at x = 3.
Both are least together at x = 3, the median.

114. NDA 2023 (I)
What is the minimum value of the function?
Answer and solution

Answer: (a) 2

Method. evaluate f at the minimising point x = 3

From the previous item, the minimum occurs at x = 3.
f(3) = |3 − 2| + |3 − 3| + |4 − 3| = 1 + 0 + 1 = 2.

115. NDA 2023 (I)
What is the range of the function f(x) = x + |x| if the domain is the set of real numbers?
Answer and solution

Answer: (b) [0, ∞)

Method. split |x| by the sign of x

For x ≥ 0: |x| = x, so f(x) = 2x, which takes every value in [0, ∞).
For x < 0: |x| = -x, so f(x) = 0.
Range = [0, ∞) ∪ {0} = [0, ∞).

116. NDA 2022 (II)
Let z = [y] and y = [x] - x, where [.] is the greatest integer function. If x is not an integer but positive, then what is the value of z?
Answer and solution

Answer: (a) -1

Method. [x] - x = -{x}, which lies strictly between -1 and 0 for non-integer x

For non-integer x, [x] < x < [x] + 1, so -1 < [x] - x < 0.
Thus y ∈ (-1, 0), and the greatest integer not exceeding y is -1.
z = [y] = -1.

Shortcut. Try x = 2.5: y = 2 − 2.5 = -0.5, z = [-0.5] = -1.

117. NDA 2022 (II)
If f(x) = ln(x + ⁠√(1⁠ + x2)), then which one of the following is correct?
Answer and solution

Answer: (a) f(x) + f(-x) = 0

Method. f is odd: rationalise ⁠√(1⁠ + x2) − x

f(-x) = ln(⁠√(1⁠ + x2) − x).
(⁠√(1⁠ + x2) − x)(⁠√(1⁠ + x2) + x) = 1 + x2 - x2 = 1, so ⁠√(1⁠ + x2) − x =
1x + ⁠√(1⁠ + x2).
f(-x) = -ln(x + ⁠√(1⁠ + x2)) = -f(x), so f(x) + f(-x) = 0.

118. NDA 2020 (I)
What is the minimum value of |x − 1|, where x ∈ R?
Answer and solution

Answer: (a) 0

Method. modulus is never negative and is 0 where its argument is 0

|x − 1| ≥ 0 for all real x.
At x = 1, |x − 1| = 0, so the value 0 is attained.
Minimum value = 0.

119. NDA 2019 (I)
A function f defined by f(x) = ln (⁠√(x2⁠ + 1) − x) is
Answer and solution

Answer: (b) an odd function

Method. (⁠√(x2⁠ + 1) − x)(⁠√(x2⁠ + 1) + x) = 1

f(-x) = ln(⁠√(x2⁠ + 1) + x).
f(x) + f(-x) = ln[(⁠√(x2⁠ + 1) − x)(⁠√(x2⁠ + 1) + x)] = ln(x2 + 1 − x2) = ln 1 = 0.
So f(-x) = -f(x) and f is odd; it is not even since f(1) = ln(⁠√2⁠ − 1) ≠ 0.

120. NDA 2018 (I)
Which one of the following is correct in respect of the function f: R → R+ defined as f(x) = |x + 1|?
Answer and solution

Answer: (d) None of the above

Method. test each identity with a counter-example

(a) f(x2) = x2 + 1, [f(x)]2 = (x + 1)2; at x = 1: 2 ≠ 4.
(b) f(|x|) = |x| + 1, |f(x)| = |x + 1|; at x = -1: 2 ≠ 0.
(c) f(x + y) = |x + y + 1|, f(x) + f(y) = |x + 1| + |y + 1|; at x = y = 0: 1 ≠ 2.
None of (a), (b), (c) holds for all x, y.

121. NDA 2018 (I)
What is the period of the function f(x) = sin x?
Answer and solution

Answer: (d) 2π

Method. the least positive T with sin(x + T) = sin x for all x

sin(x + 2π) = sin x for all x.
No smaller positive T works: at x =
π2, sin(π2 + T) = 1 needs T to be a multiple of 2π.
So the period is 2π.

122. NDA 2017 (II)
The function f(x) = |x| − x3 is
Answer and solution

Answer: (d) neither even nor odd

Method. test f(-x) against f(x) and -f(x)

f(-x) = |-x| − (-x)3 = |x| + x3.
f(-x) = f(x) would need x3 = 0 for all x; f(-x) = -f(x) would need |x| = 0 for all x.
E.g. f(1) = 0, f(-1) = 2: neither equal nor opposite.
So f is neither even nor odd.

123. NDA 2017 (II)
Let f(n) = [14 + n1000], where [x] denotes the integral part of x. Then the value of 1000Σn=1 f(n) is
Answer and solution

Answer: (a) 251

Method. find where 1/⁠4 + n/⁠1000 crosses 1

For 1 ≤ n ≤ 1000, 14 + n1000 lies between 0.251 and 1.25.
Its integral part is 0 when
n1000 < 34, i.e. n ≤ 749, and 1 when n ≥ 750.
The number of n from 750 to 1000 is 1000 − 750 + 1 = 251.
1000Σn=1 f(n) = 251 × 1 = 251.

124. NDA 2017 (I)
Which one of the following functions is neither even nor odd?
Answer and solution

Answer: (d) x2(x − 3)

Method. test f(-x) against f(x) and -f(x)

x2 - 1 and |x| are even; x + 3x is odd.
For f(x) = x2(x − 3) = x3 - 3x2: f(-x) = -x3 - 3x2.
f(-x) ≠ f(x) (x3 term changes sign) and f(-x) ≠ -f(x) (x2 term does not), e.g. f(1) = -2, f(-1) = -4.
So x2(x − 3) is neither even nor odd.

Take a free NDA paperBrowse exam prep

← SetsComplex Numbers →