Abstract: | In this article, we apply the method of lines (MOL) for solving the heat equation. The use of MOL yields a system of first–order differential equations with initial value. The solution of this system could be obtained in the form of exponential matrix function. Two approaches could be applied on this problem. The first approach is approximation of the exponential matrix by Taylor expansion, Padé and limit approximations. Using this approach leads to create various explicit and implicit finite difference methods with different stability region and order of accuracy up to six for space and superlinear convergence for time variables. Also, the second approach is a direct method which computes the exponential matrix by applying its eigenvalues and eigenvectors analytically. The direct approach has been applied on one, two and three‐dimensional heat equations with Dirichlet, Neumann, Robin and periodic boundary conditions. |