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

Q17: Where f(x)=x+∣x∣f(x) = x + |x| is differentiable

The question

The set of all points where the function f(x)=x+∣x∣f(x) = x + |x| is differentiable, is

(a) (0,∞)(0, \infty)

(b) (−∞,0)(-\infty, 0)

(c) (−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty)

(d) (−∞,∞)(-\infty, \infty)

Exam answer
f(x)={2x,x≥00,x<0f(x) = \begin{cases} 2x, & x \ge 0 \\ 0, & x < 0 \end{cases}
Why?

Remove the modulus. For x≥0x \ge 0⁠, ∣x∣=x|x| = x⁠, so f(x)=x+x=2xf(x) = x + x = 2x⁠.

For x<0x < 0⁠, ∣x∣=−x|x| = -x⁠, so f(x)=x−x=0f(x) = x - x = 0⁠.

At x=0x = 0⁠:

Lf′(0)=lim⁡h→0−0−0h=0Rf′(0)=lim⁡h→0+2h−0h=2\begin{aligned} Lf'(0) &= \lim_{h \to 0^-}\frac{0 - 0}{h} = 0 \\ Rf'(0) &= \lim_{h \to 0^+}\frac{2h - 0}{h} = 2 \end{aligned}
Why?

The one-sided derivatives at 0 are

Lf′(0)=lim⁡h→0−f(h)−f(0)hRf′(0)=lim⁡h→0+f(h)−f(0)h\begin{aligned} Lf'(0) &= \lim_{h \to 0^-}\frac{f(h) - f(0)}{h} \\ Rf'(0) &= \lim_{h \to 0^+}\frac{f(h) - f(0)}{h} \end{aligned}

Here f(0)=0f(0) = 0⁠. For h<0h < 0⁠, f(h)=0f(h) = 0⁠, and for h>0h > 0⁠, f(h)=2hf(h) = 2h⁠.

Left: 0−0h=0h=0Right: 2h−0h=2hh=2\begin{aligned} \text{Left: } \frac{0 - 0}{h} &= \frac{0}{h} = 0 \\ \text{Right: } \frac{2h - 0}{h} &= \frac{2h}{h} = 2 \end{aligned}

Both quotients are constant (h≠0h \ne 0 cancels), so the limits are 0 and 2.

Lf′(0)≠Rf′(0)Lf'(0) \ne Rf'(0)⁠, so ff is not differentiable at x=0x = 0⁠.

Why?

Watch out: ff is continuous at 0, since both pieces give 0 there. It is still not differentiable: the graph has a corner at the origin, with slope 0 on the left and slope 2 on the right.

For x>0x > 0⁠, f(x)=2xf(x) = 2x (linear) and for x<0x < 0⁠, f(x)=0f(x) = 0 (constant), so ff is differentiable at every x≠0x \ne 0⁠.

So ff is differentiable exactly on (−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty)⁠. Options (a) and (b) leave out half of these points, and (d) wrongly includes 0.

Answer: (c) (−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty)

Where this comes from

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

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: ∣x∣|x| in x+∣x∣x + |x| makes ff equal 2x2x for x≥0x \ge 0 and 0 for negative xx⁠. At 0, LHD is 0 and RHD is 2, so 0 is the only point left out: option (c).

Found an error?

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