5.2 Differentiability, the Chain Rule and Implicit Functions
A function is differentiable at $c$ when its left-hand and right-hand derivatives agree; differentiability forces continuity, but not conversely. The chain rule, implicit differentiation and the derivatives of $\sin^{-1}x$, $\tan^{-1}x$, … let us differentiate almost anything.
A cyclist rides at a steady speed, then brakes hard at a junction. Her distance from home is a continuous function of time, and so is her speed — until the instant the brakes bite, when the speed starts to drop at a sudden new rate. On a graph of distance against time that instant may look harmless, but on the graph of speed it is a corner. Corners are where the derivative — the slope of the graph — fails to exist, even though nothing breaks. The first part of this section tells you exactly how to detect them, and proves the one relation between the ideas that you must never get backwards: a differentiable function is always continuous, but a continuous function need not be differentiable.
The rest of the section extends your Class 11 rules (sum, product, quotient) to three new situations. Most functions in physics and engineering are layered — the height of a piston is $\sin(\omega t)$, the voltage of a circuit is $\sqrt{1+v^2}$ — and the chain rule says how rates multiply through the layers. Some curves are given only by an equation linking $x$ and $y$, like the circle $x^2+y^2=25$; implicit differentiation finds their slopes without solving for $y$. And the inverse trigonometric functions of Chapter 2 turn out to have surprisingly simple algebraic derivatives, which you will use constantly when integrating in Chapter 7.
Differentiability and Its Link with Continuity
From Class 11 Mathematics, Ch. 12 — Limits and Derivatives: the derivative of $f$ at $c$ is $f'(c)=\lim\limits_{h\to0}\dfrac{f(c+h)-f(c)}{h}$, the limit of slopes of chords through $(c,f(c))$. Like any limit, it can be split into two one-sided limits.
Let $f$ be a real function defined on an open interval containing $c$. The left-hand derivative and right-hand derivative of $f$ at $c$ are $$Lf'(c)=\lim_{h\to0^-}\dfrac{f(c+h)-f(c)}{h},\qquad Rf'(c)=\lim_{h\to0^+}\dfrac{f(c+h)-f(c)}{h},$$ when these limits exist (as finite numbers). $f$ is differentiable at $c$ if both exist and are equal; their common value is the derivative $f'(c)$.
$f$ is differentiable on an open interval $(a,b)$ if it is differentiable at every point of $(a,b)$; on $[a,b]$ if, in addition, $Rf'(a)$ and $Lf'(b)$ exist. A differentiable function is one that is differentiable at every point of its domain.
If $f$ is differentiable at $c$, then $f$ is continuous at $c$.
Proof. For $h\ne0$, $$f(c+h)-f(c)=\dfrac{f(c+h)-f(c)}{h}\cdot h.$$ As $h\to0$ the first factor tends to $f'(c)$ (a finite number) and the second to $0$, so by the product rule for limits $f(c+h)-f(c)\to f'(c)\cdot0=0$. That is, $\lim\limits_{h\to0}f(c+h)=f(c)$, which says $f$ is continuous at $c$. $\blacksquare$
The converse is false: $|x|$ is continuous but not differentiable at $0$. Equivalently (the contrapositive), a function that is not continuous at $c$ cannot be differentiable at $c$.
The Chain Rule
Think of three meshed gears. If gear $A$ turns $3$ times for every turn of gear $B$, and $B$ turns $2$ times for every turn of gear $C$, then $A$ turns $3\times2=6$ times for every turn of $C$. Rates of change through a chain of dependencies multiply. For a layered function $y=v(t)$ with $t=u(x)$, a small change $\Delta x$ causes a change $\Delta t$, which causes a change $\Delta y$, and (when $\Delta t\ne0$) $$\dfrac{\Delta y}{\Delta x}=\dfrac{\Delta y}{\Delta t}\cdot\dfrac{\Delta t}{\Delta x}.$$ Letting $\Delta x\to0$ suggests the rule below. (A complete proof also handles the case where $\Delta t$ is $0$ for some small $\Delta x$; we accept the result.)
Let $f=v\circ u$, that is $f(x)=v(u(x))$. If $u$ is differentiable at $x$ and $v$ is differentiable at $u(x)$, then $f$ is differentiable at $x$ and $$f'(x)=v'(u(x))\cdot u'(x).$$ In Leibniz notation, with $t=u(x)$ and $y=v(t)$: $$\dfrac{dy}{dx}=\dfrac{dy}{dt}\cdot\dfrac{dt}{dx}.$$ For three layers $y=w(s)$, $s=v(t)$, $t=u(x)$: $\dfrac{dy}{dx}=\dfrac{dy}{ds}\cdot\dfrac{ds}{dt}\cdot\dfrac{dt}{dx}$.
In words: differentiate the outside layer, leaving the inside alone, then multiply by the derivative of the inside. So $\dfrac{d}{dx}\sin(\text{stuff})=\cos(\text{stuff})\cdot\dfrac{d}{dx}(\text{stuff})$ and $\dfrac{d}{dx}(\text{stuff})^n=n(\text{stuff})^{n-1}\cdot\dfrac{d}{dx}(\text{stuff})$.
Implicit Differentiation
An equation such as $y=x^3-2x$ gives $y$ explicitly as a function of $x$. An equation such as $x^2+y^2=25$ links $x$ and $y$ but does not single out $y$: it is satisfied by $y=\sqrt{25-x^2}$ and by $y=-\sqrt{25-x^2}$. Near most points of such a curve, $y$ is still a differentiable function of $x$ — it is defined implicitly by the equation — and we can find $\dfrac{dy}{dx}$ without solving for $y$ at all.
- Differentiate both sides of the equation with respect to $x$, treating $y$ as an unknown function of $x$.
- Every time you differentiate an expression in $y$, the chain rule adds a factor $\dfrac{dy}{dx}$: $\dfrac{d}{dx}(y^2)=2y\dfrac{dy}{dx}$, $\dfrac{d}{dx}(\sin y)=\cos y\dfrac{dy}{dx}$. A product such as $xy$ needs the product rule: $\dfrac{d}{dx}(xy)=y+x\dfrac{dy}{dx}$.
- Collect the terms containing $\dfrac{dy}{dx}$ on one side, factor it out, and divide.
- The answer usually involves both $x$ and $y$. To find the slope at a point, substitute both coordinates — and check the point lies on the curve.
Derivatives of Inverse Trigonometric Functions
Implicit differentiation gives the derivatives of the inverse trigonometric functions almost at once. Recall from Chapter 2 — Inverse Trigonometric Functions that $y=\sin^{-1}x$ means $\sin y=x$ with $y$ in the principal value branch $\left[-\tfrac\pi2,\tfrac\pi2\right]$. (Remember $\sin^{-1}x\ne\dfrac1{\sin x}$: the $-1$ denotes the inverse function, not a reciprocal.)
| $f(x)$ | $f'(x)$ | valid for |
|---|---|---|
| $\sin^{-1}x$ | $\dfrac{1}{\sqrt{1-x^2}}$ | $-1\lt x\lt1$ |
| $\cos^{-1}x$ | $-\dfrac{1}{\sqrt{1-x^2}}$ | $-1\lt x\lt1$ |
| $\tan^{-1}x$ | $\dfrac{1}{1+x^2}$ | all real $x$ |
| $\cot^{-1}x$ | $-\dfrac{1}{1+x^2}$ | all real $x$ |
| $\sec^{-1}x$ | $\dfrac{1}{|x|\sqrt{x^2-1}}$ | $|x|\gt1$ |
| $\operatorname{cosec}^{-1}x$ | $-\dfrac{1}{|x|\sqrt{x^2-1}}$ | $|x|\gt1$ |
Proof for $\sin^{-1}x$. Let $y=\sin^{-1}x$ with $-1\lt x\lt1$, so $\sin y=x$ and $-\tfrac\pi2\lt y\lt\tfrac\pi2$. Differentiating, $\cos y\,\dfrac{dy}{dx}=1$. On $\left(-\tfrac\pi2,\tfrac\pi2\right)$ the cosine is positive, so $\cos y=+\sqrt{1-\sin^2y}=\sqrt{1-x^2}\ne0$, and $\dfrac{dy}{dx}=\dfrac{1}{\sqrt{1-x^2}}$. (At $x=\pm1$ the tangent to $y=\sin^{-1}x$ is vertical: no derivative.)
Proof for $\tan^{-1}x$. $y=\tan^{-1}x$ means $\tan y=x$ with $-\tfrac\pi2\lt y\lt\tfrac\pi2$. Then $\sec^2y\,\dfrac{dy}{dx}=1$ and $\sec^2y=1+\tan^2y=1+x^2$, so $\dfrac{dy}{dx}=\dfrac{1}{1+x^2}$.
The others follow in the same way (Exercise IV). For $x\gt1$ the $\sec^{-1}$ entry is simply $\dfrac{1}{x\sqrt{x^2-1}}$; the modulus matters only for $x\lt-1$.
1. Getting the implication backwards. Differentiable $\Rightarrow$ continuous. Continuous does not imply differentiable ($|x|$ at $0$). To show a function is not differentiable, showing it is discontinuous is enough; to show it is differentiable, continuity is not enough.
2. Differentiating the pieces instead of using the definition. For a piecewise function, the derivatives of the two formulas at the join give $Lf'(c)$ and $Rf'(c)$ only if $f$ is continuous at $c$ (and each piece is differentiable there). Check continuity first (Example 3).
3. Forgetting the inside derivative. $\dfrac{d}{dx}\sin(5x)=5\cos5x$, not $\cos5x$; $\dfrac{d}{dx}(1-x^2)^{1/2}=\tfrac12(1-x^2)^{-1/2}\cdot(-2x)$.
4. Changing the inside. $\dfrac{d}{dx}\sin(x^2)$ is $\cos(x^2)\cdot2x$, not $\cos(2x)$: the outer derivative is evaluated at the unchanged inside.
5. Dropping $\dfrac{dy}{dx}$ in implicit work. $\dfrac{d}{dx}(y^3)=3y^2\dfrac{dy}{dx}$, and $\dfrac{d}{dx}(xy)=y+x\dfrac{dy}{dx}$ — not $\dfrac{dy}{dx}$ alone.
6. Simplifying inverse trigonometric expressions without checking the range. $\sin^{-1}(\sin2\theta)=2\theta$ only when $2\theta$ lies in $\left[-\tfrac\pi2,\tfrac\pi2\right]$.
In JEE Main and JEE Advanced 2026; not examined in the CBSE board exam. JEE asks where modulus-type functions fail to be differentiable. A useful rule: if $g$ is differentiable, then $|g(x)|$ is differentiable wherever $g(x)\ne0$; at a zero $c$ of $g$ it is differentiable if and only if $g'(c)=0$. (Because near $c$, $\dfrac{|g(c+h)|}{h}\approx\dfrac{|g'(c)|\,|h|}{h}$, whose one-sided limits are $\pm|g'(c)|$.)
Worked example. Where is $f(x)=|x^2-4|+|x|^3$ not differentiable?
$g(x)=x^2-4$ has zeros $\pm2$ with $g'(\pm2)=\pm4\ne0$: corners at $x=\pm2$. The term $|x|^3$ is $|g|$ for $g(x)=x^3$, whose only zero $0$ has $g'(0)=0$: it is differentiable everywhere, with derivative $3x|x|$. A sum is non-differentiable where exactly one term is; so $f$ fails to be differentiable exactly at $x=-2$ and $x=2$. Check at $2$: $Rf'(2)=4+12=16$ and $Lf'(2)=-4+12=8$.
Exercises
- 1 Is $f(x)=|x+3|$ differentiable at $x=-3$? Find $Lf'(-3)$ and $Rf'(-3)$.
- 2 $f(x)=\begin{cases}x+1,&x\le1\\ 3-x,&x\gt1\end{cases}$. Is $f$ continuous at $1$? differentiable at $1$?
- 3 $f(x)=\begin{cases}x^2,&x\le2\\ 4x-4,&x\gt2\end{cases}$. Show that $f$ is differentiable at $2$ and find $f'(2)$.
- 4 Is $f(x)=[x]$ differentiable at $x=0.5$? at $x=2$? Give $f'(0.5)$ if it exists.
- 5 Show that $f(x)=x^{2/3}$ is continuous but not differentiable at $x=0$.
- 6 Find $a$ and $b$ so that $f(x)=\begin{cases}ax^2+b,&x\le1\\ \dfrac1x,&x\gt1\end{cases}$ is differentiable at $x=1$.
- 7 True or false? Give a reason. (a) Every continuous function is differentiable. (b) If $f$ is not continuous at $c$, it is not differentiable at $c$. (c) $f(x)=|x|+|x-1|$ is differentiable at $x=\tfrac12$.
- 1 $\sin(3x+2)$
- 2 $(x^2-5x+1)^7$
- 3 $\cos\sqrt x$, $x\gt0$
- 4 $\sec^2(4x)$
- 5 $\sqrt{x^2-2x+3}$
- 6 $\sin^3x\cos^3x$
- 7 $\dfrac{1}{(2x-1)^3}$
- 8 $\sin(\tan(x^2))$
- 9 $\dfrac{x}{\sqrt{1-x^2}}$, $|x|\lt1$
- 10 A weather balloon. The radius of a spherical balloon increases at $0.5\ \text{cm/s}$. Using $V=\tfrac43\pi r^3$ and the chain rule, find how fast its volume is increasing when $r=10\ \text{cm}$.
- 1 $2x+3y=\sin y$
- 2 $x^2+xy+y^2=100$
- 3 $x^3+x^2y+xy^2+y^3=81$
- 4 $y=\cos(x+y)$
- 5 $\dfrac{x^2}{9}+\dfrac{y^2}{4}=1$; the slope at $\left(\sqrt5,\tfrac43\right)$
- 6 Find the points of the circle $x^2+y^2-2x-3=0$ where the tangent is horizontal, and where it is vertical.
- 7 $\sqrt x+\sqrt y=\sqrt{10}$; the slope at $(2.5,\,2.5)$
- 1 $\cos^{-1}(x^2)$, $0\lt x\lt1$
- 2 $\tan^{-1}(3x)$
- 3 $\sin^{-1}\sqrt x$, $0\lt x\lt1$
- 4 $x\sin^{-1}x$, $-1\lt x\lt1$
- 5 $\cos^{-1}\!\left(\dfrac{1-x^2}{1+x^2}\right)$, $0\lt x\lt1$
- 6 $\tan^{-1}\sqrt{\dfrac{1-\cos x}{1+\cos x}}$, $0\lt x\lt\pi$
- 7 Prove that $\dfrac{d}{dx}\cos^{-1}x=-\dfrac{1}{\sqrt{1-x^2}}$ for $-1\lt x\lt1$.
- 8 Prove that $\dfrac{d}{dx}\sec^{-1}x=\dfrac{1}{x\sqrt{x^2-1}}$ for $x\gt1$.
How this is examined: Board papers ask for $\tfrac{dy}{dx}$ of composite, implicit and inverse-trigonometric functions (often with a substitution such as $x=\tan\theta$ to simplify first), and for a proof that a given function is or is not differentiable at a point. JEE adds modulus-type functions and numerical-value questions.
E1. Board · 1 mark $\dfrac{d}{dx}\sin^{-1}(x^2)$, for $0\lt x\lt1$, equals (A) $\dfrac{1}{\sqrt{1-x^4}}$ (B) $\dfrac{2x}{\sqrt{1-x^4}}$ (C) $\dfrac{2x}{\sqrt{1-x^2}}$ (D) $-\dfrac{2x}{\sqrt{1-x^4}}$
E2. Board · 1 mark Assertion–Reason. Assertion (A): $f(x)=|x-3|$ is continuous at $x=3$ but not differentiable there. Reason (R): every function differentiable at a point is continuous at that point. (A) Both A and R are true and R is the correct explanation of A (B) Both A and R are true but R is not the correct explanation of A (C) A is true but R is false (D) A is false but R is true
E3. Board · 2 marks If $x^2+xy+y^2=7$, find $\dfrac{dy}{dx}$ at the point $(1,2)$.
E4. Board · 3 marks Find $a$ and $b$ so that $f(x)=\begin{cases}x^2+3x+a,&x\le1\\ bx+2,&x\gt1\end{cases}$ is differentiable at $x=1$.
E5. JEE Main The number of points at which $f(x)=|x^2-1|+|x-2|$ is not differentiable is (A) $1$ (B) $2$ (C) $3$ (D) $4$
E6. JEE Advanced (Numerical answer.) Let $y=\tan^{-1}\!\left(\dfrac{\sqrt{1+x^2}-1}{x}\right)$ for $x\ne0$. Find the value of $100\,\dfrac{dy}{dx}$ at $x=1$.
Research question. How fast does a bicycle move for a given pedalling rate — and can the chain rule predict it before you ride?
Why it matters. Gear trains are chains of rates: in bicycles, car gearboxes, wind turbines and the drive of a Mars rover, engineers multiply the rate of each stage to design for a target speed or torque. The chain rule is that multiplication. Cyclists in races choose gears by exactly this calculation.
What to do.
- On a geared bicycle, count the teeth on the front chainring ($T_f$) and the rear sprocket ($T_r$) in use, and measure the wheel diameter $D$ (in metres).
- Let $p$ be the number of pedal turns, $w$ the number of wheel turns and $s$ the distance travelled. Explain why $\dfrac{dw}{dp}=\dfrac{T_f}{T_r}$ and $\dfrac{ds}{dw}=\pi D$.
- Use the chain rule to write the speed $\dfrac{ds}{dt}=\dfrac{ds}{dw}\cdot\dfrac{dw}{dp}\cdot\dfrac{dp}{dt}$ in terms of the cadence $\dfrac{dp}{dt}$ (pedal turns per second). Tabulate the predicted speed in km/h for each gear at a cadence of $1.25$ turns per second ($75$ per minute).
- Test one or two gears: ride at a steady cadence (count turns for $20$ s) and record the speed with a phone GPS app or by timing a measured $100$ m. Compare with your prediction.
Tools: A geared bicycle, measuring tape, stopwatch or phone GPS app, spreadsheet.
Hand in: The tooth counts, the chain-rule formula, the table of predicted speeds, your measured speeds with percentage errors, and two sentences on the sources of error.
Going further. Real wheels have a slightly smaller rolling radius under load. Use your measurements to estimate the effective diameter, and say how much it changes your predictions.
🧪 Self-check quiz
Q1. At $x=0$, the function $|x|$ is
Q2. $\dfrac{d}{dx}\sin(x^3)=$
Q3. If $x^2+y^2=9$, then $\dfrac{dy}{dx}=$
Q4. $\dfrac{d}{dx}\tan^{-1}(2x)=$
Q5. Which statement is always true?