where the error term \(e\) is a function of \(h\text{.}\) The accuracy of approximation is measured by the order of the error term, which is a number \(d\) such that \(|e(h)|\) is bounded by some multiple of \(|h|^d\text{.}\)
With \(f(x) = x^2\) we get \(f'(x) = 2x\) and \(\frac{f(x+h)-f(x)}{h}=\frac{x^2+2xh+h^2-x^2}{h}=2x + h\text{,}\) so the error term for this function is \(h^1\text{.}\)
The importance of the order of error can be illustrated by an example. Suppose we want to find \(f'(x)\) with absolute error at most \(10^{-12}\text{.}\)
If the error term of our formula is \(h^1\text{,}\) we need to use extremely small \(h\text{;}\) that is \(|h|\le 10^{-12}\text{.}\)
Thus, a higher-order formula should allow us to obtain an accurate result while avoidung extremely small values of \(h\text{.}\) But why do we want to avoid extremely small \(h\text{?}\) This is explained in next section.