Skip to content

Ch 5 · Continuity and Differentiability

Exercise 5.1

Exercise 2 of 10

NCERT Solutions – Exercise 5.1

Class 12 Mathematics · Chapter 5 · Continuity and Differentiability · 34 questions · Session 2026-27

Question 1
Prove that the function f(x) = 5x − 3 is continuous at x = 0, at x = −3 and at x = 5.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. f is a polynomial, so lim(x→a) f(x) = 5a − 3 for every a.
  2. At x = 0: limit = −3 and f(0) = −3. Equal ⇒ continuous.
  3. At x = −3: limit = −18 and f(−3) = −18. Equal ⇒ continuous.
  4. At x = 5: limit = 22 and f(5) = 22. Equal ⇒ continuous.

f is continuous at all three points.

Question 2
Examine the continuity of the function f(x) = 2x² − 1 at x = 3.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. lim(x→3) (2x² − 1) = 2(9) − 1 = 17.
  2. f(3) = 2(9) − 1 = 17.

Limit = f(3), so f is continuous at x = 3.

Question 3
Examine the following functions for continuity:
  1. (a) f(x) = x − 5
  2. (b) f(x) = 1/(x − 5), x ≠ 5
  3. (c) f(x) = (x² − 25)/(x + 5), x ≠ −5
  4. (d) f(x) = |x − 5|.
Solution
  1. (a) A polynomial is continuous at every real x. → continuous on R.
  2. (b) For any c ≠ 5, lim(x→c) 1/(x − 5) = 1/(c − 5) = f(c). → continuous on its domain R − {5}.
  3. (c) For c ≠ −5, f(x) = (x − 5)(x + 5)/(x + 5) = x − 5, so lim = c − 5 = f(c). → continuous on R − {−5}.
  4. (d) |x − 5| is the composition of the continuous functions x ↦ x − 5 and the modulus. → continuous on R.
Question 4
Prove that the function f(x) = xⁿ is continuous at x = n, where n is a positive integer.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. f(x) = xⁿ is a polynomial.
  2. lim(x→n) xⁿ = nⁿ, by direct substitution.
  3. f(n) = nⁿ.

Limit = f(n), so f is continuous at x = n.

Question 5
Is the function f defined by f(x) = x if x ≤ 1, and 5 if x > 1, continuous at x = 0? At x = 1? At x = 2?
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. At x = 0: near 0, f(x) = x, so limit = 0 = f(0). → continuous.
  2. At x = 1: LHL = lim(x→1⁻) x = 1; RHL = lim(x→1⁺) 5 = 5.
  3. LHL ≠ RHL, so f is discontinuous at x = 1.
  4. At x = 2: near 2, f(x) = 5 (constant), so limit = 5 = f(2). → continuous.
Question 6
Find all points of discontinuity of f, where f(x) = 2x + 3 if x ≤ 2, and 2x − 3 if x > 2.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. For x < 2 and x > 2 the function is a polynomial, hence continuous there.
  2. The only doubtful point is x = 2.
  3. LHL = 2(2) + 3 = 7; RHL = 2(2) − 3 = 1; f(2) = 7.
  4. LHL ≠ RHL.

f is discontinuous only at x = 2.

Question 7
Find all points of discontinuity of f, where f(x) = |x| + 3 if x ≤ −3, −2x if −3 < x < 3, and 6x + 2 if x ≥ 3.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. Only the joining points x = −3 and x = 3 need checking.
  2. At x = −3: LHL = |−3| + 3 = 6; RHL = −2(−3) = 6; f(−3) = 6. All equal → continuous.
  3. At x = 3: LHL = −2(3) = −6; RHL = 6(3) + 2 = 20; f(3) = 20.
  4. LHL ≠ RHL.

f is discontinuous only at x = 3.

Question 8
Find all points of discontinuity of f, where f(x) = |x|/x if x ≠ 0, and 0 if x = 0.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. For x > 0, f(x) = x/x = 1; for x < 0, f(x) = −x/x = −1.
  2. LHL at 0 = −1; RHL at 0 = 1; f(0) = 0.
  3. The three values differ.

f is discontinuous only at x = 0.

Question 9
Find all points of discontinuity of f, where f(x) = x/|x| if x < 0, and −1 if x ≥ 0.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. For x < 0, f(x) = x/(−x) = −1.
  2. So LHL at 0 = −1, RHL at 0 = −1, and f(0) = −1.
  3. All three agree, and elsewhere f is constant.

f is continuous everywhere — there is no point of discontinuity.

Question 10
Find all points of discontinuity of f, where f(x) = x + 1 if x ≥ 1, and x² + 1 if x < 1.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. The only doubtful point is x = 1.
  2. LHL = 1² + 1 = 2; RHL = 1 + 1 = 2; f(1) = 2.

All equal, so f is continuous everywhere; no point of discontinuity.

