Let f be a real-valued function and let c be a point in its domain. The derivative of f at c is defined byf′(c)=h→0limhf(c+h)−f(c),
provided this limit exists as a finite real number.
The derivative of f at c is denoted by f′(c) or
dxd[f(x)]x=c.
For a function to be differentiable at a point c, both the left-hand derivative and the right-hand derivative must exist and be equal.
Left-Hand Derivative (LHD):h→0−limhf(c+h)−f(c)
Right-Hand Derivative (RHD):h→0+limhf(c+h)−f(c)
If LHD = RHD, then the common value is the derivative f′(c).
Relationship between Continuity and Differentiability
Theorem 3: If a function f is differentiable at a point c, then it is also continuous at that point.
Reason: If
f′(c)=h→0limhf(c+h)−f(c)
exists, then the quotient remains finite as h→0. Since h→0, the numerator f(c+h)−f(c) must also tend to 0. Therefore,
h→0limf(c+h)=f(c),
which means f is continuous at c.
Corollary: Every differentiable function is continuous.
Important Note: The converse is not true. A function may be continuous at a point but not differentiable there. A standard example is
f(x)=∣x∣,
which is continuous at x=0 but not differentiable at x=0 because the graph has a sharp corner there.
Thus,
Differentiability⟹Continuity,
but
Continuity⟹Differentiability.
Algebra of Derivatives
Let u and v be differentiable functions of x. Then the standard rules of differentiation are:
Sum/Difference Rule:(u±v)′=u′±v′
Product Rule (Leibnitz Rule):(uv)′=u′v+uv′
Quotient Rule:(vu)′=v2u′v−uv′,v=0.
These rules are used repeatedly along with the chain rule when differentiating composite expressions.
Chain Rule
The Chain Rule is used to differentiate a composite function.
Theorem 4 (Chain Rule): Let a function be written in the form
y=f(x)=v(u(x)).
If we put
t=u(x),
then
y=v(t).
If both dxdt and dtdy exist, then
dxdy=dtdy⋅dxdt.
In Leibniz notation, if y depends on t and t depends on x, then the derivative of y with respect to x is the product of the derivative of y with respect to t and the derivative of t with respect to x.
For a composition of three or more functions, the chain rule is applied step by step. For example, if
y=w(u(v(x))),
and we let
t=v(x),s=u(t),
then
dxdy=dsdy⋅dtds⋅dxdt.
Solved Examples
Example 1: Non-differentiability of Modulus Function
Prove that the function f given by f(x)=∣x−1∣,x∈R is not differentiable at x=1.
Solution:
To test differentiability at x=1, we compare the left-hand derivative and right-hand derivative.
Step 1: Find the function value at x=1:
f(1)=∣1−1∣=0.
Step 2: Compute the left-hand derivative:
LHD=h→0−limhf(1+h)−f(1).
Now,
f(1+h)=∣(1+h)−1∣=∣h∣.
For h<0, we have ∣h∣=−h. Therefore,
LHD=h→0−limh−h−0=h→0−lim(−1)=−1.
Step 3: Compute the right-hand derivative:
RHD=h→0+limhf(1+h)−f(1).
For h>0, we have ∣h∣=h. Hence,
RHD=h→0+limhh−0=h→0+lim1=1.
Step 4: Compare LHD and RHD:
LHD=−1,RHD=1.
Since the left-hand and right-hand derivatives are not equal, the derivative does not exist at x=1.
Therefore, the function f(x)=∣x−1∣ is not differentiable at x=1.
Example 2: Basic Chain Rule
Find the derivative of the function given by f(x)=sin(x2).
Solution:
This is a composite function. Let
t=x2.
Then
y=sint.
Step 1: Differentiate t with respect to x:
dxdt=2x.
Step 2: Differentiate y with respect to t:
dtdy=cost.
Step 3: Apply the chain rule:
dxdy=dtdy⋅dxdt=cost⋅2x.
Step 4: Substitute t=x2 back:
dxdy=2xcos(x2).
Answer:2xcos(x2)
Example 3: Chain Rule with Linear Argument
Find the derivative of y=tan(2x+3).
Solution:
Let
t=2x+3.
Then
y=tant.
Step 1: Differentiate t with respect to x:
dxdt=2.
Step 2: Differentiate y with respect to t:
dtdy=sec2t.
Step 3: Apply the chain rule:
dxdy=dtdy⋅dxdt=sec2t⋅2.
Step 4: Replace t by 2x+3:
dxdy=2sec2(2x+3).
Answer:2sec2(2x+3)
Example 4: Composition of Three Functions
Differentiate sin(cos(x2)) with respect to x.
Solution:
Let
y=sin(cos(x2)).
This is a composition of three functions:
inner function: x2,
middle function: cos(⋅),
outer function: sin(⋅).
Step 1: Differentiate the outermost sine function:
dxdy=cos(cos(x2))⋅dxd[cos(x2)].
Step 2: Differentiate the middle cosine function:
dxd[cos(x2)]=−sin(x2)⋅dxd(x2).
Step 3: Differentiate the inner function:
dxd(x2)=2x.
Step 4: Combine all factors:
dxdy=cos(cos(x2))⋅(−sin(x2))⋅2x.
So,
dxdy=−2xsin(x2)cos(cos(x2)).
Answer:−2xsin(x2)cos(cos(x2))
Example 5: Product Rule combined with Chain Rule
Differentiate y=sin3x⋅cos6x with respect to x.
Solution:
Let
u=sin3x,v=cos6x.
Then
y=uv.
Step 1: Apply the product rule:
dxdy=udxdv+vdxdu.
So,
dxdy=sin3x⋅dxd(cos6x)+cos6x⋅dxd(sin3x).
Step 2: Differentiate cos6x using the chain rule:
dxd(cos6x)=6cos5x⋅dxd(cosx)=6cos5x(−sinx)=−6sinxcos5x.
Step 3: Differentiate sin3x using the chain rule:
dxd(sin3x)=3sin2x⋅dxd(sinx)=3sin2xcosx.
Step 4: Substitute back:
dxdy=sin3x(−6sinxcos5x)+cos6x(3sin2xcosx).
That is,
dxdy=−6sin4xcos5x+3sin2xcos7x.
Step 5: Factor out the common term 3sin2xcos5x:
dxdy=3sin2xcos5x(−2sin2x+cos2x).
So we may write
dxdy=3sin2xcos5x(cos2x−2sin2x).
Answer:3sin2xcos5x(cos2x−2sin2x)
Example 6: Chain Rule with Roots
Find the derivative of y=2cot(x2).
Solution:
First rewrite the square root as a power:
y=2[cot(x2)]1/2.
Step 1: Differentiate using the power rule and chain rule:
dxdy=2⋅21[cot(x2)]−1/2⋅dxd[cot(x2)].
So,
dxdy=[cot(x2)]−1/2⋅dxd[cot(x2)].
That is,
dxdy=cot(x2)1⋅dxd[cot(x2)].
Step 2: Differentiate cot(x2):
dxd[cot(x2)]=−csc2(x2)⋅dxd(x2).
Since
dxd(x2)=2x,
we get
dxd[cot(x2)]=−2xcsc2(x2).
Example 8: Non-differentiability of Greatest Integer Function
Prove that the greatest integer function defined by f(x)=[x],0<x<3 is not differentiable at x=1 and x=2.
Solution:
A function must first be continuous in order to be differentiable. The greatest integer function has jump discontinuities at integers, so it cannot be differentiable there. We can also verify this directly using one-sided derivatives.
At x=1
Step 1: Note that
f(1)=[1]=1.
For h<0 and close to 0, 1+h<1, so
[1+h]=0.
Thus,
LHD=h→0−limhf(1+h)−f(1)=h→0−limh0−1=h→0−limh−1.
As h→0−, the quantity h−1→+∞, so the left-hand derivative does not exist as a finite number.
For h>0 and close to 0, 1+h>1 but less than 2, so
[1+h]=1.
Hence,
RHD=h→0+limh1−1=0.
Since LHD and RHD are not equal, the function is not differentiable at x=1.
At x=2
Step 2: Note that
f(2)=[2]=2.
For h<0 and close to 0, 2+h<2 but greater than 1, so
[2+h]=1.
Then,
LHD=h→0−limh1−2=h→0−limh−1→+∞,
so the left-hand derivative does not exist as a finite number.
For h>0 and close to 0, 2+h>2 but less than 3, so
[2+h]=2.
Thus,
RHD=h→0+limh2−2=0.
Again LHD and RHD are not equal, so the function is not differentiable at x=2.
Therefore, f(x)=[x] is not differentiable at both x=1 and x=2.
Example 9: Differentiating Secant and Tangent Composition
Differentiate sec(tan(x)) with respect to x.
Solution:
Let
y=sec(tan(x)).
This is a composition of three functions: x, then tan, then sec.
Step 1: Differentiate the outermost secant function:
dxdy=sec(tan(x))tan(tan(x))⋅dxd[tan(x)].
Step 4: Combine all parts:
dxdy=sec(tan(x))tan(tan(x))sec2(x)⋅2x1.
Therefore,
dxdy=2xsec(tan(x))tan(tan(x))sec2(x).
Answer:2xsec(tan(x))tan(tan(x))sec2(x)
Example 10: Quotient Rule with Chain Rule
Differentiate y=cos(cx+d)sin(ax+b).
Solution:
Let
u=sin(ax+b),v=cos(cx+d).
Then
y=vu.
Step 1: Apply the quotient rule:
dxdy=v2u′v−uv′.
Step 2: Differentiate u using the chain rule:
u′=dxd[sin(ax+b)]=cos(ax+b)⋅a=acos(ax+b).
Step 3: Differentiate v using the chain rule:
v′=dxd[cos(cx+d)]=−sin(cx+d)⋅c=−csin(cx+d).
Step 4: Substitute into the quotient rule:
dxdy=cos2(cx+d)acos(ax+b)cos(cx+d)−sin(ax+b)(−csin(cx+d)).
So,
dxdy=cos2(cx+d)acos(ax+b)cos(cx+d)+csin(ax+b)sin(cx+d).