Continuity and Differentiability • Topic 2 of 3

Differentiability & the Chain Rule

The derivative of $f$ at $x=c$ is the limit of the average rate of change as the interval shrinks to a point:

$$f'(c)=\lim_{h\to 0}\frac{f(c+h)-f(c)}{h},$$

provided this limit exists. Geometrically $f'(c)$ is the slope of the tangent to the curve at $\big(c,f(c)\big)$. The function is differentiable at $c$ when this two-sided limit exists, which means the left-hand derivative and right-hand derivative are equal:

$$\lim_{h\to 0^-}\frac{f(c+h)-f(c)}{h}\;=\;\lim_{h\to 0^+}\frac{f(c+h)-f(c)}{h}.$$

Differentiability implies continuity

If $f$ is differentiable at $c$, then it is continuous at $c$. The converse is false: $f(x)=|x|$ is continuous at $0$ but has a corner there, so $f'(0)$ does not exist (left slope $-1$, right slope $+1$). The practical lesson is that corners, kinks, vertical tangents and discontinuities all break differentiability — so a quick continuity check is the first filter, but passing it is not enough.

Standard derivatives

$f(x)$$f'(x)$$f(x)$$f'(x)$
$x^{n}$$nx^{n-1}$$\sin x$$\cos x$
$\cos x$$-\sin x$$\tan x$$\sec^2 x$
$\cot x$$-\csc^2 x$$\sec x$$\sec x\tan x$
$\csc x$$-\csc x\cot x$$e^{x}$$e^{x}$

Exponential and logarithmic functions

Beyond $e^{x}$ and $\log x$, you need the general-base versions, all provable from the chain rule and the limit definition:

$$\frac{d}{dx}e^{x}=e^{x},\qquad \frac{d}{dx}a^{x}=a^{x}\log a,\qquad \frac{d}{dx}\log x=\frac{1}{x},\qquad \frac{d}{dx}\log_a x=\frac{1}{x\log a}.$$

Here $\log$ denotes the natural logarithm $\ln$ (base $e$), as in NCERT. The factor $\log a$ appears whenever the base is not $e$ — it is the price of changing base.

Derivatives of inverse trigonometric functions

These follow by differentiating the defining relation (e.g. for $y=\sin^{-1}x$, $\sin y=x$) implicitly:

$f(x)$$f'(x)$Valid for
$\sin^{-1}x$$\dfrac{1}{\sqrt{1-x^2}}$$-1
$\cos^{-1}x$$-\dfrac{1}{\sqrt{1-x^2}}$$-1
$\tan^{-1}x$$\dfrac{1}{1+x^2}$all $x$
$\cot^{-1}x$$-\dfrac{1}{1+x^2}$all $x$
$\sec^{-1}x$$\dfrac{1}{|x|\sqrt{x^2-1}}$$|x|>1$
$\csc^{-1}x$$-\dfrac{1}{|x|\sqrt{x^2-1}}$$|x|>1$

Notice the pairing: each "co-" function's derivative is the negative of its partner's. A clever substitution (such as $x=\tan\theta$) often simplifies a messy inverse-trig expression to a single inverse function before you differentiate — this is the heart of the harder Ex 5.3 problems.

The chain rule

For a composite $y=f\big(g(x)\big)$,

$$\frac{dy}{dx}=f'\big(g(x)\big)\cdot g'(x),\qquad\text{equivalently}\qquad \frac{dy}{dx}=\frac{dy}{du}\cdot\frac{du}{dx}\ \ (u=g(x)).$$

Differentiate the outer function (leaving the inside alone), then multiply by the derivative of the inside. Combined with the product rule $(uv)'=u'v+uv'$ and the quotient rule $\left(\dfrac{u}{v}\right)'=\dfrac{u'v-uv'}{v^2}$, the chain rule handles almost every function in this chapter, often peeling off one layer at a time.

Second-order derivatives

Differentiating $\dfrac{dy}{dx}$ again gives the second derivative $\dfrac{d^2y}{dx^2}$ (also written $y''$ or $f''(x)$) — the rate of change of the slope, which governs concavity. A common exam task is to prove a differential-equation relation by successive differentiation: differentiate the given $y$ once and twice, then substitute to verify an identity such as $y''+y=0$. The technique is to keep re-using the first relation to eliminate awkward terms.

