CONTENTS

Fourier Series and Transforms

Motivation: why this matters in quant finance

The Fourier transform is the single most practically important "advanced" mathematical tool for working quants beyond basic calculus and probability. Its role in finance:

  1. Characteristic function pricing. Many stochastic volatility and jump models (Heston, variance-gamma, CGMY) do not have closed-form densities, but they do have closed-form characteristic functions. The option price is recovered by an inverse Fourier transform. This is the standard calibration method for stochastic vol models.
  2. FFT-based option pricing (Carr-Madan). The Fast Fourier Transform (FFT) computes option prices across an entire grid of strikes simultaneously, turning what would be thousands of separate numerical integrations into a single O(NlogN)O(N \log N) computation. This makes real-time calibration of vol surfaces feasible.
  3. Spectral analysis of time series. Fourier analysis decomposes a signal into frequency components, detecting periodicity, seasonality, and cycles in financial data.

Fourier series

Definition

A periodic function f(x)f(x) with period 2L2L can be represented as:

f(x)=a02+n=1[ancosnπxL+bnsinnπxL]f(x) = \frac{a_0}{2} + \sum_{n=1}^{\infty}\left[a_n\cos\frac{n\pi x}{L} + b_n\sin\frac{n\pi x}{L}\right]
where the Fourier coefficients are:
an=1LLLf(x)cosnπxLdx,bn=1LLLf(x)sinnπxLdxa_n = \frac{1}{L}\int_{-L}^{L} f(x)\cos\frac{n\pi x}{L}\,dx, \qquad b_n = \frac{1}{L}\int_{-L}^{L} f(x)\sin\frac{n\pi x}{L}\,dx

Equivalently, in complex exponential form:

f(x)=n=cneinπx/L,cn=12LLLf(x)einπx/Ldxf(x) = \sum_{n=-\infty}^{\infty} c_n\,e^{in\pi x/L}, \qquad c_n = \frac{1}{2L}\int_{-L}^{L} f(x)\,e^{-in\pi x/L}\,dx
The Fourier series decomposes a function into a sum of sinusoidal components at different frequencies. Unlike Taylor series (which approximate locally around a point), Fourier series approximate globally over an entire period.

Convergence

If ff is piecewise smooth, the Fourier series converges to f(x)f(x) at every point where ff is continuous, and to 12[f(x)+f(x+)]\frac{1}{2}[f(x^-) + f(x^+)] at jump discontinuities.
Parseval's theorem: 12LLLf(x)2dx=n=cn2\frac{1}{2L}\int_{-L}^{L} |f(x)|^2\,dx = \sum_{n=-\infty}^{\infty} |c_n|^2. The "energy" of the signal equals the sum of energies in each frequency component.

The Fourier transform

Definition

For a non-periodic function f:RRf: \mathbb{R} \to \mathbb{R} (or C\mathbb{C}), the Fourier transform is:
f^(ξ)=F{f}(ξ)=f(x)e2πiξxdx\hat{f}(\xi) = \mathcal{F}\{f\}(\xi) = \int_{-\infty}^{\infty} f(x)\,e^{-2\pi i \xi x}\,dx
and the inverse Fourier transform recovers ff:
f(x)=f^(ξ)e2πiξxdξf(x) = \int_{-\infty}^{\infty} \hat{f}(\xi)\,e^{2\pi i \xi x}\,d\xi

(Convention varies by field; quant finance typically uses the convention f^(ξ)=f(x)eiξxdx\hat{f}(\xi) = \int f(x)e^{i\xi x}\,dx with 1/(2π)1/(2\pi) in the inverse. The substance is identical.)

The Fourier transform extends Fourier series from periodic to non-periodic functions, replacing the discrete sum cneinπx/L\sum c_n e^{in\pi x/L} with a continuous integral f^(ξ)e2πiξxdξ\int \hat{f}(\xi)e^{2\pi i\xi x}\,d\xi.

Key properties

