Finite differences
1. Finite differences#
We begin with the matter of accurately representing differentiation operators on finite collections of values. For example, suppose we are given \(h>0\) and the values \(u_1=f(h)\) and \(u_0=f(0)\). It’s clear that we can approximate \(f'(0)\) using the forward-difference quotient
If we have access to \(u_{-1}=f(-h)\), we might instead use the backward difference
or the average of the two, which is the centered difference
Note that these formulas, like the exact differentiation operator, are essentially translation-invariant. If we are given the values \(f(10+h)\) and \(f(10-h)\), for instance, then a centered difference of them would give an approximation to \(f'(10)\).
Immediately we see that we’re going to have lots of options. While that can be great, it requires us to analyze the strengths and weaknesses of each candidate in the context that it will be applied.