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:

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

provided this limit exists. Geometrically it is the slope of the tangent at $\big(c,f(c)\big)$.

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$). Corners and sharp points break differentiability.

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$
$e^{x}$$e^{x}$$\ln x$$\tfrac1x$

The chain rule

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

$$\frac{dy}{dx}=f'\big(g(x)\big)\cdot g'(x).$$

Differentiate the outer function, keep the inside, then multiply by the derivative of the inside. Combined with the product rule $(uv)'=u'v+uv'$ and quotient rule, this handles almost every function in the chapter.

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.$

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

$\dfrac{dy}{dx}=\cos(x^2)\cdot 2x = 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).$

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.

Key Points

  • $f'(c)=\lim_{h\to0}\dfrac{f(c+h)-f(c)}{h}$ = slope of the tangent.
  • Differentiable $\Rightarrow$ continuous; continuous does not imply differentiable (e.g. $|x|$ at $0$).
  • Chain rule: $\dfrac{d}{dx}f(g(x))=f'(g(x))\,g'(x)$.
  • Product rule $(uv)'=u'v+uv'$; quotient rule $\left(\tfrac uv\right)'=\dfrac{u'v-uv'}{v^2}$.
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.