Integration is the inverse of differentiation. Where differentiation asks "how fast is this quantity changing?", integration asks "what is the cumulative effect of all those changes?" In quantitative finance, this cumulative perspective appears everywhere:
Expected values. The expected payoff of an option — the quantity you price — is an integral: E[f(ST)]=∫f(s)p(s)ds where p is the density of ST. The Black-Scholes formula is the result of evaluating this integral when ST is log-normally distributed.
Present value of continuous cash flows. A bond paying a continuous coupon c(t) has present value PV=∫0Tc(t)e−r(t)tdt. This is a Riemann integral of the discounted cash flow stream. See Discounting.
Cumulative probabilities from densities. The CDF of the normal distribution, Φ(z)=∫−∞zϕ(t)dt, is an integral of the density. Every probability statement — "the option finishes in the money with probability Φ(d2)" — is computed via integration.
From differential equations to solutions. The Black-Scholes PDE and stochastic differential equations are solved by integration. The SDE dSt=μStdt+σStdWt is shorthand for the integral equation ST=S0+∫0TμStdt+∫0TσStdWt — where the second integral is an Itô integral, a stochastic generalisation of the Riemann integral covered in this section.
This page covers the classical Riemann integral — the deterministic foundation. The stochastic extensions build on it: the Riemann-Stieltjes integral generalises the integrator, and the Itô integral (in Itô's Lemma and Brownian motion) generalises further to stochastic integrators.
The Riemann integral: definition
Intuition: area under a curve
The definite integral ∫abf(x)dx represents the signed area between the graph of f and the x-axis on the interval [a,b]. "Signed" means regions where f>0 contribute positive area and regions where f<0 contribute negative area.
Construction from Riemann sums
Partition the interval [a,b] into n subintervals [xi−1,xi] with a=x0<x1<⋯<xn=b. Choose a sample point xi∗∈[xi−1,xi] in each subinterval. The Riemann sum is:
Rn=i=1∑nf(xi∗)Δxi,Δxi=xi−xi−1
Each term f(xi∗)Δxi is the area of a rectangle with height f(xi∗) and width Δxi. The Riemann integral is the limit of these sums as the partition becomes infinitely fine:
∫abf(x)dx=∥Δ∥→0limi=1∑nf(xi∗)Δxi
where ∥Δ∥=maxiΔxi is the mesh of the partition. The limit must exist and be independent of the choice of sample points xi∗ and the specific partition.
When does the limit exist? A bounded function on [a,b] is Riemann integrable if and only if it is continuous almost everywhere (its set of discontinuities has measure zero). All continuous functions are integrable, as are functions with finitely many jump discontinuities — which covers essentially all functions encountered in quant finance.
Connection to stochastic integration
The Itô integral ∫0Tf(t)dWt is constructed by the same logic: approximate with sums ∑f(ti)(Wti+1−Wti), then take a limit. The crucial difference is that the integrator Wt is a Brownian motion path (nowhere differentiable, infinite variation) rather than a smooth variable x. This forces the limit to be taken in L2 rather than pointwise, and the choice of sample point (left endpoint vs midpoint) matters — left-endpoint gives Itô, midpoint gives Stratonovich. The Riemann integral is the clean deterministic case where none of these subtleties arise.
The Fundamental Theorem of Calculus
The Fundamental Theorem connects integration and differentiation and is, alongside Itô's Lemma, one of the two most important theorems in the calculus toolkit for quants.
Part I: differentiation undoes integration
If f is continuous on [a,b] and F(x)=∫axf(t)dt, then F is differentiable and:
F′(x)=f(x)
The derivative of the "running integral" recovers the original function. In finance: if V(t)=∫0tc(s)ds is the cumulative cash flow received up to time t, then V′(t)=c(t) is the instantaneous cash flow rate.
Part II: integration undoes differentiation
If F is any antiderivative of f (i.e., F′=f), then:
∫abf(x)dx=F(b)−F(a)
This converts the problem of evaluating an integral (a limit of sums) into the much simpler problem of finding an antiderivative and evaluating it at two points.
Finance example: The present value of a continuous coupon stream c paid at constant rate on [0,T], discounted at constant rate r, is:
PV=∫0Tce−rtdt=c[−r1e−rt]0T=rc(1−e−rT)
The antiderivative of ce−rt is −rce−rt, and the Fundamental Theorem turns the integral into a closed-form expression. As T→∞, this converges to c/r — the perpetuity formula.
Properties of the Riemann integral
Linearity
∫ab[af(x)+bg(x)]dx=a∫abf(x)dx+b∫abg(x)dx
Linearity of integration corresponds to linearity of expectation: E[aX+bY]=aE[X]+bE[Y]. Both are consequences of the linearity of limits.
Additivity over intervals
∫acf(x)dx=∫abf(x)dx+∫bcf(x)dx
You can split an integral at any interior point. In finance, this is used to split a cash flow stream into sub-periods (e.g., before and after a coupon date).
Comparison / monotonicity
If f(x)≤g(x) for all x∈[a,b], then ∫abfdx≤∫abgdx.
This is the integral version of the statement "a dominated payoff has a lower price" — if one option always pays less than another, its expected (and hence discounted) value is lower.
Triangle inequality
∫abf(x)dx≤∫ab∣f(x)∣dx
Mean Value Theorem for integrals
If f is continuous on [a,b], there exists c∈(a,b) such that:
∫abf(x)dx=f(c)(b−a)
The integral equals the function value at some interior point times the interval length. This is used in error analysis for numerical integration methods.
This is the integral counterpart of the product rule. It is used constantly in deriving option pricing formulas and in the theory of distributions. A full treatment, including the stochastic version, is in Integration by Parts.
Improper integrals
When the interval is infinite or the integrand is unbounded, the integral is defined as a limit:
Infinite limits: The normal distribution CDF Φ(z)=∫−∞zϕ(t)dt integrates over the entire real line. The expected value of any continuous random variable is an improper integral E[X]=∫−∞∞xf(x)dx.
Unbounded integrands: Some option pricing integrals have integrands that blow up near the strike (e.g., the digital option's delta near expiry). These require careful treatment as improper integrals.
An improper integral converges if the limit exists and is finite; otherwise it diverges. The Gaussian integral ∫−∞∞e−x2/2dx=2π is the fundamental convergent improper integral — it normalises the normal density.
Examples and applications
Example 1: expected payoff of a European call
The price of a European call is:
C=e−rT∫K∞(s−K)fST(s)ds
where fST is the risk-neutral density of ST. Under GBM, ST is log-normal, and this integral can be evaluated in closed form by substituting s=S0e(r−σ2/2)T+σTz and completing the square. The result is the Black-Scholes formula C=S0Φ(d1)−Ke−rTΦ(d2).
Example 2: present value of a continuous coupon bond
A bond paying continuous coupon rate c with face value F and maturity T, discounted at constant rate r:
P=∫0Tce−rtdt+Fe−rT=rc(1−e−rT)+Fe−rT
This is the continuous-time analogue of the discrete bond pricing formula P=∑i=1n(1+r)tic+(1+r)TF.
Example 3: cumulative distribution from density
The probability that a standard normal variable falls below 1.96:
Φ(1.96)=∫−∞1.962π1e−t2/2dt≈0.975
There is no closed-form antiderivative for e−t2/2, so this integral must be computed numerically — see Numerical Integration.
Common confusions and pitfalls
Confusing the integral with the antiderivative. The definite integral ∫abfdx is a number. The indefinite integral ∫fdx=F(x)+C is a family of functions. The Fundamental Theorem connects them, but they are different objects.
Forgetting the limits of integration when changing variables. Under the substitution u=g(x), the limits change from [a,b] to [g(a),g(b)]. Forgetting to update the limits is one of the most common integration errors and appears frequently when transforming between log-price and price integrals in option pricing.
Assuming every function has a closed-form antiderivative. Most functions do not. The Gaussian integral ∫e−x2dx has no elementary antiderivative, which is why Φ(z) must be computed numerically. In practice, most option pricing integrals beyond Black-Scholes require numerical methods.
Treating the Itô integral as a Riemann integral. The stochastic integral ∫0Tf(t)dWt looks like a Riemann-Stieltjes integral, but it cannot be defined pathwise because Brownian motion has infinite total variation. The Itô integral is an L2 limit with different properties (e.g., it is a martingale, its expectation is zero). The Riemann-Stieltjes integral page explains where classical integration breaks down and why Itô's construction is needed.
Where this goes next
This introduction covers the Riemann integral — the simplest and most classical form of integration. The remaining pages in this section build toward the stochastic integral:
Riemann-Stieltjes Integral: Generalises from ∫fdx to ∫fdg for a general integrator g. This is the bridge to stochastic integration and to expected values written as ∫fdF.
Change of Variables: The integral counterpart of the chain rule, with extensions to change of measure in probability — the foundation of risk-neutral pricing.
Numerical Integration: Practical methods for computing integrals that have no closed form, including Monte Carlo simulation.
References
Stewart, J. (2008). Single Variable Calculus: Early Transcendentals (6th ed.). Thomson Brooks/Cole. Ch. 5 Sections 5.1-5.2 (areas, distances, and the definite integral) for Riemann sums and definite integrals.