Quant Memo
Advanced

Complex Analysis and Analytic Functions

Some functions of a complex number are so rigidly well-behaved that knowing them on any tiny patch determines them everywhere — a strong structure that makes them the engine behind fast option-pricing formulas.

Prerequisites: Limits and Continuity, Derivatives and Differentiation Rules

Characteristic-function option-pricing methods — the fast, exact-ish pricing engines used for models like Heston — work by pushing the pricing problem into the complex plane and integrating a complex-valued function there. That only works because the functions involved are extraordinarily well-behaved: unlike an ordinary real function, which can wiggle unpredictably, a complex "analytic" function is so constrained by being differentiable in the complex sense that its entire global behavior is locked in by its values on any arbitrarily small patch. Complex analysis is the study of exactly this rigidity, and it's what makes contour-integration pricing tricks legitimate rather than lucky coincidences.

The analogy: a function that can't help but be smooth everywhere

A real function can be differentiable at every point yet still have a kink hiding in its higher derivatives, or behave wildly once you zoom out. A complex-differentiable ("analytic" or "holomorphic") function has no such freedom: differentiability in the complex sense — where the limit defining the derivative must agree no matter which direction in the plane you approach from — turns out to force the function to be infinitely differentiable, expressible as a power series, and fully determined everywhere by its values on any small open patch. It's the difference between a road that merely doesn't have sharp corners and a road that is provably, permanently straight the instant you know it curves smoothly in even a tiny stretch.

The mechanics, one symbol at a time

A function f(z)f(z) of a complex variable z=x+iyz = x+iy is analytic at a point if it's complex-differentiable there — meaning the limit

f(z)=limh0f(z+h)f(z)hf'(z) = \lim_{h \to 0} \frac{f(z+h)-f(z)}{h}

exists and gives the same answer regardless of the direction hh approaches zero from in the complex plane (unlike a real derivative, where there are only two directions — left and right — a complex derivative must agree across infinitely many directions of approach). Writing f(z)=u(x,y)+iv(x,y)f(z) = u(x,y) + iv(x,y) in real and imaginary parts, this directional-independence forces the Cauchy–Riemann equations:

ux=vy,uy=vx.\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}, \qquad \frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x}.

In plain English: the real and imaginary parts of an analytic function can't move independently — each is fully coupled to the other's rate of change, and this coupling is what forces the extreme regularity: analytic functions are automatically infinitely differentiable and equal to their own Taylor series near any point.

Worked example 1: checking f(z)=z2f(z)=z^2 is analytic

Let f(z)=z2=(x+iy)2=(x2y2)+i(2xy)f(z) = z^2 = (x+iy)^2 = (x^2-y^2) + i(2xy), so u=x2y2u = x^2-y^2 and v=2xyv=2xy. Check Cauchy–Riemann: u/x=2x\partial u/\partial x = 2x and v/y=2x\partial v/\partial y = 2x — equal. Also u/y=2y\partial u/\partial y = -2y and v/x=2y-\partial v/\partial x = -2y — equal. Both conditions hold everywhere, so f(z)=z2f(z)=z^2 is analytic on the whole complex plane, and its derivative is f(z)=2zf'(z) = 2z, exactly matching the naive real-calculus rule — a reassuring consistency check.

Worked example 2: a characteristic function's building block

The Gaussian characteristic function ϕ(u)=eiuμ12σ2u2\phi(u) = e^{iu\mu - \frac12 \sigma^2 u^2} (used constantly in option pricing to encode a normal log-return distribution) is, for fixed μ,σ\mu,\sigma, an analytic function of the complex variable uu — it's built from eze^{z} composed with polynomials, and eze^z is analytic everywhere. Concretely, at μ=0.05,σ=0.2\mu=0.05,\sigma=0.2, evaluating at the real point u=1u=1: ϕ(1)=ei(0.05)0.5(0.04)=e0.02ei0.050.9802(cos0.05+isin0.05)0.9790+0.0490i\phi(1) = e^{i(0.05) - 0.5(0.04)} = e^{-0.02}e^{i0.05} \approx 0.9802\,(\cos 0.05 + i\sin 0.05) \approx 0.9790 + 0.0490i. Because ϕ\phi is analytic, pricing methods (like Carr–Madan) can legally deform the integration path off the real axis into the complex plane — a move that's only mathematically valid because analyticity guarantees no hidden singularities are crossed, letting the contour be shifted to wherever the integral is easiest to compute.

Function explorer
-2222.0
x = 1.00f(x) = 2.000

Think of the real-axis slice shown here as a cross-section of a much richer object: extend x2x^2 to the complex plane and it becomes the fully analytic z2z^2 from the worked example, differentiable from every direction at once, not just left-to-right.

z-plane (grid) f(z)=z² w-plane (curved but angle-preserving)
An analytic map bends the grid into curves but always preserves the angles at which lines cross — no tearing, no folding — the geometric fingerprint of complex differentiability.

What this means in practice

Complex analysis is the theoretical backbone of every "transform method" in derivatives pricing: characteristic-function pricing (Carr–Madan FFT), the residue theorem for evaluating pricing integrals in closed form, and saddle-point asymptotics for tail probabilities all rely on the function being analytic in some strip of the complex plane so contours can be legally deformed. Without analyticity, none of the contour-shifting tricks that make these methods fast would be valid — they'd just be wrong.

A complex function is analytic when it's differentiable in every direction of approach at once, a much stronger condition than real differentiability that forces it to be infinitely smooth and fully determined by its local behavior — this rigidity is exactly what licenses the contour-deformation tricks behind fast option-pricing transforms.

The classic mistake is assuming a formula that "looks complex-differentiable" (built from familiar operations) is analytic everywhere, when it actually has poles or branch cuts — points or lines where it fails to be analytic. Deforming a contour across one of these singularities silently changes the value of the integral (that's exactly what the residue theorem exploits deliberately), so blindly shifting a pricing integral's contour without checking for singularities in between can produce a confidently wrong price.

Related concepts

Practice in interviews

Further reading

  • Ahlfors, Complex Analysis, ch. 2
  • Needham, Visual Complex Analysis, ch. 4
ShareTwitterLinkedIn