The finite difference formulation is given above to demonstrate how difference
equations are obtained from differential equations. However, we will use
the energy balance approach in the following sections to obtain the numerical
formulation because it is more intuitive and can handle boundary conditions
more easily. Besides, the energy balance approach does not require having the
differential equation before the analysis.