Question 11
Find all points of discontinuity of f, where f(x) = x³ − 3 if x ≤ 2, and x² + 1 if x > 2.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. Check x = 2.
  2. LHL = 2³ − 3 = 5; RHL = 2² + 1 = 5; f(2) = 5.

All equal ⇒ f is continuous everywhere.

Question 12
Find all points of discontinuity of f, where f(x) = x¹⁰ − 1 if x ≤ 1, and x² if x > 1.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. Check x = 1.
  2. LHL = 1¹⁰ − 1 = 0; RHL = 1² = 1; f(1) = 0.
  3. LHL ≠ RHL.

f is discontinuous only at x = 1.

Question 13
Is the function defined by f(x) = x + 5 if x ≤ 1, and x − 5 if x > 1, a continuous function?
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. Check x = 1.
  2. LHL = 1 + 5 = 6; RHL = 1 − 5 = −4; f(1) = 6.
  3. LHL ≠ RHL.

f is not continuous; it is discontinuous at x = 1 only.

Question 14
Discuss the continuity of the function f, where f(x) = 3 if 0 ≤ x ≤ 1, 4 if 1 < x < 3, and 5 if 3 ≤ x ≤ 10.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. On each open piece f is constant, hence continuous.
  2. At x = 1: LHL = 3, RHL = 4 ⇒ discontinuous.
  3. At x = 3: LHL = 4, RHL = 5 ⇒ discontinuous.

f is discontinuous at x = 1 and x = 3, continuous elsewhere on [0, 10].

Question 15
Discuss the continuity of f, where f(x) = 2x if x < 0, 0 if 0 ≤ x ≤ 1, and 4x if x > 1.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. At x = 0: LHL = 2(0) = 0; RHL = 0; f(0) = 0. → continuous.
  2. At x = 1: LHL = 0; RHL = 4(1) = 4; f(1) = 0.
  3. LHL ≠ RHL.

f is discontinuous only at x = 1.

Question 16
Discuss the continuity of f, where f(x) = −2 if x ≤ −1, 2x if −1 < x ≤ 1, and 2 if x > 1.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. At x = −1: LHL = −2; RHL = 2(−1) = −2; f(−1) = −2. → continuous.
  2. At x = 1: LHL = 2(1) = 2; RHL = 2; f(1) = 2. → continuous.

f is continuous everywhere.

Question 17
Find the relationship between a and b so that the function f defined by f(x) = ax + 1 if x ≤ 3, and bx + 3 if x > 3, is continuous at x = 3.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. LHL = 3a + 1; RHL = 3b + 3; f(3) = 3a + 1.
  2. Continuity requires 3a + 1 = 3b + 3.
  3. So 3a − 3b = 2.

a = b + 2/3, i.e. 3a − 3b = 2.

Question 18
For what value of λ is the function defined by f(x) = λ(x² − 2x) if x ≤ 0, and 4x + 1 if x > 0, continuous at x = 0? What about continuity at x = 1?
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. At x = 0: LHL = λ(0 − 0) = 0; RHL = 4(0) + 1 = 1; f(0) = 0.
  2. LHL = 0 ≠ 1 = RHL for every λ.
  3. So no value of λ makes f continuous at x = 0.
  4. At x = 1: near 1 the function is 4x + 1, a polynomial, so it is continuous there for every λ.
Question 19
Show that the function defined by g(x) = x − [x] is discontinuous at all integral points. Here [x] denotes the greatest integer less than or equal to x.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. Let c be an integer. Then [c] = c, so g(c) = c − c = 0.
  2. LHL: for x slightly less than c, [x] = c − 1, so g(x) → c − (c − 1) = 1.
  3. RHL: for x slightly greater than c, [x] = c, so g(x) → c − c = 0.
  4. LHL = 1 ≠ 0 = RHL.

Hence g is discontinuous at every integer.

Question 20
Is the function defined by f(x) = x² − sin x + 5 continuous at x = π?
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. x², sin x and the constant 5 are each continuous on R.
  2. Sums and differences of continuous functions are continuous.
  3. So lim(x→π) f(x) = π² − sin π + 5 = π² + 5 = f(π).

Yes, f is continuous at x = π (indeed on all of R).

Question 21
Discuss the continuity of the following functions:
  1. (a) f(x) = sin x + cos x
  2. (b) f(x) = sin x − cos x
  3. (c) f(x) = sin x · cos x.
Solution
  1. sin x and cos x are each continuous on R.
  2. The sum, difference and product of continuous functions are continuous.

All three functions are continuous on R.

Question 22
Discuss the continuity of the cosine, cosecant, secant and cotangent functions.
Solution
  1. cos x is continuous for all x ∈ R.
  2. cosec x = 1/sin x is continuous wherever sin x ≠ 0, i.e. on R − {nπ : n ∈ Z}.
  3. sec x = 1/cos x is continuous wherever cos x ≠ 0, i.e. on R − {(2n + 1)π/2 : n ∈ Z}.
  4. cot x = cos x/sin x is continuous wherever sin x ≠ 0, i.e. on R − {nπ : n ∈ Z}.
