Quant Memo
Core

Integration Techniques

The main methods for actually computing an integral by hand — substitution and integration by parts — the algebraic toolkit that turns 'this represents an area or an accumulated total' into an actual closed-form number or formula.

Prerequisites: Derivatives and Differentiation Rules

Knowing that an option's fair price is the expected discounted payoff — an integral of the payoff against a probability density — is only half the job. You still have to actually compute that integral to get a number, and most integrals that show up in pricing don't have an obvious antiderivative sitting in front of you. Integration techniques are the systematic methods for turning an integral you can't immediately write down the answer to into one you can, by restructuring the expression algebraically first.

An analogy: unwrapping a nested package

Some integrals are like a small, single, plainly labeled box — you know the answer on sight. Others are like a package wrapped inside another wrapped package: you can't see what's inside until you undo the outer layer first. Integration techniques are the systematic ways of "unwrapping" a complicated integral — substitution repackages the problem in different, simpler variables; integration by parts pulls a product apart into a piece you can integrate directly plus a leftover piece that's hopefully easier than what you started with.

The math, one symbol at a time

Substitution reverses the chain rule: if you spot an inner function g(x)g(x) and its derivative g(x)g'(x) both present in the integrand, set u=g(x)u = g(x), du=g(x)dxdu = g'(x)\,dx, and rewrite the whole integral in terms of uu:

f(g(x))g(x)dx=f(u)du.\int f(g(x))\,g'(x)\,dx = \int f(u)\,du.

In words: change variables so the "inner function and its own rate of change" collapse into a single simpler variable uu, turning a tangled expression into a plain integral of ff.

Integration by parts reverses the product rule:

udv=uvvdu.\int u\,dv = uv - \int v\,du.

In words: split the integrand into two pieces, uu (which you'll differentiate, hopefully making it simpler) and dvdv (which you'll integrate, hopefully staying manageable) — the original integral becomes a simple product uvuv minus a new, hopefully easier, integral vdu\int v\,du.

Worked example 1: substitution for a discounting integral

Compute 010e0.05tdt\int_0^{10} e^{-0.05t}\,dt (the total discount factor accumulated continuously over 10 years at a 5% rate). Let u=0.05tu = -0.05t, so du=0.05dtdu = -0.05\,dt, i.e. dt=20dudt = -20\,du. The integral becomes eu(20)du=20eu=20e0.05t\int e^u \cdot(-20)\,du = -20e^u = -20e^{-0.05t}, evaluated from 0 to 10: 20e0.5(20e0)=20(0.6065)+20=12.13+20=7.87-20e^{-0.5} - (-20e^0) = -20(0.6065) + 20 = -12.13 + 20 = 7.87. So the integral equals approximately 7.87 — the substitution turned an integral with a messy exponent into one of the most basic integrals there is, eudu\int e^u\,du.

Worked example 2: integration by parts for a duration-like integral

Compute 05te0.1tdt\int_0^{5} t\,e^{-0.1t}\,dt (relevant to computing a bond's Macaulay duration, which weights each cash flow's timing by its discounted size). Set u=tu = t (so du=dtdu = dt) and dv=e0.1tdtdv = e^{-0.1t}dt (so v=10e0.1tv = -10e^{-0.1t}). Then udv=uvvdu=10te0.1t10e0.1tdt=10te0.1t+100(e0.1t)(1)\int u\,dv = uv - \int v\,du = -10t\,e^{-0.1t} - \int -10e^{-0.1t}\,dt = -10t\,e^{-0.1t} + 100(-e^{-0.1t}) \cdot(-1); carefully, 10e0.1tdt=100e0.1t\int -10 e^{-0.1t}dt = 100e^{-0.1t}, giving the antiderivative 10te0.1t100e0.1t-10te^{-0.1t} - 100e^{-0.1t}. Evaluating from 0 to 5: at t=5t=5, 10(5)e0.5100e0.5=(50100)(0.6065)=90.98-10(5)e^{-0.5} - 100e^{-0.5} = (-50-100)(0.6065) = -90.98; at t=0t=0: 0100=1000 - 100 = -100. Result: 90.98(100)=9.02-90.98 - (-100) = 9.02. The product-form integrand te0.1tt \cdot e^{-0.1t} — which had no obvious single antiderivative — was pulled apart by parts into pieces that each integrate cleanly.

∫ e^(-0.05t) dt = area = 7.87
The definite integral is literally the shaded area under the curve — substitution and integration by parts are algebraic shortcuts to compute that area exactly, without approximating it numerically.
∫ t · e^(-0.1t) dt uv term ∫v du term
Integration by parts trades one hard product integral for a simple leftover term minus a new integral that is, ideally, easier to finish.

What this means in practice

Continuous discounting, duration and convexity formulas, and the Black-Scholes derivation all involve integrals that need exactly these two techniques (or their probabilistic cousins, like the The Itô Integral in stochastic calculus) to reduce to closed form. Even where a pricing model is ultimately solved numerically, recognizing which piece of a formula is a standard integral — and simplifying it by hand first — often turns an expensive numerical integration into an exact, instant closed-form answer.

Substitution reverses the chain rule (repackaging the integral into a simpler variable), and integration by parts reverses the product rule (trading a hard product integral for a simple term minus an easier new integral) — together they solve the large majority of integrals that show up in closed-form pricing formulas.

Integration by parts requires choosing which factor is uu and which is dvdv wisely — picking the wrong split can make the new integral vdu\int v\,du harder than the one you started with, not easier. A common guideline (mnemonic "LIATE": logarithmic, inverse trig, algebraic, trigonometric, exponential, roughly in that priority order for choosing uu) helps, but blindly applying it without checking whether the resulting vv and dudu are actually simpler is a frequent source of getting stuck partway through a derivation.

Related concepts

Practice in interviews

Further reading

  • Spivak, Calculus, ch. 13-19
ShareTwitterLinkedIn