1. Differentiability
A function f(x) is said to be differentiable at a point x=c if the derivative f′(c) exists. For the derivative to exist, the limit in the first principle definition must exist. This means the limit from the left (Left-Hand Derivative) must equal the limit from the right (Right-Hand Derivative).
Left-Hand Derivative (LHD):
Lf′(c)=h→0−limhf(c+h)−f(c)=h→0+lim−hf(c−h)−f(c)
Right-Hand Derivative (RHD):
Rf′(c)=h→0+limhf(c+h)−f(c)
A function is differentiable at c if and only if LHD = RHD and both are finite.
Theorem: Differentiability implies Continuity
If a function is differentiable at a point, then it must be continuous at that point.
However, the converse is not true. A function can be continuous at a point but not differentiable. A classic example is f(x)=∣x∣ at x=0, which is continuous but has a sharp corner, making it non-differentiable.
2. Derivatives of Standard Functions
- Power Rule: dxd(xn)=nxn−1
- Trigonometric Functions:
- dxd(sinx)=cosx
- dxd(cosx)=−sinx
- dxd(tanx)=sec2x
- Exponential & Logarithmic Functions:
- dxd(ex)=ex
- dxd(ax)=axlna
- dxd(lnx)=x1
3. Algebra of Derivatives (Rules of Differentiation)
Instead of using the first principle every time, we use a set of rules to find derivatives quickly.
Let u=f(x) and v=g(x) be differentiable functions.
Constant Rule: If f(x)=c (a constant), then f′(x)=0.
dxd(c)=0
Power Rule: If f(x)=xn for any real number n, then f′(x)=nxn−1.
dxd(xn)=nxn−1
Constant Multiple Rule: The derivative of a constant times a function is the constant times the derivative of the function.
dxd(c⋅u)=c⋅dxdu
Sum and Difference Rule: The derivative of a sum or difference of functions is the sum or difference of their derivatives.
dxd(u±v)=dxdu±dxdv
Product Rule:
dxd(u⋅v)=udxdv+vdxdu
In words: "The first function times the derivative of the second, plus the second function times the derivative of the first."
Quotient Rule:
dxd(vu)=v2vdxdu−udxdv
In words: "Low d-high minus high d-low, square the bottom and away we go."
Chain Rule: Used for differentiating composite functions (a function inside another function). If y=f(g(x)), let u=g(x), so y=f(u). Then:
dxdy=dudy⋅dxdu
In words: "Differentiate the outer function (leaving the inside alone), then multiply by the derivative of the inner function."
Solved Examples
Example 1: Product Rule
Question: Find the derivative of f(x)=x2sinx.
Solution:
Let u=x2 and v=sinx. Then u′=2x and v′=cosx.
Using the product rule, f′(x)=uv′+vu′:
f′(x)=(x2)(cosx)+(sinx)(2x)=x2cosx+2xsinx
Example 2: Quotient Rule
Question: Find the derivative of f(x)=x3ex.
Solution:
Let u=ex and v=x3. Then u′=ex and v′=3x2.
Using the quotient rule, f′(x)=v2vu′−uv′:
f′(x)=(x3)2(x3)(ex)−(ex)(3x2)=x6x2ex(x−3)=x4ex(x−3)
Example 3: Chain Rule
Question: Find the derivative of y=cos(x2+1).
Solution:
This is a composite function. The outer function is cos(u) and the inner function is u=x2+1.
- Derivative of the outer function: dud(cosu)=−sinu=−sin(x2+1).
- Derivative of the inner function: dxd(x2+1)=2x.
- Multiply them together (Chain Rule):
dxdy=−sin(x2+1)⋅(2x)=−2xsin(x2+1)
Example 4: Checking Differentiability
Question: Check if the function f(x)=∣x−2∣ is differentiable at x=2.
Solution:
First, write the function in piecewise form: f(x)={x−2,−(x−2),x≥2x<2
Right-Hand Derivative (RHD) at x=2:
For x>2, f(x)=x−2, so the derivative is f′(x)=1. Thus, RHD = 1.
Left-Hand Derivative (LHD) at x=2:
For x<2, f(x)=−(x−2)=2−x, so the derivative is f′(x)=−1. Thus, LHD = -1.
Since RHD (1) = LHD (-1), the function is not differentiable at x=2. This is expected as the graph has a sharp corner at that point.