Why this lesson matters. This chapter drew 25 questions in the seven papers from NDA II 2023 to NDA II 2026, and at least one in every paper. The exam asks four kinds of question: find the domain, find the range, find โf(x)โ from an equation such as โ2f(x) + f(1 - x) = xโ, and work with the modulus โ|x|โ and the greatest integer โ[x]โ. Six real questions are solved in section 8.
What you will be able to do
- Say what a function is, and find its domain with three simple rules.
- Find the range of a function built from โx^2โ, โ\sin xโ, โ\cos xโ or โ|x|โ.
- Use the modulus function and the greatest integer function, and describe their graphs.
- Find โf(x)โ when it is given through an equation in โf(x)โ and โf\left(\frac{1}{x}\right)โ.
Before you start you should know: sets and intervals (Chapter M1-1), relations (Chapter M1-2), and real numbers on the number line with the modulus โ|x|โ (Chapter M1-3).
1. What a function is
A function โfโ is a rule that gives every allowed input โxโ exactly one output โf(x)โ. If โf(x) = x^2 + 1โ, then โf(3) = 10โ and โf(-3) = 10โ. Two inputs may share one output. One input may never have two outputs.
- The domain is the set of all allowed inputs.
- The range is the set of all outputs that really occur.
- In โf : A \to Bโ, the set โAโ is the domain and โBโ is the codomain, the set in which the outputs must lie. The range is a part of the codomain.
For โf(x) = x^2 + 1โ the domain is all real numbers, written โ\mathbb{R}โ, and the range is โ[1, \infty)โ.
The graph of โfโ is the set of points โ(x, f(x))โ. A curve is the graph of a function only if every vertical line cuts it at most once. A circle is not the graph of a function, because a vertical line through its centre cuts it twice.

Two rules that meet. If a function is given by one formula on โ0 \le x \le 2โ and another on โ2 \le x \le 8โ, the two formulas must give the same value at โx = 2โ. If they do not, the input 2 has two outputs and the rule is not a function.
2. The domain: three rules
Look for three things in the formula.
| The formula has | Condition on โxโ | Example |
|---|---|---|
| A fraction | The denominator is not 0 | โ\dfrac{1}{x - 2}โ: all real โxโ except 2 |
| A square root (or any even root) | The quantity under the root is โ\ge 0โ | โ\sqrt{x - 3}โ: โx \ge 3โ, that is โ[3, \infty)โ |
| A logarithm | The quantity whose log is taken is โ> 0โ. The base is positive and not 1 | โ\log(x - 1)โ: โx > 1โ, that is โ(1, \infty)โ |
If a square root is in the denominator, the quantity under it must be strictly positive: โ\dfrac{1}{\sqrt{x}}โ has domain โ(0, \infty)โ.
If the formula has more than one of these, all the conditions must hold together. Polynomials, โ\sin xโ, โ\cos xโ, โe^xโ, โ|x|โ and cube roots have no condition: their domain is โ\mathbb{R}โ.
3. The range
Start from a part whose range you know and build the function step by step.
| Function | Range |
|---|---|
| โx^2โ and โ\lvert x \rvertโ | โ[0, \infty)โ |
| โ\sin xโ and โ\cos xโ | โ[-1, 1]โ |
| โ\sin^2 xโ and โ\cos^2 xโ | โ[0, 1]โ |
| โe^xโ and โa^xโ (with โa > 0โ, โa \ne 1โ) | โ(0, \infty)โ |
| โ\log xโ | โ\mathbb{R}โ |
For example, take โf(x) = 3 + 2\sin xโ. Since โ\sin xโ goes from โ-1โ to โ1โ, โ2\sin xโ goes from โ-2โ to โ2โ, and โ3 + 2\sin xโ goes from โ1โ to โ5โ. The range is โ[1, 5]โ.

For a quadratic, complete the square: โx^2 - 4x + 7 = (x - 2)^2 + 3โ. A square is never negative, so the range is โ[3, \infty)โ.
The graphs of โe^xโ and โ\ln xโ show their domain and range:

