Proposition (Cauchy-Riemann equation)

Let $U\subseteq \C$ be a domain and $f: U\to \C$ be a function. Write $f = u + iv$ where $u=\Re f: U\to \R$ and $v=\Im f: U\to \R$.

$f$ is differentiable at $w=c+id$ with $f'(w) = p+iq$ iff $u$ and $v: U\subseteq \R^2\to \R$ are real-differentiable at $(c,d)$ and satisfies the Cauchy-Riemann equations $$ \begin{align*} u_x = v_y, \qquad -u_y = v_x. \end{align*} $$ In this case, $u_x = v_y = p$ and $-u_y = v_x = q$.

Proof