WishWasTraining Academy
NDA & Naval Academy entrance exam school
โ† home
Chapter M5-4 ยท 4 of 8 in Differential Calculus ยท 15 min read

Continuity

43 real NDA questions of this kind in the 19 papers of 2017 to 2026.

Try three questions free โ†“
This chapter has a video lessonWatch it, practise with a drill and keep your record, all with a free account. No fee, no card.

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:

  1. โ€‹f(a)โ€‹ has a value.
  2. The left-hand limit and the right-hand limit are equal, so the limit exists.
  3. 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).

Three graphs: an unbroken curve; a graph with a jump at x = 2; the line y = x + 3 with an open circle at (3, 6) and a separate point at (3, 5)

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}โ€‹.

The two pieces kx + 1 and x squared: with k = 1 there is a jump at x = 2; with k = 3 over 2 they meet at the point (2, 4)

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.

The V-shaped graph of modulus x, with slope minus 1 on the left arm, slope 1 on the right arm and the corner at the origin circled

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โ€‹.

The graph of x times modulus x: x squared on the right and minus x squared on the left, joined at the origin where the curve is flat

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:

  1. The values match at โ€‹aโ€‹ (continuity).
  2. 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)โ€‹.

The curve y = x squared up to the point (1, 1) and then the line y = 2x - 1 going on smoothly; a dashed line of slope one half from (1, 1) makes a corner

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).

Step graph of the greatest integer of 3x from 0 to 1, with jumps at x = one third and two thirds and a marked point at x = one quarter on a flat step

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).

Graphs of p times modulus x plus q for p = 2, p = 1 and p = 0: only the flat line p = 0 has no corner at 0

9. Mistakes that cost marks

  1. 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.
  2. "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.
  3. Matching the slopes without matching the values. To make a two-piece function differentiable, use both conditions. Slopes alone are not enough.
  4. 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.

  1. Find โ€‹kโ€‹ if โ€‹f(x) = \begin{cases} 3x + k, & x < 1 \\ x^2 + 4, & x \ge 1 \end{cases}โ€‹ is continuous at โ€‹x = 1โ€‹.
  2. At which points is the greatest integer function โ€‹[x]โ€‹ discontinuous?
  3. Is โ€‹|x|โ€‹ differentiable at โ€‹x = 0โ€‹? At โ€‹x = 5โ€‹?
  4. Find โ€‹kโ€‹ if โ€‹f(x) = \dfrac{1 - \cos x}{x^2}โ€‹ for โ€‹x \ne 0โ€‹ and โ€‹f(0) = kโ€‹ is continuous at โ€‹x = 0โ€‹.
  5. 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

  1. Left-hand limit: โ€‹3 + kโ€‹. Value: โ€‹1 + 4 = 5โ€‹. So โ€‹k = 2โ€‹.
  2. At every integer, and nowhere else.
  3. Not at 0 (a corner: slopes โ€‹-1โ€‹ and โ€‹1โ€‹). Yes at 5: near 5, โ€‹|x| = xโ€‹, with slope 1.
  4. The limit is โ€‹\dfrac{1}{2}โ€‹, so โ€‹k = \dfrac{1}{2}โ€‹.
  5. False. โ€‹|x|โ€‹ is continuous at 0 but not differentiable there.

Next chapter: The derivative and its meaning.

Free ยท no sign-up

Try three questions on this chapter

Exam-pattern questions from this chapter's drill. Pick an answer for each, then check.

  1. Question 1 of 3
    Let โ€‹f(x) = ax^2 + bโ€‹ for โ€‹x \le 1โ€‹ and โ€‹f(x) = \dfrac{2}{x}โ€‹ for โ€‹x > 1โ€‹. If โ€‹fโ€‹ is differentiable at โ€‹x = 1โ€‹, what is the value of โ€‹bโ€‹?
  2. Question 2 of 3
    Let โ€‹f(x) = \dfrac{x^2 - 1}{x - 1}โ€‹ for โ€‹x \ne 1โ€‹ and โ€‹f(1) = 2โ€‹. Consider the following statements: I. โ€‹fโ€‹ is continuous at โ€‹x = 1โ€‹. II. โ€‹fโ€‹ is differentiable at โ€‹x = 1โ€‹. Which of the statements given above is/are correct?
  3. Question 3 of 3
    Let โ€‹f(x) = [2x]โ€‹, where โ€‹[\cdot]โ€‹ is the greatest integer function. At which one of the following points is โ€‹fโ€‹ discontinuous?
Free sign-up

You have read the chapter. Now make it stick.

A free account adds the video lesson, a drill of ten questions on this chapter marked like the exam, the timed mock papers, a study plan to your exam date and your own record of what you have done. No fee, no card.

Past questions quoted are from the official UPSC paper named in the text; the explanations are WishWas's own and have been checked against the official key. The links under โ€œRead and watch moreโ€ go to free material on other sites; nothing is copied.