A function f:D→R is differentiable at c∈D if the limit
x→climx−cf(x)−f(c)
exists as a finite real number. If this limit exists, it is called the derivative of f at c and is denoted by f′(c).
But what is this expression inside the limit? To understand the expression
x−cf(x)−f(c),
consider the graph of y=f(x). At x=c, the function attains the value f(c), meaning the point A(c,f(c)) lies on the graph. Now, take another point P(x,f(x)), where x is a variable near c. Here, A is a fixed point, while P moves as x varies.
The line segment joining A and P is called a secant to the curve. The slope of this secant is given by
x−cf(x)−f(c).
This expression represents the slope of the straight line passing through the two points A(c,f(c)) and P(x,f(x)).
Now, as x approaches c, the point P moves closer to A, and the secant line gradually turns into the tangent line at A, provided such a tangent exists. The slope of the secant line thus approaches the slope of this tangent. This limiting process is what defines the derivative:
f′(c)=x→climx−cf(x)−f(c).
If this limit exists, it represents the exact slope of the tangent line to the curve at x=c. Thus, differentiability at c means that the function f(x) has a well-defined tangent at that point, with a finite slope.
The derivative of a function at a point is best understood as nothing but the slope of the tangent to the graph of the function at that point. If y=f(x) is the equation of a curve, then at any point x=c, the slope of the tangent line at that point is given by
f′(c)=x→climx−cf(x)−f(c),
provided this limit exists as a finite real number.
For f′(c) to exist, the above limit must exist, meaning that the left-hand and right-hand limits must both exist and be equal. These limits are called the left-hand derivative (LHD) and right-hand derivative (RHD), respectively:
in which case their common value is the derivative f′(c). If either of these limits does not exist or if they are not equal, then f is not differentiable at x=c.
Geometrically, for the right-hand derivative (RHD), we consider values of x that are greater thanc, meaning x is on the right side of c. As x→c+, the point P(x,f(x)) moves toward A(c,f(c)) from the right. The secant line joining A(c,f(c)) and P(x,f(x)) gradually turns into the tangent at A. The slope of this tangent is given by
f′(c+)=x→c+limx−cf(x)−f(c).
Similarly, for the left-hand derivative (LHD), we consider values of x that are less thanc, meaning x is on the left side of c. As x→c−, the point P(x,f(x)) moves toward A(c,f(c)) from the left. The secant line joining A(c,f(c)) and P(x,f(x)) again approaches a limiting position, which is the tangent at A. The slope of this tangent is given by
f′(c−)=x→c−limx−cf(x)−f(c).
For the derivative f′(c) to exist, these two slopes must be equal:
f′(c−)=f′(c+).
If they are equal, their common value is f′(c), meaning the function has a well-defined tangent of finite slope at x=c. If they are not equal or if either does not exist, then f is not differentiable at x=c.
A function f:D→R is said to be differentiable at x=c if the limit
x→climx−cf(x)−f(c)
exists as a finite real number. This requires that both the left-hand derivative (LHD) and the right-hand derivative (RHD) exist and are equal:
f′(c−)=f′(c+).
If this condition is not met, the function is not differentiable at x=c. The failure of differentiability may occur for different reasons, one of which is the existence of LHD and RHD with different values.
Case I: Left-Hand and Right-Hand Derivatives Exist but Are Not Equal
If
f′(c−)=f′(c+),
that is, left hand derivative is not equal to right hand derivative, then the function does not have a well-defined tangent at x=c because the slopes of secant lines approaching c from the left and right tend to different limits. In such a case, we say that f is not differentiable at x=c.
Geometric Interpretation
This failure of differentiability is often visible as a corner or kink in the graph of f(x), where the function abruptly changes direction. A well-known example illustrating this situation is the function
f(x)=∣x∣.
Let us examine its differentiability at x=0 by computing the left-hand and right-hand derivatives.
Computation of Left-Hand Derivative (LHD):
By definition,
f′(0−)=x→0−limx−0f(x)−f(0).
Since f(x)=∣x∣ and f(0)=0, we obtain
f′(0−)=x→0−limx∣x∣−0=x→0−limx∣x∣.
For x<0, we have ∣x∣=−x, so
f′(0−)=x→0−limx−x=x→0−lim−1=−1.
Computation of Right-Hand Derivative (RHD):
Similarly,
f′(0+)=x→0+limx−0f(x)−f(0)=x→0+limx∣x∣.
For x>0, we have ∣x∣=x, so
f′(0+)=x→0+limxx=x→0+lim1=1.
Since
f′(0−)=−1=1=f′(0+),
the function is not differentiable at x=0.
At x=0, the graph of y=∣x∣ has a sharp corner. The secant lines approaching from the left tend toward a line with slope −1, while the secant lines approaching from the right tend toward a line with slope 1. Since these two slopes are different, there is no single well-defined tangent line at x=0, meaning that f(x) is not differentiable there.
Case II: Discontinuity at a point implies Non-differentiability.
If a function f(x) is discontinuous at a point x=c, then it is necessarily not differentiable at that point. To see why this is true, recall that the derivative at x=c is defined as
f′(c)=x→climx−cf(x)−f(c).
For this limit to exist, the expression inside the limit must settle to a single finite value as x approaches c. However, if the function is discontinuous at x=c, then f(x) does not approach f(c) as x approaches c. This means that the numerator in the difference quotient, f(x)−f(c), does not behave predictably near x=c, making it impossible for the limit to exist in a meaningful way.
Thus, discontinuity at x=c forces non-differentiability at x=c. This is true for any type of discontinuity—whether it is a jump discontinuity, an infinite discontinuity, or a removable discontinuity.
To illustrate this, consider the function
f(x)={2x,x−1,x≥1,x<1.
We first check whether f(x) is continuous at x=1. The left-hand limit is
x→1−limf(x)=x→1−lim(x−1)=0.
The right-hand limit is
x→1+limf(x)=x→1+lim2x=2.
Since these two limits are not equal, we see that f(x) has a jump discontinuity at x=1, meaning it is not continuous at that point. Since differentiability requires the existence of the limit defining the derivative, and discontinuity disrupts the behavior of f(x) near x=c, we already suspect that f(x) will not be differentiable at x=1. However, let us confirm this by explicitly computing the left-hand and right-hand derivatives.
The left-hand derivative (LHD) at x=1 is given by
f′(1−)=x→1−limx−1f(x)−f(1).
For x<1, we use f(x)=x−1, and since f(1)=2(1)=2, we obtain
f′(1−)=x→1−limx−1(x−1)−2=x→1−limx−1x−3.
For x slightly less than 1, the numerator approaches −2 while the denominator approaches 0−, giving
f′(1−)=0−−2=+∞.
Thus, the left-hand derivative does not exist as a finite number.
The right-hand derivative (RHD) at x=1 is given by
f′(1+)=x→1+limx−1f(x)−f(1).
For x>1, we use f(x)=2x, so
f′(1+)=x→1+limx−12x−2.
Rewriting 2x−2 as 2(x−1), we simplify
f′(1+)=x→1+limx−12(x−1)=x→1+lim2=2.
Since the left-hand derivative tends to +∞ while the right-hand derivative is a finite number, we conclude that f(x) is not differentiable at x=1. More generally, since differentiability requires continuity, and a jump discontinuity at x=1 prevents continuity, it is impossible for f(x) to be differentiable at that point.
Case III: Non-Differentiability Due to a Vertical Tangent
A continuous function f(x) may also fail to be differentiable at a point where the left-hand derivative (LHD) and right-hand derivative (RHD) both tend to +∞ or both tend to −∞. In such cases, although f(x) remains continuous at that point, the derivative fails to exist because the secant lines approach a vertical tangent.
If
f′(c−)=+∞andf′(c+)=+∞,
or
f′(c−)=−∞andf′(c+)=−∞,
then f(x) is not differentiable at x=c because a well-defined tangent line with a finite slope does not exist. Instead, the curve becomes infinitely steep, making the tangent vertical.
Geometric Interpretation
Unlike the previous cases where non-differentiability arose from discontinuities or sharp corners, a vertical tangent means the function is smooth but grows or falls so steeply that the tangent line becomes vertical. Since the slope of a vertical line is undefined, the derivative does not exist at that point.
Consider the function
f(x)=x1/3.
We check whether f(x) is differentiable at x=0 by computing the left-hand and right-hand derivatives.
Left-hand derivative (LHD):
f′(0−)=x→0−limx−0x1/3−0=x→0−limxx1/3.
Rewriting x as x=(x1/3)3, we get
f′(0−)=x→0−limx−2/3.
For x→0−, x−2/3 tends to +∞, so
f′(0−)=+∞.
Right-hand derivative (RHD):
f′(0+)=x→0+limx−0x1/3−0=x→0+limxx1/3.
Again, rewriting x as x=(x1/3)3, we obtain
f′(0+)=x→0+limx−2/3.
For x→0+, x−2/3 also tends to +∞, so
f′(0+)=+∞.
Since both the left-hand and right-hand derivatives tend to +∞, the function has a vertical tangent at x=0, and thus, f(x) is not differentiable at x=0. However, f(x) is still continuous at x=0, as
x→0limf(x)=f(0).
We conclude that the function is not differentiable at x=0 due to the presence of a vertical tangent.
Case IV: Non-Differentiability Due to Oscillatory Limits
Another reason for non-differentiability at a point is when the left-hand derivative (LHD) and right-hand derivative (RHD) do not settle to a single finite value due to oscillatory behavior. In such cases, as x approaches c, the difference quotient
x−cf(x)−f(c)
does not approach a unique limit but rather oscillates between multiple values. This makes it impossible to assign a well-defined tangent at x=c, leading to non-differentiability.
Consider the function
f(x)={xsin(1/x),0,x=0,x=0.
We check whether f(x) is differentiable at x=0.
Step 1: Checking Continuity
For f(x) to be differentiable at x=0, it must first be continuous there. We compute the limit:
x→0limf(x)=x→0limxsin(1/x).
Since −1≤sin(1/x)≤1, we have
−∣x∣≤xsin(1/x)≤∣x∣.
Applying the squeeze theorem, we get
x→0limxsin(1/x)=0.
Since f(0)=0, it follows that
x→0limf(x)=f(0),
so f(x) is continuous at x=0.
Step 2: Computing the Left-Hand and Right-Hand Derivatives
The derivative at x=0 is given by
f′(0)=x→0limx−0f(x)−f(0)=x→0limxxsin(1/x).
Simplifying,
f′(0)=x→0limsin(1/x).
However, the function sin(1/x)oscillates between -1 and 1 infinitely often as x→0, meaning that limx→0sin(1/x)does not exist.
Since the difference quotient oscillates indefinitely, the left-hand and right-hand derivatives do not approach a single limit. Therefore, we conclude that f(x) is not differentiable at x=0 due to the presence of an oscillatory limit.
Theorem: Differentiability Implies Continuity at a Point§
If a function f(x) is differentiable at x=c, then f(x) is also continuous at x=c.
Proof:
Since f(x) is differentiable at x=c, the derivative
f′(c)=h→0limhf(c+h)−f(c)
exists as a finite real number.
To prove that f(x) is continuous at x=c, we must show that
h→0limf(c+h)=f(c).
Consider the difference
h→0lim(f(c+h)−f(c)).
Rewriting using the definition of the derivative,
h→0lim(f(c+h)−f(c))=h→0lim(hf(c+h)−f(c)⋅h).
Since the limit defining f′(c) exists, we substitute:
=h→0limhf(c+h)−f(c)⋅h→0limh.
Since limh→0h=0, and f′(c) is a finite number, it follows that
f′(c)⋅0=0.
Thus,
h→0lim(f(c+h)−f(c))=0.
This implies
h→0limf(c+h)=f(c),
proving that f(x) is continuous at x=c.
Thus, we conclude that differentiability at a point implies continuity at that point.
lies in the fact that it can greatly simplify calculations, especially in cases where c=0. When using the standard definition with x→c− and x→c+, expressions often require extra algebraic manipulation. However, introducing h as the deviation from c provides a direct and structured approach to computing limits.
Example: Checking Differentiability of f(x)=∣x−3∣ at x=3
We examine whether f(x)=∣x−3∣ is differentiable at x=3.
Step 1: Compute LHD Using x=c−h
For the left-hand derivative, let x=3−h where h>0:
we conclude that f(x)=∣x−3∣is differentiable at x=3 with derivative f′(3)=1.
Why This Method is Useful
Avoids unnecessary manipulation of absolute values, greatest integer function or piecewise cases. When c=0, using x=c−h and x=c+h provides a straightforward approach.
Simplifies substitution by reducing expressions in terms of h, making the limit evaluation more structured.
Enhances clarity when handling non-zero points without rewriting the function in terms of x→c− and x→c+.
This method is especially helpful in problems where functions involve shifts, such as ∣x−c∣, polynomials centered at nonzero points, or trigonometric functions evaluated at specific locations.
Section 5 of 8 · Continuity and Differentiability
Mark this section complete when you have worked through its proofs.
Type any topic, theorem, or concept to jump directly to the section.