Explicit Scheme, solving the equations
Since all the discretized initial values
ui,0=g(xi),
are known, then after one time-step the only unknown quantity is
ui,1 which is given by
ui,1=αui−1,0+(1−2α)ui,0+αui+1,0=αg(xi−1)+(1−2α)g(xi)+αg(xi+1).
We can then obtain
ui,2 using the previously calculated values
ui,1
and the boundary conditions
a(t) and
b(t).
This algorithm results in a so-called explicit scheme, since the next functions
ui,j+1 are explicitely given by Eq.
(7).