The moment you move beyond a single asset, you need multiple integrals. The joint expected value E[f(X,Y)]=∬f(x,y)p(x,y)dxdy is a double integral over the joint density. A basket option on n assets has price:
V=e−rT∫⋯∫(∑wiSi−K)+p(S1,…,Sn)dS1⋯dSn
an n-dimensional integral. Covariance, correlation, and multi-asset risk measures are all defined through multiple integrals. Any quant working with portfolios, correlation products, or multi-factor models must understand how to set up, evaluate, and (when necessary) numerically approximate integrals in multiple dimensions.
Definition
Double integrals
For a function f(x,y) over a region R⊆R2:
∬Rf(x,y)dA=∥Δ∥→0limi,j∑f(xi∗,yj∗)ΔAij
where the region is partitioned into small rectangles of area ΔAij. The limit exists whenever f is continuous (or bounded with discontinuities on a set of measure zero).
Iterated integrals and Fubini's theorem
The key computational tool: a double integral can be evaluated as two nested single integrals.
Fubini's theorem: If f is continuous on a rectangle R=[a,b]×[c,d], then:
The order of integration can be swapped. For more general regions, Fubini's theorem holds whenever ∬∣f∣dA<∞ (the integral converges absolutely).
Why this matters: Swapping the order of integration is not just a computational trick — it is often the difference between a tractable and an intractable calculation. In quant finance, the order in which you integrate over time, price, and measure can dramatically simplify pricing formulas.
n-dimensional integrals
For f:Rn→R:
∫Rnf(x)dx=∫−∞∞⋯∫−∞∞f(x1,…,xn)dx1⋯dxn
By Fubini, this equals any iterated integral (in any order) when f is absolutely integrable.
Change of variables in multiple integrals
The multivariable substitution formula generalises the single-variable change of variables. If x=g(u) is a smooth, invertible transformation:
∫f(x)dx=∫f(g(u))∣detJg(u)∣du
where Jg is the Jacobian matrix of g and ∣detJg∣ is the absolute value of its determinant — the "volume scaling factor."
Polar coordinates (2D)
x=rcosθ, y=rsinθ, ∣detJ∣=r:
∬f(x,y)dxdy=∫02π∫0∞f(rcosθ,rsinθ)rdrdθ
This is how the Gaussian integral ∫e−x2/2dx=2π is evaluated: square the integral, convert to polar coordinates, and the resulting radial integral is elementary.
Cholesky decomposition for correlated normals
In quant finance, the most important change of variables for multiple integrals is the Cholesky decomposition. If Z=(Z1,…,Zn) are independent standard normals and L is the lower-triangular Cholesky factor of the correlation matrix Σ=LLT, then X=LZ is multivariate normal with correlation Σ.
This converts an n-dimensional integral over a correlated density into an n-dimensional integral over independent standard normals — a form suitable for Monte Carlo simulation. The Jacobian of the transformation is ∣detL∣=∏iLii, but in practice you generate Z and transform rather than computing the integral analytically.
If X and Y are independent, p(x,y)=pX(x)pY(y), and the double integral factors into a product of single integrals: E[XY]=E[X]E[Y], so Cov=0.
Multivariate normal density
The density of X∼N(μ,Σ) in Rn is:
p(x)=(2π)n/2∣Σ∣1/21exp(−21(x−μ)TΣ−1(x−μ))
Every probability computed from this density is an n-dimensional integral. The normalisation ∫pdx=1 is a standard multivariable Gaussian integral, evaluated by diagonalising Σ (change of variables to principal components) and factoring into n independent one-dimensional Gaussian integrals.
Independence ↔ factorisation
X and Y are independent if and only if p(x,y)=pX(x)pY(y). When this holds, any double integral factors:
This factorisation is what makes independent models tractable: an n-asset pricing problem reduces to n one-dimensional problems. When assets are correlated, the double (or n-fold) integral does not factor, and the problem is fundamentally harder — this is the "curse of dimensionality."
Examples and applications
Example 1: basket option pricing
A basket call on two assets with weights w1,w2 and joint log-normal distribution:
V=e−rT∬(w1s1+w2s2−K)+p(s1,s2)ds1ds2
The sum w1S1+w2S2 is not log-normal even if S1 and S2 are individually log-normal (sums of log-normals are not log-normal — see Log-Normal Distribution). This integral has no closed-form solution. Practical approaches include moment-matching approximations (approximate the basket as a single log-normal), Monte Carlo with Cholesky-generated correlated normals, and numerical quadrature.
Example 2: bivariate normal probability
The probability that both X>a and Y>b where (X,Y) is bivariate standard normal with correlation ρ:
This is the bivariate normal CDF, often denoted M(a,b;ρ) or Φ2(a,b;ρ). It appears in pricing compound options, options on the best/worst of two assets, and default correlation models. It must be computed numerically (Drezner-Wesolowsky algorithm or Gauss-Hermite quadrature).
Example 3: computing the variance of a portfolio
For a two-asset portfolio with returns Rp=w1R1+w2R2:
Var(Rp)=w12σ12+w22σ22+2w1w2Cov(R1,R2)
The covariance is the double integral Cov(R1,R2)=∬r1r2p(r1,r2)dr1dr2−μ1μ2. Under the multivariate normal assumption, this integral evaluates to ρσ1σ2, giving the familiar formula Var(Rp)=wTΣw.
The curse of dimensionality
As the number of dimensions n grows, numerical evaluation of multiple integrals becomes exponentially harder for grid-based methods (trapezoidal, Simpson's): if you use m points per dimension, the total number of evaluations is mn. For n=50 assets and m=100 points, this is 10050 — astronomically impossible.
This is the curse of dimensionality, and it is the reason Monte Carlo integration dominates multi-asset pricing. Monte Carlo convergence rate is O(1/N) regardless of dimension — 10,000 samples give roughly 1% error whether you have 2 assets or 200. The price is slow convergence, but it is the only feasible approach for high-dimensional integrals.
Variance reduction techniques (antithetic variates, control variates, importance sampling) improve the constant factor without changing the O(1/N) rate.
Common confusions and pitfalls
Forgetting the Jacobian when changing variables. The factor ∣detJ∣ is essential. Omitting it when converting from Cartesian to polar coordinates (missing the r factor) or when transforming correlated normals gives wrong results.
Swapping integration order without checking Fubini's conditions. Fubini's theorem requires absolute integrability. If the integral is only conditionally convergent, swapping the order can change the value. In quant finance, this is rarely an issue (pricing integrands are typically non-negative), but it matters for signed integrands like P&L distributions.
Assuming the basket distribution is log-normal. The sum of correlated log-normals is not log-normal. Treating it as such (e.g., using Black-Scholes with a "basket volatility") introduces approximation error that can be significant, especially for options near the money or with high correlation.
Where this goes next
Multiple integrals connect to:
Numerical Integration: Monte Carlo and quasi-Monte Carlo for high-dimensional integrals.
Change of Variables: The Jacobian-based substitution formula and Cholesky decomposition for correlated normals.
Improper Integrals: Multi-asset expected values are improper integrals over Rn; convergence depends on joint tail behaviour.
Partial Derivatives: Multi-asset Greeks (cross-gammas, correlation sensitivities) are partial derivatives of the multiple integral pricing function.
Normal Distribution: The multivariate normal density and the bivariate normal CDF are the workhorses of multi-asset Gaussian models.
References
Stewart, J. (2008). Single Variable Calculus: Early Transcendentals (6th ed.). Thomson Brooks/Cole. The uploaded resource is single-variable; this note extends the same Riemann-sum construction to multivariable integrals and should be grounded in a multivariable calculus source when available.