This semester in first-semester Calculus I've been trying to focus on how to do Calculus calculations when given a table of data since this seems to be of importance to science majors. There are pretty standard methods for computing tabular derivatives and tabular antiderivatives (integrals). It appears, though, that doing one operation and then doing the other does not give back the data you started with.
Before I get into my long example below, the main question is:
Most Important Question: Is there a way, using tables of data, to demonstrate the Fundamental Theorem of Calculus?
A Long Example
Suppose we have the data
$x$ | 1 | 5 | 9 | 13 | 17 |
---|---|---|---|---|---|
$f(x)$ | 1 | 3 | 7 | 15 | 31 |
For data in the middle of the table, we use the average of the slopes to the right and left to approximate the derivative at that point, e.g. $$f'(5) = \text{Average}\left(\frac{3-1}{5-1},\frac{7-3}{9-5}\right) = \frac{3}{4}.$$ For endpoints, you just use the only slope you can compute, e.g. $f'(1) = \frac{3-1}{5-1} = \frac{1}{2}$.
Doing so gives you the table
$x$ | 1 | 5 | 9 | 13 | 17 |
---|---|---|---|---|---|
$f(x)$ | 1 | 3 | 7 | 15 | 31 |
$f'(x)$ | 1/2 | 3/4 | 3/2 | 3 | 4 |
Going in reverse, suppose we know $f(1)=1$ and, given the derivatives we just computed, now compute $f$ at the other points. The standard way to do this is using the average of a left-hand and right-hand sum (aka trapezoid rule) to approximate the integral, e.g. $$f(9) = f(1) + \int_1^9 f'(x)dx = 1 + \frac{4}{2}\left(\frac{1}{2}+2\cdot\frac{3}{4}+\frac{3}{2}\right) = 8 \neq 7$$ The full table looks like
$x$ | 1 | 5 | 9 | 13 | 17 |
---|---|---|---|---|---|
$f(x)$ | 1 | 3 | 7 | 15 | 31 |
$f'(x)$ | 1/2 | 3/4 | 3/2 | 3 | 4 |
$f(1)+\int_1^x f'(t)dt$ | 1 | 3.5 | 8 | 17 | 31 |
First Question: How do we "fix" the inner data points so that $f(x) = f(1)+\int_1^x f'(t)dt$?
Going the other direction is worse. Suppose now we had just the last two rows of the previous table and then compute a derivative from the last row. Then it looks like
$x$ | 1 | 5 | 9 | 13 | 17 |
---|---|---|---|---|---|
$f'(x)$ | 1/2 | 3/4 | 3/2 | 3 | 4 |
$F(x) = 1+\int_1^x f'(t)dt$ | 1 | 3.5 | 8 | 17 | 31 |
$F'(x)$ | 5/8 | 7/8 | 27/16 | 23/8 | 3.5 |
Second Question: How do we "correct" the process so that $f'(x)=F'(x)$?
Third Question: Why doesn't this work? (I'm guessing it has to do with the essence of an approximation and the weird edge effects.)
Bonus Question: Do those who actually do applied mathematics with data in a research setting have to worry about this?