Solving heat equation using finite difference method

Nor Azam, Nur Zeti Azreen and Mohd Nazeri, NurHayati and Ahmad, Azhar and Samsudin, Norshuhada (2025) Solving heat equation using finite difference method. In: Mathematics and Statistics Undergraduate Research Proceedings 2025. Universiti Teknologi MARA, Negeri Sembilan, pp. 302-307. ISBN 9786299595328

Abstract

This paper presents a numerical solution of the one-dimensional heat equation using the Crank-Nicolson finite difference method. The heat equation is a second order partial differential equation that models the distribution of heat over time ina given medium. Due to the limitations of analytical methods in solving problems with complex boundary conditions, numerical approaches are essential. In this study, we focus on a test problem involving Dirichlet boundary conditions at both ends of the domain. The continuous heat equation is discretized in both space and time to form a system of linear algebraic equations. The Crank-Nicolson scheme is selected for its stability and accuracy. Numerical implementation is carried out using Wolfram Mathematica, which also enables the generation of 3D surface plots for better visualization. Error analysis is performed by comparing the numerical solution to the exact analytical solution using the L₂ norm and maximum absolute error. Results indicate that the method yields accurate and stable approximations for the heat distribution over time.

Metadata

Item Type: Book Section
Creators:
Creators
Email / ID Num.
Nor Azam, Nur Zeti Azreen
UNSPECIFIED
Mohd Nazeri, NurHayati
UNSPECIFIED
Ahmad, Azhar
UNSPECIFIED
Samsudin, Norshuhada
UNSPECIFIED
Subjects: Q Science > QA Mathematics > Equations
Q Science > QC Physics > Heat
Q Science > QC Physics > Heat > Thermodynamics
Divisions: Universiti Teknologi MARA, Negeri Sembilan > Seremban Campus
Page Range: pp. 302-307
Keywords: One-dimensional, heat equation, Crank-Nicolson scheme, Dirichlet boundary condition, numerical method
Date: 2025
URI: https://ir.uitm.edu.my/id/eprint/138174
Edit Item
Edit Item

Download

[thumbnail of 138174.pdf] Text
138174.pdf

Download (3MB)

ID Number

138174

Indexing

Statistic

Statistic details