What You Will Learn
Use integration to compute the future value and present value of a continuous income stream.
Define consumer willingness to spend as a definite integral, then use it to compute consumer's surplus and producer's surplus.
Money Flowing Continuously
Into an Account
Think about a shop that earns sales revenue every hour of every day. The money doesn't come in one big lump — it trickles in continuously. If this revenue is deposited into a bank account that earns interest, it grows over time.
We call this a continuous income stream. The big question: at the end of N years, how much money has accumulated — including all the interest that kept compounding?
Understanding with a Simple Story
Divide the full term [0, T] into n equal slices, each of width Δt = T/n years. During the j-th slice (around time tj), your business earns income at rate f(tj), so that slice deposits f(tj)·Δt rupees into the account.
The deposit from slice j goes into the bank at time tj. It then earns continuously compounded interest for the remaining (T − tj) years — all the way until the end of the term.
By the continuous compounding formula, the slice deposited at tj becomes f(tj)·er(T−tj)·Δt by year T. Earlier deposits (small tj) have more time → they grow taller. Later deposits barely earn any interest.
Sum the future values of all n slices: Σ f(tj)·er(T−tj)·Δt. As n → ∞ (slices get infinitely thin), this Riemann sum converges to the definite integral:
Future Value of
an Income Stream
If money flows continuously into an account at rate $f(t)$ (PKR/year) and the account earns interest at annual rate $r$ compounded continuously, the future value at the end of year $T$ is:
$$\text{FV} = \int_0^T f(t)\,e^{r(T-t)}\,dt = e^{rT}\int_0^T f(t)\,e^{-rt}\,dt$$
The factor $e^{r(T-t)}$ represents how much each rupee deposited at time t grows by the end of year T.
Example 1 — Imran's Superstore Annuity
Imran owns a superstore in Lahore that generates revenue at a steady rate of PKR 120,000 per year. He deposits this continuously into a savings account earning 8% per year compounded continuously. How much will the account be worth at the end of 2 years?
Example 2 — Growing Revenue Stream
A Karachi tech startup generates revenue at the rate $f(t) = 50{,}000e^{0.1t}$ PKR/year (revenue grows at 10%/year). Interest rate is 6% compounded continuously. Find the future value over 3 years.
Present Value: What Is That
Future Income Worth Today?
Suppose someone offers you a business that will generate income for the next 5 years. What is a fair price to pay for it today? This is the present value question.
The present value of an income stream with rate $f(t)$ over $[0,T]$ at interest rate $r$ compounded continuously is:
$$\text{PV} = \int_0^T f(t)\,e^{-rt}\,dt$$
The discount factor $e^{-rt}$ shrinks future money back to today's value. Note: $\text{FV} = e^{rT}\times\text{PV}$.
Example 3 — Fair Price for a Business
A small factory in Faisalabad is expected to generate income at a constant rate of PKR 80,000/year for 5 years. If the prevailing interest rate is 6% compounded continuously, what is the fair present value of this income stream?
Which Investment Is
Actually Better?
When comparing two investment options, the fair way is to compute the net value = PV of income − initial cost. The higher the net value, the better the investment.
Example 4 — Sana Compares Two Investment Schemes
Sana is deciding between two investment options:
| Option | Cost | Income Rate |
|---|---|---|
| Option A — Tech Startup Stake | PKR 900,000 | $f_1(t)=300{,}000e^{0.03t}$ / year |
| Option B — Fixed Annuity | PKR 1,200,000 | $f_2(t)=400{,}000$ / year (constant) |
The prevailing annual interest rate is 5% compounded continuously. Which option is better over a 5-year term?
Example 5 — Three-Way Comparison
Three investment options are available at 7% interest compounded continuously over a 4-year term:
| Option | Cost | Rate f(t) |
|---|---|---|
| Alpha | PKR 500,000 | $200{,}000$ / yr |
| Beta | PKR 600,000 | $150{,}000e^{0.05t}$ / yr |
| Gamma | PKR 400,000 | $180{,}000e^{-0.02t}$ / yr (declining) |
How Much Are Consumers
Actually Willing to Pay?
The TV Set Story
Imagine a family is willing to pay PKR 50,000 for their first TV. For a second TV (maybe for a different room), they'd only pay PKR 30,000 — it's less urgent. For a third TV, maybe just PKR 5,000. Their demand function captures this declining willingness.
Total willingness to spend for 3 TVs = PKR 50,000 + 30,000 + 5,000 = PKR 85,000. But for a continuous commodity (like grain, fuel, or electricity), we can't just add up a few values — we need to integrate.
If $p = D(q)$ is the demand function (price consumers are willing to pay for the $q$-th unit), then the total willingness to spend for up to $q_0$ units is:
$$\text{WS} = \int_0^{q_0} D(q)\,dq$$
Geometrically, this is the entire area under the demand curve from 0 to q₀.
Example 6 — Rashid's Grain Market
Rashid, a farm manager in Punjab, finds that buyers are willing to pay $p = D(q) = 10(25-q^2)$ rupees per kg when $q$ kg of grain is available. Find the total amount buyers are willing to spend for up to 3 kg.
Example 7 — Electricity Demand
The demand for electricity (in units) in a neighbourhood follows $D(q) = 200 - 0.5q^2$ PKR per unit. Find total willingness to spend for up to 15 units.
Consumers' Surplus:
The "Happy Bargain" Measure
When you go to the market and buy something for less than you were willing to pay, you feel like you got a bargain. That savings — summed across all buyers — is the consumers' surplus.
If $p_0 = D(q_0)$ is the market price at which $q_0$ units are sold, the consumers' surplus is:
$$\text{CS} = \int_0^{q_0} D(q)\,dq - p_0 q_0$$
This equals: what consumers were willing to pay minus what they actually paid.
Geometrically: CS = area under the demand curve above the price line (the teal triangular region in the diagram).
Example 8 — Grain Market CS
Using Rashid's demand function $D(q)=10(25-q^2)$, find the consumers' surplus when 3 kg of grain are sold at the market price.
Example 9 — Electronics Bazaar
The demand for smartphones at a Saddar market follows $D(q)=500-q^2$ (PKR hundreds/unit). The market price is set at PKR 400 hundred. Find (a) the equilibrium quantity $q_0$, and (b) the consumers' surplus.
Example 10 — Hyperbolic Demand
A commodity has demand function $D(q) = \dfrac{100}{q+1}$ PKR/unit. Find consumers' surplus when the market price is PKR 20.
Producer's Surplus:
The Seller's Windfall
The story works in reverse for sellers. A producer might be willing to sell the first unit for as low as PKR 100, the second for PKR 150, and so on — but if the market price is PKR 300, they sell all units at PKR 300. The extra they receive compared to their minimum asking price is the producer's surplus.
If $p_0 = S(q_0)$ is the market price and $p = S(q)$ is the supply function (minimum price producers will accept for the $q$-th unit), the producers' surplus is:
$$\text{PS} = p_0 q_0 - \int_0^{q_0} S(q)\,dq$$
Geometrically: PS = area above the supply curve, below the price line (the gold region).
Example 11 — Wheat Farmers' Surplus
Wheat farmers in Sindh have the supply function $S(q)=q^2+10$ PKR/unit. The market price is set at PKR 35. Find the producers' surplus.
Example 12 — Both Surpluses Together
A commodity has demand $D(q)=40-2q$ and supply $S(q)=4+q$ (both in PKR/unit). Find the equilibrium price and quantity, then compute both CS and PS.
Example 13 — Square Root Supply
Supply function: $S(q)=2\sqrt{q}+8$ PKR/unit. Market price is PKR 16. Find producers' surplus.
Test Yourself
Problem 1 — Future Value
A LUMS alumni's business generates PKR 200,000/year continuously. Interest rate is 5% compounded continuously. Find the future value after 4 years.
Problem 2 — Present Value
A Quetta factory generates PKR 150,000/year for 6 years. At 4% interest compounded continuously, what is the present value?
Problem 3 — Compare Two Options
Option X costs PKR 500,000 and earns $f(t)=120{,}000e^{0.02t}$ / year. Option Y costs PKR 400,000 and earns $f(t)=100{,}000$ / year. At 6% interest over 5 years, which is better?
Problem 4 — Consumer's Surplus — Quadratic Demand
Demand function: $D(q)=100-2q-q^2$. Market sells 5 units. Find consumers' surplus.
Problem 5 — Producer's Surplus — Exponential Supply
Supply function: $S(q)=e^{0.5q}$ PKR/unit. Market price is $e^2$ PKR. Find producers' surplus.
Problem 6 — Growing Income Stream FV
Income rate $f(t)=10{,}000(1+0.1t)$ PKR/year, $r=5\%$, $T=3$ years. Find FV.
Problem 7 — Market Equilibrium + Both Surpluses
Demand $D(q)=60-3q$, Supply $S(q)=2q+10$. Find equilibrium, CS, and PS.