Integral Calculus and Differential Equations › Continuous Compounding and the Exponential Function
Quantitative FinanceAll chapters Integral Calculus and Differential Equations › Continuous Compounding and the Exponential FunctionOne section · Sections in this chapter3 / 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
Continuous compounding is an important application of integral calculus in finance. Interest accrual, compounding, and scheduled crediting depend on the contract. Continuous compounding supplies a mathematical convention for the models below.
Discrete compounding at a constant nominal annual rate , times per year for years, gives the following value at compounding dates, where is an integer:
Each completed period credits interest at rate . The comparison below fixes this nominal quote as frequency changes; between credit dates, its curves use fractional-power interpolation, not continuous crediting. As the compounding frequency increases, moving from annual to quarterly to daily to hourly, this expression approaches a limit. Taking yields continuous compounding:
where:
- : future value of the investment
- : present value (initial investment)
- : Euler's number, the base of natural logarithms
- : continuously compounded annual rate in ; the preceding discrete formula uses the same number as a nominal annual quote, not an effective annual return
- : time in years
The exponential appears because the balance changes in proportion to its current value at a constant rate. A positive rate produces growth, zero rate leaves the balance constant, and a negative rate produces decay. The continuous formula is a limit of multiplicative discrete factors, not literal infinitely frequent contractual payments.
Every solution of with constant has the form . An initial value fixes ; in particular, solves with .
Deriving Continuous Compounding from an Integral
Let's derive the formula for a positive initial balance and constant continuously compounded rate . The balance changes at rate times its current value, growing for and shrinking for :
where:
- : account value at time
- : instantaneous rate of change of account value
- : continuous interest rate
- : interest earned per unit time, proportional to current balance
Solving this differential equation gives an exponential family; the initial balance selects one path. On the positive-balance branch, separation of variables moves the and terms to opposite sides:
Integrating both sides:
Here is the integration constant. Because we assumed a positive balance, exponentiating gives , rather than :
Setting and letting be the initial value:
Therefore, , and the solution is:
The final formula also solves the ODE directly for zero or negative initial values; gives the separate equilibrium . With a time-varying deterministic coefficient, instead gives . Random shocks require a stochastic model rather than this ODE alone.
import numpy as np
# Compare discrete vs continuous compounding
principal = 1000
rate = 0.05 # 5% annual rate
years = np.linspace(0, 20, 100)
# Continuous compounding
continuous_value = principal * np.exp(rate * years)
# Discrete compounding at various frequencies
annual_value = principal * (1 + rate) ** years
quarterly_value = principal * (1 + rate / 4) ** (4 * years)
monthly_value = principal * (1 + rate / 12) ** (12 * years)
daily_value = principal * (1 + rate / 365) ** (365 * years)
The plot demonstrates that as compounding frequency increases, the investment value approaches the continuous compounding limit. After 20 years at 5% interest, the final values illustrate the practical differences:
After 20 years at 5% annual rate: Annual compounding: $2,653.30 Quarterly compounding: $2,701.48 Monthly compounding: $2,712.64 Daily compounding: $2,718.10 Continuous compounding: $2,718.28
While the difference between daily and continuous compounding is small (about $0.19 on a $1,000 investment over 20 years), continuous compounding provides mathematical elegance that simplifies many calculations in quantitative finance.