Derivation of the Cauchy-Riemann equations with examples