A smooth parabola arc with a tangent line at a point, illustrating differentiability (a) Differentiable: tangent has a definite slope x y P(a, f(a)) slope = f′(a) one tangent line → unique derivative Graph of y equals absolute value of x showing a sharp corner at the origin (b) Not differentiable: a corner at x = 0 x y left slope −1 right slope +1 O not differentiable at x = 0 (corner)
1
Worked Example
Differentiate $y=(3x^2+1)^5$.
Solution

Chain rule with outer $u^5$, inner $u=3x^2+1$: $\dfrac{dy}{dx}=5(3x^2+1)^4\cdot 6x = 30x(3x^2+1)^4.$

Answer: $\dfrac{dy}{dx}=30x(3x^2+1)^4.$

2
Worked Example
Differentiate $y=\sin(x^2)$.
Solution

$\dfrac{dy}{dx}=\cos(x^2)\cdot 2x = 2x\cos(x^2).$

Answer: $\dfrac{dy}{dx}=2x\cos(x^2).$

3
Worked Example
Differentiate $y=x^2 e^{x}$.
Solution

Product rule: $\dfrac{dy}{dx}=2x\,e^{x}+x^2 e^{x}=e^{x}(x^2+2x).$

Answer: $\dfrac{dy}{dx}=e^{x}(x^2+2x).$

4
Worked Example
Show $f(x)=|x|$ is not differentiable at $x=0$.
Solution

The left-hand derivative is $\lim_{h\to0^-}\dfrac{|h|}{h}=-1$ and the right-hand derivative is $\lim_{h\to0^+}\dfrac{|h|}{h}=+1$. Since $-1\ne+1$, $f'(0)$ does not exist.

Answer: $f'(0)$ does not exist.

5
Worked Example
Differentiate $y=a^{x}$ (with $a>0$) and hence $y=2^{x}\sin x$.
Solution

From the standard result $\dfrac{d}{dx}a^{x}=a^{x}\log a$, we get $\dfrac{d}{dx}2^{x}=2^{x}\log 2$. For $y=2^{x}\sin x$, apply the product rule: $\dfrac{dy}{dx}=2^{x}\log 2\,\sin x+2^{x}\cos x=2^{x}\big(\sin x\,\log 2+\cos x\big).$

Answer: $\dfrac{dy}{dx}=2^{x}\big(\sin x\,\log 2+\cos x\big).$

6
Worked Example
Differentiate $y=\log(\sin x)$ and $y=\log_{10}x$.
Solution

$y=\log(\sin x)$: chain rule gives $\dfrac{dy}{dx}=\dfrac{1}{\sin x}\cdot\cos x=\cot x.$ For $y=\log_{10}x$ use $\dfrac{d}{dx}\log_a x=\dfrac{1}{x\log a}$, so $\dfrac{dy}{dx}=\dfrac{1}{x\log 10}.$

Answer: $\dfrac{dy}{dx}=\cot x$ and $\dfrac{dy}{dx}=\dfrac{1}{x\log 10}.$

7
Worked Example
Differentiate $y=\sin^{-1}(2x\sqrt{1-x^2})$ for $-\tfrac{1}{\sqrt2}
Solution

Put $x=\sin\theta$, so $\theta=\sin^{-1}x$. Then $2x\sqrt{1-x^2}=2\sin\theta\cos\theta=\sin 2\theta$, hence $y=\sin^{-1}(\sin 2\theta)=2\theta=2\sin^{-1}x$ on the given range. Therefore $\dfrac{dy}{dx}=\dfrac{2}{\sqrt{1-x^2}}.$ The substitution collapses the composite before any heavy differentiation.

Answer: $\dfrac{dy}{dx}=\dfrac{2}{\sqrt{1-x^2}}.$

8
Worked Example
If $y=e^{\tan^{-1}x}$, find $\dfrac{dy}{dx}$.
Solution

Chain rule with outer $e^{u}$, inner $u=\tan^{-1}x$ (whose derivative is $\dfrac{1}{1+x^2}$): $\dfrac{dy}{dx}=e^{\tan^{-1}x}\cdot\dfrac{1}{1+x^2}=\dfrac{e^{\tan^{-1}x}}{1+x^2}.$

