Integral Calculus and Differential Equations › Integration Techniques for Finance
Quantitative FinanceAll chapters Integral Calculus and Differential Equations › Integration Techniques for FinanceOne section · Sections in this chapter4 / 14 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The following examples use several integration techniques. They are useful when a model lacks a convenient antiderivative. We begin with substitutions and products before turning to numerical integration.
Integration by Substitution
Integration by substitution reverses the chain rule of differentiation, allowing us to simplify integrals by changing variables. The core insight is that a complex integrand might become simple under the right transformation. If is a differentiable function and is continuous, then:
where .
The power of substitution lies in recognizing when an integrand contains a function and its derivative: the signature of the chain rule applied in reverse. When we spot this pattern, we can simplify the integral by treating the inner function as a new variable.
Consider pricing a bond with continuous coupon payments where the coupon rate decays exponentially. This structure might arise when modeling a company whose cash flows are expected to decline over time. If the coupon rate at time is and the discount factor is , we need to compute the present value of this decaying stream of payments:
where:
- : initial coupon cash-flow rate at , in currency per year
- : decay rate of the coupon (how fast it decreases)
- : risk-free discount rate
- : maturity time
The present value of coupons from to is:
Here we used to combine the exponentials. When , substitution with gives the first branch below. At , the integrand is the constant :
For the usual nonnegative discount and decay rates, combines the two forces that reduce future coupon value. For , the finite perpetuity limit exists only when . At equality the value grows linearly as ; when , it grows exponentially rather than converging. A zero stream has value zero for every rate.
Integration by Parts
Integration by parts reverses the product rule, enabling us to integrate products of functions by transferring the derivative from one factor to another. This technique is especially valuable when one function becomes simpler upon differentiation while the other has a known antiderivative. For continuously differentiable functions and :
where:
- : a function chosen to simplify when differentiated
- : an antiderivative of the factor represented by , so
- : the differential of
- : the differential of
The strategy is to choose and so that is simpler than the original integral. A useful mnemonic for choosing is LIATE (Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential), which suggests the order of preference for what to differentiate.
This technique is important when integrating products, especially in option pricing where payoffs multiply probability densities. When computing expected values, we often encounter integrals of the form , where is some probability density.
For an option-pricing application, let and be the CDF and density of a nonnegative terminal price . Provided the expectation is finite and as , integration by parts turns a call's expected payoff into a tail-probability integral. Choose
Then the boundary term is explicit:
Consider computing the expected payoff of a call option under a uniform distribution (a simplified model for illustration). If the stock price at expiration is uniformly distributed on with strike , the expected payoff is:
Direct integration gives the same value as integrating the uniform survival function from 100 to 120:
from scipy import integrate
# Expected call option payoff under uniform distribution
def call_payoff_density(s, strike=100, lower=80, upper=120):
"""Payoff times probability density for uniform distribution."""
if not np.isfinite([lower, upper, strike]).all() or upper <= lower:
raise ValueError("Require finite bounds and strike, with upper > lower")
if s < lower or s < strike or s > upper:
return 0
return (s - strike) * (1 / (upper - lower))
expected_payoff, _ = integrate.quad(call_payoff_density, 80, 120)Expected call option payoff: $5.00

The Gaussian Integral
The Gaussian integral is fundamental to quantitative finance because normal distributions appear throughout risk modeling and option pricing. Some mean-variance analyses assume normal arithmetic returns; the mean-variance criterion itself uses means and covariances rather than requiring normality. Under Black-Scholes, continuously compounded (log) returns are normal and terminal prices are lognormal; other option models need not use normal returns. In each normal-model setting, we encounter integrals involving the exponential of a quadratic. The basic Gaussian integral states:
For this particular unnormalized Gaussian, the area is ; changing its height or width changes that area. One derivation squares the integral and integrates over the plane. Polar coordinates give , so the positive original integral is .
More generally, for the standard normal density:
This integral equals 1 because it represents the total probability under the standard normal density. A probability density, when one exists, integrates to 1. Discrete probability masses are normalized by summation; more generally, a probability measure assigns total mass 1 to its sample space. The factor is precisely the normalization constant that ensures this property.
The cumulative distribution function of the standard normal:
where:
- : cumulative distribution function (CDF) of the standard normal distribution
- : upper limit of integration, representing the number of standard deviations
- : dummy variable of integration
- : the standard normal probability density function
has no expression in elementary functions. It can be written with the special function as and is evaluated numerically in practice. It appears directly in the Black-Scholes formula for option pricing, where call and put prices are expressed in terms of and .


Standard Normal CDF Values: ------------------------------ Φ(-2) = 0.022750 Φ(-1) = 0.158655 Φ( 0) = 0.500000 Φ( 1) = 0.841345 Φ( 2) = 0.977250
The value means that a standard normal variable falls below with probability about 2.3%. Under a model in which a return is normal and has been standardized by subtracting its mean and dividing by its standard deviation, this is the model probability of a return more than two standard deviations below its mean.