QlarIITy

MathematicsIIT-JEE 2012 · Paper 1Single correct

Let f(x)={x2∣cos⁡πx∣,x≠00,x=0f(x)=\begin{cases} x^{2}\left|\cos\frac{\pi}{x}\right|, & x\ne 0 \\ 0, & x=0 \end{cases}, x∈Rx\in\mathbb{R},
then ff is

  1. Option A: differentiable both at x=0x=0 and at x=2x=2
  2. Option B: differentiable at x=0x=0 but not differentiable at x=2x=2
  3. Option C: not differentiable at x=0x=0 but differentiable at x=2x=2
  4. Option D: differentiable neither at x=0x=0 nor at x=2x=2
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. x2x^{2} times a bounded factor is differentiable at 00 with derivative 00, while ∣cos⁡πx∣\left|\cos\frac{\pi}{x}\right| has a corner at x=2x=2, where cos⁡πx\cos\frac{\pi}{x} crosses zero.

Concept refresher. A bounded factor multiplied by something tending to 00 tends to 00. The function ∣g(x)∣|g(x)| fails to be differentiable at a point where g(a)=0g(a)=0 and g′(a)≠0g'(a)\ne 0, because the graph of gg crosses zero and the modulus folds it into a corner.

Approach. Check x=0x=0 by the definition of the derivative, and x=2x=2 by left and right derivatives.

  1. Step 1: At x=0x=0

    f′(0)=lim⁡h→0f(h)−f(0)h=lim⁡h→0h∣cos⁡πh∣f'(0)=\lim_{h\to 0}\frac{f(h)-f(0)}{h}=\lim_{h\to 0}h\left|\cos\frac{\pi}{h}\right|

    Since 0≤∣cos⁡πh∣≤10\le\left|\cos\frac{\pi}{h}\right|\le 1, we get ∣h∣cos⁡πh∣∣≤∣h∣→0\left|h\left|\cos\frac{\pi}{h}\right|\right|\le|h|\to 0. So f′(0)=0f'(0)=0 and ff is differentiable at 00.

  2. Step 2: Sign of the cosine near x=2x=2

    At x=2x=2, cos⁡π2=0\cos\frac{\pi}{2}=0. For xx slightly greater than 2, πx<π2\frac{\pi}{x}<\frac{\pi}{2}, so cos⁡πx>0\cos\frac{\pi}{x}>0. For xx slightly less than 2, πx>π2\frac{\pi}{x}>\frac{\pi}{2}, so cos⁡πx<0\cos\frac{\pi}{x}<0.

  3. Step 3: One-sided derivatives at x=2x=2

    For x>2x>2 near 2, f(x)=x2cos⁡πxf(x)=x^{2}\cos\frac{\pi}{x}, and

    ddx(x2cos⁡πx)=2xcos⁡πx+πsin⁡πx\frac{d}{dx}\left(x^{2}\cos\frac{\pi}{x}\right)=2x\cos\frac{\pi}{x}+\pi\sin\frac{\pi}{x}

    At x=2x=2 this is 0+π=π0+\pi=\pi. So Rf′(2)=πRf'(2)=\pi.
    For x<2x<2 near 2, f(x)=−x2cos⁡πxf(x)=-x^{2}\cos\frac{\pi}{x}, so Lf′(2)=−πLf'(2)=-\pi.
    Since Lf′(2)≠Rf′(2)Lf'(2)\ne Rf'(2), ff is not differentiable at x=2x=2.

Answer. (B)

Why the other options are wrong

  • (A) ff has a corner at x=2x=2: the one-sided derivatives are −π-\pi and π\pi.
  • (C) At x=0x=0 the derivative exists and equals 00, because x2x^{2} beats the bounded oscillating factor.
  • (D) It wrongly rejects differentiability at x=0x=0 as well.

Key takeaway

The trap. The wild oscillation of ∣cos⁡πx∣\left|\cos\frac{\pi}{x}\right| near 00 looks dangerous but is harmless, and the corner at x=2x=2 is easy to overlook.

How toppers think. They check ∣f(h)h∣≤∣h∣→0\left|\frac{f(h)}{h}\right|\le|h|\to 0 at 00, then look for points where the inside of the modulus vanishes with nonzero slope.

Remember. ∣g∣|g| is not differentiable where g=0g=0 and g′≠0g'\ne 0.

More on Differentiability