Why this lesson matters. This chapter drew 15 questions in the seven papers from NDA II 2023 to NDA II 2026, and at least one in every paper. The exam asks about differentiability under the same heading, so both are taught here. There are three kinds of question: find the constant that makes a function continuous, decide whether a function with โ|x|โ or โ[x]โ is continuous or differentiable at a point, and use the fact that a differentiable function is continuous. Six real questions are solved in section 8.
What you will be able to do
- Test whether a function is continuous at a point with three checks.
- Find the unknown constant that makes a two-piece function continuous.
- Test whether a function is differentiable at a point by comparing the slope on the two sides.
- Use the link: differentiable means continuous, but continuous does not mean differentiable.
Before you start you should know: left-hand and right-hand limits and the standard limits (Chapter M5-3), and the functions โ|x|โ and โ[x]โ (Chapter M5-1). Sections 4 to 6 use the slope of a curve. It is enough for now to know that the slope of the line โy = mx + cโ is โmโ and that the slope of โy = x^2โ at the point โxโ is โ2xโ. The full rules come in Chapters M5-5 and M5-6.
1. Continuity at a point
A function โfโ is continuous at โx = aโ if
\lim_{x \to a-} f(x) = \lim_{x \to a+} f(x) = f(a)
This is three checks in one line:
- โf(a)โ has a value.
- The left-hand limit and the right-hand limit are equal, so the limit exists.
- The limit is equal to โf(a)โ.
If any check fails, โfโ is discontinuous at โaโ.
On the graph: a function is continuous at โaโ if the graph passes through the point above โaโ without a break. You can draw it without lifting the pen. A break can be a jump (the two sides arrive at different heights) or a hole (the two sides arrive at the same height, but the point itself is missing or is placed somewhere else).

The third graph is Example 1 below.
For example, โ[x]โ at โx = 1โ: the left-hand limit is 0 and the right-hand limit is 1. Check 2 fails. There is a jump.
A function is called continuous (with no point named) if it is continuous at every point of its domain.
2. Which functions are continuous
- Polynomials, โ\sin xโ, โ\cos xโ, โe^xโ and โ|x|โ are continuous at every real โxโ.
- โ\log xโ is continuous for โx > 0โ.
- A fraction โ\dfrac{p(x)}{q(x)}โ of continuous functions is continuous wherever โq(x) \ne 0โ. So โ\tan xโ is continuous except where โ\cos x = 0โ.
- Sums, differences, products and composites of continuous functions are continuous.
- The greatest integer function โ[x]โ is discontinuous at every integer and continuous everywhere else.
So a function given by one ordinary formula needs no test. The only points to test are the points where the formula changes, and the points where โ[\;]โ has an integer inside it.
3. Finding the unknown constant
This is the most common question. The function has two formulas that meet at a point, and one formula has an unknown constant โkโ. Make the two sides agree at the meeting point.
Take โf(x) = \begin{cases} kx + 1, & x \le 2 \\ x^2, & x > 2 \end{cases}โ.
At โx = 2โ: the left-hand limit and the value are both โ2k + 1โ. The right-hand limit is โ2^2 = 4โ. For continuity โ2k + 1 = 4โ, so โk = \dfrac{3}{2}โ.

4. Differentiability at a point
The slope of the graph of โfโ at โx = aโ is found from a limit:
f'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}
If โhโ is taken only negative, the limit is the left-hand derivative, the slope of the graph just to the left of โaโ. If โhโ is taken only positive, it is the right-hand derivative, the slope just to the right.
โfโ is differentiable at โaโ if the left-hand derivative and the right-hand derivative are equal (and finite). Their common value is โf'(a)โ.
On the graph: differentiable means smooth. A sharp corner is a point where the graph is continuous but the slope changes suddenly, so the function is not differentiable there.
The standard example is โf(x) = |x|โ at โx = 0โ. The graph is a V. For โh > 0โ, โ\dfrac{|h| - 0}{h} = 1โ. For โh < 0โ, โ\dfrac{|h| - 0}{h} = -1โ. The right-hand derivative is 1 and the left-hand derivative is โ-1โ. So โ|x|โ is not differentiable at 0, although it is continuous there.

5. The link between the two
| Statement | True or false |
|---|---|
| If โfโ is differentiable at โaโ, then โfโ is continuous at โaโ | True, always |
| If โfโ is continuous at โaโ, then โfโ is differentiable at โaโ | False. Example: โ\lvert x \rvertโ at 0 |
| If โfโ is not continuous at โaโ, then โfโ is not differentiable at โaโ | True. Example: โ[x]โ at any integer |
Three facts are asked again and again.
- โ|x - a|โ is continuous everywhere and is not differentiable at โx = aโ (a corner).
- โ[x]โ is constant between two integers. So at any point that is not an integer it is continuous and differentiable, with derivative 0.
- โx|x|โ is differentiable everywhere, also at 0. It equals โx^2โ on the right and โ-x^2โ on the left, and both have slope 0 at โx = 0โ.