Question 23
Find all points of discontinuity of f, where f(x) = sin x / x if x < 0, and x + 1 if x ≥ 0.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. For x < 0 and x > 0 the function is continuous (quotient/polynomial with non-zero denominator).
  2. At x = 0: LHL = lim(x→0⁻) sin x/x = 1.
  3. RHL = lim(x→0⁺) (x + 1) = 1; f(0) = 0 + 1 = 1.
  4. All three equal 1.

f is continuous everywhere; there is no point of discontinuity.

Question 24
Determine if f defined by f(x) = x² sin(1/x) if x ≠ 0, and 0 if x = 0, is a continuous function.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. For x ≠ 0 the function is a product of continuous functions, hence continuous.
  2. At x = 0: |x² sin(1/x)| ≤ x², since |sin(1/x)| ≤ 1.
  3. As x → 0, x² → 0, so by the squeeze theorem lim(x→0) f(x) = 0.
  4. And f(0) = 0.

Limit = f(0), so f is continuous everywhere.

Question 25
Examine the continuity of f, where f(x) = sin x − cos x if x ≠ 0, and −1 if x = 0.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. For x ≠ 0, f is a difference of continuous functions, hence continuous.
  2. At x = 0: lim(x→0) (sin x − cos x) = 0 − 1 = −1.
  3. f(0) = −1.

Limit = f(0), so f is continuous everywhere.

Question 26
Find the value of k so that the function f(x) = k cos x/(π − 2x) if x ≠ π/2, and 3 if x = π/2, is continuous at x = π/2.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. Put x = π/2 + h, so h → 0. Then cos x = cos(π/2 + h) = −sin h and π − 2x = −2h.
  2. So f = (k)(−sin h)/(−2h) = (k/2)·(sin h / h).
  3. As h → 0, sin h / h → 1, so the limit is k/2.
  4. Continuity requires k/2 = f(π/2) = 3.

k = 6.

Question 27
Find the value of k so that the function f(x) = kx² if x ≤ 2, and 3 if x > 2, is continuous at x = 2.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. LHL = k(2)² = 4k; RHL = 3; f(2) = 4k.
  2. Continuity requires 4k = 3.

k = 3/4.

Question 28
Find the value of k so that the function f(x) = kx + 1 if x ≤ π, and cos x if x > π, is continuous at x = π.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. LHL = kπ + 1; RHL = cos π = −1; f(π) = kπ + 1.
  2. Continuity requires kπ + 1 = −1, so kπ = −2.

k = −2/π.

Question 29
Find the value of k so that the function f(x) = kx + 1 if x ≤ 5, and 3x − 5 if x > 5, is continuous at x = 5.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. LHL = 5k + 1; RHL = 3(5) − 5 = 10; f(5) = 5k + 1.
  2. Continuity requires 5k + 1 = 10, so 5k = 9.

k = 9/5.

Question 30
Find the values of a and b such that the function defined by f(x) = 5 if x ≤ 2, ax + b if 2 < x < 10, and 21 if x ≥ 10, is a continuous function.
Solution

A function is continuous at c when the left-hand limit, the right-hand limit and f(c) all agree.

  1. At x = 2: LHL = 5 and RHL = 2a + b, so 2a + b = 5.
  2. At x = 10: LHL = 10a + b and RHL = 21, so 10a + b = 21.
  3. Subtracting: 8a = 16 ⇒ a = 2.
  4. Then b = 5 − 2(2) = 1.

a = 2, b = 1.

Question 31
Show that the function defined by f(x) = cos(x²) is a continuous function.
Solution
  1. Let g(x) = x² and h(x) = cos x. Both are continuous on R.
  2. Then f = h ∘ g.
  3. The composition of continuous functions is continuous.

Hence cos(x²) is continuous on R.

Question 32
Show that the function defined by f(x) = |cos x| is a continuous function.
Solution
  1. Let g(x) = cos x (continuous on R) and h(x) = |x| (continuous on R).
  2. Then f = h ∘ g.

A composition of continuous functions is continuous, so |cos x| is continuous on R.

Question 33
Examine that sin |x| is a continuous function.
Solution
  1. Let g(x) = |x| and h(x) = sin x, both continuous on R.
  2. Then sin|x| = h ∘ g.

Hence sin|x| is continuous on R.

Question 34
Find all the points of discontinuity of f defined by f(x) = |x| − |x + 1|.
Solution

Both |x| and |x + 1| are continuous on R.

  1. The difference of two continuous functions is continuous.
  2. So f is continuous at every real number — including x = 0 and x = −1, where the individual moduli have corners.
  3. (A corner affects differentiability, not continuity.)

There is no point of discontinuity; f is continuous on R.