4. Four graphs to know
Draw each of these in your notebook. The pictures of three of them are below the table.
| Function | Rule | Its graph | Range |
|---|---|---|---|
| Identity | โf(x) = xโ | A straight line through the origin, rising at 45ยฐ | โ\mathbb{R}โ |
| Square | โf(x) = x^2โ | A U-shaped curve with its lowest point at the origin | โ[0, \infty)โ |
| Modulus | โ\lvert x \rvert = xโ if โx \ge 0โ, and โ-xโ if โx < 0โ | A V with its point at the origin | โ[0, \infty)โ |
| Greatest integer | โ[x]โ = the greatest integer that is not more than โxโ | Flat steps of length 1. Each step includes its left end and not its right end | All integers |


Learn the greatest integer function with numbers: โ[2.7] = 2โ, โ[5] = 5โ, โ[0.999] = 0โ, โ[-0.3] = -1โ and โ[-3.9] = -4โ. For a negative number that is not an integer, go down to the next integer.
5. Even, odd and periodic functions
- Even: โf(-x) = f(x)โ for every โxโ. Examples: โx^2โ, โ\cos xโ, โ|x|โ. The graph is its own mirror image in the โyโ-axis.
- Odd: โf(-x) = -f(x)โ for every โxโ. Examples: โx^3โ, โ\sin xโ, โ\tan xโ. The graph looks the same after a half turn about the origin.
- Periodic: โf(x + T) = f(x)โ for every โxโ. The smallest positive โTโ is the period.

| Function | Period |
|---|---|
| โ\sin xโ, โ\cos xโ | โ2\piโ |
| โ\tan xโ | โ\piโ |
| โ\sin^2 xโ, โ\cos^2 xโ, โ\lvert \sin x \rvertโ | โ\piโ |
| โ\sin kxโ, โ\cos kxโ | โ\dfrac{2\pi}{\lvert k \rvert}โ |
Adding a constant to a function does not change its period.
6. Equations that a function satisfies
Some questions do not give the formula for โfโ. They give an equation that โfโ satisfies. Two methods answer almost all of them.
Method 1: swap. If the equation has โf(x)โ and โf\left(\frac{1}{x}\right)โ, replace โxโ by โ\frac{1}{x}โ everywhere. Now there are two equations in the two unknowns โf(x)โ and โf\left(\frac{1}{x}\right)โ. Solve them like simultaneous equations. The same idea works for โf(x)โ with โf(1 - x)โ, and for โf(x)โ with โf(-x)โ.
Method 2: special values. If the equation holds for all โxโ and โyโ, put simple values such as โy = 0โ, โy = 1โ or โy = xโ. For example, if โf(x + y) = f(x) + f(y)โ and โf(1) = 3โ, then putting โx = y = 0โ gives โf(0) = 2f(0)โ, so โf(0) = 0โ. Putting โx = y = 1โ gives โf(2) = 6โ, and then โf(3) = f(2) + f(1) = 9โ.
7. Worked examples
Example 1. Find the domain of โf(x) = \dfrac{\sqrt{x + 3}}{x - 1}โ.
The square root needs โx + 3 \ge 0โ, so โx \ge -3โ. The fraction needs โx \ne 1โ. Both together: the domain is โ[-3, 1) \cup (1, \infty)โ.

