Math Lab
Home/Class XII/Ch 5/Differentiability

Differentiability

A function is differentiable at a point if its graph has a tangent line there. Algebraically, this means the limit defining the derivative exists. The derivative measures the instantaneous rate of change , slope of the tangent, velocity from displacement, marginal cost from cost.

Definition

The function ff is differentiable at aa if

f(a)=limh0f(a+h)f(a)hf'(a) = \lim_{h \to 0} \frac{f(a + h) - f(a)}{h}

exists (as a finite limit). The value of the limit is the derivative of ff at aa.

Equivalent form: f(a)=limxaf(x)f(a)xaf'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}.

One-sided derivatives

The left derivative at aa:

f(a)=limh0f(a+h)f(a)h.f'_-(a) = \lim_{h \to 0^-} \frac{f(a + h) - f(a)}{h}.

The right derivative:

f+(a)=limh0+f(a+h)f(a)h.f'_+(a) = \lim_{h \to 0^+} \frac{f(a + h) - f(a)}{h}.

ff is differentiable at aa iff both one-sided derivatives exist and are equal.

Differentiability implies continuity

Theorem. If ff is differentiable at aa, then ff is continuous at aa.

Proof. limxa[f(x)f(a)]=limxa[f(x)f(a)xa](xa)=f(a)0=0\lim_{x \to a}[f(x) - f(a)] = \lim_{x \to a}\left[\dfrac{f(x) - f(a)}{x - a}\right](x - a) = f'(a) \cdot 0 = 0. So limxaf(x)=f(a)\lim_{x \to a} f(x) = f(a). \blacksquare

The converse is false: continuity does not imply differentiability. The classic counter-example is f(x)=xf(x) = |x|, continuous everywhere but not differentiable at 00.

Derivative as a function

If ff is differentiable at every xx in an interval, the function xf(x)x \mapsto f'(x) is the derivative function, denoted ff' or dfdx\dfrac{df}{dx}.

Computing from first principles

The derivative of f(x)=x2f(x) = x^2 at aa:

f(a)=limh0(a+h)2a2h=limh02ah+h2h=limh0(2a+h)=2af'(a) = \lim_{h \to 0} \dfrac{(a + h)^2 - a^2}{h} = \lim_{h \to 0}\dfrac{2ah + h^2}{h} = \lim_{h \to 0}(2a + h) = 2a.

So f(x)=2xf'(x) = 2x for every xx.

When differentiability fails

A continuous function ff can fail to be differentiable at aa for several reasons:

  1. Corner (sharp point): left and right derivatives exist but differ. E.g., x|x| at 00.
  2. Vertical tangent: derivative becomes infinite. E.g., x3\sqrt[3]{x} at 00.
  3. Cusp: vertical tangent with the function turning around. E.g., x2/3x^{2/3} at 00.
  4. Oscillation: derivative limit doesn't exist (rare in school problems).

Worked examples

Example 1. Find f(x)f'(x) from first principles for f(x)=x3f(x) = x^3.

limh0(x+h)3x3h=limh03x2h+3xh2+h3h=3x2\lim_{h \to 0}\dfrac{(x + h)^3 - x^3}{h} = \lim_{h \to 0}\dfrac{3x^2 h + 3 x h^2 + h^3}{h} = 3x^2.

Example 2. Show f(x)=xf(x) = |x| is not differentiable at 00.

Right derivative: limh0+hh=1\lim_{h \to 0^+}\dfrac{|h|}{h} = 1. Left derivative: limh0hh=1\lim_{h \to 0^-}\dfrac{|h|}{h} = -1. Unequal; not differentiable.

Example 3. Show f(x)=x3f(x) = \sqrt[3]{x} is not differentiable at 00.

f(0)=limh0h1/3h=limh0h2/3=f'(0) = \lim_{h \to 0}\dfrac{h^{1/3}}{h} = \lim_{h \to 0} h^{-2/3} = \infty. Limit doesn't exist (as a finite number).

