QlarIITy

MathematicsIIT-JEE 2001Single correct

Which of the following functions is differentiable at x=0x=0?

  1. Option A: cos⁡(∣x∣)+∣x∣\cos(|x|)+|x|
  2. Option B: cos⁡(∣x∣)−∣x∣\cos(|x|)-|x|
  3. Option C: sin⁡(∣x∣)+∣x∣\sin(|x|)+|x|
  4. Option D: sin⁡(∣x∣)−∣x∣\sin(|x|)-|x|
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Corners at 00 can cancel: sin⁡(∣x∣)\sin(|x|) and ∣x∣|x| both have one-sided slopes ±1\pm 1, so their difference is smooth there.

Concept refresher. ∣x∣|x| has slopes −1-1 and +1+1 at 00. cos⁡(∣x∣)=cos⁡x\cos(|x|)=\cos x is smooth, but sin⁡(∣x∣)\sin(|x|) has slopes −1-1 and +1+1 at 00, just like ∣x∣|x|. Two corners can cancel when their jumps in slope are opposite.

Approach. Find the right-hand and left-hand derivatives of each option at 00.

  1. Step 1: Options with cosine

    cos⁡(∣x∣)=cos⁡x\cos(|x|)=\cos x has slope 00 at 00. Adding ±∣x∣\pm|x| gives one-sided slopes ±1\pm 1 and ∓1\mp 1, so (A) and (B) are not differentiable at 00.

  2. Step 2: sin⁡(∣x∣)+∣x∣\sin(|x|)+|x|

    For x≥0x\ge 0: sin⁡x+x\sin x+x, slope 22. For x<0x<0: −sin⁡x−x-\sin x-x, slope −2-2. Not differentiable.

  3. Step 3: sin⁡(∣x∣)−∣x∣\sin(|x|)-|x|

    f(x)={sin⁡x−x,x≥0−sin⁡x+x,x<0f(x)=\begin{cases}\sin x-x, & x\ge 0\\ -\sin x+x, & x<0\end{cases}

    RHD =cos⁡0−1=0=\cos 0-1=0 and LHD =−cos⁡0+1=0=-\cos 0+1=0. Equal, so ff is differentiable at 00 with f′(0)=0f'(0)=0.

Answer. (D)

Why the other options are wrong

  • (A) cos⁡x\cos x is smooth, so +∣x∣+|x| leaves slopes −1-1 and +1+1 at 00.
  • (B) cos⁡x\cos x is smooth, so −∣x∣-|x| leaves slopes +1+1 and −1-1 at 00.
  • (C) The corners of sin⁡(∣x∣)\sin(|x|) and ∣x∣|x| add up, giving slopes −2-2 and +2+2.

Key takeaway

The trap. Students assume every expression containing ∣x∣|x| fails at 00, missing that sin⁡(∣x∣)−∣x∣\sin(|x|)-|x| has left and right derivatives both equal to 00.

How toppers think. They write the left and right slopes of each term at 00 (00 for cos⁡(∣x∣)\cos(|x|), ±1\pm 1 for ∣x∣|x| and sin⁡(∣x∣)\sin(|x|)) and simply add them.

Remember. Near 00, sin⁡(∣x∣)≈∣x∣\sin(|x|)\approx|x|, so sin⁡(∣x∣)−∣x∣\sin(|x|)-|x| is differentiable at 00 while cos⁡(∣x∣)±∣x∣\cos(|x|)\pm|x| is not.

More on Differentiability