6. Making a two-piece function differentiable
For a function with two formulas that meet at โx = aโ to be differentiable at โaโ, two conditions are needed:
- The values match at โaโ (continuity).
- The slopes match at โaโ (left-hand derivative = right-hand derivative).
Two conditions give two equations, so two unknown constants can be found. See Example 5.
7. Worked examples
Example 1. Let โf(x) = \dfrac{x^2 - 9}{x - 3}โ for โx \ne 3โ and โf(3) = 5โ. Is โfโ continuous at โx = 3โ?
For โx \ne 3โ, โf(x) = x + 3โ, so โ\lim_{x \to 3} f(x) = 6โ. But โf(3) = 5โ. The limit exists and is not equal to the value: check 3 fails. โfโ is not continuous at 3. (If โf(3)โ were 6, it would be continuous.)
Example 2. Find โkโ if โf(x) = \begin{cases} kx + 1, & x \le 3 \\ x^2 - 2, & x > 3 \end{cases}โ is continuous at โx = 3โ.
Left side and value: โ3k + 1โ. Right side: โ9 - 2 = 7โ. So โ3k + 1 = 7โ and โk = 2โ.
Example 3. Find โkโ if โf(x) = \dfrac{\sin 3x}{x}โ for โx \ne 0โ and โf(0) = kโ is continuous at โx = 0โ.
โ\lim_{x \to 0} \dfrac{\sin 3x}{x} = 3โ (a standard limit). For continuity the value must equal the limit, so โk = 3โ.
Example 4. Show that โf(x) = |x - 2|โ is continuous at โx = 2โ but not differentiable there.
For โx \ge 2โ, โf(x) = x - 2โ, a line of slope 1. For โx < 2โ, โf(x) = 2 - xโ, a line of slope โ-1โ.
Continuity: both formulas give 0 at โx = 2โ, and โf(2) = 0โ. Continuous.
Differentiability: the left-hand derivative is โ-1โ and the right-hand derivative is โ1โ. They differ. Not differentiable.
Example 5. Find โaโ and โbโ if โf(x) = \begin{cases} x^2, & x \le 1 \\ ax + b, & x > 1 \end{cases}โ is differentiable at โx = 1โ.
Values match: โ1^2 = a + bโ, so โa + b = 1โ.
Slopes match: the slope of โx^2โ at โx = 1โ is โ2 \times 1 = 2โ, and the slope of โax + bโ is โaโ. So โa = 2โ.
Then โb = 1 - 2 = -1โ. The line โy = 2x - 1โ is the tangent to โy = x^2โ at โ(1, 1)โ.

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, Q63. Let โf(x) = \begin{cases} ax(x + 1) + b, & x < 1 \\ x - 1, & 1 \le x \le 2 \end{cases}โ If the function โf(x)โ is differentiable at โx = 1โ, then what is the value of โ(a + b)โ?
(a) โ-\frac{1}{3}โโโ(b) โ-1โโโ(c) 0โโ(d) 1
Solution. Values match at โx = 1โ: โa(1)(2) + b = 1 - 1โ, so โ2a + b = 0โ. Slopes match: for โx < 1โ, โf(x) = ax^2 + ax + bโ has slope โ2ax + aโ, which is โ3aโ at โx = 1โ; the slope of โx - 1โ is 1. So โ3a = 1โ, โa = \frac{1}{3}โ and โb = -\frac{2}{3}โ. Then โa + b = -\frac{1}{3}โ. Answer (a).
NDA I 2024, Q87. Let โf(x) = |x| + 1โ and โg(x) = [x] - 1โ, where โ[.]โ is the greatest integer function. Let โh(x) = \frac{f(x)}{g(x)}โ. Consider the following statements : 1. โf(x)โ is differentiable for all โx < 0โ 2. โg(x)โ is continuous at โx = 0.0001โ 3. The derivative of โg(x)โ at โx = 2.5โ is 1 Which of the statements given above are correct?
(a) 1 and 2 onlyโโ(b) 2 and 3 onlyโโ(c) 1 and 3 onlyโโ(d) 1, 2 and 3
Solution. Statement 1: for โx < 0โ, โf(x) = -x + 1โ, a straight line, so it is differentiable there. Correct. Statement 2: โ[x]โ jumps only at integers, and โ0.0001โ is not an integer. Correct. Statement 3: near โx = 2.5โ, โg(x) = 2 - 1 = 1โ, a constant, so its derivative is 0, not 1. Wrong. Answer (a).
NDA II 2025, Q83. Consider the function โf(x) = \begin{cases} 4(5^x), & x < 0 \\ 8k + x, & x \ge 0 \end{cases}โ If the function is continuous, then what is the value of โkโ?
(a) 0.5โโ(b) 1โโ(c) 1.5โโ(d) 2
Solution. The formula changes only at โx = 0โ. Left-hand limit: โ4 \times 5^0 = 4โ. Value and right-hand limit: โ8k + 0 = 8kโ. So โ8k = 4โ and โk = 0.5โ. Answer (a).
NDA I 2026, Q71. If โf(x)โ is differentiable at โx = aโ, then consider the following statements : I. โf(x)โ is continuous at โx = aโ II. โ\lim_{x \to a} f(x) = f(a)โ Which of the statements given above is/are correct?
(a) I onlyโโ(b) II onlyโโ(c) Both I and IIโโ(d) Neither I nor II
Solution. A differentiable function is continuous (section 5), so I is correct. Statement II is the definition of continuity at โx = aโ, so it says the same thing as I. Answer (c).
NDA II 2026, Q83. Consider the following statements in respect of the function โf(x) = [3x]โ, where โ[\cdot]โ is the greatest integer function : I. โf(x)โ is continuous at โx = 1/3โ. II. โf(x)โ is differentiable at โx = 1/4โ. Which of the statements given above is/are correct?
(a) I onlyโโ(b) II onlyโโ(c) Both I and IIโโ(d) Neither I nor II
Solution. I: at โx = \frac{1}{3}โ the quantity inside is โ3x = 1โ, an integer. Just to the left โf = 0โ; at the point and just to the right โf = 1โ. A jump, so not continuous. II: at โx = \frac{1}{4}โ, โ3x = \frac{3}{4}โ is not an integer. Near this point โf(x) = 0โ, a constant, which is differentiable. Only II is correct. Answer (b).

