1. Differentiability

A function f(x)f(x) is said to be differentiable at a point x=cx=c if the derivative f(c)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)=limh0f(c+h)f(c)h=limh0+f(ch)f(c)hLf'(c) = \lim_{h \to 0^-} \frac{f(c+h) - f(c)}{h} = \lim_{h \to 0^+} \frac{f(c-h) - f(c)}{-h}

  • Right-Hand Derivative (RHD): Rf(c)=limh0+f(c+h)f(c)hRf'(c) = \lim_{h \to 0^+} \frac{f(c+h) - f(c)}{h}

A function is differentiable at cc 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)=xf(x) = |x| at x=0x=0, which is continuous but has a sharp corner, making it non-differentiable.

2. Derivatives of Standard Functions

  • Power Rule: ddx(xn)=nxn1\frac{d}{dx}(x^n) = nx^{n-1}
  • Trigonometric Functions:
    • ddx(sinx)=cosx\frac{d}{dx}(\sin x) = \cos x
    • ddx(cosx)=sinx\frac{d}{dx}(\cos x) = -\sin x
    • ddx(tanx)=sec2x\frac{d}{dx}(\tan x) = \sec^2 x
  • Exponential & Logarithmic Functions:
    • ddx(ex)=ex\frac{d}{dx}(e^x) = e^x
    • ddx(ax)=axlna\frac{d}{dx}(a^x) = a^x \ln a
    • ddx(lnx)=1x\frac{d}{dx}(\ln x) = \frac{1}{x}

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)u = f(x) and v=g(x)v = g(x) be differentiable functions.

  1. Constant Rule: If f(x)=cf(x) = c (a constant), then f(x)=0f'(x) = 0. ddx(c)=0\frac{d}{dx}(c) = 0

  2. Power Rule: If f(x)=xnf(x) = x^n for any real number nn, then f(x)=nxn1f'(x) = nx^{n-1}. ddx(xn)=nxn1\frac{d}{dx}(x^n) = nx^{n-1}

  3. Constant Multiple Rule: The derivative of a constant times a function is the constant times the derivative of the function. ddx(cu)=cdudx\frac{d}{dx}(c \cdot u) = c \cdot \frac{du}{dx}

  4. Sum and Difference Rule: The derivative of a sum or difference of functions is the sum or difference of their derivatives. ddx(u±v)=dudx±dvdx\frac{d}{dx}(u \pm v) = \frac{du}{dx} \pm \frac{dv}{dx}

  5. Product Rule: ddx(uv)=udvdx+vdudx\frac{d}{dx}(u \cdot v) = u \frac{dv}{dx} + v \frac{du}{dx} In words: "The first function times the derivative of the second, plus the second function times the derivative of the first."

  6. Quotient Rule: ddx(uv)=vdudxudvdxv2\frac{d}{dx}\left(\frac{u}{v}\right) = \frac{v \frac{du}{dx} - u \frac{dv}{dx}}{v^2} In words: "Low d-high minus high d-low, square the bottom and away we go."

  7. Chain Rule: Used for differentiating composite functions (a function inside another function). If y=f(g(x))y = f(g(x)), let u=g(x)u=g(x), so y=f(u)y=f(u). Then: dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \cdot \frac{du}{dx} 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)=x2sinxf(x) = x^2 \sin x.

Solution: Let u=x2u = x^2 and v=sinxv = \sin x. Then u=2xu' = 2x and v=cosxv' = \cos x. Using the product rule, f(x)=uv+vuf'(x) = u v' + v u': f(x)=(x2)(cosx)+(sinx)(2x)=x2cosx+2xsinxf'(x) = (x^2)(\cos x) + (\sin x)(2x) = x^2 \cos x + 2x \sin x

Example 2: Quotient Rule

Question: Find the derivative of f(x)=exx3f(x) = \frac{e^x}{x^3}.

Solution: Let u=exu = e^x and v=x3v = x^3. Then u=exu' = e^x and v=3x2v' = 3x^2. Using the quotient rule, f(x)=vuuvv2f'(x) = \frac{v u' - u v'}{v^2}: f(x)=(x3)(ex)(ex)(3x2)(x3)2=x2ex(x3)x6=ex(x3)x4f'(x) = \frac{(x^3)(e^x) - (e^x)(3x^2)}{(x^3)^2} = \frac{x^2e^x(x - 3)}{x^6} = \frac{e^x(x-3)}{x^4}

Example 3: Chain Rule

Question: Find the derivative of y=cos(x2+1)y = \cos(x^2 + 1).

Solution: This is a composite function. The outer function is cos(u)\cos(u) and the inner function is u=x2+1u = x^2 + 1.

  1. Derivative of the outer function: ddu(cosu)=sinu=sin(x2+1)\frac{d}{du}(\cos u) = -\sin u = -\sin(x^2+1).
  2. Derivative of the inner function: ddx(x2+1)=2x\frac{d}{dx}(x^2+1) = 2x.
  3. Multiply them together (Chain Rule): dydx=sin(x2+1)(2x)=2xsin(x2+1)\frac{dy}{dx} = -\sin(x^2+1) \cdot (2x) = -2x \sin(x^2+1)

Example 4: Checking Differentiability

Question: Check if the function f(x)=x2f(x) = |x-2| is differentiable at x=2x=2.

Solution: First, write the function in piecewise form: f(x)={x2,x2(x2),x<2f(x) = \begin{cases} x-2, & x \geq 2 \\ -(x-2), & x < 2 \end{cases}

  1. Right-Hand Derivative (RHD) at x=2: For x>2x>2, f(x)=x2f(x)=x-2, so the derivative is f(x)=1f'(x)=1. Thus, RHD = 1.

  2. Left-Hand Derivative (LHD) at x=2: For x<2x<2, f(x)=(x2)=2xf(x)=-(x-2)=2-x, so the derivative is f(x)=1f'(x)=-1. Thus, LHD = -1.

Since RHD (1) \neq LHD (-1), the function is not differentiable at x=2x=2. This is expected as the graph has a sharp corner at that point.