Find whether the function \(f(x)=\begin{cases}x-1,&x<2\\ 2x-3,&x\ge2\end{cases}\)
at \( x=2\) is differentiable or not.
CBSE Class 12 Maths · Continuity and Differentiability
CBSE Class 12 Maths · Continuity and Differentiability
Imagine a road with a bend at a certain point. On one side the road slopes gently, and on the other side it slopes steeply. Even if the road connects smoothly without a gap, a car feels a sudden jerk at that bend. That jerk means the slope changed abruptly. Here, our function is like that road — it joins neatly at \( x = 2 \) without any gap, but the steepness on the left side is different from the steepness on the right side. Because the two slopes do not match, we say the function is not differentiable at that point.
Answer: Since \( \text{LHD} = 1 \) and \( \text{RHD} = 2 \) are not equal, the function \( f \) is NOT differentiable at \( x = 2 \) (though it is continuous there).
A function \( f \) is differentiable at a point \( x = a \) only if the derivative from the left and the derivative from the right both exist and are equal at that point. This left value is called the Left Hand Derivative (LHD) and the right value is the Right Hand Derivative (RHD). For a piecewise function, the formula changes at the junction point, so we must test the two pieces separately. A necessary condition for differentiability is continuity, but continuity alone is not enough — the slopes from both sides must also match.
Left Hand Derivative: \( \text{LHD} = \lim_{h \to 0^-} \dfrac{f(a+h) - f(a)}{h} \) and Right Hand Derivative: \( \text{RHD} = \lim_{h \to 0^+} \dfrac{f(a+h) - f(a)}{h} \). The function is differentiable at \( x = a \) if \( \text{LHD} = \text{RHD} \).
Since \( \text{LHD} = 1 \) and \( \text{RHD} = 2 \) are not equal, the function \( f \) is NOT differentiable at \( x = 2 \) (though it is continuous there).
A common mistake is to conclude the function is differentiable just because it is continuous at \( x = 2 \). Continuity is necessary but not sufficient — you must still check that the left and right derivatives are equal.
Since \( \text{LHD} = 1 \) and \( \text{RHD} = 2 \) are not equal, the function \( f \) is NOT differentiable at \( x = 2 \) (though it is continuous there).
One common mistake: students forget to substitute \( f(2+h) \) using the correct piece of the piecewise function. For the LHD, since \( h < 0 \) makes \( 2+h < 2 \), the left piece \( x - 1 \) must be used — not the right piece \( 2x - 3 \). Using the wrong piece for either limit produces an incorrect derivative value.
Answer: Since \( \text{LHD} = 1 \) and \( \text{RHD} = 2 \) are not equal, the function \( f \) is NOT differentiable at \( x = 2 \) (though it is continuous there).
Question: Examine whether the function \( f(x) = \begin{cases} 3x + 1, & x < 1 \\ 5x - 1, & x \ge 1 \end{cases} \) is differentiable at \( x = 1 \).
Solution: We first check continuity at \( x = 1 \). Left-hand limit: \[ \lim_{x \to 1^-} f(x) = 3(1) + 1 = 4 \] Right-hand limit: \[ \lim_{x \to 1^+} f(x) = 5(1) - 1 = 4 \] Value of function: \( f(1) = 5(1) - 1 = 4 \). Since both limits equal \( f(1) \), the function is continuous at \( x = 1 \). Now we check differentiability. Left-hand derivative (LHD) at \( x = 1 \): \[ f'(1^-) = \lim_{h \to 0^+} \frac{f(1 - h) - f(1)}{-h} \] Since \( 1 - h < 1 \) for small \( h > 0 \), we use \( f(1 - h) = 3(1 - h) + 1 = 4 - 3h \). \[ f'(1^-) = \lim_{h \to 0^+} \frac{(4 - 3h) - 4}{-h} = \lim_{h \to 0^+} \frac{-3h}{-h} = \lim_{h \to 0^+} 3 = 3 \] Right-hand derivative (RHD) at \( x = 1 \): \[ f'(1^+) = \lim_{h \to 0^+} \frac{f(1 + h) - f(1)}{h} \] Since \( 1 + h > 1 \) for small \( h > 0 \), we use \( f(1 + h) = 5(1 + h) - 1 = 4 + 5h \). \[ f'(1^+) = \lim_{h \to 0^+} \frac{(4 + 5h) - 4}{h} = \lim_{h \to 0^+} \frac{5h}{h} = \lim_{h \to 0^+} 5 = 5 \] Since \( f'(1^-) = 3 \ne 5 = f'(1^+) \), the LHD and RHD are not equal.
Answer: The function is NOT differentiable at \( x = 1 \).
Question: Check whether the function \( g(x) = \begin{cases} 2x^2 - 1, & x < 2 \\ 4x - 5, & x \ge 2 \end{cases} \) is differentiable at \( x = 2 \).
Solution: We first verify continuity at \( x = 2 \). Left-hand limit: \[ \lim_{x \to 2^-} g(x) = 2(2)^2 - 1 = 8 - 1 = 7 \] Right-hand limit: \[ \lim_{x \to 2^+} g(x) = 4(2) - 5 = 8 - 5 = 3 \] Since \( \lim_{x \to 2^-} g(x) = 7 \ne 3 = \lim_{x \to 2^+} g(x) \), the function is not even continuous at \( x = 2 \). Because differentiability requires continuity, we conclude immediately that \( g(x) \) is not differentiable at \( x = 2 \). Nevertheless, let us also compute the derivatives formally. Left-hand derivative (LHD) at \( x = 2 \): \[ g'(2^-) = \lim_{h \to 0^+} \frac{g(2 - h) - g(2)}{-h} \] Here \( g(2 - h) = 2(2 - h)^2 - 1 = 2(4 - 4h + h^2) - 1 = 7 - 8h + 2h^2 \) and \( g(2) = 4(2) - 5 = 3 \). \[ g'(2^-) = \lim_{h \to 0^+} \frac{(7 - 8h + 2h^2) - 3}{-h} = \lim_{h \to 0^+} \frac{4 - 8h + 2h^2}{-h} \] As \( h \to 0^+ \), the numerator approaches \( 4 \) and the denominator approaches \( 0^- \), so the limit is \( -\infty \). Right-hand derivative (RHD) at \( x = 2 \): \[ g'(2^+) = \lim_{h \to 0^+} \frac{g(2 + h) - g(2)}{h} = \lim_{h \to 0^+} \frac{(4(2 + h) - 5) - 3}{h} = \lim_{h \to 0^+} \frac{4h}{h} = 4 \] Since LHD does not exist (the limit is \( -\infty \)) and \( \text{LHD} \ne \text{RHD} \), the function is not differentiable at \( x = 2 \).
Answer: The function is NOT differentiable at \( x = 2 \).
Question: Check whether the function \[ f(x) = \begin{cases} 3x - 2 & x < 1 \\ 4x - 3 & x \ge 1 \end{cases} \] is differentiable at \( x = 1 \).
Answer: Since LHD \( = 3 \) and RHD \( = 4 \) are not equal, the function \( f \) is NOT differentiable at \( x = 1 \) (though it is continuous there).