Example 2. Find the range of โf(x) = 5 - 3\cos xโ.
โ\cos xโ goes from โ-1โ to โ1โ. So โ-3\cos xโ goes from โ-3โ to โ3โ, and โ5 - 3\cos xโ goes from โ2โ to โ8โ. The range is โ[2, 8]โ.
Example 3. Let โf(x) = x - [x]โ. Find โf(2.3)โ and โf(-2.3)โ.
โ[2.3] = 2โ, so โf(2.3) = 2.3 - 2 = 0.3โ.
โ[-2.3] = -3โ (go down), so โf(-2.3) = -2.3 - (-3) = 0.7โ.
The function โx - [x]โ is called the fractional part of โxโ. Its value always lies in โ[0, 1)โ.
Example 4. If โf(x) + 2f\left(\dfrac{1}{x}\right) = 3xโ for all โx \ne 0โ, find โf(x)โ and โf(2)โ.
Replace โxโ by โ\dfrac{1}{x}โ: โ\;f\left(\dfrac{1}{x}\right) + 2f(x) = \dfrac{3}{x}โ.
Multiply this new equation by 2: โ\;2f\left(\dfrac{1}{x}\right) + 4f(x) = \dfrac{6}{x}โ.
Subtract the given equation: โ\;3f(x) = \dfrac{6}{x} - 3xโ, so
f(x) = \frac{2}{x} - x
Then โf(2) = 1 - 2 = -1โ. Check: โf(2) + 2f\left(\frac{1}{2}\right) = -1 + 2 \times 3.5 = 6 = 3 \times 2โ. Correct.
8. From the real papers
These six questions are from the Mathematics papers of NDA & NAVAC from 2023 to 2026. Try each for 75 seconds before reading the solution.
NDA II 2023, Q55. Let โf(x) = \sqrt{2 - x} + \sqrt{2 + x}โ. What is the domain of the function?
(a) โ(-2, 2)โโโ(b) โ[-2, 2]โโโ(c) โ\mathbb{R} - (-2, 2)โโโ(d) โ\mathbb{R} - [-2, 2]โ
Solution. The first root needs โ2 - x \ge 0โ, so โx \le 2โ. The second needs โ2 + x \ge 0โ, so โx \ge -2โ. Both together give โ-2 \le x \le 2โ, with the end points included. Answer (b).
NDA II 2023, Q49. A function is defined by โf(x) = \pi + \sin^2 xโ. What is the range of the function?
(a) โ[0, 1]โโโ(b) โ[\pi, \pi + 1]โโโ(c) โ[\pi - 1, \pi + 1]โโโ(d) โ[\pi - 1, \pi - 1]โ
Solution. โ\sin^2 xโ takes every value from 0 to 1. Adding โ\piโ moves this to the values from โ\piโ to โ\pi + 1โ. Answer (b).
NDA I 2024, Q80. Which one of the following is correct in respect of โf(x) = \frac{1}{\sqrt{|x| - x}}โ and โg(x) = \frac{1}{\sqrt{x - |x|}}โ?
(a) โf(x)โ has some domain and โg(x)โ has no domainโโ(b) โf(x)โ has no domain and โg(x)โ has some domainโโ(c) โf(x)โ and โg(x)โ have the same domainโโ(d) โf(x)โ and โg(x)โ do not have any domain
Solution. A root in the denominator needs a strictly positive quantity. For โfโ: โ|x| - x > 0โ is true exactly when โxโ is negative, so โfโ is defined for โx < 0โ. For โgโ: โx - |x| > 0โ is never true, because โ|x| \ge xโ for every real โxโ. So โgโ is defined nowhere. Answer (a).
NDA I 2025, Q81. Let the function โy = (1 - \cos x)^{-1}โ, where โx \neq 2n\piโ and โnโ is an integer. What is the range of the function?
(a) โ[0, \infty)โโโ(b) โ[0.5, \infty)โโโ(c) โ[1, \infty)โโโ(d) โ(-\infty, 0.5]โ
Solution. โ\cos xโ lies from โ-1โ to โ1โ, and the value โ1โ is excluded. So the denominator โ1 - \cos xโ takes every value in โ(0, 2]โ. The reciprocal of a number in โ(0, 2]โ is โ\frac{1}{2}โ or more, and it can be as large as we like. The range is โ[0.5, \infty)โ. Answer (b).
NDA I 2026, Q80. If โ2f(x) + f(1 - x) = xโ, then what is โf(x)โ equal to?
(a) โx - 1โโโ(b) โx - \left(\frac{1}{3}\right)โโโ(c) โ2xโโโ(d) โ2x - 1โ
Solution. Replace โxโ by โ1 - xโ: โ2f(1 - x) + f(x) = 1 - xโ. Multiply the given equation by 2: โ4f(x) + 2f(1 - x) = 2xโ. Subtract: โ3f(x) = 2x - (1 - x) = 3x - 1โ, so โf(x) = x - \frac{1}{3}โ. Answer (b).
NDA II 2026, Q81. What is the domain of the function โf(x) = \log_x eโ?
(a) โ(0, \infty)โโโ(b) โ(0, \infty) - \{1\}โโโ(c) โ(0, \infty) - \{e\}โโโ(d) โ(0, \infty) - \{10\}โ
Solution. Here โxโ is the base of the logarithm. A base must be positive and must not be 1. So the domain is all positive numbers except 1. Answer (b).
Notice that five of the six needed only the rules of sections 2 and 3.
9. Mistakes that cost marks
- Writing โ\ge 0โ for a root in the denominator. For โ\dfrac{1}{\sqrt{x - 1}}โ the condition is โx - 1 > 0โ, not โx - 1 \ge 0โ. The domain is โ(1, \infty)โ, and 1 is not in it.
- Taking โ[-0.3]โ as 0. The greatest integer not more than โ-0.3โ is โ-1โ. For negative numbers go down, not towards zero.
- Giving โ\sin^2 xโ the range โ[-1, 1]โ. A square is never negative. The range of โ\sin^2 xโ is โ[0, 1]โ.
- Mixing up range and codomain. For โf : \mathbb{R} \to \mathbb{R}โ with โf(x) = x^2โ, the codomain is โ\mathbb{R}โ but the range is only โ[0, \infty)โ.
10. Quick check
Do these without help. Answers are at the end.
- Find the domain of โf(x) = \sqrt{5 - x}โ.
- Find the range of โf(x) = 2 + 3\sin xโ.
- Find โ[-2.5] + [2.5]โ, where โ[x]โ is the greatest integer function.
- Is โf(x) = x^3 + xโ even, odd or neither?
- If โ2f(x) + f(-x) = x + 3โ for all real โxโ, find โf(x)โ and โf(4)โ.
11. Read and watch more, free
| What | Where | Language |
|---|---|---|
| Textbook | NCERT Class 11 Mathematics, Chapter 2 Relations and Functions ยท Hindi edition | English, Hindi |
| Self-study notes | NIOS Mathematics, Lesson 2 Relations and Functions-I ยท Hindi edition | English, Hindi |
| Textbook, more detail | OpenStax Calculus Volume 1, Chapter 1 Functions | English |
| Video, the chapter for NDA | NDA Vijay by Unacademy: Maths Free Milestone Batch (the class named Functions, about 3 hours 35 minutes) | Hinglish |
| Video, the chapter for NDA | Maths Jugad Se: NDA 2 2026 Maths Calculus (the class named Function, about 4 hours) | Hinglish |
| Past NDA questions | ExamSIDE: Functions | English |
The videos were chosen from their titles, length and views; they have not yet been watched by a teacher.
Answers to the quick check
- โ5 - x \ge 0โ, so โx \le 5โ. The domain is โ(-\infty, 5]โ.
- โ3\sin xโ goes from โ-3โ to โ3โ, so the range is โ[-1, 5]โ.
- โ[-2.5] = -3โ and โ[2.5] = 2โ. The sum is โ-1โ.
- Odd: โf(-x) = -x^3 - x = -f(x)โ.
- Replace โxโ by โ-xโ: โ2f(-x) + f(x) = -x + 3โ. Multiply the given equation by 2 and subtract: โ3f(x) = 2x + 6 - (-x + 3) = 3x + 3โ. So โf(x) = x + 1โ and โf(4) = 5โ.
Next chapter: Composite and inverse functions.