Riemann Sums
Riemann sums provide the general procedure for handling definite integrals. We start with some curve, an area beneat the curve, and some increments. We call each of the increments If there are pieces, then:
With this information, we pick a height of in each interval. In other words, within each of the pick some point Then, plugging into — — we get the height of the rectangle we want. This sets the dimensions for each of our rectangles.
With the rectangle's dimensions set, we can add all of the areas of the rectangles:
This summation is called a Riemann sum. The complicated example we saw earlier involving pyramids is an in-depth examination of how the Riemann sum works. Applying the limit to the Riemann sum — as tends towards i.e., as the rectangles get very thin — is a good use case for Leibniz notation:
The Riemann sum demonstrates another way to interpret integrals: They're cumulative sums. Suppose is a variable for time, measured in years, and the function is a borrowing rate, measured in dollars per year. Suppose our friend Bernard borrows money every day. This means that:
Now let's say the rate varies over the year. Sometimes Bernard needs more money, other times he needs less. Question: How much has Bernard borrowed so far? Well, if Bernard has borrowed up to day then:
The amount borrowed then is:
Notice that the units work out:
This means that if we want to add up how much we've borrowed for an entire year, we would get the sum:
This gives us how much Bernard's borrowed, but there's still the question of how much Bernard owes the bank at the end of the year. Let's say the interest rate is compounded continously. If we start out with as the principal, then after time Bernard owes:
We know that the principal is:
Then, we know that the time left in the year is given by:
This tells us that amount Bernard owes is:
This example illustrates why we append the symbol to integrals — it allows us to be consistent with units and develop meaningful, consistent formulas.