Class 12 Maths, Worked in Full Past papersGet updates
CBSE Sample Paper 2024-25 · Section A · 1 mark

Q19: Where ∣x∣+∣x−1∣|x| + |x - 1| is not differentiable

The question

Select the correct answer from the options (A), (B), (C) and (D) as given below.

(A) Both (A) and (R) are true and (R) is the correct explanation of (A).

(B) Both (A) and (R) are true but (R) is not the correct explanation of (A).

(C) (A) is true but (R) is false.

(D) (A) is false but (R) is true.

Assertion (A): Consider the function defined as f(x)=∣x∣+∣x−1∣f(x) = |x| + |x - 1|⁠, x∈Rx \in R⁠. Then f(x)f(x) is not differentiable at x=0x = 0 and x=1x = 1⁠.

Reason (R): Suppose ff be defined and continuous on (a,b)(a, b) and c∈(a,b)c \in (a, b)⁠, then f(x)f(x) is not differentiable at x=cx = c if

lim⁡h→0−f(c+h)−f(c)h≠lim⁡h→0+f(c+h)−f(c)h.\begin{aligned} &\lim_{h \to 0^-}\frac{f(c + h) - f(c)}{h} \\ &\ne \lim_{h \to 0^+}\frac{f(c + h) - f(c)}{h}. \end{aligned}
Exam answer
f(x)={1−2x,x<01,0≤x<12x−1,x≥1f(x) = \begin{cases} 1 - 2x, & x < 0 \\ 1, & 0 \le x < 1 \\ 2x - 1, & x \ge 1 \end{cases}
Why?

Each modulus changes form where its inside is 0, at x=0x = 0 and x=1x = 1⁠. Remove the bars on each piece:

x<0:−x−(x−1)0≤x<1:x−(x−1)x≥1:x+(x−1)\begin{aligned} x < 0&: -x - (x - 1) \\ 0 \le x < 1&: x - (x - 1) \\ x \ge 1&: x + (x - 1) \end{aligned}

(For x<0x < 0 both insides are negative, so ∣x∣=−x|x| = -x and ∣x−1∣=−(x−1)|x - 1| = -(x - 1)⁠. For 0≤x<10 \le x < 1 only x−1x - 1 is negative. For x≥1x \ge 1 neither is.)

−x−(x−1)=−x−x+1=1−2xx−(x−1)=x−x+1=1x+(x−1)=2x−1\begin{aligned} -x - (x - 1) &= -x - x + 1 \\ &= 1 - 2x \\[4pt] x - (x - 1) &= x - x + 1 = 1 \\[4pt] x + (x - 1) &= 2x - 1 \end{aligned}

These simplify to 1−2x1 - 2x⁠, 11 and 2x−12x - 1⁠. So ff is continuous everywhere, and f(0)=f(1)=1f(0) = f(1) = 1⁠.

f(0)=1(middle piece)f(1)=2(1)−1=1\begin{aligned} f(0) &= 1 \quad (\text{middle piece}) \\ f(1) &= 2(1) - 1 = 1 \end{aligned}

At x=0x = 0⁠, with f(0)=1f(0) = 1⁠:

LHD=lim⁡h→0−(1−2h)−1h=−2RHD=lim⁡h→0+1−1h=0\begin{aligned} \text{LHD} &= \lim_{h \to 0^-}\frac{(1 - 2h) - 1}{h} = -2 \\ \text{RHD} &= \lim_{h \to 0^+}\frac{1 - 1}{h} = 0 \end{aligned}

At x=1x = 1⁠, with f(1)=1f(1) = 1⁠:

LHD=lim⁡h→0−1−1h=0RHD=lim⁡h→0+(1+2h)−1h=2\begin{aligned} \text{LHD} &= \lim_{h \to 0^-}\frac{1 - 1}{h} = 0 \\ \text{RHD} &= \lim_{h \to 0^+}\frac{(1 + 2h) - 1}{h} = 2 \end{aligned}
Why?

A one-sided derivative at cc is the limit, as hh tends to 0 from one side, of

f(c+h)−f(c)h\frac{f(c + h) - f(c)}{h}

Use the piece of ff on that side.

At 0: for small h<0h < 0⁠, f(h)=1−2hf(h) = 1 - 2h⁠; for small h>0h > 0⁠, f(h)=1f(h) = 1⁠.

At 1: for small h<0h < 0⁠, f(1+h)=1f(1 + h) = 1⁠; for small h>0h > 0⁠, f(1+h)=2(1+h)−1=1+2hf(1 + h) = 2(1 + h) - 1 = 1 + 2h⁠.

Simplify each top, then cancel hh⁠:

At 0, left:(1−2h)−1h=−2hh=−2At 0, right:1−1h=0h=0At 1, left:1−1h=0h=0At 1, right:(1+2h)−1h=2hh=2\begin{aligned} \text{At 0, left}&: \frac{(1 - 2h) - 1}{h} = \frac{-2h}{h} \\ &= -2 \\ \text{At 0, right}&: \frac{1 - 1}{h} = \frac{0}{h} = 0 \\[4pt] \text{At 1, left}&: \frac{1 - 1}{h} = \frac{0}{h} = 0 \\ \text{At 1, right}&: \frac{(1 + 2h) - 1}{h} = \frac{2h}{h} \\ &= 2 \end{aligned}

At x=0x = 0⁠: LHD =−2= -2⁠, RHD =0= 0⁠. At x=1x = 1⁠: LHD =0= 0⁠, RHD =2= 2⁠.

LHD ≠\ne RHD at both points, so ff is not differentiable at x=0x = 0 and x=1x = 1⁠. Assertion (A) is true.

Reason (R) is true: a function is differentiable at cc only if LHD = RHD there. It is the rule used above, so it explains the Assertion.

Why?

Differentiable at cc means that the difference quotient used above has a limit as h→0h \to 0⁠. A limit exists only when the left and right limits are equal, so unequal one-sided derivatives mean no derivative.

The Assertion was proved with exactly this rule, so the Reason explains it: option (A).

Answer: (A) Both (A) and (R) are true and (R) is the correct explanation of (A).

Where this comes from

Chapter 5, Continuity and Differentiability: Differentiability of |x| + |x − 1|.

Question type: Is ff differentiable at a point? Compare LHD and RHD

How to spot it: click to see

Type 3. Is ff differentiable at a point? Compare LHD and RHD

Spot it: a modulus such as ∣x−1∣|x - 1|⁠, or a function in pieces, and the word "differentiable".

Here: Write ∣x∣+∣x−1∣|x| + |x - 1| in pieces: 1−2x1 - 2x⁠, 1, 2x−12x - 1⁠. At 0, LHD is −2-2 and RHD is 0; at 1, LHD is 0 and RHD is 2. Unequal at both, so A is true and R is the reason: option (A).

Found an error?

Tell us if something on this page is wrong or unclear. Send feedback on this question →