I consider the the ODE $ -u''(x)=f(x),\quad x\in \left]0,1\right[ $ with $ u(0)=u(1)=0 $. So I search a function $ u:\ [0,1]\rightarrow \mathbb{R} $ which solves this problem.
First step is to discretize the domain of $ u $ with $ x_i:=\frac{i}{n},\ i=0,\ldots,n $ and I search approximated values $ u_i\approx u(x_i) $. Further define $ f_i=f(x_i),\ i=1,\ldots,n-1 $.
So far so good, but now here comes my problem: The second derivative is approximated by the difference quotient which is reached by taylor approximation. Lets claim $ u $ is in $ \mathcal{C}^4([0,1]) $. Then we get:
$$ u(x\pm h)=u(x)\pm u'(x)\cdot h\pm\frac{1}{2!}\cdot u''(x)\cdot h^2\pm \frac{1}{3!} \cdot u^{(3)}(x)\cdot h^3+\underbrace{\frac{1}{4!}\cdot u^{(4)}(x\pm \xi_{\pm} \cdot h)\cdot h^4}_{(*)} $$ with $ \xi_{\pm}\in [0,1] $
I cannot comprehend how to get to this formula. And which remainder term is $(*)$? When I try to get it I only get this:
At first I do taylor approximation for fourth order at $ x_0\in [0,1] $: $ u(x)\\=u(x_0)+u'(x_0)\cdot (x-x_0)+\frac{1}{2!}\cdot u''(x_0)\cdot (x-x_0)^2+\frac{1}{3!}\cdot u^{(3)}(x_0)\cdot (x-x_0)^3+\underbrace{R_4(x;x_0)}_{(**)} $
From here I get stuck.
(**) Some remainder term... . I'm only familiar with the lagrange remainder term.