Skip to content
Question

Q.If f(x)=∣x∣+∣x−1∣f(x) = |x| + |x-1|, then which of the following is correct ?
(A) f(x)f(x) is both continuous and differentiable, at x=0x=0 and x=1x=1.
(B) f(x)f(x) is differentiable but not continuous, at x=0x=0 and x=1x=1.
(C) f(x)f(x) is continuous but not differentiable, at x=0x=0 and x=1x=1.
(D) f(x)f(x) is neither continuous nor differentiable, at x=0x=0 and x=1x=1.

CBSECBSE Class XII Board 2025MCQ· 1mImportance★★★★★
✓ Free question

The function f(x)=∣x∣+∣x−1∣f(x) = |x| + |x-1| is a sum of two absolute value functions, each continuous everywhere but with a corner at its respective critical point. At x=0x=0 and x=1x=1, the left and right derivatives differ, so ff is continuous but not differentiable at both points — option (C).

The key to this problem is understanding what absolute value does to differentiability. The function ∣x∣|x| has a V-shaped graph — it is continuous everywhere, but at x=0x=0 the slope changes abruptly from −1-1 to +1+1. That sharp corner means the derivative does not exist at x=0x=0, even though the function is perfectly continuous there. The same logic applies to ∣x−1∣|x-1| at x=1x=1.

When you add two such functions, the sum inherits the continuity of each piece. But at a point where either term has a corner, the sum may also have a corner — unless the slopes happen to cancel, which they do not here.

Let’s check each point carefully.


  1. Continuity at x=0x=0 Compute the left-hand limit, right-hand limit, and the function value. For x<0x < 0: ∣x∣=−x|x| = -x, ∣x−1∣=−(x−1)=1−x|x-1| = -(x-1) = 1-x, so

f(x)=−x+(1−x)=1−2x.f(x) = -x + (1-x) = 1 - 2x.

As x→0−x \to 0^-, f(x)→1f(x) \to 1.

For x>0x > 0 but x<1x < 1: ∣x∣=x|x| = x, ∣x−1∣=1−x|x-1| = 1-x, so

f(x)=x+(1−x)=1.f(x) = x + (1-x) = 1.

As x→0+x \to 0^+, f(x)→1f(x) \to 1.

Also f(0)=∣0∣+∣0−1∣=0+1=1f(0) = |0| + |0-1| = 0 + 1 = 1.

Since left limit = right limit = function value, ff is continuous at x=0x=0.

  1. Differentiability at x=0x=0 The left-hand derivative uses the expression for x<0x<0: f(x)=1−2xf(x) = 1 - 2x, so f′(x)=−2f'(x) = -2. Hence

f−′(0)=−2.f'_-(0) = -2.

The right-hand derivative uses the expression for 0<x<10 < x < 1: f(x)=1f(x) = 1, so f′(x)=0f'(x) = 0. Hence

f+′(0)=0.f'_+(0) = 0.

Since −2≠0-2 \neq 0, the left and right derivatives are different. Therefore ff is not differentiable at x=0x=0.

Watch out

A common mistake is to think that because ∣x∣|x| alone is not differentiable at 00, the sum must also fail — which is true here, but you must check the actual slopes. If the slopes from both terms happened to match on both sides, the sum could become differentiable. Always compute the left and right derivatives explicitly.

  1. Continuity at x=1x=1 For 0<x<10 < x < 1: f(x)=1f(x) = 1 (as above). As x→1−x \to 1^-, f(x)→1f(x) \to 1. For x>1x > 1: ∣x∣=x|x| = x, ∣x−1∣=x−1|x-1| = x-1, so

f(x)=x+(x−1)=2x−1.f(x) = x + (x-1) = 2x - 1.

As x→1+x \to 1^+, f(x)→2(1)−1=1f(x) \to 2(1)-1 = 1.

Also f(1)=∣1∣+∣0∣=1+0=1f(1) = |1| + |0| = 1 + 0 = 1.

So ff is continuous at x=1x=1.

  1. Differentiability at x=1x=1 Left-hand derivative (using f(x)=1f(x)=1 for x<1x<1): f−′(1)=0f'_-(1) = 0. Right-hand derivative (using f(x)=2x−1f(x)=2x-1 for x>1x>1): f′(x)=2f'(x)=2, so f+′(1)=2f'_+(1) = 2. Since 0≠20 \neq 2, ff is not differentiable at x=1x=1.
Tip

You can also think graphically: f(x)f(x) is made of three linear pieces — for x<0x<0 it is 1−2x1-2x (slope −2-2), for 0<x<10<x<1 it is constant 11 (slope 00), and for x>1x>1 it is 2x−12x-1 (slope 22). The slope jumps at both x=0x=0 and x=1x=1, confirming non-differentiability at those points.


✓Final answer

The correct option is (C): f(x)f(x) is continuous but not differentiable at x=0x=0 and x=1x=1.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.