Lemma (chain rule)

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