Definition of the Derivative at a General Point x§
We have defined the derivative at a specific pointx=c as
f′(c)=x→climx−cf(x)−f(c).
Now, we rewrite the derivative of a function f(x) at a general point x. Rememeber that we are doing nothing new, neither it is a new definition, it is just we are writing derivative at a general point x instead of a specific point c.
Consider a fixed pointP(x,f(x)) on the graph of y=f(x). In a neighborhood of x, take another point x+h, where:
If h>0, then x+h lies on the right of x.
If h<0, then x+h lies on the left of x.
The corresponding point on the graph is
Q(x+h,f(x+h)).
The line segment PQ is a secant to the curve, and its slope is given by
Slope of PQ=(x+h)−xf(x+h)−f(x)=hf(x+h)−f(x).
Now, as h→0, the point Q moves closer to P, and the secant approaches a tangent line at P(x,f(x)). The limiting value of the secant slope, if it exists, gives the slope of the tangent line, which we define as the derivative:
f′(x)=h→0limhf(x+h)−f(x).
Thus, the derivative f′(x) represents the slope of the tangent to the curve at the point P(x,f(x)), provided the limit exists.
We have seen that the derivative of a function f(x) at a point x is defined as the limit
h→0limhf(x+h)−f(x)
whenever this limit exists. This definition provides a direct way to compute derivatives by evaluating the difference quotient and taking the limit as h→0. We call this process of calculating derivatives as differentiation.
However, as the complexity of f(x) increases, evaluating this limit directly for every function becomes increasingly difficult. Functions such as polynomials, trigonometric expressions, exponential functions, and logarithmic functions all require distinct algebraic manipulations to simplify the difference quotient before taking the limit. While we have successfully applied the definition to simple functions like f(x)=x2, f(x)=sinx, and f(x)=ex, performing such calculations repeatedly for every new function is impractical.
To address this challenge, we adopt a structured approach. First, we compute the derivatives of a small set of elementary functions—such as polynomials, exponentials, and trigonometric functions—using the definition. These results serve as fundamental building blocks. Next, we develop an algebra of derivatives, which consists of general rules that allow us to compute the derivative of more complex functions without repeatedly applying the limit definition.
For example, if we know the derivatives of f(x) and g(x), we derive rules for the derivative of their sum, product, and quotient. Furthermore, we establish methods for differentiating composite functions, leading to powerful techniques such as the chain rule.
Thus, differentiation—the process of computing derivatives—becomes a systematic procedure rather than an exercise in limit evaluation for each function individually. By combining known derivative formulas with the rules of differentiation, we can efficiently compute the derivative of any function encountered in calculus.
In the next chapter, we develop these differentiation rules rigorously, ensuring that we can compute derivatives for a wide class of functions with precision and efficiency.
Calculating LHD and RHD using LHL and RHL of derivative of the function§
The right-hand derivative (RHD) of f(x) at x=c is defined as
x→c+limx−cf(x)−f(c)
Similarly, the left-hand derivative (LHD) at x=c is
x→c−limx−cf(x)−f(c)
Both these limits take the indeterminate form 00 when f(x) is differentiable at x. We can evaluate these rules using L'Hôpital's Rule. But to evaluate them like this, the conditions of L'Hôpital's Rule must be satisfied:
f(x) must be differentiable in an open interval containing c (except possibly at x=c).
The limit
x→c+limf′(x)
must be finite or ±∞, and similarly,
x→c−limf′(x)
must be finite or ±∞.
If either or both these limits do not exist, then we cannot conclude anything.
Applying L'Hôpital's Rule,
x→c+limx−cf(x)−f(c)=x→c+limf′(x),
and
x→c−limx−cf(x)−f(c)=x→c−limf′(x).
Thus, the right-hand derivative at x=c is given by the right-hand limit of f′(x), and the left-hand derivative is given by the left-hand limit of f′(x). If these two limits exist and are equal, then f(x) is differentiable at x=c, and its derivative is
f′(c)=x→climf′(x).
If the left-hand and right-hand derivatives do not agree, the function is not differentiable at x=c.
Geometrically, the right-hand derivative (RHD) at a point x=c is computed by taking a point x near c on its right side and considering the slope of the secant line joining (c,f(c)) and (x,f(x)). Mathematically, this is given by
x−cf(x)−f(c).
As x→c+, this secant line approaches the tangent line at (c,f(c)), and its slope approaches the RHD,
x→c+limx−cf(x)−f(c).
Now, instead of considering secant lines, suppose we draw a tangent line at (x,f(x)) for each point x near c on the right. Each of these tangents has a slope given by f′(x), and as x→c+, these tangent lines approach the tangent line at (c,f(c)). Consequently, the slopes of these tangents approach the slope of the final tangent at (c,f(c)). This means that
x→c+limf′(x)=x→c+limx−cf(x)−f(c),
establishing that the right-hand derivative is equal to the right-hand limit of f′(x).
A completely analogous argument holds for the left-hand derivative (LHD), where we consider points x near c on the left and analyze the corresponding secant and tangent lines. Thus,
x→c−limf′(x)=x→c−limx−cf(x)−f(c).
This geometric interpretation confirms that differentiation is a limiting process where both secant approximations and local tangent behavior lead to the same fundamental conclusion.
Now, in many situations, we do not need to calculate the left-hand derivative (LHD) and right-hand derivative (RHD) using original definitions directly. Instead, we can use derivatives. So we first differentiate the function (wherever possible) and then evaluate the left-hand limit (LHL) and right-hand limit (RHL) of the derivative function to obtain the LHD and RHD.
Consider the function
f(x)={x2−1,1−x3,x<1,x≥1.
We want to find LHD and RHD at x=1. Using the original definitions of LHD and RHD, we could compute
x→1−limx−1f(x)−f(1),x→1+limx−1f(x)−f(1).
However, instead of proceeding this way, we first differentiate f(x) in its respective domains. We obtain
f′(x)={2x,−3x2,x<1,x>1.
We remove the equality at x=1 because we do not yet know whether f(x) is differentiable at x=1. Now, we compute the left-hand limit (LHL) and right-hand limit (RHL) of f′(x) at x=1:
Since the left-hand limit of f′(x) equals the left-hand derivative of f(x), and the right-hand limit of f′(x) equals the right-hand derivative of f(x), we conclude:
LHD=2,RHD=−3.
Since LHD=RHD, f(x) is not differentiable at x=1, and we do not put an equality sign in the definition of f′(1) because f′(1) does not exist.
This approach provides a convenient way to check differentiability at a point by first computing the derivative where it existsand then evaluating its left-hand and right-hand limits.
Consider another example:
f(x)={x2,2x−1,x≥1,x<1.
We first check continuity at x=1. Evaluating the left-hand and right-hand limits:
Since both limits equal f(1)=1, the function is continuous at x=1.
Now, we check differentiability at x=1. Differentiating f(x) in its respective domains:
f′(x)={2x,2,x>1,x<1.
Since we do not yet know whether f(x) is differentiable at x=1, we remove the equal sign at x=1. Now, we compute the left-hand and right-hand limits of f′(x) at x=1:
We know that if a function f(x) is differentiable at x=c, then it must be continuous at x=c.
Now, consider this question:
If f(x) is continuous, is its derivative f′(x) necessarily continuous?
A simple counterexample shows that the answer in 'No'. Consider f(x)=∣x∣, which is a continuous function. However, it is not differentiable at x=0, and for x>0,
f′(x)=1,while for x<0,f′(x)=−1.
Thus, f′(x) has a missing point discontinuity at x=0. The function f(x)=∣x∣ is continuous, but its derivative is discontinuous at x=0.
Now, consider a more subtle question:
Can f(x) be differentiable at all points but still have a discontinuous derivative f′(x)?
Yes. A classical example is
f(x)={x2sin(1/x),0,x=0,x=0.
We know that this function is continuous for all x∈R.
Because it is just product of polynomial and trigonometric fucntion it is always differentiable for all x=0. Next, we check differentiability at x=0. The left-hand derivative is
So we can conclude that for this fucntion the derivative exists at all points R.
But is f′(x) continuous for x∈R? Let us check.
For x=0, differentiating f(x)=x2sin(1/x) using the product rule gives
f′(x)=2xsin(1/x)−cos(1/x).
This function is clearly continuous for all x=0. But for x=0 we still need to check.
To check whether f′(x) is continuous at x=0, we need to prove that limx→0f′(x)=f′(0). So we evalaute,
x→0limf′(x)=x→0lim(2xsin(1/x)−cos(1/x)).
Since 2xsin(1/x)→0 as x→0, the behavior of f′(x) near x=0 is dominated by the term −cos(1/x), which oscillates between -1 and 1 without settling to a single value. Thus,
x→0limf′(x)does not exist.
Since limx→0f′(x) does not exist, f′(x) is discontinuous at x=0, even though f(x) is differentiable at all points in R.
This example demonstrates that a function can be differentiable everywhere, yet its derivative can be discontinuous.
Such a strange behavior at x=0 can be understood geometrically.
Consider the right-hand derivative (RHD). To compute the RHD, we take a point x in the right neighborhood of 0 and draw a secant line joining (0,0) and (x,x2sin(1/x)). As x→0+, the function x2sin(1/x) oscillates due to the sin(1/x) term, but since it is multiplied by x2, the amplitude of oscillation shrinks, and the secant line still approaches the horizontal axis. This implies that the slope of the secant tends to zero, confirming that
x→0+limx−0f(x)−f(0)=0.
Thus, the RHD exists and equals zero. A similar argument holds for the left-hand derivative (LHD), meaning that f(x) is differentiable at x=0 with f′(0)=0.
However, when examining the derivative function f′(x) itself, we must look at the slope of the tangent line at (x,f(x)). At each point x=0, the tangent line has slope
f′(x)=2xsin(1/x)−cos(1/x).
Unlike the secant lines, the tangent lines do not settle to a limiting slope as x→0+. Instead, the term −cos(1/x) causes the slope to oscillate rapidly between −1 and 1, never converging to a single value. Thus,
x→0+limf′(x)does not exist.
This explains why f(x) is differentiable at x=0, but f′(x) is discontinuous at x=0. While the secant lines approach a well-defined limit (the horizontal axis), the slopes of the tangent lines never stabilize, leading to a failure of continuity in f′(x).
The example f(x)=x2sin(1/x) demonstrates that a function can be differentiable at all points but still have a discontinuous derivative. This naturally leads to the question: How can the derivative of a function behave when it is discontinuous?
A fundamental result, Darboux's Theorem, provides a crucial insight into this question. It states that if a function f(x) is differentiable on an interval [a,b], then its derivative f′(x) satisfies the intermediate value property. That is, if f′(a) and f′(b) take two different values, then for any k between f′(a) and f′(b), there exists some c∈(a,b) such that
f′(c)=k.
This means that although f′(x) may be discontinuous, it cannot have a jump discontinuity. Any discontinuity in f′(x) must be of the oscillatory type, where f′(x) fluctuates infinitely near some point rather than making a sudden jump.
The derivative f′(x) represents the slope of the tangent line to the curve y=f(x). Geometrically, Darboux’s theorem tells us that the slope of the tangent line cannot change abruptly. Instead, it must take all intermediate slopes between its values at two given points. Consider a function f(x) that is differentiable on an interval [a,b]. At x=a, the tangent line has some slope f′(a), and at x=b, the tangent line has a different slope f′(b). The theorem asserts that as we move from x=a to x=b, the slope must pass through every intermediate value between f′(a) and f′(b).
While Darboux’s theorem prevents jump discontinuities, it does not guarantee that f′(x) is continuous. The derivative can still be discontinuous in an oscillatory manner. This happens when the slope fluctuates infinitely fast, preventing the limit from settling to a single value. The function
f(x)=x2sin(1/x),x=0,f(0)=0
is a perfect example. It is differentiable everywhere, but its derivative
f′(x)=2xsin(1/x)−cos(1/x)
oscillates indefinitely near x=0, making f′(x) discontinuous at x=0. However, this discontinuity is not a jump; rather, the derivative takes on all values between -1 and 1 infinitely often. This confirms Darboux’s theorem while showing that continuity of f′(x) is not guaranteed.
Section 7 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.