Example 4. Find f(x)f'(x) from first principles for f(x)=sinxf(x) = \sin x.

limh0sin(x+h)sinxh=limh02cos(x+h/2)sin(h/2)h=cosxlimh0sin(h/2)h/21=cosx1=cosx\lim_{h \to 0}\dfrac{\sin(x + h) - \sin x}{h} = \lim_{h \to 0}\dfrac{2 \cos(x + h/2) \sin(h/2)}{h} = \cos x \cdot \lim_{h \to 0}\dfrac{\sin(h/2)}{h/2} \cdot 1 = \cos x \cdot 1 = \cos x.

Example 5. Where is f(x)=x3f(x) = |x|^3 differentiable? Compute the derivative.

f(x)=x3f(x) = x^3 if x0x \ge 0, and f(x)=x3f(x) = -x^3 if x<0x < 0. From either side at 00: right derivative limh0+h2=0\lim_{h \to 0^+} h^2 = 0. Left derivative limh0(h2)=0\lim_{h \to 0^-}(-h^2) = 0. So f(0)=0f'(0) = 0 , differentiable. Elsewhere f(x)=3xxf'(x) = 3x|x|.

Example 6. Discuss differentiability of f(x)={x2sin(1/x),x00,x=0f(x) = \begin{cases} x^2 \sin(1/x), & x \neq 0 \\ 0, & x = 0 \end{cases} at x=0x = 0.

f(0)=limh0h2sin(1/h)0h=limh0hsin(1/h)=0f'(0) = \lim_{h \to 0}\dfrac{h^2 \sin(1/h) - 0}{h} = \lim_{h \to 0} h \sin(1/h) = 0 (by squeeze). So differentiable at 00 with f(0)=0f'(0) = 0. Note the derivative function is discontinuous at 00.

Try it yourself

  1. From first principles, find f(x)f'(x) for f(x)=1/xf(x) = 1/x.
  2. From first principles, find f(x)f'(x) for f(x)=xf(x) = \sqrt{x}.
  3. Show f(x)=x1f(x) = |x - 1| is not differentiable at x=1x = 1.
  4. Is f(x)=xxf(x) = x|x| differentiable at 00?
  5. Find f(x)f'(x) from first principles for f(x)=exf(x) = e^x.
  6. Is the derivative of x|x| even or odd? Sketch its graph.
  7. Compute f(0)f'(0) if f(x)=xsin(1/x)f(x) = x \sin(1/x) for x0x \neq 0 and f(0)=0f(0) = 0.
  8. Investigate differentiability of f(x)=cosxf(x) = \cos|x| everywhere.
  9. Find conditions on a,ba, b so f(x)={ax+b,x<1x2,x1f(x) = \begin{cases} ax + b, & x < 1 \\ x^2, & x \ge 1 \end{cases} is differentiable at x=1x = 1.
  10. Show: a function differentiable on [a,b][a, b] is also continuous there.
  11. Is f(x)=tanxf(x) = \tan x differentiable on (π/2,π/2)(-\pi/2, \pi/2)?
  12. Where is f(x)=min(x,x2)f(x) = \min(x, x^2) non-differentiable?
  13. Investigate differentiability of f(x)=sinxf(x) = |\sin x|.
  14. Show: if ff is differentiable at aa and f(a)=0f(a) = 0, then limxaf(x)xa=f(a)\lim_{x \to a}\dfrac{f(x)}{x - a} = f'(a).

Pitfalls / Tricks

  • Differentiability is stronger than continuity. The implication is one-way.
  • Corners (x|x| type), cusps, and vertical tangents are the three school-relevant ways to fail differentiability.
  • Always check both one-sided derivatives when the function is defined piecewise.
  • First-principles computations require careful algebraic manipulation; check limits using trig identities or rationalisation as needed.

Next, the rules of differentiation.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Differentiability
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6