The simplest, and traditional way of discretizing the 1-D wave equation is by replacing the second derivatives by second order differences:
where
is defined as
. Here we have sampled
the time-space plane in a uniform grid, with a timestep of
and a
space step of
. The
are the grid variables
here. Now, through substitution, the wave equation becomes:
Let's examine this recursion on the time/space grid, assuming for the moment no boundary conditions: