Example 1
Question: Check whether the function \( f(x) \) is differentiable at \( x = 2 \), where \[ f(x) = \begin{cases} |x - 2|, & x \ge 1 \\ \dfrac{x^2}{4} - x + 1, & x < 1 \end{cases} \]
Solution: We need to check differentiability at \( x = 2 \). Since \( 2 \ge 1 \), both the left and right neighborhoods of \( x = 2 \) use the piece \( f(x) = |x - 2| \). Note that \( f(2) = |2 - 2| = 0 \). Computing L.H.D. at \( x = 2 \): \[ Lf'(2) = \lim_{h \to 0} \frac{f(2 - h) - f(2)}{-h} \] Since \( 2 - h \ge 1 \) for small \( h > 0 \), we use \( f(2-h) = |2 - h - 2| = |-h| = h \). So: \[ Lf'(2) = \lim_{h \to 0} \frac{h - 0}{-h} = \lim_{h \to 0} \frac{h}{-h} = -1 \] Computing R.H.D. at \( x = 2 \): \[ Rf'(2) = \lim_{h \to 0} \frac{f(2 + h) - f(2)}{h} \] Since \( 2 + h \ge 1 \) for small \( h > 0 \), we use \( f(2+h) = |2 + h - 2| = h \). So: \[ Rf'(2) = \lim_{h \to 0} \frac{h - 0}{h} = 1 \] Since \( Lf'(2) = -1 \ne 1 = Rf'(2) \), the function is NOT differentiable at \( x = 2 \).
Answer: f(x) is NOT differentiable at x = 2, since L.H.D. = -1 and R.H.D. = 1.
Example 2
Question: For the function \[ g(x) = \begin{cases} \dfrac{x^2}{2} - 2x + \dfrac{5}{2}, & x < 1 \\ |x - 1|, & x \ge 1 \end{cases} \] check whether \( g(x) \) is differentiable at \( x = 1 \).
Solution: First, find \( g(1) \). Since \( 1 \ge 1 \), we use \( g(1) = |1 - 1| = 0 \). Computing L.H.D. at \( x = 1 \): For small \( h > 0 \), \( 1 - h < 1 \), so \( g(1 - h) = \dfrac{(1-h)^2}{2} - 2(1-h) + \dfrac{5}{2} \). Expanding: \[ g(1-h) = \frac{1 - 2h + h^2}{2} - 2 + 2h + \frac{5}{2} \] \[ = \frac{1}{2} - h + \frac{h^2}{2} - 2 + 2h + \frac{5}{2} \] \[ = \left(\frac{1}{2} - 2 + \frac{5}{2}\right) + h + \frac{h^2}{2} \] \[ = 1 + h + \frac{h^2}{2} \] Wait — let us recheck \( g(1) \) from this piece: substituting \( x = 1 \) gives \( \dfrac{1}{2} - 2 + \dfrac{5}{2} = 1 \). But \( g(1) = 0 \) from the other piece. Since these are not equal, the function is not even continuous at \( x = 1 \), and hence cannot be differentiable. Let us verify this rigorously. Left-hand limit as \( x \to 1^- \): \[ \lim_{x \to 1^-} g(x) = \frac{1}{2} - 2 + \frac{5}{2} = 1 \] Right-hand limit (and value): \[ g(1) = |1 - 1| = 0 \] Since \( \lim_{x \to 1^-} g(x) = 1 \ne 0 = g(1) \), the function is discontinuous at \( x = 1 \). Now for the derivatives: L.H.D. at \( x = 1 \): \[ Lg'(1) = \lim_{h \to 0} \frac{g(1-h) - g(1)}{-h} = \lim_{h \to 0} \frac{\left(1 + h + \dfrac{h^2}{2}\right) - 0}{-h} \] \[ = \lim_{h \to 0} \frac{1 + h + \dfrac{h^2}{2}}{-h} \] As \( h \to 0^+ \), the numerator \( \to 1 \) and denominator \( \to 0^- \), so \( Lg'(1) \to -\infty \). The L.H.D. does not exist (is not finite). R.H.D. at \( x = 1 \): \[ Rg'(1) = \lim_{h \to 0} \frac{g(1+h) - g(1)}{h} = \lim_{h \to 0} \frac{|h| - 0}{h} = \lim_{h \to 0} \frac{h}{h} = 1 \] Since the L.H.D. does not exist (is not finite), \( g(x) \) is NOT differentiable at \( x = 1 \).
Answer: g(x) is NOT differentiable at x = 1. The function is not even continuous there (left-hand limit = 1, but g(1) = 0), and the L.H.D. does not exist.