Piecewise functions appear frequently in calculus, physics, and engineering contexts, where a single rule gives way to different expressions across distinct intervals. But understanding whether such a function is differentiable at its boundary points requires more than applying a single derivative formula; it demands a careful assessment of both continuity and the behavior of the derivative from either side. This article provides a comprehensive, step-by-step guide on how to know if a piecewise function is differentiable, covering the underlying theory, practical tests, common pitfalls, and worked examples to build confidence in analysis.
Introduction to Piecewise Functions and Differentiability
A piecewise function is defined by multiple sub-functions, each applying to a specific part of the domain. Practically speaking, typical forms include absolute value functions, step functions, and models with changing rates of change. Think about it: differentiability, in essence, asks whether the function has a well-defined tangent line at every point in its domain. Day to day, for piecewise functions, the critical scrutiny almost always occurs at the "junction points" where the defining rule changes. So at these points, the function must not only be continuous—meaning the left-hand limit, right-hand limit, and function value all coincide—but the slopes approaching from both sides must also match. If either condition fails, the function is not differentiable at that point, though it may still be continuous. This dual requirement makes the analysis both rigorous and intuitive once the proper framework is established.
The Continuity-Differentiability Connection
Before testing differentiability, one must verify continuity. So, the first checkpoint in determining differentiability is to confirm that the piecewise function has no jumps, holes, or asymptotes at the candidate point. Classic examples include functions with sharp corners, cusps, or vertical tangents. Because of that, a foundational theorem in calculus states that if a function is differentiable at a point, it must necessarily be continuous there. Still, the converse is not true: a function can be continuous at a point yet fail to be differentiable. This involves evaluating $\lim_{x \to c^-} f(x)$, $\lim_{x \to c^+} f(x)$, and $f(c)$. If these three values are not equal, differentiability is immediately impossible, and further derivative calculations become unnecessary.
The Formal Test: Left-Hand and Right-Hand Derivatives
When continuity is established, the next step is to compute the left-hand derivative and the right-hand derivative at the junction point $c$. Formally, the left-hand derivative is defined as:
$ f'-(c) = \lim{h \to 0^-} \frac{f(c+h) - f(c)}{h} $
and the right-hand derivative as:
$ f'+(c) = \lim{h \to 0^+} \frac{f(c+h) - f(c)}{h} $
For the piecewise function to be differentiable at $c$, both one-sided limits must exist as finite numbers, and they must be equal: $f'-(c) = f'+(c)$. If either limit fails to exist (due to oscillation, infinity, or non-convergence) or if the two limits differ, the derivative does not exist at that point, and the function is not differentiable there. This test is both necessary and sufficient for differentiability at isolated points, provided the function is continuous.
Identifying Non-Differentiable Points: Corners, Cusps, and Jumps
Several geometric features commonly cause piecewise functions to fail the differentiability test. A corner occurs when the one-sided derivatives exist but are not equal, resulting in a sudden change in direction. The absolute value function $f(x) = |x|$ at $x = 0$ is the quintessential example: the left-hand derivative is $-1$, the right-hand derivative is $1$, and the corner prevents a unique tangent.
Most guides skip this. Don't.