Chapter 4 of 6

Differentiability

Derivatives

Definition of Derivative

The derivative of a function $f(x)$ at a point $x = a$ measures the instantaneous rate of change of the function at that point. It is defined as: \[ f'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h} \] if the limit exists.

Geometrically, the derivative represents the slope of the tangent line to the curve $y = f(x)$ at $x = a$.

Interpretation of Derivative
  • If $f'(a) > 0$, the function is increasing at $x = a$.

  • If $f'(a) < 0$, the function is decreasing at $x = a$.

  • If $f'(a) = 0$, the function may have a local maximum, minimum, or horizontal inflection at $x = a$.

Examples of Derivatives

Example 82

{Derivative of a Polynomial} Find the derivative of $f(x) = 3x^3 - 5x^2 + 2x - 7$.

Solution: Using the power rule $\frac{d}{dx}[x^n] = nx^{n-1}$: \[ f'(x) = 9x^2 - 10x + 2 \]

Example 83

{Derivative of a Trigonometric Function} Find the derivative of $f(x) = \sin x + \cos x$.

Solution: Using standard derivatives $\frac{d}{dx}\sin x = \cos x$ and $\frac{d}{dx}\cos x = -\sin x$: \[ f'(x) = \cos x - \sin x \]

Example 84

{Derivative of an Exponential Function} Find the derivative of $f(x) = e^{2x}$.

Solution: Using $\frac{d}{dx} e^{u} = e^u \frac{du}{dx}$, here $u = 2x$, $\frac{du}{dx}=2$: \[ f'(x) = 2 e^{2x} \]

Example 85

{Derivative of a Rational Function} Find the derivative of $f(x) = \frac{1}{x^2}$.

Solution: Rewrite $f(x) = x^{-2}$, then use the power rule: \[ f'(x) = -2 x^{-3} = -\frac{2}{x^3} \]

Example 86

{Derivative Using the Definition} Find the derivative of $f(x) = x^2$ at $x = 3$ using the definition: \[ f'(a) = \lim_{h \to 0} \frac{f(a+h)-f(a)}{h} \]

Solution: Let $a = 3$: \[ f'(3) = \lim_{h \to 0} \frac{(3+h)^2 - 9}{h} = \lim_{h \to 0} \frac{9 + 6h + h^2 - 9}{h} = \lim_{h \to 0} \frac{6h + h^2}{h} = \lim_{h \to 0} (6 + h) = 6 \]

Differentiability

Definition of Differentiability

A function $f(x)$ is said to be differentiable at a point $x = a$ if its derivative exists at that point: \[ f'(a) = \lim_{h \to 0} \frac{f(a+h) - f(a)}{h} \quad \text{exists.} \]

Key Points:

  • If $f$ is differentiable at $x = a$, then it is continuous at $x = a$.

  • The converse is not necessarily true: continuity at $x = a$ does not guarantee differentiability.

  • Geometrically, differentiability means the function has a well-defined tangent at $x = a$.

Geometric Interpretation
  • The derivative $f'(a)$ represents the slope of the tangent line at $x = a$.

  • If the curve has a sharp corner or cusp at $x = a$, it is not differentiable.

  • If the curve has a vertical tangent, $f'(a)$ does not exist, so the function is not differentiable there.

Checking Differentiability at a Point

Rule for Checking Differentiability

To check if $f(x)$ is differentiable at $x=a$:

  1. Check if $f(x)$ is continuous at $x=a$.

  2. Compute the left-hand derivative: \[ f'_-(a) = \lim_{h \to 0^-} \frac{f(a+h) - f(a)}{h} \]

  3. Compute the right-hand derivative: \[ f'_+(a) = \lim_{h \to 0^+} \frac{f(a+h) - f(a)}{h} \]

  4. If $f'_-(a) = f'_+(a)$ (finite), then $f$ is differentiable at $x=a$. Otherwise, it is not.

Example 87

Continuity: $|x|$ is continuous at $0$.

Left derivative: \[ f'_-(0) = \lim_{h \to 0^-} \frac{|h|}{h} = -1 \] Right derivative: \[ f'_+(0) = \lim_{h \to 0^+} \frac{|h|}{h} = 1 \] Since $f'_-(0) \neq f'_+(0)$, $f(x)$ is not differentiable at $0$.

Example 88

Continuity: $x^2$ is continuous everywhere.

Both derivatives: \[ f'(2) = \lim_{h \to 0} \frac{(2+h)^2 - 4}{h} = \lim_{h \to 0}(4+h) = 4 \] Thus, $f(x)$ is differentiable at $x=2$ with slope $4$.

Visualizing Differentiability

Curves Illustration
diagram
Example 89

Continuity: $\sqrt{|x|}$ is continuous at $0$.

Left derivative: \[ f'_-(0) = \lim_{h \to 0^-} \frac{\sqrt{-h}}{h} = -\infty \] Right derivative: \[ f'_+(0) = \lim_{h \to 0^+} \frac{\sqrt{h}}{h} = +\infty \] Since derivatives diverge, $f(x)$ is not differentiable at $0$.

Example 90

\[ f(x) = \begin{cases} x^2, & x \leq 1 \\ 2x-1, & x > 1 \end{cases} \]

Continuity at $x=1$: From left: $f(1^-)=1$, from right: $f(1^+)=1$. Continuous.

Left derivative: \[ f'_-(1) = \lim_{h \to 0^-} \frac{(1+h)^2-1}{h} = 2 \] Right derivative: \[ f'_+(1) = \lim_{h \to 0^+} \frac{(2(1+h)-1)-1}{h} = 2 \] Since $f'_-(1)=f'_+(1)=2$, $f$ is differentiable at $x=1$.

Example 91

{Differentiable Trigonometric Function} Consider $f(x) = \sin x$.

Solution: $f'(x) = \cos x$, which exists for all $x \in \mathbb{R}$.

Conclusion: Differentiable everywhere.