Some strategies for solving differential equations based on the finite difference method are presented: forward time centered space (FTSC), backward time centered space (BTSC), and the Crank-Nicolson scheme (CN). These are developed and applied to a simple problem involving the one-dimensional (1D) (one spatial and one temporal dimension) heat equation in a thin bar. The numerical implementation in this work can be used as a preamble to introduce a method of solving the heat equation that can be implemented in problems in the area of finances. The results of implementing the software on very fine meshes (unidimensional), and with relatively small-time steps, are shown. Through mesh refinement, it was possible to obtain a better temperature distribution in the thin bar between a range of points. The heat equation was solved numerically by testing both implicit (CN) and explicit (FTSC and BTSC) methods. The examples show that the implemented schemes conform to theoretical predictions and that truncation errors depend on mesh, spacing, and time step.