I'm trying to learn more about finite difference methods here.
Theorically using the taylor series $u(x)=\sum_{n=0}^{\infty}\frac{(x-x_i)^n}{n!}(\frac{d^nu}{dx^n})_i $ you can get the forward/backward/central difference methods, which are:
forward: $(\frac{du}{dx})_i\approx\frac{u_{i+1}-u_i}{\Delta x}$
backward: $(\frac{du}{dx})_i\approx\frac{u_{i}-u_{i-1}}{\Delta x}$
central: $(\frac{du}{dx})_i\approx\frac{u_{i+1}-u_{i-1}}{2\Delta x}$
But I'm having a rough time trying to understand how the above taylor series is being expanded to obtain the difference methods. The fact of not having very clear how taylor works and that subindex notation is confusing me. In the lecture says that $u_i \approx\ {u(x_i)}$ and $x_i=i\Delta x$
Also, the lecture I'm following introduces FDM saying that:
$\frac{\delta u}{\delta x}(x)=\lim_{x\to 0} \frac{u(x+\Delta x) - u(x)}{\Delta x} = \lim_{x\to 0} \frac{u(x)-u(x-\Delta x)}{\Delta x} = \lim_{x\to 0} \frac{u(x+\Delta x)-u(x-\Delta x)}{2\Delta x} $
But how can i prove those equations are equals, any idea?
$$ f'\pm(x) = \lim{h\to 0^\pm}\frac{f(x + h) - f(x)}{h} $$
if these limits exists, then they are equal to each other and the same as $f'(x)$ (see this link)
– caverac Oct 11 '17 at 23:22