I'm studying some numerical methods and especially the numerical differentiation.
I have some troubles with the central differentiation. How do you become from the Taylor series the formula for $f(x+h)$, $f(x-h)$, $f(x+2h)$ and $f(x-2h)$?
I'm studying some numerical methods and especially the numerical differentiation.
I have some troubles with the central differentiation. How do you become from the Taylor series the formula for $f(x+h)$, $f(x-h)$, $f(x+2h)$ and $f(x-2h)$?
Start from your first expression
$$ f(x) = \sum_{n=0}^{+\infty}\frac{f^{(n)}(a)}{n!}(x-a)^n \tag{1} $$
Call $y = x - a$, so that $x = a + y$. Eqn. (1) becomes
$$ f(y + a) = \sum_{n=0}^{+\infty}\frac{f^{(n)}(a)}{n!}y^n \tag{2} $$
Now, to recover your second set of equations you can call $y \to h$ and $a\to x$, the result is
$$ f(x+h)=\sum_{n=0}^{+\infty}\frac{f^{(n)}(x)}{n!}h^n \tag{3} $$
With $y\to 2h$, $\cdots$ you will recover the other equations