NDA II 2026, Q85. Let โf(x) = p|x| + qโ, where โpโ and โqโ are real constants. If โf'(x)โ exists at โx = 0โ, then what is the value of โpโ?
(a) โ-1โโโ(b) โ0โโโ(c) โ1โโโ(d) โqโ
Solution. For โx > 0โ, โf(x) = px + qโ, with slope โpโ. For โx < 0โ, โf(x) = -px + qโ, with slope โ-pโ. The derivative at 0 exists only if โp = -pโ, so โp = 0โ. Answer (b).

9. Mistakes that cost marks
- Checking the two sides and forgetting the value. The limit can exist and still differ from โf(a)โ, as in Example 1. Continuity needs all three equal.
- "Continuous, so differentiable." This is the wrong way round. โ|x|โ is continuous at 0 and not differentiable there. The true statement is: differentiable, so continuous.
- Matching the slopes without matching the values. To make a two-piece function differentiable, use both conditions. Slopes alone are not enough.
- Thinking โ[x]โ is discontinuous everywhere. It jumps only at integers. For โ[3x]โ the jumps are where โ3xโ is an integer.
10. Quick check
Do these without help. Answers are at the end.
- Find โkโ if โf(x) = \begin{cases} 3x + k, & x < 1 \\ x^2 + 4, & x \ge 1 \end{cases}โ is continuous at โx = 1โ.
- At which points is the greatest integer function โ[x]โ discontinuous?
- Is โ|x|โ differentiable at โx = 0โ? At โx = 5โ?
- Find โkโ if โf(x) = \dfrac{1 - \cos x}{x^2}โ for โx \ne 0โ and โf(0) = kโ is continuous at โx = 0โ.
- True or false: every continuous function is differentiable.
11. Read and watch more, free
| What | Where | Language |
|---|---|---|
| Textbook | NCERT Class 12 Mathematics, Chapter 5 Continuity and Differentiability ยท Hindi edition | English, Hindi |
| Self-study notes | NIOS Mathematics, Lesson 25 Limits and Continuity ยท Hindi edition | English, Hindi |
| Video, the chapter for NDA | Defence Wallah: Fast Track 2021 (the class named CONTINUITY AND DIFFERENTIABILITY, about 1 hour 50 minutes) | Hinglish |
| Video, every textbook problem | Magnet Brains: Class 12 Maths complete course (the 30 videos of Chapter 5) | Hinglish |
| Video, a longer class for NDA | NDA Vijay by Unacademy: Maths Free Milestone Batch (the class named Limits and Continuity, about 4 hours 45 minutes) | Hinglish |
| Past NDA questions | ExamSIDE: Limit, Continuity and Differentiability | 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
- Left-hand limit: โ3 + kโ. Value: โ1 + 4 = 5โ. So โk = 2โ.
- At every integer, and nowhere else.
- Not at 0 (a corner: slopes โ-1โ and โ1โ). Yes at 5: near 5, โ|x| = xโ, with slope 1.
- The limit is โ\dfrac{1}{2}โ, so โk = \dfrac{1}{2}โ.
- False. โ|x|โ is continuous at 0 but not differentiable there.
Next chapter: The derivative and its meaning.