The change-of-variables formula — also called the substitution rule — is the integral counterpart of the chain rule. Where the chain rule tells you how to differentiate a composition f(g(x)), substitution tells you how to integrate one by converting to a simpler variable. In quant finance, change of variables appears in three essential forms:
Transforming pricing integrals. Computing E[(ST−K)+] under the log-normal distribution requires substituting s=S0e(r−σ2/2)T+σTz to convert the integral over stock prices into an integral over the standard normal variable z. This substitution is what produces the Φ(d1) and Φ(d2) terms in the Black-Scholes formula.
Change of density (Jacobian). When you transform a random variableY=g(X), the density of Y involves the derivative ∣g′(g−1(y))∣−1 — the Jacobian of the inverse transformation. This is how you derive the log-normal density from the normal density: if X∼N(μ,σ2) and Y=eX, the density of Y picks up the factor 1/y from the Jacobian ∣dx/dy∣=1/y.
Change of measure (Girsanov). The most important "change of variables" in quant finance is not a change of spatial variable but a change of probability measure — from the physical measure P to the risk-neutral measure Q. This is accomplished by the Radon-Nikodym derivative dPdQ, which reweights the density inside every expectation. The mathematical structure is the same as a change of variables in an integral, and understanding the deterministic version on this page is prerequisite to understanding the stochastic version in change of measure.
The deterministic substitution rule
Single-variable formula
Let g:[a,b]→R be continuously differentiable, and let f be continuous on the range of g. Then:
∫abf(g(x))g′(x)dx=∫g(a)g(b)f(u)du
where u=g(x) and du=g′(x)dx.
How to use it:
Identify a composition f(g(x)) in the integrand.
Set u=g(x), compute du=g′(x)dx.
Check that g′(x)dx appears in the integrand (or can be arranged to appear).
Sometimes it is easier to substitute x=h(u) (express the old variable as a function of the new one):
∫abf(x)dx=∫h−1(a)h−1(b)f(h(u))h′(u)du
This is used when the integrand has a form like a2−x2 (trigonometric substitution) or when transforming from price space to log-price space.
Change of density (the Jacobian formula)
Transforming random variables
If X is a continuous random variable with density fX(x) and Y=g(X) where g is monotone and differentiable with inverse g−1, then the density of Y is:
fY(y)=fX(g−1(y))dydg−1(y)
The absolute value of the derivative of the inverse — the Jacobian — accounts for the "stretching" or "compression" of the probability mass under the transformation.
Derivation
For monotone increasing g:
P(Y≤y)=P(g(X)≤y)=P(X≤g−1(y))=FX(g−1(y))
Differentiate with respect to y using the chain rule:
fY(y)=fX(g−1(y))⋅dydg−1(y)
For decreasing g, the inequality reverses and you get a minus sign, which the absolute value handles.
The log-normal density derived from the normal
This is the canonical example. Let X∼N(μ,σ2) and Y=eX. Then g(x)=ex, g−1(y)=lny, and dydlny=1/y.
fY(y)=fX(lny)⋅y1=yσ2π1exp(−2σ2(lny−μ)2),y>0
This is precisely the log-normal density. The factor 1/y is the Jacobian, and it is what makes the distribution right-skewed (the exponential transformation stretches the right tail and compresses the left).
Multivariable Jacobian
For a transformation (X1,…,Xn)↦(Y1,…,Yn)=g(X1,…,Xn), the density transforms as:
fY(y)=fX(g−1(y))detJg−1(y)
where Jg−1 is the Jacobian matrix (∂gi−1/∂yj). This is used in multivariate finance when transforming between correlated normals and independent normals (via the Cholesky decomposition), or when switching between Cartesian and polar coordinates in copula models.
Change of measure: the probability version
The Radon-Nikodym derivative
The deepest "change of variables" in quant finance is the change from one probability measure to another. If P and Q are two probability measures on the same space, with Q absolutely continuous with respect to P, then there exists a non-negative random variable L=dPdQ (the Radon-Nikodym derivative) such that:
EQ[f(X)]=EP[f(X)dPdQ]
In integral form:
∫f(x)q(x)dx=∫f(x)L(x)p(x)dx
where p and q are the densities under P and Q. The Radon-Nikodym derivative L(x)=q(x)/p(x) reweights the density, converting expectations under one measure to expectations under another.
Connection to risk-neutral pricing
Under the physical measure P, the stock has drift μ. Under the risk-neutral measure Q, the drift is r (the risk-free rate). The change of measure from P to Q is accomplished by the Radon-Nikodym derivative:
dPdQ=exp(−θWTP−2θ2T)
where θ=(μ−r)/σ is the market price of risk (Sharpe ratio). This exponential martingale reweights the probability of each path: upward paths (where WTP is large and positive) get down-weighted, and downward paths get up-weighted, until the expected return under Q equals the risk-free rate.
By Girsanov's theorem, under Q, the process WtQ=WtP+θt is a standard Brownian motion. This means the stock dynamics become dSt=rStdt+σStdWtQ — the same SDE but with drift r instead of μ.
The entire risk-neutral pricing framework — V0=e−rTEQ[payoff] — is a change-of-measure statement. The option price is computed by changing the integrating measure from P (where we observe the world) to Q (where discounted prices are martingales), using the Radon-Nikodym derivative as the conversion factor.
Numéraire change
More generally, any positive traded asset Nt can serve as a numéraire, and there is a measure QN under which all prices expressed in units of Nt are martingales. The change from one numéraire measure to another is:
dQN1dQN2=N1(T)/N1(0)N2(T)/N2(0)
This is used extensively in interest rate modelling (the forward measure, the swap measure) and in FX option pricing. Each numéraire choice corresponds to a change of variables in the pricing integral, selecting the measure that makes the computation simplest.
Examples and applications
Example 1: substitution in the Black-Scholes integral
The call price under Q is:
C=e−rT∫K∞(s−K)fST(s)ds
where fST is the log-normal density. Substitute s=S0e(r−σ2/2)T+σTz, so ds=sσTdz and the density factor becomes ϕ(z)/sσT (the normal density in z):
C=e−rT∫−d2∞(S0e(r−σ2/2)T+σTz−K)ϕ(z)dz
where −d2 is the value of z at which s=K. This integral splits into two standard normal integrals, giving C=S0Φ(d1)−Ke−rTΦ(d2).
The substitution from price space (s) to standard normal space (z) is what makes the integral tractable. Without it, the log-normal density makes direct integration unwieldy.
Example 2: deriving the density of log-returns
If ST=S0e(μ−σ2/2)T+σTZ where Z∼N(0,1), then the log-return R=ln(ST/S0) is:
R=(μ−σ2/2)T+σTZ
This is a linear transformation of Z, so the change-of-variables formula gives:
fR(r)=fZ(σTr−(μ−σ2/2)T)⋅σT1
which is a N((μ−σ2/2)T,σ2T) density. The Jacobian is 1/σT, which is the reciprocal of the scaling factor.
Example 3: from physical to risk-neutral expectations
Suppose you observe that the stock has physical drift μ=12% and volatility σ=20%, with r=5%. The market price of risk is θ=(0.12−0.05)/0.20=0.35.
Under P, the expected stock price is EP[ST]=S0eμT.
Under Q, the expected stock price is EQ[ST]=S0erT.
The Radon-Nikodym derivative converts between them:
EQ[f(ST)]=EP[f(ST)⋅exp(−0.35WT−20.352T)]
In Monte Carlo simulation, this means you can either simulate under Q directly (with drift r) or simulate under P (with drift μ) and reweight each path by the Radon-Nikodym factor. The former is simpler; the latter is useful when you need expectations under both measures.
Common confusions and pitfalls
Forgetting to change the limits of integration. When substituting u=g(x), the limits must change from [a,b] to [g(a),g(b)]. If g is decreasing, g(a)>g(b) and the limits reverse, which introduces a minus sign (or you can swap them and take the absolute value of the Jacobian).
Confusing the Jacobian direction. When deriving the density of Y=g(X), the Jacobian is ∣(g−1)′(y)∣ — the derivative of the inverse with respect to the new variable. Computing ∣g′(x)∣ instead is the wrong derivative (it's the Jacobian in the opposite direction).
Applying change of measure without checking absolute continuity. The Radon-Nikodym derivative dQ/dP exists only if Q is absolutely continuous with respect to P (every P-null set is also Q-null). If the measures are not equivalent (e.g., one assigns probability to events the other deems impossible), the change of measure fails. In the Black-Scholes framework, P and Q are equivalent (same null sets), but in models with constraints (e.g., absorbing barriers), care is needed.
Thinking change of measure changes the model. The change from P to Q changes the drift but not the volatility and not the calculus rules. Itô's Lemma applies identically under both measures. The −σ2/2 correction in the log-return drift is a consequence of Itô calculus, not of the choice of measure.
Where this goes next
Change of variables connects the integration section to the stochastic calculus and pricing sections:
Chain Rule: Substitution is the integral version of the chain rule, just as integration by parts is the integral version of the product rule.
Change of Measure: The probabilistic change of variables — changing the density inside an expectation via the Radon-Nikodym derivative — is the foundation of risk-neutral pricing.
Log-Normal Distribution: The density is derived from the normal density by the Jacobian formula on this page.
Brownian Motion: Girsanov's theorem is the stochastic version of change of variables applied to the drift of a Brownian motion, converting WtP to WtQ.
References
Stewart, J. (2008). Single Variable Calculus: Early Transcendentals (6th ed.). Thomson Brooks/Cole. Ch. 5 Section 5.5 and Ch. 7 substitution material for change of variables in definite integrals.