When the world says, ‘Give up,’ hope whispers, ‘Try it one more time,’ Lyndon B. Johnson

Definition. A complex function f is said to be analytic analytic (or holomorphic) at a point $z_0$ if it satisfies any of the following equivalent conditions:
Here the limit must be the same regardless of the direction from which h approaches zero in the complex plane. This is the crucial distinction from real differentiability: the increment $h$ is a complex number that can approach zero along any path — horizontal, vertical, spiral, or otherwise.
The complex exponential function, denoted as $e^z$ or $\exp(z)$, is one of the most important functions in all of mathematics. It is the unique entire function that extends the real exponential function $e^x$ to the complex plane. This function is not only entire but also periodic.
To define the complex exponential function, we seek a function $f: \mathbb{C} \to \mathbb{C}$ that satisfies two key properties:
Let $z = x + iy$ with $x, y \in \mathbb{R}$. Using properties (1) and (2): $f(z) = f(x + iy) \overset{(1)}{=} f(x) \cdot f(iy) \overset{(2)}{=} e^x \cdot f(iy).$
Writing $f(iy) = A(y) + iB(y)$ where $A$ and $B$ are real-valued functions of $y$, $f(z) = e^x A(y) + ie^x B(y),$ so $u(x, y) = e^x A(y)$ and $v(x, y) = e^x B(y)$.
For $f$ to be analytic (differentiable everywhere), its real and imaginary parts must satisfy the Cauchy–Riemann equations.
Computing partial derivatives: $u_x = e^x A(y), \quad u_y = e^x A'(y), \quad v_x = e^x B(y), \quad v_y = e^x B'(y).$
The equation $u_x = v_y$ gives $e^x A(y) = e^x B'(y)$, hence $A(y) = B'(y) (\star)$.
Similarly, the equation $u_y = -v_x$ gives $e^x A'(y) = -e^x B(y)$, hence $A'(y) = -B(y) (\star\star)$.
Differentiating $A(y) = B'(y) (\star)$, we get $B''(y) = A'(y)$ and substituting $A'(y) = -B(y) (\star\star)$: $B''(y) = A'(y) = -B(y) \quad \Longrightarrow \quad B''(y) + B(y) = 0.$
This is a linear, homogeneous, constant-coefficient ODE with characteristic equation $r^2 + 1 = 0$, giving roots $r = \pm i$.
Recall. For complex conjugate roots $a \pm bi$, the general solution is $y(t) = e^{at}(\alpha\cos(bt) + \beta\sin(bt))$, where $\alpha, \beta \in \mathbb{R}$.
With $a = 0$ and $b = 1$ ($r = \pm i$), the general solution is: $B(y) = \alpha\cos y + \beta\sin y, \qquad A(y) =[(\star)] B'(y) = -\alpha\sin y + \beta\cos y.$
From property (2), $f(0) = e^0 = 1$. But $f(0) = e^0 A(0) + ie^0 B(0) = A(0) + iB(0)$, so $A(0) = 1 \quad \text{and} \quad B(0) = 0.$
From $A(0) = 1$: $-\alpha\sin 0 + \beta\cos 0 = \beta = 1$.
From $B(0) = 0$: $\alpha\cos 0 + \beta\sin 0 = \alpha = 0$.
Therefore $A(y) = \cos y$ and $B(y) = \sin y$, and we finally arrive at the definition of the complex exponential function: $\boxed{e^z = e^x(\cos y + i\sin y), \qquad z = x + iy.}$
Write $z_1 = x_1 + iy_1$ and $z_2 = x_2 + iy_2$. Then,
$$ \begin{aligned} e^{z_1}⋅e^{z_2} = &[\text{By definition}] e^{x_1}(cos(y_1) + isin(y_1))⋅e^{x_2}(cos(y_2) + isin(y_2)) \\[2pt] &= e^{x_1 + x_2}\bigl[(\cos y_1\cos y_2 - \sin y_1\sin y_2) + i(\sin y_1\cos y_2 + \cos y_1\sin y_2)\bigr]. \\[2pt] &[\text{Using the angle addition formula for cosine and sine}] = e^{x_1 + x_2}(\cos(y_1 + y_2) + i\sin(y_1 + y_2)) \\[2pt] & = e^{(x_1 + x_2) + i(y_1 + y_2)} = e^{z_1 + z_2}. \qquad \blacksquare \end{aligned} $$The complex exponential restricted to $\mathbb{R}$ recovers the familiar real exponential function.
This shows that the real part of z controls the magnitude of $e^z$, while the imaginary part controls its direction (angle).
The complex exponential never takes the value zero. This is a fundamental distinction from polynomial functions, which (by the Fundamental Theorem of Algebra) always have zeros.
The periodicity of $e^z$ is the fundamental reason why the complex logarithm is multi-valued. If $e^{z_0} = w$, then $e^{z_0 + 2k\pi i} = w$ for every integer $k$, so “$\log w$” has infinitely many possible values.
Writing $\alpha$ in polar form as $\alpha = Re^{i\theta}$ where $R = |\alpha| > 0$ and $\theta = \arg(\alpha)$: $e^z = e^{x+iy} = Re^{i\theta} \quad \Longrightarrow \quad e^x = R, y = \theta + 2k\pi$. Thus, $x = \ln(R)$ and the solutions are: $\boxed{z = \ln(R) + i(\theta + 2k\pi)}, \quad k \in \mathbb{Z}.$
This is effectively the definition of the (multi-valued) complex logarithm $\log(\alpha)$. The solutions form an infinite set of points equally spaced along a vertical line at $x = \ln|\alpha|$, with vertical spacing $2\pi$.
Example. Solve $e^z = 2 + 2i$.
Proof via the Cauchy–Riemann equations. Since $e^z = e^x(cos(y) + isin(y)) = u + iv$, $u = e^x\cos y$ and $v = e^x\sin y$:
$f'(z) = \frac{\partial u}{\partial x} + i\frac{\partial v}{\partial x} = e^x\cos y + ie^x\sin y = e^z. \qquad \blacksquare$
Proof via Power series.
Theorem. If a function $f(z)$ can be represented by a power series $f(z) = \sum_{n=0}^{\infty} a_n(z - z_0)^n$ that converges in a disk $|z - z_0| < R$ (with $R > 0$), then $f$ is analytic within that disk, and its derivative is obtained by differentiating term by term: $f'(z) = \sum_{n=1}^{\infty} n\,a_n(z - z_0)^{n-1}.$
Applying this to $e^z = \sum_{n=0}^{\infty} \frac{z^n}{n!}$ (centered at $z_0 = 0$ with radius of convergence $R = \infty$):
$\frac{d}{dz} e^z = \sum_{n=1}^{\infty} \frac{n z^{n-1}}{n!} = \sum_{n=1}^{\infty} \frac{z^{n-1}}{(n-1)!} \overset{k = n-1}{=} \sum_{k=0}^{\infty} \frac{z^k}{k!} = e^z. \qquad \blacksquare$
Since $(e^z)' = e^z$ and $e^z$ is entire, repeated differentiation yields the same result $(e^z)'' = e^z$, $(e^z)''' = e^z$, and so on — all derivatives of all orders exist and equal $e^z$ itself. This confirms that the complex exponential models processes where the rate of change is proportional to the current state, just like its real counterpart.
The given differential equation is a classic example of a separable differential equation. The equation can be rewritten as $\frac{df}{f} = dz$. Integrating both sides gives: $\int \frac{df}{f} = \int dz \leadsto ln|f| = z + C$
To solve for f, we exponentiate both sides: $|f| = e^{z + C} = e^{z}e^{C}$. Let’s rename the constant $e^{C}$ as A. Since $e^{C}$ is always positive, A can be any non-zero real number. The general solution is: $\boxed{f(z) = Ae^z}$ where $A = e^C$ is an arbitrary nonzero constant.
Now, we use the initial condition f(0) = 1 to find the value of A: $f(0) = A \cdot e^0 = A = 1$. Plugging this value back into the general solution gives us the specific solution: $f(z) = Ae^z = 1e^z = e^z$. This is the unique solution to the initial value problem. This characterization provides yet another way to define the exponential function: it is the unique analytic function satisfying $f' = f$ and $f(0) = 1$.
This is Euler’s formula. It establishes a profound connection between the exponential function and the trigonometric functions, unifying analysis, algebra, and geometry in a single identity.
As the real parameter $y$ varies, the point $e^{iy}$ traces out the unit circle $|z| = 1$ in the complex plane in the counterclockwise direction (it moves around the circle of radius 1 centered at the origin), starting from $e^{i \cdot 0} = 1$.
The parameter $y$ represents the angle (in radians) measured from the positive real axis: $e^{i \cdot 0} = 1$ (the point $(1, 0)$); $e^{i\pi/2} = i$ (the point $(0, 1)$); $e^{i\pi} = -1$ (the point $(-1, 0)$) — this gives the famous identity $e^{i\pi} + 1 = 0$; $e^{i \cdot 3\pi/2} = -i$ (the point $(0, -1)$); $e^{i \cdot 2\pi} = 1$ (return to the start — periodicity).
The complex exponential function can be viewed as a generalization of the unit circle in the complex plane. So instead of thinking of the unit circle as a geometric object, we can think of it as the image of the imaginary axis under the exponential function:
(i) Real axis $\to$ exponential growth/decay. (ii) Imaginary axis $\to$ circular motion. (iii) Complex plane $\to$ combination of both. The exponential function “wraps” the imaginary axis around the unit circle infinitely many times.
This exponential form is extremely useful for performing operations on complex numbers: (i) Multiplication, $z_1·z_2 = (r_1e^{i\theta_1})(r_2e^{i\theta_2}) = r_1r_2e^{i(\theta_1+\theta_1)}$ (to multiply two complex numbers, we multiply their moduli and add their arguments); (ii) Division, $z_1/z_2 = r_1 e^{i\theta_1} / r_2 e^{i\theta_2} = (r_1/r_2) e^{i(\theta_1 - \theta_2)}$; (iii) Power, $z^n = (re^{i\theta})^n = r^n e^{in\theta}$.
These definitions are consistent with the real-valued functions when z is a real number. Since the exponential function $e^z$ is an entire function, and sums, products, scalar multiples, and compositions of entire functions are also entire, it follows that $\cos(z)$ and $\sin(z)$ are entire functions, too. They are analytic everywhere in the complex plane $\mathbb{C}$.
Unlike their real counterparts, the complex sine and cosine are unbounded. For instance, $\sin(iy) = \frac{e^{-y} - e^y}{2i} = i\frac{e^y - e^{-y}}{2} = i\sinh(y)$, which grows without bound as $y \to \pm\infty$. The familiar inequality $|\sin x| \leq 1$ holds only on the real axis.
$\frac{d}{dz}cos(z) = \frac{d}{dz}\frac{eⁱᶻ+e⁻ⁱᶻ}{2} = \frac{ieⁱᶻ-ie⁻ⁱᶻ}{2} = i\frac{eⁱᶻ-e⁻ⁱᶻ}{2} = -\frac{eⁱᶻ-e⁻ⁱᶻ}{2i} = -sin(z)$. Similarly, for the sine function: $\frac{d}{dz}sin(z) = \frac{d}{dz}\frac{eⁱᶻ-e⁻ⁱᶻ}{2i} = \frac{ieⁱᶻ+ie⁻ⁱᶻ}{2i} = \frac{eⁱᶻ+e⁻ⁱᶻ}{2} = cos(z)$. These results are identical to the familiar formulas from real calculus and extend naturally to the complex domain.
For example, the Pythagorean identity,
$$ \begin{aligned} \cos^2 z + \sin^2 z &=\left(\frac{e^{iz} + e^{-iz}}{2}\right)^{\!2} + \left(\frac{e^{iz} - e^{-iz}}{2i}\right)^{\!2} \\[2pt] &=\frac{e^{2iz} + 2 + e^{-2iz}}{4} + \frac{e^{2iz} - 2 + e^{-2iz}}{-4} \\[2pt] &=\frac{(e^{2iz} + 2 + e^{-2iz}) - (e^{2iz} - 2 + e^{-2iz})}{4}\\[2pt] &=\frac{4}{4} = 1. \end{aligned} $$Similarly, the angle addition formulas hold:all $z_1, z_2 \in \mathbb{C}$: $\sin(z_1 + z_2) = \sin z_1\cos z_2 + \cos z_1\sin z_2; \cos(z_1 + z_2) = \cos z_1\cos z_2 - \sin z_1\sin z_2; \sin(z_1 - z_2) = \sin z_1\cos z_2 - \cos z_1\sin z_2.$