Integration by parts reverses the product rule. Value a growing cash-flow stream, keep its boundary term, and check the zero-rate limit and Itô distinction.
Integration by parts
Integration by parts exchanges an integral of one product for a boundary term minus another integral. It is the product rule read backwards. In finance, it can turn a growing cash-flow rate multiplied by a discount factor into an explicit present-value formula. The boundary term is part of the value; losing it can overwhelm the answer.
The identity, including both endpoints
For continuously differentiable functions u and v on a finite interval [a,b],
For an indefinite integral, write ∫udv=uv−∫vdu and include one arbitrary constant in the final antiderivative. For a definite integral, evaluate the product at upper minus lower endpoint. There is no arbitrary constant in the resulting number.
Choose u so differentiation simplifies it, and choose dv so an antiderivative is available. A polynomial times an exponential is a useful candidate: differentiating the polynomial reduces its degree, while integrating the exponential preserves its form. This is a strategy, not a promise that every product becomes easier.
A revenue stream that ramps up
Consider a hypothetical contract paying continuously over its first two years. With t measured in years, its cash-flow rate is
c(t)=αt,α=10USD/year2,0≤t≤T=2years.
Thus the rate rises from zero to USD 20 per year. The coefficient is USD per year squared because multiplication by time must produce a rate in USD per year. These are continuous receipts: c(t)dt is an amount of cash. They are not one payment of c(T) at maturity.
Both terms have units of USD. Substituting the example's values gives:
Contribution
USD
Boundary term −αTe−rT/r
−361.934967
Residual integral α(1−e−rT)/r2
+380.650328
Present value
18.715361
The large negative boundary contribution does not mean the contract pays negative cash. It is one term in an algebraic decomposition. The original discounted integrand is nonnegative throughout. Dropping the boundary would give USD 380.65 for receipts whose undiscounted total is only USD 20.
Synthetic continuous cash-flow rate rises from zero to USD 20 per year over two years; its discounted rate ends at USD 18.097 per year. The discounted area is USD 18.715361. Integration by parts decomposes it into a negative USD 361.934967 boundary and a positive USD 380.650328 residual.
Original deterministic example. The top panel shows rates in USD/year; the bottom shows amounts in USD on a common signed scale. The boundary and residual must be combined.
Discounting reduces the value to USD 18.72, versus USD 20 without discounting. This is an illustrative valuation under certain cash flows and a flat discount rate. Uncertain revenue or a non-flat term structure needs its own cash-flow and discounting model.
Check the answer where the formula looks fragile
An antiderivative is
F(t)=−αe−rt(rt+r21).
Differentiating it gives F′(t)=αte−rt: the extra exponential and polynomial terms cancel. Subtracting F(0) from F(T) checks both the minus sign and the lower endpoint.
The formula with r2 in the denominator cannot be evaluated by substituting r=0. The original integral can:
PVr=0=∫0Tαtdt=2αT2.
The closed form has the same limit. Its small-rate expansion is
PV=α(2T2−3rT3+8r2T4+⋯).
Near zero, direct subtraction in 1−(1+rT)e−rT can lose numerical precision. Use a stable series or numerical integration rather than interpreting that cancellation as a financial discontinuity. In the example the limit is USD 20, and a positive rate makes the first correction negative.
Repeated integration by parts handles higher polynomial cash rates. Writing In=∫0Ttne−rtdt, for integer n≥1 and r=0,
In=−rTne−rT+rnIn−1,I0=r1−e−rT.
Each step lowers the polynomial degree. Close to zero, this recurrence also needs a stable evaluation method; algebraic correctness alone does not guarantee numerical accuracy.
Ordinary time integration and Itô integration differ
The cash-flow example uses ordinary integration with respect to time. For continuous semimartingales X and Y, the stochastic product formula instead gives
To practise choosing the factors, repeated integration and cyclic cases, use Examples 1–5 of Integration by Parts. The public page is a preview; the full lesson requires membership.
Sources
James Stewart, Single Variable Calculus: Early Transcendentals, 6th edition (Brooks/Cole, 2008), §7.1 — product-rule derivation, factor choice and repeated integration by parts.