Differentiability

Definition (differentiability) open_in_new

For some $E\subseteq\C$, let $f: E\to\C$ and let $x\in E$ be a limit point.

$f$ is differentiable at $x$, with derivative $f'(x)$, if $$ \lim_{y\to x} \frac{f(y) - f(x)}{y-x} = f'(x). $$

Equivalent definitions, assuming $E$ has no isolated points:

  • Using $h=y-x$: $$ f'(x) = \lim_{h\to0} \frac{f(x+h) - f(x)}{h}. $$

  • Best affine approximation exists: there exists $f'(x)$ and $\epsilon(h)$ such that $$ f(x+h) = f(x) + hf'(x) + \epsilon(h) \quad\text{and}\quad \lim_{h\to0} \frac{\epsilon(h)}{h} = 0. $$

  • Continuous error term: there exists $f'(x)$ and $\epsilon(h)$ such that $$ f(x+h) = f(x) + hf'(x) + h\epsilon(h), $$ with $\epsilon(0)=0$ and continuous at $h=0$. (Derivation of equivalence)

Properties of differentiability open_in_new

Lemma (differentiability implies continuity) open_in_new

If $f: E\to\C$ is differentiable at $x$, then $f$ is continuous at $x$.

Proof

Suppose $f,g$ are differentiable at $x$.

  • $f+g$ is differentiable at $x$ and $(f+g)'(x) = f'(x) + g'(x)$ (Proof).

  • $fg$ is differentiable at $x$ and $(fg)'(x) = f'(x)g(x) + f(x)g'(x)$ (Proof).

  • If $f(y)\neq 0$ for all $y\in E$, then $1/f$ is differentiable at $x$ and $(1/f)' = -f'(x)/f(x)^2$ (Proof).

Lemma (chain rule) open_in_new

Suppose $U,V\subseteq\C$ and $f: U\to V, g: V\to\C$ are such that $f$ is differentiable at $a\in U$ and $g$ is differentiable at $b=f(a)\in V$.

Then $g\circ f: U \to \C$ is differentiable at $a$ and $$ (g\circ f)'(a) = g'\big(f(a)\big)\cdot f'(a) $$

Proof

Mean value theorem open_in_new

Lemma (Rolle's theorem) open_in_new

Let $f: [a,b]\to\R$ be continuous on $[a,b]$ and differentiable at $(a,b)$.

If $f(a)=f(b)$, then there exists $c\in(a,b)$ such that $f'(c)=0$.

Proof

Theorem (mean value theorem) open_in_new

Let $f: [a,b]\to\R$ be continuous on $[a,b]$ and differentiable on $(a,b)$.

Then there exists $c\in(a,b)$ such that $$ f(b) - f(a) = (b-a)f'(c). $$

Proof

Equivalently, if $f$ is differentiable on an open interval $I$ containing $a$, then for all $h\in\R$ where $a+h\in I$, there exists $\theta\in(0,1)$ such that $$ f(a+h) = f(a) + hf'(a+\theta h). $$

Corollary (derivative and monotonicity) open_in_new

Let $f: [a,b]\to\R$ be a continuous function which is differentiable on $(a,b)$. Then

  1. if $f'(x)>0$ for all $x\in(a,b)$, then $f$ is strictly increasing;

  2. if $f'(x)\geq 0$ for all $x\in(a,b)$, then $f$ is increasing;

  3. if $f'(x) = 0$ for all $x\in(a,b)$, then $f$ is constant.

Also if $f: \C\to\C$ with $f'(z)=0$ for all $z\in\C$, then $f$ is constant.

Proof

Not true on general sets: Example of differentiable function with derivative 0 but not constant

Theorem (Cauchy's mean value theorem) open_in_new

Let $f,g: [a,b]\to\R$ be a continuous functions which are differentiable on $(a,b)$.

Then there exists $c\in(a,b)$ such that $$ g'(c)\,\big(f(a)-f(b)\big) = f'(c)\,\big(g(a)-g(b)\big).$$

Proof

Theorem (inverse function theorem for differentiability) open_in_new

Suppose $f:[a,b]\to\R$ is a continuous function which is differentiable on $(a,b)$ with $f'(x)>0$ for all $x\in(a,b)$. Let $f(a) = c$ and $f(b)=d$.

Then $f: [a,b]\to[c,d]$ is a bijective function and $f\inv$ is differentiable on $(c,d)$ with $$ (f\inv)'(y) = \frac1{f'\big(f\inv(y)\big)}. $$

Proof

Taylor's theorem open_in_new

Definition (higher derivatives) open_in_new

Suppose a function $f: (a,b)\to\R$ is differentiable on $(a,b)$. If $f'(x)$ is a function differentiable at $x\in(a,b)$, then we say $f$ is twice differentiable at $x$ and write $$f''(x) \equiv f^{(2)}(x) = (f')'(x)$$

Iterate to define $k$-times differentiable and $$ f^{(k)}(x) = (f^{(k-1)})'(x). $$

Definition (smooth function) open_in_new

A function $f: (a,b) \to\R$ is smooth if it is $k$-times differentiable on $(a,b)$ for every $k$.

Theorem (Taylor's theorem) open_in_new

Suppose $f$ and its first $n-1$ derivatives are continuous on $[a,a+h]$, and $f$ is $n$-times differentiable on $(a,a+h)$.

Then $$ f(a+h) = P_{n-1}(a+h) + R_n(a+h) $$ where $P_{n-1}$ is the $(n-1)$-th order Taylor polynomial $$ P_{n-1}(a+h) = \fsum i0{n-1} \frac{h^i}{i!} f^{(i)}(a) $$ and the error term $R_n(h)$ can be written in the form of

  • Lagrange remainder: there exists $\theta\in(0,1)$ such that $$ R_n(a+h) = \frac{h^n}{n!}f^{(n)}(a+\theta h); $$

  • Cauchy remainder: there exists $\theta\in(0,1)$ such that $$ R_n(a+h) = \frac{(1-\theta)^{n-1} h^n}{(n-1)!} f^{(n)}(a+\theta h). $$

  • Integral remainder: if we further assume $f^{(n)}$ is continuous on $x\in[a,a+h]$, then $$ \begin{align*} R_n(a+h) = \frac{h^n}{(n-1)!} \int_{0}^{1} (1-t)^{n-1} f^{(n)}(a+th)\, dt. \end{align*} $$

Proof 1 (Lagrange remainder only) Proof 2 (less motivated) Proof (integral remainder)

  • The integral form can be used to recover Cauchy and Lagrange form of the remainder if the additional assumption is made. (Derivation)

  • $f(h)$ being equal to the Taylor series is generally false, even if $f$ is smooth and the series converges.

  • To show a function equals its Taylor series, we need to show $R_n(h)\to 0$ as $n\to\infty$ for fixed $h$, e.g. Proposition (binomial series).

Complex differentiability is much more restrictive than in the reals, e.g. complex conjugate is not differentiable.

But they have much more properties, e.g. suppose $f: D\to\C$ is complex differentiable on $D=\sb{z\in\C}{|z|<1}$. Then