QlarIITy

MathematicsJEE Advanced 2014 · Paper 1Integer

Let f:R→Rf:\mathbb{R}\to\mathbb{R} and g:R→Rg:\mathbb{R}\to\mathbb{R} be respectively given by f(x)=∣x∣+1f(x)=|x|+1 and g(x)=x2+1g(x)=x^{2}+1. Define h:R→Rh:\mathbb{R}\to\mathbb{R} byh(x)={max⁡{f(x),g(x)}if x≤0,min⁡{f(x),g(x)}if x>0.h(x)=\begin{cases} \max\{f(x),g(x)\} & \text{if } x\le 0, \\ \min\{f(x),g(x)\} & \text{if } x>0. \end{cases}The number of points at which h(x)h(x) is not differentiable is

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A max or min of two smooth functions can have corners only where the functions cross or where the defining rule changes.

Concept refresher. A function built from pieces is differentiable at a junction only if it is continuous there and the left and right derivatives are equal. For max⁡\max or min⁡\min of two smooth functions, corners can only occur where the functions cross.

Approach. Write hh explicitly on each interval, then test the junction points.

  1. Step 1: Where ff and gg meet

    ∣x∣+1=x2+1  ⟺  ∣x∣=x2  ⟺  x∈{−1,0,1}|x|+1=x^{2}+1\iff |x|=x^{2}\iff x\in\{-1,0,1\}. For 0<∣x∣<10<|x|<1, x2<∣x∣x^{2}<|x| so f>gf>g; for ∣x∣>1|x|>1, g>fg>f.

  2. Step 2: Write hh for x≤0x\le 0 (max)

    h(x)={x2+1,x≤−11−x,−1≤x≤0h(x)=\begin{cases} x^{2}+1, & x\le -1 \\ 1-x, & -1\le x\le 0 \end{cases}
  3. Step 3: Write hh for x>0x>0 (min)

    h(x)={x2+1,0<x<1x+1,x≥1h(x)=\begin{cases} x^{2}+1, & 0<x<1 \\ x+1, & x\ge 1 \end{cases}

    hh is continuous everywhere (all pieces agree at −1-1, 00, 11).

  4. Step 4: Test the junctions

    At x=−1x=-1: left derivative 2x=−22x=-2, right derivative −1-1. Not differentiable.
    At x=0x=0: left derivative −1-1, right derivative 2x=02x=0. Not differentiable.
    At x=1x=1: left derivative 2x=22x=2, right derivative 11. Not differentiable.
    Everywhere else hh is a polynomial piece, hence differentiable.

Answer. 3

Common slips

  • Missing x=0x=0 (the crossing where the rule switches from max to min) gives 22.
  • Listing only the corner of ∣x∣|x| at x=0x=0 gives 11; the crossings at ±1\pm 1 are corners too.

Key takeaway

The trap. Missing x=0x=0; there hh switches from the line 1−x1-x to the parabola x2+1x^{2}+1, with slopes −1-1 and 00.

How toppers think. They solve ∣x∣=x2|x|=x^{2} to get x=−1,0,1x=-1,0,1, sketch which graph is on top on each side, and compare one-sided slopes at each crossing.

Remember. Non-differentiable points of hh: x=−1,0,1x=-1,0,1, so the count is 33.

More on Differentiability