Discretization replaces a continuous mathematical problem by equations for finitely many unknowns. A spatial grid samples a function; a finite element method instead chooses coefficients in a finite-dimensional trial space. A time discretization supplies update equations at selected times. These choices specify what is computed, before any roundoff error is introduced.
For the heat equation , a uniform spatial grid givesThis is a semidiscretization: time remains continuous. Applying the Forward Euler method gives a fully discrete updateFor a smooth exact solution, the normalized local truncation error is . Convergence additionally requires stability of a numerical method; for this one-dimensional update, makes each new value a convex combination of neighboring values. Spatial and temporal refinement therefore interact, rather than giving two independent accuracy knobs.
Semidiscretization discretizes some variables of a differential equation while leaving others continuous. A spatial discretization of the heat equation gives interior grid values satisfyingBoundary values complete this ordinary differential equation system; time has not yet been replaced by a sequence of steps.
Applying explicit Euler later gives a fully discrete method with stability restriction for the standard uniform-grid diffusion model. Keeping the two stages separate makes spatial approximation error distinct from time-integration error and allows a different time solver to be used with the same spatial operator.[ref]
Finite Difference Computing with PDEs by Hans Petter Langtangen and Svein Linge. Chapter 3, spatial second differences and time-stepping diffusion