JEE Challenger
More from Continuity and Differentiability

Number of Non Differentiable Points of Piecewise Defined Function

Consider the functions f:R→Rf: \mathbb{R} \to \mathbb{R} and g:R→Rg: \mathbb{R} \to \mathbb{R} respectively defined 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} by

h(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, \\[6pt] \min \{f(x), g(x)\} & \text{if } x > 0. \end{cases}

Determine the total number of points at which h(x)h(x) fails to be differentiable.

Official Numerical Answer3

Step-by-Step Solution

To determine the total number of points at which h(x)h(x) fails to be differentiable, we first write explicit algebraic expressions for h(x)h(x) across different intervals of xx.

The given functions are:

f(x)=∣x∣+1={1−xif x≤0,1+xif x>0,f(x) = |x| + 1 = \begin{cases} 1 - x & \text{if } x \le 0, \\ 1 + x & \text{if } x > 0, \end{cases}

g(x)=x2+1.g(x) = x^2 + 1.


Step 1: Definition of h(x)h(x) for x≤0x \le 0

For x≤0x \le 0, we have h(x)=max⁡{f(x),g(x)}=max⁡{1−x,x2+1}h(x) = \max\{f(x), g(x)\} = \max\{1 - x, x^2 + 1\}.

Comparing f(x)f(x) and g(x)g(x): f(x)−g(x)=(1−x)−(x2+1)=−x(x+1).f(x) - g(x) = (1 - x) - (x^2 + 1) = -x(x + 1).

  • Interval x<−1x < -1: Here, x<0x < 0 and x+1<0x + 1 < 0, so −x(x+1)<0  ⟹  f(x)<g(x)-x(x + 1) < 0 \implies f(x) < g(x).   ⟹  h(x)=g(x)=x2+1.\implies h(x) = g(x) = x^2 + 1.

  • Interval −1≤x≤0-1 \le x \le 0: Here, x≤0x \le 0 and x+1≥0x + 1 \ge 0, so −x(x+1)≥0  ⟹  f(x)≥g(x)-x(x + 1) \ge 0 \implies f(x) \ge g(x).   ⟹  h(x)=f(x)=1−x.\implies h(x) = f(x) = 1 - x.


Step 2: Definition of h(x)h(x) for x>0x > 0

For x>0x > 0, we have h(x)=min⁡{f(x),g(x)}=min⁡{1+x,x2+1}h(x) = \min\{f(x), g(x)\} = \min\{1 + x, x^2 + 1\}.

Comparing f(x)f(x) and g(x)g(x): f(x)−g(x)=(1+x)−(x2+1)=x(1−x).f(x) - g(x) = (1 + x) - (x^2 + 1) = x(1 - x).

  • Interval 0<x<10 < x < 1: Here, x>0x > 0 and 1−x>01 - x > 0, so x(1−x)>0  ⟹  f(x)>g(x)x(1 - x) > 0 \implies f(x) > g(x).   ⟹  h(x)=g(x)=x2+1.\implies h(x) = g(x) = x^2 + 1.

  • Interval x≥1x \ge 1: Here, x>0x > 0 and 1−x≤01 - x \le 0, so x(1−x)≤0  ⟹  f(x)≤g(x)x(1 - x) \le 0 \implies f(x) \le g(x).   ⟹  h(x)=f(x)=1+x.\implies h(x) = f(x) = 1 + x.


Step 3: Piecewise Definition of h(x)h(x)

Combining the sub-intervals, we get:

h(x)={x2+1if x<−1,1−xif −1≤x≤0,x2+1if 0<x<1,x+1if x≥1.h(x) = \begin{cases} x^2 + 1 & \text{if } x < -1, \\ 1 - x & \text{if } -1 \le x \le 0, \\ x^2 + 1 & \text{if } 0 < x < 1, \\ x + 1 & \text{if } x \ge 1. \end{cases}

Since polynomials are smooth (infinitely differentiable) on open intervals, h(x)h(x) is differentiable on R∖{−1,0,1}\mathbb{R} \setminus \{-1, 0, 1\}. We now analyze differentiability at the boundary points x=−1x = -1, x=0x = 0, and x=1x = 1.


Step 4: Differentiability Analysis at Boundary Points

  1. At x=−1x = -1:

    • Continuity check: lim⁡x→−1−h(x)=(−1)2+1=2,lim⁡x→−1+h(x)=1−(−1)=2=h(−1).\lim_{x \to -1^-} h(x) = (-1)^2 + 1 = 2, \quad \lim_{x \to -1^+} h(x) = 1 - (-1) = 2 = h(-1). Thus, h(x)h(x) is continuous at x=−1x = -1.
    • Left-hand derivative: h′(−1−)=ddx(x2+1)∣x=−1=2(−1)=−2.h'(-1^-) = \left. \frac{d}{dx}(x^2 + 1) \right|_{x = -1} = 2(-1) = -2.
    • Right-hand derivative: h′(−1+)=ddx(1−x)∣x=−1=−1.h'(-1^+) = \left. \frac{d}{dx}(1 - x) \right|_{x = -1} = -1.
    • Since h′(−1−)≠h′(−1+)h'(-1^-) \neq h'(-1^+), h(x)h(x) is not differentiable at x=−1x = -1.
  2. At x=0x = 0:

    • Continuity check: lim⁡x→0−h(x)=1−0=1,lim⁡x→0+h(x)=02+1=1=h(0).\lim_{x \to 0^-} h(x) = 1 - 0 = 1, \quad \lim_{x \to 0^+} h(x) = 0^2 + 1 = 1 = h(0). Thus, h(x)h(x) is continuous at x=0x = 0.
    • Left-hand derivative: h′(0−)=ddx(1−x)∣x=0=−1.h'(0^-) = \left. \frac{d}{dx}(1 - x) \right|_{x = 0} = -1.
    • Right-hand derivative: h′(0+)=ddx(x2+1)∣x=0=2(0)=0.h'(0^+) = \left. \frac{d}{dx}(x^2 + 1) \right|_{x = 0} = 2(0) = 0.
    • Since h′(0−)≠h′(0+)h'(0^-) \neq h'(0^+), h(x)h(x) is not differentiable at x=0x = 0.
  3. At x=1x = 1:

    • Continuity check: lim⁡x→1−h(x)=12+1=2,lim⁡x→1+h(x)=1+1=2=h(1).\lim_{x \to 1^-} h(x) = 1^2 + 1 = 2, \quad \lim_{x \to 1^+} h(x) = 1 + 1 = 2 = h(1). Thus, h(x)h(x) is continuous at x=1x = 1.
    • Left-hand derivative: h′(1−)=ddx(x2+1)∣x=1=2(1)=2.h'(1^-) = \left. \frac{d}{dx}(x^2 + 1) \right|_{x = 1} = 2(1) = 2.
    • Right-hand derivative: h′(1+)=ddx(1+x)∣x=1=1.h'(1^+) = \left. \frac{d}{dx}(1 + x) \right|_{x = 1} = 1.
    • Since h′(1−)≠h′(1+)h'(1^-) \neq h'(1^+), h(x)h(x) is not differentiable at x=1x = 1.

Conclusion

The function h(x)h(x) fails to be differentiable at 33 points: x=−1x = -1, x=0x = 0, and x=1x = 1.