Single-Variable-Calculus ยท Unit 14 ยท Video 4 ยท Interactive Practice
Riemann Sums: the Definite Integral and a Year of Loans
IKey Formulas
Formula
Name
What you need
ฮx=nbโaโ
Width of each piece
Interval [a,b] cut into n equal pieces
i=1โnโf(ciโ)ฮx
Riemann sum
A sample point ciโ in piece i
โซabโf(x)dx=nโโlimโi=1โnโf(ciโ)ฮx
Definite integral
Continuous f; any choice of the ciโ
โซ01โer(1โt)f(t)dt
Total owed at the end of the year
Borrowing rate f(t), interest rate r per year
Key Insight: The dx in an integral is what the width ฮx becomes in the limit, so the integral carries the units of f times the units of x: dollars per year times years gives dollars.
IIVisualization 1 โ Thin Rectangles, One Limit
For x2 on [0,2], left, right and midpoint staircases all close in on โซ02โx2dx=38โ.
IIIVisualization 2 โ A Year of Daily Loans
Total borrowed is a Riemann sum of rate times time step; with daily steps it is nearly โซ01โf(t)dt.
๐ก The rate here is f(t)=100,000+600,000t(1โt)2 dollars per year, whose integral over [0,1] is exactly 150,000 dollars.
IVVisualization 3 โ From Borrowed to Owed
A loan taken at time t grows for 1โt years, so the year-end debt weights f(t) by er(1โt).
VQuiz Questions
Problem 1 ยท A Right-Endpoint Riemann Sum
Given:f(x)=x2 on [1,3], cut into n=4 equal pieces, with each sample point ciโ the right endpoint of its piece โ find the Riemann sum โi=14โf(ciโ)ฮx.
โ Correct!ฮx=21โ, the right endpoints are 1.5,2,2.5,3, and 21โ(2.25+4+6.25+9)=10.75.
โ Those are the left endpoints.1,1.5,2,2.5 give 6.75; the right endpoint of piece i is ciโ=1+2iโ, so the samples are 1.5,2,2.5,3.
โ The heights are right, but each rectangle's area is height times width. Multiply 2.25+4+6.25+9=21.5 by ฮx=21โ.
โ That is the limit, not this sum.326โ is the area โซ13โx2dx; with only 4 right-endpoint rectangles on a rising curve the sum overshoots it.
โ Not quite. Find ฮx=43โ1โ, list the right endpoints, then add f(ciโ)ฮx.
Show solution
The width of each piece is
ฮx=nbโaโ=43โ1โ=21โ.
The right endpoint of piece i is ciโ=1+iฮx, so c1โ,c2โ,c3โ,c4โ=1.5,ย 2,ย 2.5,ย 3. Then
Because x2 rises across each piece, the right endpoint gives the tallest rectangle, so 10.75 is larger than the exact area โซ13โx2dx=326โโ8.67; the left-endpoint sum, 6.75, is smaller.
Problem 2 ยท Keep Track of the Units
Given: A business borrows at a constant rate of $73,000 per year, with t measured in years, and its bank adds up the daily pieces โi=1365โf(365iโ)ฮt โ find the correct time step and the total borrowed over the year.
โ Correct! Each day borrows $73,000 per year times 3651โ year, which is $200, and 365 such days make $73,000.
โ That is a single term of the sum. $200 is one day's piece f(365iโ)ฮt; the total adds all 365 of them.
โ The units do not match. The rate is in dollars per year, so ฮt must be in years: one day is 3651โ year, not 1. Using 1 inflates the total 365-fold.
โ Not quite. Check that (dollars per year) times (time step) comes out in dollars.
Show solution
Since t is in years and f is in dollars per year, the time step must be in years: one day is ฮt=3651โ year. Then each term is
f(365iโ)ฮt=73,000โ 3651โ=200ย dollars,
and there are 365 terms, so the total borrowed is 365โ 200=73,000 dollars. The units check: (dollars per year) ร (years) = dollars. The integral โซ01โf(t)dt gives the same $73,000, the area of a rectangle of height 73,000 and width 1.
Problem 3 ยท One Day's Loan at Year End
Given: On day 146 (time t=365146โ=0.4 year) the business borrows $1,000. Interest is compounded continuously at r=0.05 per year โ find what that loan has grown to by the end of the year.
โ Correct! The loan has 1โ0.4=0.6 year left to grow, so it becomes 1000e0.05โ 0.6=1000e0.03โ1030.45 dollars.
โ That loan was not out for a full year.1000e0.05 is a loan from t=0; money borrowed at t=0.4 grows only for the remaining 1โt years.
โ That uses the time already passed.e0.05โ 0.4 counts the 0.4 year before the loan existed; the growth factor is er(1โt), using the time still to come.
โ That is simple interest.1000(1+0.05โ 0.6) ignores compounding; continuous compounding multiplies by e0.03, which is slightly more than 1.03.
โ Not quite. Use the growth factor er(1โt) with t=0.4.
Show solution
Money borrowed at time t has 1โt years left in the year. Here 1โ0.4=0.6 year, which is 365โ146=219 days. With continuous compounding a principal P grows to Per(1โt), so
This growth factor er(1โt) is exactly the weight that turns the total borrowed, โซ01โf(t)dt, into the total owed, โซ01โer(1โt)f(t)dt.
Problem 4 ยท Owed After Two Years
Given: The business borrows at rate f(t) dollars per year during the first year only, 0โคtโค1, and repays nothing until the end of the second year, t=2, with interest compounded continuously at rate r โ which integral is the total owed at t=2?
โ Correct! A loan from time t grows for 2โt years before t=2, so each piece f(t)ฮt is weighted by er(2โt).
โ That is what is owed at t=1. The debt keeps growing through the second year, so each loan grows for 2โt years, not 1โt.
โ That reverses the timing.ert would let the earliest loans grow least; a loan grows for the time remaining until repayment, 2โt.
โ Interest compounds; it does not double the debt. Another year multiplies the year-one debt by er, not by 2.
โ Not quite. Ask how long the loan from time t grows before t=2.
Show solution
Cut the first year into days of width ฮt=3651โ. On day i, at time t=365iโ, the business borrows f(365iโ)ฮt dollars. That loan grows until t=2, which is 2โ365iโ years, so at t=2 it is worth
er(2โi/365)f(365iโ)ฮt.
Adding over all 365 days and letting the time step shrink gives