PropertyTime domainFrequency domain
Linearityaf+bgaf + bgaf^+bg^a\hat{f} + b\hat{g}
Shiftingf(xa)f(x - a)e2πiaξf^(ξ)e^{-2\pi i a\xi}\hat{f}(\xi)
Scalingf(ax)f(ax)$\frac{1}{
Derivativef(x)f'(x)2πiξf^(ξ)2\pi i\xi\,\hat{f}(\xi)
Convolution(fg)(x)(f * g)(x)f^(ξ)g^(ξ)\hat{f}(\xi)\cdot\hat{g}(\xi)
The convolution theorem is crucial: convolution in the time/space domain becomes multiplication in the frequency domain. Since the density of a sum of independent random variables is the convolution of their densities, the Fourier transform of the sum's density is the product of the individual Fourier transforms — this is why characteristic functions multiply for independent sums.

The characteristic function

Definition

The characteristic function of a random variable XX is:
φX(t)=E[eitX]=eitxfX(x)dx\varphi_X(t) = \mathbb{E}[e^{itX}] = \int_{-\infty}^{\infty} e^{itx}\,f_X(x)\,dx
This is the Fourier transform of the density fXf_X (up to sign convention). Unlike the MGF, the characteristic function always exists because eitx=1|e^{itx}| = 1 for real tt and xx, so the integral converges for any distribution.

Key properties

  • φX(0)=1\varphi_X(0) = 1 always.
  • φX(t)=φX(t)\varphi_X(-t) = \overline{\varphi_X(t)} (conjugate symmetry).
  • Moments: E[Xn]=1inφX(n)(0)\mathbb{E}[X^n] = \frac{1}{i^n}\varphi_X^{(n)}(0) (when they exist).
  • Independence: if X,YX, Y are independent, φX+Y(t)=φX(t)φY(t)\varphi_{X+Y}(t) = \varphi_X(t) \cdot \varphi_Y(t).

Key characteristic functions

DistributionφX(t)\varphi_X(t)
N(μ,σ2)\mathcal{N}(\mu, \sigma^2)eiμtσ2t2/2e^{i\mu t - \sigma^2 t^2/2}
Poisson(λ\lambda)eλ(eit1)e^{\lambda(e^{it} - 1)}
Exponential(λ\lambda)λ/(λit)\lambda/(\lambda - it)
Heston (log-price)Closed form in terms of tt, vol-of-vol, correlation, mean reversion

The Heston characteristic function is the key to the Heston model's practical utility: although the density has no closed form, the characteristic function does, enabling Fourier-based pricing.

Fourier pricing methods

The Gil-Pelaez inversion

The CDF of XX can be recovered from the characteristic function:

FX(x)=121π0Re[eitxφX(t)it]dtF_X(x) = \frac{1}{2} - \frac{1}{\pi}\int_0^{\infty} \text{Re}\left[\frac{e^{-itx}\varphi_X(t)}{it}\right]dt

This expresses the CDF (and hence tail probabilities) as a single one-dimensional integral, even when the density has no closed form.

The Carr-Madan formula

For a European call with strike K=ekK = e^k (log-strike kk), the price is:

C(k)=eαkπ0eivkψ(v)dvC(k) = \frac{e^{-\alpha k}}{\pi}\int_0^{\infty} e^{-ivk}\,\psi(v)\,dv

where ψ(v)\psi(v) is a modified characteristic function incorporating the risk-free rate, dampening parameter α\alpha, and the characteristic function of the log-price.

The key insight: this integral has the form of an inverse Fourier transform, so it can be evaluated using the Fast Fourier Transform (FFT), which computes NN values simultaneously in O(NlogN)O(N\log N) operations. Instead of computing one option price per numerical integration, you get prices for an entire grid of NN strikes in a single FFT call.
Practical impact: Calibrating a stochastic vol model (e.g., Heston) to an implied vol surface with 50–100 strikes and 5–10 maturities requires evaluating hundreds of option prices. With Carr-Madan + FFT, this takes milliseconds instead of seconds — fast enough for real-time calibration on a trading desk.

The COS method

An alternative Fourier method that expands the density in a cosine series:

f(x)k=0N1Akcos(kπxaba)f(x) \approx \sum_{k=0}^{N-1} A_k \cos\left(k\pi\frac{x - a}{b - a}\right)

where the coefficients AkA_k are computed from the characteristic function. The COS method is often faster and more accurate than Carr-Madan for individual option prices and is particularly efficient for early-exercise (American/Bermudan) options via backward induction in the Fourier domain.

The Discrete Fourier Transform (DFT) and FFT

DFT

For a sequence {x0,x1,,xN1}\{x_0, x_1, \ldots, x_{N-1}\}:

Xk=n=0N1xne2πikn/N,k=0,1,,N1X_k = \sum_{n=0}^{N-1} x_n\,e^{-2\pi ikn/N}, \quad k = 0, 1, \ldots, N-1

This is a discrete approximation to the continuous Fourier transform. The inverse DFT recovers {xn}\{x_n\} from {Xk}\{X_k\}.

FFT

The Fast Fourier Transform (Cooley-Tukey algorithm) computes the DFT in O(NlogN)O(N\log N) operations instead of O(N2)O(N^2). For N=4096N = 4096 (a typical grid size in Carr-Madan), this is a speedup of roughly 300×.

In quant finance, the FFT is used in Carr-Madan pricing, COS method pricing, spectral analysis of return time series, and fast convolution for loss distribution aggregation in credit risk.

Examples and applications

Example 1: Heston model calibration

The Heston model has parameters {v0,κ,θ,ξ,ρ}\{v_0, \kappa, \theta, \xi, \rho\} (initial variance, mean reversion speed, long-run variance, vol-of-vol, correlation). Calibration minimises:

i(Cmodel(Ki,Ti;params)Cmarket(Ki,Ti))2\sum_{i} \left(C_{\text{model}}(K_i, T_i; \text{params}) - C_{\text{market}}(K_i, T_i)\right)^2

Each CmodelC_{\text{model}} is computed via Carr-Madan (FFT) or COS method using the Heston characteristic function. The optimiser calls this pricing routine hundreds of times during calibration. Without Fourier methods, this would be computationally intractable.

Example 2: recovering the density from the characteristic function

Given the characteristic function φ(t)\varphi(t) of a variance-gamma process, the density is:

f(x)=12πeitxφ(t)dtf(x) = \frac{1}{2\pi}\int_{-\infty}^{\infty} e^{-itx}\varphi(t)\,dt
This improper integral is computed numerically (truncating at t=Tmax|t| = T_{\max} and discretising). The result gives the full density, from which you can compute any option price, risk measure, or probability.

Example 3: why characteristic functions multiply

If XX and YY are independent with log-prices x=lnS1x = \ln S_1, y=lnS2y = \ln S_2, then:

φX+Y(t)=E[eit(X+Y)]=E[eitX]E[eitY]=φX(t)φY(t)\varphi_{X+Y}(t) = \mathbb{E}[e^{it(X+Y)}] = \mathbb{E}[e^{itX}]\mathbb{E}[e^{itY}] = \varphi_X(t)\varphi_Y(t)
In the Fourier domain, adding independent random variables is just multiplying their characteristic functions. This is the reason Fourier methods are natural for models built from sums of independent components (compound Poisson, Lévy processes, variance-gamma).

Common confusions and pitfalls

"The characteristic function is just the MGF with itit instead of tt." Structurally yes (φ(t)=M(it)\varphi(t) = M(it)), but the crucial difference is that eitx=1|e^{itx}| = 1 while etx|e^{tx}| can be infinite. The CF always exists; the MGF may not. For heavy-tailed models (Student's tt, stable distributions), you must use the CF.
"Fourier methods are only for European options." The COS method extends to early-exercise options via backward induction in the Fourier domain. Barrier options, Bermudans, and some path-dependent options can also be priced using Fourier techniques with appropriate modifications.
"The FFT gives exact prices." The FFT discretises and truncates the Fourier integral, introducing truncation error and aliasing. The dampening parameter α\alpha in Carr-Madan must be chosen carefully — too small and the integrand decays slowly; too large and numerical precision suffers.

Where this goes next

Fourier methods connect to:

  • Power Series: The characteristic function is the complex analogue of the MGF, which is a power series. When the MGF exists, φ(t)=M(it)\varphi(t) = M(it).
  • Taylor Series: Small-tt expansion of the CF recovers moments; the COS method is a cosine-series (Fourier) expansion of the density.
  • Numerical Integration: Fourier pricing reduces to evaluating a one-dimensional integral, computed by quadrature or FFT.
  • Change of Variables: The Fourier transform is a change of representation from the "price domain" to the "frequency domain."
  • Normal Distribution: The Gaussian CF eiμtσ2t2/2e^{i\mu t - \sigma^2 t^2/2} is the simplest non-trivial example and the building block for many models.
  • Asymptotic Expansions: When the Fourier integral cannot be computed exactly, saddle-point and stationary-phase approximations provide asymptotic results.

References

  • Stewart, J. (2008). Single Variable Calculus: Early Transcendentals (6th ed.). Thomson Brooks/Cole. The uploaded single-variable resource does not substantially cover Fourier analysis; this note should be grounded in a dedicated Fourier/analysis source when one is added.
Fourier Series and Transforms | q4quant.studio