Answer: $\dfrac{dy}{dx}=\dfrac{e^{\tan^{-1}x}}{1+x^2}.$

9
Worked Example
Differentiate $y=\sqrt{\dfrac{1-\cos x}{1+\cos x}}$ (take $0
Solution

Use half-angle identities: $1-\cos x=2\sin^2\tfrac{x}{2}$ and $1+\cos x=2\cos^2\tfrac{x}{2}$, so the radicand is $\tan^2\tfrac{x}{2}$ and (since $0

Answer: $\dfrac{dy}{dx}=\dfrac{1}{2}\sec^2\dfrac{x}{2}.$

10
Worked Example
If $y=\sin(\log x)$, prove that $x^2 y''+x y'+y=0$.
Solution

$y'=\cos(\log x)\cdot\dfrac{1}{x}=\dfrac{\cos(\log x)}{x}.$ Differentiate again (quotient rule): $y''=\dfrac{-\sin(\log x)\cdot\tfrac1x\cdot x-\cos(\log x)\cdot 1}{x^2}=\dfrac{-\sin(\log x)-\cos(\log x)}{x^2}.$ Then $x^2 y''=-\sin(\log x)-\cos(\log x)$ and $x y'=\cos(\log x)$, so $x^2 y''+x y'+y=-\sin(\log x)-\cos(\log x)+\cos(\log x)+\sin(\log x)=0.$

Answer: $x^2 y''+x y'+y=0.$

11
Worked Example
Verify that $y=Ae^{mx}+Be^{nx}$ has second derivative $y''=m^2 Ae^{mx}+n^2 Be^{nx}$, and check it satisfies $y''-(m+n)y'+mn\,y=0$.
Solution

$y'=mAe^{mx}+nBe^{nx}$ and $y''=m^2Ae^{mx}+n^2Be^{nx}$. Substitute: $y''-(m+n)y'+mn\,y=\big(m^2-(m+n)m+mn\big)Ae^{mx}+\big(n^2-(m+n)n+mn\big)Be^{nx}.$ Each bracket is $0$ (e.g. $m^2-m^2-mn+mn=0$), so the relation holds.

Answer: $y''-(m+n)y'+mn\,y=0.$

Key Points

  • $f'(c)=\lim_{h\to0}\dfrac{f(c+h)-f(c)}{h}$ is the slope of the tangent; differentiable means LHD $=$ RHD.
  • Differentiable $\Rightarrow$ continuous, but continuous does not imply differentiable (corners like $|x|$ at $0$, vertical tangents, jumps all fail).
  • Chain rule: $\dfrac{d}{dx}f(g(x))=f'(g(x))\,g'(x)$; pair it with the product rule $(uv)'=u'v+uv'$ and quotient rule.
  • Exponentials/logs: $\dfrac{d}{dx}e^x=e^x$, $\dfrac{d}{dx}a^x=a^x\log a$, $\dfrac{d}{dx}\log x=\dfrac1x$, $\dfrac{d}{dx}\log_a x=\dfrac{1}{x\log a}$.
  • Inverse trig: $\dfrac{d}{dx}\sin^{-1}x=\dfrac{1}{\sqrt{1-x^2}}$, $\dfrac{d}{dx}\tan^{-1}x=\dfrac{1}{1+x^2}$, $\dfrac{d}{dx}\sec^{-1}x=\dfrac{1}{|x|\sqrt{x^2-1}}$; "co-" partners just add a minus sign.
  • A substitution such as $x=\tan\theta$ or $x=\sin\theta$ often simplifies inverse-trig expressions before differentiating.
  • Second derivative $y''=\dfrac{d^2y}{dx^2}$ is the derivative of $y'$; prove DE relations like $y''+y=0$ by successive differentiation and substitution.
Tap an option to check your answer0 / 4
Q1.$\dfrac{d}{dx}\sin(x^2)=$
Explanation: Chain rule: $\cos(x^2)\cdot 2x$.
Q2.If $f$ is differentiable at $c$, then $f$ is:
Explanation: Differentiability implies continuity.
Q3.$\dfrac{d}{dx}(x^2 e^x)=$
Explanation: Product rule: $2xe^x+x^2e^x=e^x(x^2+2x)$.
Q4.$f(x)=|x|$ at $x=0$ is:
Explanation: Continuous (limit $0$) but the one-sided derivatives differ.