Let’s return to the rate function
\(r(t) = t^2 + 1\) from
Example 6.2.2 over a time domain beginning at
\(t = 0\text{,}\) but this time we will leave the upper bound on this time domain as a variable, in order to obtain an accumulation function in terms of this domain end point instead of just a single accumulation value. Because we want to be able to mimic the calculations from
Example 6.2.2, instead of changing the letter for the independent variable in the rate function
\(r(t)\text{,}\) instead we will use the letter
\(z\) for the variable endpoint of the domain.
Again, the graph of this rate function always goes up as you move to the right, so a left Riemann sum will compute the lower sum and a right Riemann sum will compute the upper sum. Our analysis here is almost identical to that from
Example 6.2.2, except that our subdomain widths are dependent on
\(z\text{:}\)
\begin{equation*}
\change{t} = \frac{z - 0}{n} = \frac{z}{n}
\end{equation*}
(where we are still using \(0\) as the start of the time domain). Just as before, beginning at the left-most subdomain boundary, \(t_0 = 0\text{,}\) each subsequent subdomain boundary should be \(\change{t}\) past the previous one, so that the pattern of boundaries is
\begin{equation*}
t_k = k \cdot \frac{z}{n} \text{.}
\end{equation*}
Recall that
\(t_0\) is the first left-endpoint and
\(t_1\) is the first right-endpoint. So similar to
Example 6.2.2, the pattern of left- and right-endpoints is as follows.
\begin{align*}
\text{Left } \amp \text{endpoints} \amp \text{Right } \amp \text{endpoints} \\
t_k^\ast \amp = t_{k-1} = (k - 1) \cdot \frac{z}{n} \amp t_k^\ast \amp = t_k = k \cdot \frac{z}{n}
\end{align*}
We can now set up our upper and lower Riemann sums:
\begin{gather*}
\text{Lower: }
\sum_{k=1}^{n} r(t_k^\ast) \change{t}
= \left( \sum_{k=1}^{n} r(t_k^\ast) \right) \change{t}
= \left (\sum_{k=1}^{n} r\left((k - 1) \cdot \frac{z}{n}\right) \right) \cdot \frac{z}{n}\\
\text{Upper: }
\sum_{k=1}^{n} r(t_k^\ast) \change{t}
= \left( \sum_{k=1}^{n} r(t_k^\ast) \right) \change{t}
= \left (\sum_{k=1}^{n} r\left(k \cdot \frac{z}{n}\right) \right) \cdot \frac{z}{n}\text{.}
\end{gather*}
The sage cell below is set up to compute both the lower and upper sums, with the number of steps \(n\) left as a parameter you can change. (The polynomial(RR)
part tells Sage to interpret the result as a polynomial with Real coefficients.) Increase \(n\) a few times, an order of magnitude at a time, until you can see a pattern emerging, with subsequent lower and upper sum results “squeezing” to a formula for the accumulation function (with independent variable \(z\) instead of \(t\)).