<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
 <front>
  <journal-meta>
   <journal-id journal-id-type="publisher-id">
    jamp
   </journal-id>
   <journal-title-group>
    <journal-title>
     Journal of Applied Mathematics and Physics
    </journal-title>
   </journal-title-group>
   <issn pub-type="epub">
    2327-4352
   </issn>
   <issn publication-format="print">
    2327-4379
   </issn>
   <publisher>
    <publisher-name>
     Scientific Research Publishing
    </publisher-name>
   </publisher>
  </journal-meta>
  <article-meta>
   <article-id pub-id-type="doi">
    10.4236/jamp.2025.137127
   </article-id>
   <article-id pub-id-type="publisher-id">
    jamp-143957
   </article-id>
   <article-categories>
    <subj-group subj-group-type="heading">
     <subject>
      Articles
     </subject>
    </subj-group>
    <subj-group subj-group-type="Discipline-v2">
     <subject>
      Physics 
     </subject>
     <subject>
       Mathematics
     </subject>
    </subj-group>
   </article-categories>
   <title-group>
    An Efficient Explicit Scheme for Solving the 2D Heat Equation with Stability and Convergence Analysis
   </title-group>
   <contrib-group>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Md Nazmul
      </surname>
      <given-names>
       Haque
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff1"> 
      <sup>1</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Ruma
      </surname>
      <given-names>
       Akter
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff2"> 
      <sup>2</sup>
     </xref>
    </contrib>
    <contrib contrib-type="author" xlink:type="simple">
     <name name-style="western">
      <surname>
       Md Shahadat Hossain
      </surname>
      <given-names>
       Mojumder
      </given-names>
     </name> 
     <xref ref-type="aff" rid="aff3"> 
      <sup>3</sup>
     </xref>
    </contrib>
   </contrib-group> 
   <aff id="aff1">
    <addr-line>
     aDepartment of Mathematical Sciences, Kent State University, Kent, OH, USA
    </addr-line> 
   </aff> 
   <aff id="aff2">
    <addr-line>
     aDepartment of Mathematics, Comilla University, Cumilla, Bangladesh
    </addr-line> 
   </aff> 
   <aff id="aff3">
    <addr-line>
     aSchool of Computer Science and Technology, University of Bedfordshire, Luton, UK
    </addr-line> 
   </aff> 
   <pub-date pub-type="epub">
    <day>
     04
    </day> 
    <month>
     07
    </month>
    <year>
     2025
    </year>
   </pub-date> 
   <volume>
    13
   </volume> 
   <issue>
    07
   </issue>
   <fpage>
    2234
   </fpage>
   <lpage>
    2244
   </lpage>
   <history>
    <date date-type="received">
     <day>
      5,
     </day>
     <month>
      June
     </month>
     <year>
      2025
     </year>
    </date>
    <date date-type="published">
     <day>
      8,
     </day>
     <month>
      June
     </month>
     <year>
      2025
     </year> 
    </date> 
    <date date-type="accepted">
     <day>
      8,
     </day>
     <month>
      July
     </month>
     <year>
      2025
     </year> 
    </date>
   </history>
   <permissions>
    <copyright-statement>
     © Copyright 2014 by authors and Scientific Research Publishing Inc. 
    </copyright-statement>
    <copyright-year>
     2014
    </copyright-year>
    <license>
     <license-p>
      This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/
     </license-p>
    </license>
   </permissions>
   <abstract>
    This paper presents a comprehensive numerical study of the two-dimensional time-dependent heat conduction equation using the Forward Time Centered Space (FTCS) finite difference scheme. The heat equation is a fundamental parabolic partial differential equation, models the diffusion of thermal energy in a medium and is applicable in areas such as thermal insulation design, microchip cooling, and biological heat transfer. Due to the limitations of analytical methods in handling complex geometries and boundary conditions, we employ the FTCS scheme. The problem is formulated with Dirichlet boundary conditions and a sinusoidal initial condition for which an exact analytical solution is known. We derive the FTCS discretization using Taylor series-based approximations and perform a detailed von Neumann stability analysis to establish the Courant-Friedrichs-Lewy (CFL) condition. The scheme’s performance is evaluated through numerical simulations on a uniform grid, with results compared against the exact solution. Simulation results show that the FTCS scheme achieves L
    <sup>2</sup> and max-norm errors on the order of 10
    <sup>−</sup>
    <sup>11</sup> and 10
    <sup>−</sup>
    <sup>10</sup>, respectively, under stable conditions. Graphical comparisons further demonstrate excellent agreement between numerical and analytical solutions. Overall, the FTCS method proves to be a robust and reliable tool for solving heat conduction problems, provided the stability criterion is satisfied.
   </abstract>
   <kwd-group> 
    <kwd>
     Explicit Scheme
    </kwd> 
    <kwd>
      Finite Difference Method
    </kwd> 
    <kwd>
      CFL Condition
    </kwd> 
    <kwd>
      Stability
    </kwd> 
    <kwd>
      Convergence
    </kwd> 
    <kwd>
      Von-Neumann Method
    </kwd> 
    <kwd>
      Error Norms
    </kwd>
   </kwd-group>
  </article-meta>
 </front>
 <body>
  <sec id="s1">
   <title>1. Introduction</title>
   <p>Heat is a form of energy that transfers from one medium to another due to a temperature difference. According to the second law of thermodynamics, heat naturally flows from a hotter region to a cooler one, proportional to the temperature gradient and the material’s thermal conductivity <xref ref-type="bibr" rid="scirp.143957-1">
     [1]
    </xref>. This phenomenon governs many real-world applications, from industrial processes to biological systems.</p>
   <p>The mathematical modeling of this process is described by the heat equation, a parabolic, second-order linear partial differential equation (PDE) that captures the temporal and spatial evolution of temperature in a medium. It explains how thermal energy diffuses through a region over time. For example, when a hot object is submerged in cooler water, its temperature gradually decreases, and eventually, thermal equilibrium is reached in the absence of external heat sources.</p>
   <p>While analytical methods such as separation of variables <xref ref-type="bibr" rid="scirp.143957-2">
     [2]
    </xref>-<xref ref-type="bibr" rid="scirp.143957-6">
     [6]
    </xref>, Fourier series <xref ref-type="bibr" rid="scirp.143957-7">
     [7]
    </xref> <xref ref-type="bibr" rid="scirp.143957-8">
     [8]
    </xref>, and domain decomposition <xref ref-type="bibr" rid="scirp.143957-9">
     [9]
    </xref>-<xref ref-type="bibr" rid="scirp.143957-11">
     [11]
    </xref> have been effectively used to solve the heat equation under simplified conditions, they are often impractical for complex geometries or boundary conditions. To overcome these limitations, numerical methods, particularly the Finite Difference Method (FDM) <xref ref-type="bibr" rid="scirp.143957-12">
     [12]
    </xref>-<xref ref-type="bibr" rid="scirp.143957-15">
     [15]
    </xref>, have become widely adopted. FDM approximates the derivatives in the PDE using finite difference expressions derived from Taylor series expansions <xref ref-type="bibr" rid="scirp.143957-16">
     [16]
    </xref>-<xref ref-type="bibr" rid="scirp.143957-18">
     [18]
    </xref>, converting the PDE into a system of linear algebraic equations that can be efficiently solved using iterative algorithms.</p>
   <p>The Forward Time Centered Space (FTCS) scheme is a classical explicit finite difference method known for its simplicity and ease of implementation. Despite its conditional stability, the FTCS scheme remains popular for short-time simulations where the time step can be carefully controlled.</p>
   <p>In this paper, we investigate the two-dimensional heat equation using the FTCS method. We derive the numerical scheme, perform a rigorous von Neumann stability analysis, and validate the method by comparing the numerical solution with the exact analytical solution. The error is evaluated both graphically and numerically using maximum and L<sup>2</sup>-norms. The numerical experiments are carried out in MATLAB, and the results demonstrate the accuracy and reliability of the method under stable conditions.</p>
   <p>The remainder of the paper is organized as follows: Section 2 presents the mathematical model and initial-boundary value problem. Section 3 describes the finite difference discretization and development of the FTCS scheme. The stability analysis using von Neumann’s method is given in Section 4. Section 5 provides a detailed error analysis and discussion of the numerical results. Finally, Section 6 offers concluding remarks.</p>
  </sec><sec id="s2">
   <title>2. Model Equations</title>
   <p>In our model problem, we consider the two-dimensional time dependent heat conduction equation of the form <xref ref-type="bibr" rid="scirp.143957-18">
     [18]
    </xref>,</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mfrac> 
       <mrow> 
        <mo>
          ∂ 
        </mo> 
        <mi>
          u 
        </mi> 
       </mrow> 
       <mrow> 
        <mo>
          ∂ 
        </mo> 
        <mi>
          t 
        </mi> 
       </mrow> 
      </mfrac> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         α 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msup> 
           <mo>
             ∂ 
           </mo> 
           <mn>
             2 
           </mn> 
          </msup> 
          <mi>
            u 
          </mi> 
         </mrow> 
         <mrow> 
          <mo>
            ∂ 
          </mo> 
          <msup> 
           <mi>
             x 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </mfrac> 
        <mo>
          + 
        </mo> 
        <mfrac> 
         <mrow> 
          <msup> 
           <mo>
             ∂ 
           </mo> 
           <mn>
             2 
           </mn> 
          </msup> 
          <mi>
            u 
          </mi> 
         </mrow> 
         <mrow> 
          <mo>
            ∂ 
          </mo> 
          <msup> 
           <mi>
             y 
           </mi> 
           <mn>
             2 
           </mn> 
          </msup> 
         </mrow> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mn>
        0 
      </mn> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        x 
      </mi> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        a 
      </mi> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mn>
        0 
      </mn> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        y 
      </mi> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        b 
      </mi> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        &gt; 
      </mo> 
      <mn>
        0 
      </mn> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math>(1)</p>
   <p>with initial condition</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
        <mo>
          , 
        </mo> 
        <mn>
          0 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mi>
        f 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mn>
        0 
      </mn> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        x 
      </mi> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        a 
      </mi> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mn>
        0 
      </mn> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        y 
      </mi> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        b 
      </mi> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math>(2)</p>
   <p>and boundary conditions</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mn>
          0 
        </mn> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          a 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mn>
        0 
      </mn> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mn>
        0 
      </mn> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        y 
      </mi> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        b 
      </mi> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        &gt; 
      </mo> 
      <mn>
        0 
      </mn> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math>(3)</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mn>
          0 
        </mn> 
        <mo>
          , 
        </mo> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          b 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mn>
        0 
      </mn> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mn>
        0 
      </mn> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        x 
      </mi> 
      <mo>
        &lt; 
      </mo> 
      <mi>
        a 
      </mi> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        &gt; 
      </mo> 
      <mn>
        0 
      </mn> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math>(4)</p>
   <p>where, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mo>
        = 
      </mo> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> is the temperature of the substance, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         α 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math> the thermal diffusivity of the substance. Equations (1), (2), (3) and (4) together are called initial boundary-value problems.</p>
  </sec><sec id="s3">
   <title>3. Finite Difference Discretization</title>
   <p>The finite difference method (FDM) is a numerical technique that approximates derivatives by using finite differences at discrete grid points. Through discretization, the continuous domain in space and time is converted into a finite grid, allowing partial diffessrential equations like the heat equation to be solved as systems of algebraic equations <xref ref-type="bibr" rid="scirp.143957-4">
     [4]
    </xref> <xref ref-type="bibr" rid="scirp.143957-14">
     [14]
    </xref> <xref ref-type="bibr" rid="scirp.143957-15">
     [15]
    </xref>.</p>
   <p>In order to describe the finite difference techniques, let us consider the rectangle 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Ω 
      </mtext> 
      <mo>
        × 
      </mo> 
      <mtext>
        Γ 
      </mtext> 
     </mrow> 
    </math> into a finite number of nodes 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <msub> 
         <mi>
           x 
         </mi> 
         <mi>
           i 
         </mi> 
        </msub> 
        <mo>
          , 
        </mo> 
        <msub> 
         <mi>
           t 
         </mi> 
         <mi>
           j 
         </mi> 
        </msub> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>, where Ω denotes the spatial domain and Γ represents the time domain.</p>
   <sec id="s3_1">
    <title>3.1. Approximation of the Derivatives of a Function by Finite Differences</title>
    <p>In this section, we derive the finite difference approximations for the partial derivatives in the heat Equations (1)-(4).</p>
    <p>Step 1: (Discretization of the domain) We divide the spatial domain 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           x 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           y 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> into a uniform grid with step sizes 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         x 
       </mi> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         y 
       </mi> 
      </mrow> 
     </math>, and we divide the time domain into discrete steps of size 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         t 
       </mi> 
      </mrow> 
     </math>.</p>
    <p>Let 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msubsup> 
      </mrow> 
     </math> denote the temperature at position 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msub> 
          <mi>
            x 
          </mi> 
          <mi>
            i 
          </mi> 
         </msub> 
         <mo>
           , 
         </mo> 
         <msub> 
          <mi>
            y 
          </mi> 
          <mi>
            j 
          </mi> 
         </msub> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> at time 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          t 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
      </mrow> 
     </math>. The spatial points are indexed as:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          x 
        </mi> 
        <mi>
          i 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mi>
         i 
       </mi> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         x 
       </mi> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         i 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         0 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         2 
       </mn> 
       <mo>
         , 
       </mo> 
       <mo>
         ⋯ 
       </mo> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          N 
        </mi> 
        <mi>
          x 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          y 
        </mi> 
        <mi>
          j 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mi>
         j 
       </mi> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         y 
       </mi> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         j 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         0 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         2 
       </mn> 
       <mo>
         , 
       </mo> 
       <mo>
         ⋯ 
       </mo> 
       <mo>
         , 
       </mo> 
       <msub> 
        <mi>
          N 
        </mi> 
        <mi>
          y 
        </mi> 
       </msub> 
      </mrow> 
     </math></p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          t 
        </mi> 
        <mi>
          n 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mi>
         n 
       </mi> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         t 
       </mi> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <mi>
         n 
       </mi> 
       <mo>
         = 
       </mo> 
       <mn>
         0 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         1 
       </mn> 
       <mo>
         , 
       </mo> 
       <mn>
         2 
       </mn> 
       <mo>
         , 
       </mo> 
       <mo>
         ⋯ 
       </mo> 
      </mrow> 
     </math></p>
    <p>where, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          N 
        </mi> 
        <mi>
          x 
        </mi> 
       </msub> 
      </mrow> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          N 
        </mi> 
        <mi>
          y 
        </mi> 
       </msub> 
      </mrow> 
     </math> are the number of grid intervals in 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        x 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        y 
      </mi> 
     </math> directions, respectively, and the time step size is defined as 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         t 
       </mi> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mi>
          T 
        </mi> 
        <mrow> 
         <msub> 
          <mi>
            N 
          </mi> 
          <mi>
            t 
          </mi> 
         </msub> 
        </mrow> 
       </mfrac> 
      </mrow> 
     </math>, where 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          N 
        </mi> 
        <mi>
          t 
        </mi> 
       </msub> 
      </mrow> 
     </math> is the total number of time steps.</p>
    <p>Step 2: (Finite difference approximation): We use a forward difference scheme for the time derivative (explicit in time) and central difference schemes for the spatial derivatives. These approximations are given as follows:</p>
    <p>The first-order time derivative is approximated by the forward difference:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mfrac> 
        <mrow> 
         <mo>
           ∂ 
         </mo> 
         <mi>
           u 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           ∂ 
         </mo> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </mfrac> 
       <mo>
         ≈ 
       </mo> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mrow> 
           <mi>
             n 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
        </mrow> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </mfrac> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math>(5)</p>
    <p>The second-order spatial derivatives are approximated by the central difference scheme:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mo>
            ∂ 
          </mo> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mi>
           u 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           ∂ 
         </mo> 
         <msup> 
          <mi>
            x 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         ≈ 
       </mo> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <mn>
           2 
         </mn> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           + 
         </mo> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
        </mrow> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <msup> 
          <mi>
            x 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         , 
       </mo> 
      </mrow> 
     </math>(6)</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mo>
            ∂ 
          </mo> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mi>
           u 
         </mi> 
        </mrow> 
        <mrow> 
         <mo>
           ∂ 
         </mo> 
         <msup> 
          <mi>
            y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         ≈ 
       </mo> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <mn>
           2 
         </mn> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           + 
         </mo> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
        </mrow> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <msup> 
          <mi>
            y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math>(7)</p>
   </sec>
   <sec id="s3_2">
    <title>3.2. Forward Time Centered Space (FTCS) Explicit Scheme</title>
    <p>To construct the FTCS formula for our Equation (1) <xref ref-type="bibr" rid="scirp.143957-6">
      [6]
     </xref> <xref ref-type="bibr" rid="scirp.143957-14">
      [14]
     </xref> <xref ref-type="bibr" rid="scirp.143957-15">
      [15]
     </xref>, we substitute the approximations (5)-(7) in (1). We obtain</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mfrac> 
        <mrow> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mrow> 
           <mi>
             n 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
        </mrow> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
       </mfrac> 
       <mo>
         = 
       </mo> 
       <msup> 
        <mi>
          α 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               + 
             </mo> 
             <mn>
               1 
             </mn> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             + 
           </mo> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
          </mrow> 
          <mrow> 
           <mtext>
             Δ 
           </mtext> 
           <msup> 
            <mi>
              x 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </mfrac> 
         <mo>
           + 
         </mo> 
         <mfrac> 
          <mrow> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
             <mo>
               + 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             + 
           </mo> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
          </mrow> 
          <mrow> 
           <mtext>
             Δ 
           </mtext> 
           <msup> 
            <mi>
              y 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
    <p>Rearranging for 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msubsup> 
      </mrow> 
     </math>:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msubsup> 
       <mo>
         = 
       </mo> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msubsup> 
       <mo>
         + 
       </mo> 
       <msup> 
        <mi>
          α 
        </mi> 
        <mn>
          2 
        </mn> 
       </msup> 
       <mtext>
         Δ 
       </mtext> 
       <mi>
         t 
       </mi> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mfrac> 
          <mrow> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               + 
             </mo> 
             <mn>
               1 
             </mn> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             + 
           </mo> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
          </mrow> 
          <mrow> 
           <mtext>
             Δ 
           </mtext> 
           <msup> 
            <mi>
              x 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </mfrac> 
         <mo>
           + 
         </mo> 
         <mfrac> 
          <mrow> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
             <mo>
               + 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             − 
           </mo> 
           <mn>
             2 
           </mn> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
           <mo>
             + 
           </mo> 
           <msubsup> 
            <mi>
              u 
            </mi> 
            <mrow> 
             <mi>
               i 
             </mi> 
             <mo>
               , 
             </mo> 
             <mi>
               j 
             </mi> 
             <mo>
               − 
             </mo> 
             <mn>
               1 
             </mn> 
            </mrow> 
            <mi>
              n 
            </mi> 
           </msubsup> 
          </mrow> 
          <mrow> 
           <mtext>
             Δ 
           </mtext> 
           <msup> 
            <mi>
              y 
            </mi> 
            <mn>
              2 
            </mn> 
           </msup> 
          </mrow> 
         </mfrac> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
    <p>Define stability parameters:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msub> 
        <mi>
          S 
        </mi> 
        <mi>
          x 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mi>
            α 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <msup> 
          <mi>
            x 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         , 
       </mo> 
       <mtext>
           
       </mtext> 
       <mtext>
           
       </mtext> 
       <msub> 
        <mi>
          S 
        </mi> 
        <mi>
          y 
        </mi> 
       </msub> 
       <mo>
         = 
       </mo> 
       <mfrac> 
        <mrow> 
         <msup> 
          <mi>
            α 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
         <mtext>
           Δ 
         </mtext> 
         <mi>
           t 
         </mi> 
        </mrow> 
        <mrow> 
         <mtext>
           Δ 
         </mtext> 
         <msup> 
          <mi>
            y 
          </mi> 
          <mn>
            2 
          </mn> 
         </msup> 
        </mrow> 
       </mfrac> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math></p>
    <p>The update formula simplifies to:</p>
    <p>
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mrow> 
         <mi>
           n 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
       </msubsup> 
       <mo>
         = 
       </mo> 
       <msubsup> 
        <mi>
          u 
        </mi> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mi>
          n 
        </mi> 
       </msubsup> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          S 
        </mi> 
        <mi>
          x 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <mn>
           2 
         </mn> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           + 
         </mo> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         + 
       </mo> 
       <msub> 
        <mi>
          S 
        </mi> 
        <mi>
          y 
        </mi> 
       </msub> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
           <mo>
             + 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           − 
         </mo> 
         <mn>
           2 
         </mn> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
         <mo>
           + 
         </mo> 
         <msubsup> 
          <mi>
            u 
          </mi> 
          <mrow> 
           <mi>
             i 
           </mi> 
           <mo>
             , 
           </mo> 
           <mi>
             j 
           </mi> 
           <mo>
             − 
           </mo> 
           <mn>
             1 
           </mn> 
          </mrow> 
          <mi>
            n 
          </mi> 
         </msubsup> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
       <mo>
         . 
       </mo> 
      </mrow> 
     </math>(8)</p>
    <fig id="fig1" position="float">
     <label>Figure 1</label>
     <caption>
      <title>Figure 1. FTCS Grid: The node 

       <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
         <mrow>
   
          <mo>
           
    (
   
          </mo> 
   
          <mrow> 
    
           <mi>
            
     i
    
           </mi>
    
           <mo>
            
     ,
    
           </mo>
    
           <mi>
            
     j
    
           </mi>
   
          </mrow> 
   
          <mo>
           
    )
   
          </mo>
  
         </mrow>
 
        </mrow>

       </math> and its four immediate neighbors used in the Forward Time Centered Space (FTCS) discretization for the 2D heat equation.</title>
     </caption>
     <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1724227-rId80.jpeg?20250711024718" />
    </fig>
    <p>
     <xref ref-type="fig" rid="fig1">
      Figure 1
     </xref> illustrates the finite difference stencil used in the Forward Time Centered Space (FTCS) scheme for the two-dimensional heat equation. The central node 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> corresponds to the grid point where the temperature is being updated. Its four immediate neighbors 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           − 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math>, and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
       <mrow> 
        <mo>
          ( 
        </mo> 
        <mrow> 
         <mi>
           i 
         </mi> 
         <mo>
           + 
         </mo> 
         <mn>
           1 
         </mn> 
         <mo>
           , 
         </mo> 
         <mi>
           j 
         </mi> 
        </mrow> 
        <mo>
          ) 
        </mo> 
       </mrow> 
      </mrow> 
     </math> are used to approximate the second-order spatial derivatives in the 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        x 
      </mi> 
     </math> and 
     <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
        y 
      </mi> 
     </math> directions via the central difference method. This five-point stencil structure is fundamental to the explicit FTCS update formula in Equation (8), enabling the computation of the temperature at the next time level using current values at the surrounding nodes.</p>
   </sec>
  </sec><sec id="s4">
   <title>4. Stability Analysis</title>
   <p>In the numerical solution of partial differential equations, such as the two-dimensional heat equation, ensuring the stability of the numerical scheme is essential for obtaining reliable and accurate results. Stability determines whether the numerical errors introduced at each time step will remain bounded or amplify uncontrollably as the simulation progresses. Particularly for explicit schemes like the Forward-Time Central-Space (FTCS) method, stability imposes strict conditions on the relationship between time and spatial discretization parameters. Without satisfying these conditions, the computed solution may diverge from the true behavior of the underlying physical system, rendering the results unreliable. In what follows, we conduct a detailed Von Neumann stability analysis of the FTCS scheme applied to the 2D heat equation to derive the necessary condition for numerical stability <xref ref-type="bibr" rid="scirp.143957-14">
     [14]
    </xref> <xref ref-type="bibr" rid="scirp.143957-15">
     [15]
    </xref> <xref ref-type="bibr" rid="scirp.143957-19">
     [19]
    </xref>.</p>
   <p>Assume the error (or solution) at grid point 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math> and time step 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       n 
     </mi> 
    </math> is a Fourier mode:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
       <mi>
         n 
       </mi> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <msub> 
           <mi>
             x 
           </mi> 
           <mi>
             i 
           </mi> 
          </msub> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <msub> 
           <mi>
             y 
           </mi> 
           <mi>
             j 
           </mi> 
          </msub> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math></p>
   <p>where,</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       G 
     </mi> 
    </math> is the amplification factor;</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         k 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        , 
      </mo> 
      <msub> 
       <mi>
         k 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
     </mrow> 
    </math> are spatial frequencies (wave numbers);</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        i 
      </mtext> 
      <mo>
        = 
      </mo> 
      <msqrt> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
      </msqrt> 
     </mrow> 
    </math> is the imaginary unit.</p>
   <p>So each term in FTCS updated formula (8) becomes:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
       <mi>
         n 
       </mi> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
       <mrow> 
        <mi>
          n 
        </mi> 
        <mo>
          + 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mrow> 
        <mi>
          n 
        </mi> 
        <mo>
          + 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          + 
        </mo> 
        <mn>
          1 
        </mn> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
       <mi>
         n 
       </mi> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mi>
              i 
            </mi> 
            <mo>
              + 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <msub> 
         <mi>
           k 
         </mi> 
         <mi>
           x 
         </mi> 
        </msub> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          x 
        </mi> 
       </mrow> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
       <mi>
         n 
       </mi> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mtext>
          i 
        </mtext> 
        <msub> 
         <mi>
           k 
         </mi> 
         <mi>
           x 
         </mi> 
        </msub> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          x 
        </mi> 
       </mrow> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
        <mo>
          + 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mi>
         n 
       </mi> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <msub> 
         <mi>
           k 
         </mi> 
         <mi>
           y 
         </mi> 
        </msub> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          y 
        </mi> 
       </mrow> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msubsup> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mi>
         n 
       </mi> 
      </msubsup> 
      <mo>
        = 
      </mo> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mtext>
          i 
        </mtext> 
        <msub> 
         <mi>
           k 
         </mi> 
         <mi>
           y 
         </mi> 
        </msub> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          y 
        </mi> 
       </mrow> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
      <mo>
        . 
      </mo> 
     </mrow> 
    </math></p>
   <p>Now substitute these values in (8), and factor out the common term 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         G 
       </mi> 
       <mi>
         n 
       </mi> 
      </msup> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            i 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            j 
          </mi> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
      </msup> 
     </mrow> 
    </math> from the entire right-hand side, we obtain</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mtable> 
      <mtr> 
       <mtd> 
        <msup> 
         <mi>
           G 
         </mi> 
         <mrow> 
          <mi>
            n 
          </mi> 
          <mo>
            + 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
        </msup> 
        <msup> 
         <mtext>
           e 
         </mtext> 
         <mrow> 
          <mtext>
            i 
          </mtext> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               x 
             </mi> 
            </msub> 
            <mi>
              i 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              x 
            </mi> 
            <mo>
              + 
            </mo> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               y 
             </mi> 
            </msub> 
            <mi>
              j 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              y 
            </mi> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </msup> 
        <mo>
          = 
        </mo> 
        <msup> 
         <mi>
           G 
         </mi> 
         <mi>
           n 
         </mi> 
        </msup> 
        <msup> 
         <mtext>
           e 
         </mtext> 
         <mrow> 
          <mtext>
            i 
          </mtext> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               x 
             </mi> 
            </msub> 
            <mi>
              i 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              x 
            </mi> 
            <mo>
              + 
            </mo> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               y 
             </mi> 
            </msub> 
            <mi>
              j 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              y 
            </mi> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </msup> 
        <mrow> 
         <mo>
           [ 
         </mo> 
         <mrow> 
          <mn>
            1 
          </mn> 
          <mo>
            + 
          </mo> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msup> 
             <mtext>
               e 
             </mtext> 
             <mrow> 
              <mtext>
                i 
              </mtext> 
              <msub> 
               <mi>
                 k 
               </mi> 
               <mi>
                 x 
               </mi> 
              </msub> 
              <mtext>
                Δ 
              </mtext> 
              <mi>
                x 
              </mi> 
             </mrow> 
            </msup> 
            <mo>
              + 
            </mo> 
            <msup> 
             <mtext>
               e 
             </mtext> 
             <mrow> 
              <mo>
                − 
              </mo> 
              <mtext>
                i 
              </mtext> 
              <msub> 
               <mi>
                 k 
               </mi> 
               <mi>
                 x 
               </mi> 
              </msub> 
              <mtext>
                Δ 
              </mtext> 
              <mi>
                x 
              </mi> 
             </mrow> 
            </msup> 
            <mo>
              − 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </mrow> 
       </mtd> 
      </mtr> 
      <mtr> 
       <mtd> 
        <mtext>
            
        </mtext> 
        <mtext>
            
        </mtext> 
        <mo>
          + 
        </mo> 
        <mrow> 
         <mrow> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msup> 
             <mtext>
               e 
             </mtext> 
             <mrow> 
              <mtext>
                i 
              </mtext> 
              <msub> 
               <mi>
                 k 
               </mi> 
               <mi>
                 y 
               </mi> 
              </msub> 
              <mtext>
                Δ 
              </mtext> 
              <mi>
                y 
              </mi> 
             </mrow> 
            </msup> 
            <mo>
              + 
            </mo> 
            <msup> 
             <mtext>
               e 
             </mtext> 
             <mrow> 
              <mo>
                − 
              </mo> 
              <mtext>
                i 
              </mtext> 
              <msub> 
               <mi>
                 k 
               </mi> 
               <mi>
                 y 
               </mi> 
              </msub> 
              <mtext>
                Δ 
              </mtext> 
              <mi>
                y 
              </mi> 
             </mrow> 
            </msup> 
            <mo>
              − 
            </mo> 
            <mn>
              2 
            </mn> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mo>
           ] 
         </mo> 
        </mrow> 
       </mtd> 
      </mtr> 
     </mtable> 
    </math></p>
   <p>Using the identity 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mtext>
          i 
        </mtext> 
        <mi>
          θ 
        </mi> 
       </mrow> 
      </msup> 
      <mo>
        + 
      </mo> 
      <msup> 
       <mtext>
         e 
       </mtext> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mtext>
          i 
        </mtext> 
        <mi>
          θ 
        </mi> 
       </mrow> 
      </msup> 
      <mo>
        = 
      </mo> 
      <mn>
        2 
      </mn> 
      <mtext>
        cos 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         θ 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>, we simplify:</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
      <mtr> 
       <mtd> 
        <msup> 
         <mi>
           G 
         </mi> 
         <mrow> 
          <mi>
            n 
          </mi> 
          <mo>
            + 
          </mo> 
          <mn>
            1 
          </mn> 
         </mrow> 
        </msup> 
        <msup> 
         <mtext>
           e 
         </mtext> 
         <mrow> 
          <mtext>
            i 
          </mtext> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               x 
             </mi> 
            </msub> 
            <mi>
              i 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              x 
            </mi> 
            <mo>
              + 
            </mo> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               y 
             </mi> 
            </msub> 
            <mi>
              j 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              y 
            </mi> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </msup> 
       </mtd> 
      </mtr> 
      <mtr> 
       <mtd> 
        <mo>
          = 
        </mo> 
        <msup> 
         <mi>
           G 
         </mi> 
         <mi>
           n 
         </mi> 
        </msup> 
        <msup> 
         <mtext>
           e 
         </mtext> 
         <mrow> 
          <mtext>
            i 
          </mtext> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               x 
             </mi> 
            </msub> 
            <mi>
              i 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              x 
            </mi> 
            <mo>
              + 
            </mo> 
            <msub> 
             <mi>
               k 
             </mi> 
             <mi>
               y 
             </mi> 
            </msub> 
            <mi>
              j 
            </mi> 
            <mtext>
              Δ 
            </mtext> 
            <mi>
              y 
            </mi> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
        </msup> 
        <mrow> 
         <mo>
           [ 
         </mo> 
         <mrow> 
          <mn>
            1 
          </mn> 
          <mo>
            + 
          </mo> 
          <mn>
            2 
          </mn> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mtext>
              cos 
            </mtext> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <msub> 
               <mi>
                 k 
               </mi> 
               <mi>
                 x 
               </mi> 
              </msub> 
              <mtext>
                Δ 
              </mtext> 
              <mi>
                x 
              </mi> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
            <mo>
              − 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
          <mo>
            + 
          </mo> 
          <mn>
            2 
          </mn> 
          <msub> 
           <mi>
             S 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <mtext>
              cos 
            </mtext> 
            <mrow> 
             <mo>
               ( 
             </mo> 
             <mrow> 
              <msub> 
               <mi>
                 k 
               </mi> 
               <mi>
                 y 
               </mi> 
              </msub> 
              <mtext>
                Δ 
              </mtext> 
              <mi>
                y 
              </mi> 
             </mrow> 
             <mo>
               ) 
             </mo> 
            </mrow> 
            <mo>
              − 
            </mo> 
            <mn>
              1 
            </mn> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mo>
           ] 
         </mo> 
        </mrow> 
       </mtd> 
      </mtr> 
     </mtable> 
    </math></p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mo>
        ⇒ 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <mi>
        G 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        + 
      </mo> 
      <mn>
        2 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          cos 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            Δ 
          </mi> 
          <mi>
            x 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        + 
      </mo> 
      <mn>
        2 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          cos 
        </mi> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            Δ 
          </mi> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        . 
      </mo> 
     </mrow> 
    </math></p>
   <p>Or, more compactly using the identity 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        cos 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mi>
         θ 
       </mi> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        − 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        = 
      </mo> 
      <mo>
        − 
      </mo> 
      <mn>
        2 
      </mn> 
      <msup> 
       <mrow> 
        <mi>
          sin 
        </mi> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mi>
           θ 
         </mi> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>, we get</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        G 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        − 
      </mo> 
      <mn>
        4 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <msup> 
       <mrow> 
        <mi>
          sin 
        </mi> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            Δ 
          </mi> 
          <mi>
            x 
          </mi> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        − 
      </mo> 
      <mn>
        4 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <msup> 
       <mrow> 
        <mi>
          sin 
        </mi> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            Δ 
          </mi> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        . 
      </mo> 
     </mrow> 
    </math></p>
   <p>The scheme is stable if 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         | 
       </mo> 
       <mi>
         G 
       </mi> 
       <mo>
         | 
       </mo> 
      </mrow> 
      <mo>
        ≤ 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math> for all wave numbers 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         k 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        , 
      </mo> 
      <msub> 
       <mi>
         k 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
     </mrow> 
    </math>. Since 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mrow> 
        <mtext>
          sin 
        </mtext> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mo>
         ⋅ 
       </mo> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        ∈ 
      </mo> 
      <mrow> 
       <mo>
         [ 
       </mo> 
       <mrow> 
        <mn>
          0 
        </mn> 
        <mo>
          , 
        </mo> 
        <mn>
          1 
        </mn> 
       </mrow> 
       <mo>
         ] 
       </mo> 
      </mrow> 
     </mrow> 
    </math>, the maximum dissipation occurs when</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mrow> 
        <mi>
          sin 
        </mi> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             x 
           </mi> 
          </msub> 
          <mi>
            Δ 
          </mi> 
          <mi>
            x 
          </mi> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <msup> 
       <mrow> 
        <mi>
          sin 
        </mi> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mfrac> 
         <mrow> 
          <msub> 
           <mi>
             k 
           </mi> 
           <mi>
             y 
           </mi> 
          </msub> 
          <mi>
            Δ 
          </mi> 
          <mi>
            y 
          </mi> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </mfrac> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mn>
        1. 
      </mn> 
     </mrow> 
    </math></p>
   <p>Then the worst-case amplification factor is,</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         G 
       </mi> 
       <mrow> 
        <mtext>
          min 
        </mtext> 
       </mrow> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        − 
      </mo> 
      <mn>
        4 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        − 
      </mo> 
      <mn>
        4 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        . 
      </mo> 
     </mrow> 
    </math></p>
   <p>To ensure 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         | 
       </mo> 
       <mi>
         G 
       </mi> 
       <mo>
         | 
       </mo> 
      </mrow> 
      <mo>
        ≤ 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math>, the condition is</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mo>
        − 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        ≤ 
      </mo> 
      <mn>
        1 
      </mn> 
      <mo>
        − 
      </mo> 
      <mn>
        4 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        − 
      </mo> 
      <mn>
        4 
      </mn> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        ≤ 
      </mo> 
      <mn>
        1. 
      </mn> 
     </mrow> 
    </math></p>
   <p>The most restrictive bound is given by</p>
   <p>
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mtable columnalign="left"> 
      <mtr> 
       <mtd> 
        <mn>
          1 
        </mn> 
        <mo>
          − 
        </mo> 
        <mn>
          4 
        </mn> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mi>
           x 
         </mi> 
        </msub> 
        <mo>
          − 
        </mo> 
        <mn>
          4 
        </mn> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mi>
           y 
         </mi> 
        </msub> 
        <mo>
          ≥ 
        </mo> 
        <mo>
          − 
        </mo> 
        <mn>
          1 
        </mn> 
       </mtd> 
      </mtr> 
      <mtr> 
       <mtd> 
        <mo>
          ⇒ 
        </mo> 
        <mtext>
            
        </mtext> 
        <mtext>
            
        </mtext> 
        <mn>
          4 
        </mn> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mi>
           x 
         </mi> 
        </msub> 
        <mo>
          + 
        </mo> 
        <mn>
          4 
        </mn> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mi>
           y 
         </mi> 
        </msub> 
        <mo>
          ≤ 
        </mo> 
        <mn>
          2 
        </mn> 
       </mtd> 
      </mtr> 
      <mtr> 
       <mtd> 
        <mo>
          ⇒ 
        </mo> 
        <mtext>
            
        </mtext> 
        <mtext>
            
        </mtext> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mi>
           x 
         </mi> 
        </msub> 
        <mo>
          + 
        </mo> 
        <msub> 
         <mi>
           S 
         </mi> 
         <mi>
           y 
         </mi> 
        </msub> 
        <mo>
          ≤ 
        </mo> 
        <mfrac> 
         <mn>
           1 
         </mn> 
         <mn>
           2 
         </mn> 
        </mfrac> 
        <mo>
          , 
        </mo> 
       </mtd> 
      </mtr> 
     </mtable> 
    </math>(9)</p>
   <p>The equality case 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mfrac> 
       <mn>
         1 
       </mn> 
       <mn>
         2 
       </mn> 
      </mfrac> 
     </mrow> 
    </math> results in marginal stability, where the amplification factor 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        G 
      </mi> 
      <mo>
        = 
      </mo> 
      <mo>
        − 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math> in the worst-case scenario. This may result in non-growing but oscillatory behavior, which is why it is treated cautiously in practice. Equation (9) is known as the CFL (Courant-Friedrichs-Lewy) condition for stability of the 2D FTCS scheme <xref ref-type="bibr" rid="scirp.143957-20">
     [20]
    </xref>. This condition ensures the numerical scheme does not produce oscillations or divergence.</p>
   <p>To illustrate the behavior of the FTCS scheme under various stability conditions, we present six numerical solution plots for the two-dimensional heat equation using different values of the stability parameter 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
     </mrow> 
    </math>. <xref ref-type="fig" rid="fig2">
     Figure 2
    </xref> and <xref ref-type="fig" rid="fig3">
     Figure 3
    </xref> demonstrate solutions within or at the edge of the theoretical stability limit, while <xref ref-type="fig" rid="fig4">
     Figure 4
    </xref> shows the unstable behavior when the CFL condition is violated.</p>
   <p>
    <xref ref-type="fig" rid="fig2(a)">
     Figure 2(a)
    </xref> and <xref ref-type="fig" rid="fig2(b)">
     Figure 2(b)
    </xref> display stable solutions for 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.4 
      </mn> 
     </mrow> 
    </math>, simulated over the spatial domains 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        x 
      </mi> 
      <mo>
        ∈ 
      </mo> 
      <mrow> 
       <mo>
         [ 
       </mo> 
       <mrow> 
        <mn>
          0 
        </mn> 
        <mo>
          , 
        </mo> 
        <mi>
          π 
        </mi> 
       </mrow> 
       <mo>
         ] 
       </mo> 
      </mrow> 
     </mrow> 
    </math> and 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        x 
      </mi> 
      <mo>
        ∈ 
      </mo> 
      <mrow> 
       <mo>
         [ 
       </mo> 
       <mrow> 
        <mn>
          0 
        </mn> 
        <mo>
          , 
        </mo> 
        <mn>
          2 
        </mn> 
        <mi>
          π 
        </mi> 
       </mrow> 
       <mo>
         ] 
       </mo> 
      </mrow> 
     </mrow> 
    </math>, respectively. Similarly, <xref ref-type="fig" rid="fig3(a)">
     Figure 3(a)
    </xref> and <xref ref-type="fig" rid="fig3(b)">
     Figure 3(b)
    </xref> show solutions for 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.5 
      </mn> 
     </mrow> 
    </math>, which lies exactly at the stability threshold. In all four cases, the numerical solutions remain smooth and bounded over time, indicating stable evolution of heat diffusion.</p>
   <p>In contrast, <xref ref-type="fig" rid="fig4(a)">
     Figure 4(a)
    </xref> and <xref ref-type="fig" rid="fig4(b)">
     Figure 4(b)
    </xref> illustrate the unstable nature of the FTCS scheme for 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.6 
      </mn> 
     </mrow> 
    </math>, which exceeds the stability bound. The numerical solutions exhibit unbounded growth and spurious oscillations, especially near the center of the domain, confirming the breakdown of the method under instability.</p>
   <p>
    <xref ref-type="bibr" rid="scirp.143957-"></xref>Note that, the stability parameter 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.4 
      </mn> 
     </mrow> 
    </math> is computed using 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        x 
      </mi> 
      <mo>
        = 
      </mo> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        y 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.05 
      </mn> 
     </mrow> 
    </math>, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.0005 
      </mn> 
     </mrow> 
    </math>, and 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        α 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math>, which yields 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.2 
      </mn> 
     </mrow> 
    </math>. Similarly, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.5 
      </mn> 
     </mrow> 
    </math> results from 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.000625 
      </mn> 
     </mrow> 
    </math>, giving 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.25 
      </mn> 
     </mrow> 
    </math>. On the other hand, 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.6 
      </mn> 
     </mrow> 
    </math> corresponds to 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.00075 
      </mn> 
     </mrow> 
    </math>, yielding 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.3 
      </mn> 
     </mrow> 
    </math></p>
   <fig id="fig2" position="float">
    <label>Figure 2</label>
    <caption>
     <title>Figure 2. Stable FTCS solutions of the 2D heat equation for 

      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
        <msub> 
   
         <mi>
          
    S
   
         </mi> 
   
         <mi>
          
    x
   
         </mi> 
  
        </msub> 
  
        <mo>
         
   +
  
        </mo>
  
        <msub> 
   
         <mi>
          
    S
   
         </mi> 
   
         <mi>
          
    y
   
         </mi> 
  
        </msub> 
  
        <mo>
         
   =
  
        </mo>
  
        <mn>
         
   0.4
  
        </mn>
 
       </mrow>

      </math>.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1724227-rId189.jpeg?20250711024718" />
   </fig>
   <fig id="fig3" position="float">
    <label>Figure 3</label>
    <caption>
     <title>Figure 3. FTCS solutions at the critical stability threshold 

      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
        <msub> 
   
         <mi>
          
    S
   
         </mi> 
   
         <mi>
          
    x
   
         </mi> 
  
        </msub> 
  
        <mo>
         
   +
  
        </mo>
  
        <msub> 
   
         <mi>
          
    S
   
         </mi> 
   
         <mi>
          
    y
   
         </mi> 
  
        </msub> 
  
        <mo>
         
   =
  
        </mo>
  
        <mn>
         
   0.5
  
        </mn>
 
       </mrow>

      </math>.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1724227-rId192.jpeg?20250711024718" />
   </fig>
   <fig id="fig4" position="float">
    <label>Figure 4</label>
    <caption>
     <title>Figure 4. Unstable FTCS solutions of the 2D heat equation for 

      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
        <msub> 
   
         <mi>
          
    S
   
         </mi> 
   
         <mi>
          
    x
   
         </mi> 
  
        </msub> 
  
        <mo>
         
   +
  
        </mo>
  
        <msub> 
   
         <mi>
          
    S
   
         </mi> 
   
         <mi>
          
    y
   
         </mi> 
  
        </msub> 
  
        <mo>
         
   =
  
        </mo>
  
        <mn>
         
   0.6
  
        </mn>
 
       </mrow>

      </math>.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1724227-rId195.jpeg?20250711024718" />
   </fig>
  </sec><sec id="s5">
   <title>5. Error Analysis and Results Discussion</title>
   <p>To evaluate the accuracy and reliability of the Forward Time Central Space (FTCS) method for solving the two-dimensional heat equation, we perform a quantitative and qualitative error analysis by comparing the numerical solution with the exact analytical solution at a fixed final time 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       T 
     </mi> 
    </math>. We chose the final time 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        T 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math> to ensure the solution has evolved meaningfully while maintaining numerical stability. This duration is long enough to observe the diffusion process without violating the CFL condition <xref ref-type="bibr" rid="scirp.143957-13">
     [13]
    </xref> <xref ref-type="bibr" rid="scirp.143957-21">
     [21]
    </xref>. The governing equation is discretized using a uniform grid of size 21 × 21, with spatial step sizes 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        x 
      </mi> 
      <mo>
        = 
      </mo> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        y 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.05 
      </mn> 
     </mrow> 
    </math>, and time step 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.0005 
      </mn> 
     </mrow> 
    </math>. The diffusion coefficient 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mi>
       α 
     </mi> 
    </math> is set to unity.</p>
   <p>The key stability parameter for the FTCS method in two dimensions is the sum 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
     </mrow> 
    </math>, where</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mfrac> 
       <mrow> 
        <mi>
          α 
        </mi> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mrow> 
        <mtext>
          Δ 
        </mtext> 
        <msup> 
         <mi>
           x 
         </mi> 
         <mn>
           2 
         </mn> 
        </msup> 
       </mrow> 
      </mfrac> 
      <mo>
        , 
      </mo> 
      <mtext>
          
      </mtext> 
      <mtext>
          
      </mtext> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mfrac> 
       <mrow> 
        <mi>
          α 
        </mi> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          t 
        </mi> 
       </mrow> 
       <mrow> 
        <mtext>
          Δ 
        </mtext> 
        <msup> 
         <mi>
           y 
         </mi> 
         <mn>
           2 
         </mn> 
        </msup> 
       </mrow> 
      </mfrac> 
      <mo>
        . 
      </mo> 
     </mrow> 
    </math></p>
   <p>In our setup, 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        x 
      </mi> 
      <mo>
        = 
      </mo> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        y 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.05 
      </mn> 
     </mrow> 
    </math>, 
    <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.0005 
      </mn> 
     </mrow> 
    </math>, and 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        α 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        1 
      </mn> 
     </mrow> 
    </math>, giving 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.2 
      </mn> 
     </mrow> 
    </math>, yielding 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         x 
       </mi> 
      </msub> 
      <mo>
        + 
      </mo> 
      <msub> 
       <mi>
         S 
       </mi> 
       <mi>
         y 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <mn>
        0.4 
      </mn> 
     </mrow> 
    </math>, which satisfies the theoretical stability criterion (9). This ensures that the scheme remains numerically stable throughout the simulation.</p>
   <p>We use the exact solution,</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mi>
         u 
       </mi> 
       <mrow> 
        <mtext>
          exact 
        </mtext> 
       </mrow> 
      </msub> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          T 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mtext>
        sin 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          π 
        </mi> 
        <mi>
          x 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mtext>
        sin 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          π 
        </mi> 
        <mi>
          y 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mtext>
        exp 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          2 
        </mn> 
        <msup> 
         <mi>
           π 
         </mi> 
         <mn>
           2 
         </mn> 
        </msup> 
        <mi>
          α 
        </mi> 
        <mi>
          T 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>(10)</p>
   <p>and the sinusoidal initial condition,</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        u 
      </mi> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          x 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          y 
        </mi> 
        <mo>
          , 
        </mo> 
        <mn>
          0 
        </mn> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mo>
        = 
      </mo> 
      <mtext>
        sin 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          π 
        </mi> 
        <mi>
          x 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
      <mtext>
        sin 
      </mtext> 
      <mrow> 
       <mo>
         ( 
       </mo> 
       <mrow> 
        <mi>
          π 
        </mi> 
        <mi>
          y 
        </mi> 
       </mrow> 
       <mo>
         ) 
       </mo> 
      </mrow> 
     </mrow> 
    </math>(11)</p>
   <p>for comparison. The condition (11) is chosen because it satisfies the homogeneous Dirichlet boundary conditions (3 - 4) and corresponds to the exact analytical solution (10) of the 2D heat Equation (1). This facilitates validation of the numerical method by allowing precise error comparison. The error is assessed both visually and through quantitative norms. The maximum norm error is given by</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mrow> 
        <mrow> 
         <mo>
           ‖ 
         </mo> 
         <mi>
           e 
         </mi> 
         <mo>
           ‖ 
         </mo> 
        </mrow> 
       </mrow> 
       <mi>
         ∞ 
       </mi> 
      </msub> 
      <mo>
        = 
      </mo> 
      <munder> 
       <mrow> 
        <mtext>
          max 
        </mtext> 
       </mrow> 
       <mrow> 
        <mi>
          i 
        </mi> 
        <mo>
          , 
        </mo> 
        <mi>
          j 
        </mi> 
       </mrow> 
      </munder> 
      <mrow> 
       <mo>
         | 
       </mo> 
       <mrow> 
        <msubsup> 
         <mi>
           u 
         </mi> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            , 
          </mo> 
          <mi>
            j 
          </mi> 
         </mrow> 
         <mrow> 
          <mtext>
            FTCS 
          </mtext> 
         </mrow> 
        </msubsup> 
        <mo>
          − 
        </mo> 
        <msubsup> 
         <mi>
           u 
         </mi> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            , 
          </mo> 
          <mi>
            j 
          </mi> 
         </mrow> 
         <mrow> 
          <mtext>
            exact 
          </mtext> 
         </mrow> 
        </msubsup> 
       </mrow> 
       <mo>
         | 
       </mo> 
      </mrow> 
      <mo>
        ≈ 
      </mo> 
      <mn>
        1.48472 
      </mn> 
      <mo>
        × 
      </mo> 
      <msup> 
       <mrow> 
        <mn>
          10 
        </mn> 
       </mrow> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          10 
        </mn> 
       </mrow> 
      </msup> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math></p>
   <p>indicating the largest pointwise deviation across the computational domain.</p>
   <p>The discrete 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msup> 
       <mi>
         L 
       </mi> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>-norm error is computed as</p>
   <p>
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <msub> 
       <mrow> 
        <mrow> 
         <mo>
           ‖ 
         </mo> 
         <mi>
           e 
         </mi> 
         <mo>
           ‖ 
         </mo> 
        </mrow> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msub> 
      <mo>
        = 
      </mo> 
      <msqrt> 
       <mrow> 
        <munder> 
         <mstyle mathsize="140%" displaystyle="true"> 
          <mo>
            ∑ 
          </mo> 
         </mstyle> 
         <mrow> 
          <mi>
            i 
          </mi> 
          <mo>
            , 
          </mo> 
          <mi>
            j 
          </mi> 
         </mrow> 
        </munder> 
        <msup> 
         <mrow> 
          <mrow> 
           <mo>
             ( 
           </mo> 
           <mrow> 
            <msubsup> 
             <mi>
               u 
             </mi> 
             <mrow> 
              <mi>
                i 
              </mi> 
              <mo>
                , 
              </mo> 
              <mi>
                j 
              </mi> 
             </mrow> 
             <mrow> 
              <mtext>
                FTCS 
              </mtext> 
             </mrow> 
            </msubsup> 
            <mo>
              − 
            </mo> 
            <msubsup> 
             <mi>
               u 
             </mi> 
             <mrow> 
              <mi>
                i 
              </mi> 
              <mo>
                , 
              </mo> 
              <mi>
                j 
              </mi> 
             </mrow> 
             <mrow> 
              <mtext>
                exact 
              </mtext> 
             </mrow> 
            </msubsup> 
           </mrow> 
           <mo>
             ) 
           </mo> 
          </mrow> 
         </mrow> 
         <mn>
           2 
         </mn> 
        </msup> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          x 
        </mi> 
        <mtext>
          Δ 
        </mtext> 
        <mi>
          y 
        </mi> 
       </mrow> 
      </msqrt> 
      <mo>
        ≈ 
      </mo> 
      <mn>
        7.42362 
      </mn> 
      <mo>
        × 
      </mo> 
      <msup> 
       <mrow> 
        <mn>
          10 
        </mn> 
       </mrow> 
       <mrow> 
        <mo>
          − 
        </mo> 
        <mn>
          11 
        </mn> 
       </mrow> 
      </msup> 
      <mo>
        , 
      </mo> 
     </mrow> 
    </math></p>
   <p>providing a measure of the global error over the entire domain.</p>
   <p>The numerical solution obtained using the FTCS scheme (solid blue line) is plotted against the exact analytical solution (dashed red line) in <xref ref-type="fig" rid="fig5(a)">
     Figure 5(a)
    </xref>. Both solutions are evaluated along the horizontal cross-section 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        y 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.5 
      </mn> 
     </mrow> 
    </math>. The two curves overlap almost perfectly, demonstrating excellent agreement between the FTCS approximation and the true solution. This alignment confirms that the spatial and temporal discretizations are sufficiently fine to resolve the solution accurately.</p>
   <p>The second figure of <xref ref-type="fig" rid="fig5">
     Figure 5
    </xref> (i.e., <xref ref-type="fig" rid="fig5(b)">
     Figure 5(b)
    </xref>) plots the absolute pointwise error 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mrow> 
       <mo>
         | 
       </mo> 
       <mrow> 
        <msub> 
         <mi>
           u 
         </mi> 
         <mrow> 
          <mtext>
            FTCS 
          </mtext> 
         </mrow> 
        </msub> 
        <mo>
          − 
        </mo> 
        <msub> 
         <mi>
           u 
         </mi> 
         <mrow> 
          <mtext>
            exact 
          </mtext> 
         </mrow> 
        </msub> 
       </mrow> 
       <mo>
         | 
       </mo> 
      </mrow> 
     </mrow> 
    </math> along the same line 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mi>
        y 
      </mi> 
      <mo>
        = 
      </mo> 
      <mn>
        0.5 
      </mn> 
     </mrow> 
    </math>. The error curve exhibits a smooth and symmetric profile, peaking near the center of the domain but remaining under 1.5 × 10<sup>−</sup><sup>10</sup>, which is consistent with round-off level errors given the double-precision arithmetic typically used in MATLAB.</p>
   <p>Overall, the error analysis confirms that the FTCS method is both stable and highly accurate under the given discretization and time step. The small magnitude of the maximum and L<sup>2</sup> errors suggest that the numerical solution is an excellent approximation to the analytical solution, validating the correctness and precision of the implementation.</p>
   <fig id="fig5" position="float">
    <label>Figure 5</label>
    <caption>
     <title>Figure 5. Comparison of FTCS and Exact Solutions (left) with Corresponding Error (right) at 

      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
        <mi>
         
   y
  
        </mi>
  
        <mo>
         
   =
  
        </mo>
  
        <mn>
         
   0.5
  
        </mn>
 
       </mrow>

      </math>, 

      <math display="inline" xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
  
        <mi>
         
   T
  
        </mi>
  
        <mo>
         
   =
  
        </mo>
  
        <mn>
         
   1
  
        </mn>
 
       </mrow>

      </math>.</title>
    </caption>
    <graphic mimetype="image" position="float" xlink:type="simple" xlink:href="https://html.scirp.org/file/1724227-rId238.jpeg?20250711024718" />
   </fig>
  </sec><sec id="s6">
   <title>6. Conclusions</title>
   <p>In this study, we applied the Forward Time Centered Space (FTCS) explicit finite difference scheme to numerically solve the two-dimensional heat conduction equation. Starting from the model formulation, we derived the FTCS update formula through systematic spatial and temporal discretization. A detailed von Neumann stability analysis was performed to obtain the CFL condition, which ensures the boundedness of the numerical solution over time.</p>
   <p>The numerical experiments demonstrated that the FTCS method, when applied under stable conditions, yields excellent agreement with the analytical solution. The computed maximum norm and L<sup>2</sup>-norm errors were both of the order of 10<sup>−</sup><sup>10</sup>, indicating the accuracy and reliability of the method. Graphical comparisons further confirmed the validity of the implementation and the method’s capability to capture the correct behavior of the heat distribution.</p>
   <p>A key limitation of FTCS is its conditional stability, requiring very small time steps for fine spatial grids (due to 
    <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> 
      <mtext>
        Δ 
      </mtext> 
      <mi>
        t 
      </mi> 
      <mo>
        ∝ 
      </mo> 
      <msup> 
       <mrow> 
        <mrow> 
         <mo>
           ( 
         </mo> 
         <mrow> 
          <mtext>
            Δ 
          </mtext> 
          <mi>
            x 
          </mi> 
         </mrow> 
         <mo>
           ) 
         </mo> 
        </mrow> 
       </mrow> 
       <mn>
         2 
       </mn> 
      </msup> 
     </mrow> 
    </math>). This leads to high computational cost and makes the scheme unsuitable for long-time simulations or large-scale domains unless adaptive or implicit methods are used. Nevertheless, for problems where the CFL condition can be satisfied, the FTCS method remains a powerful and educationally valuable tool for approximating solutions to the heat equation.</p>
  </sec>
 </body><back>
  <ref-list>
   <title>References</title>
   <ref id="scirp.143957-ref1">
    <label>1</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mojumder, M.S.H., Haque, M.N. and Alam, M.J. (2023) Efficient Finite Difference Methods for the Numerical Analysis of One-Dimensional Heat Equation. Journal of Applied Mathematics and Physics, 11, 3099-3123. &gt;https://doi.org/10.4236/jamp.2023.1110204
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref2">
    <label>2</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Recktenwald, G.W. (2004) Finite Difference Approximations to the Heat Equation. Portland State University.
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref3">
    <label>3</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kinkino Meyu, G. and Aliyi Koriche, K. (2021) Analytical Solution vs. Numerical Solution of Heat Equation Flow through Rod of Length 8 Units in One Dimension. International Journal of Applied Mathematics and Theoretical Physics, 7, 53-61. &gt;https://doi.org/10.11648/j.ijamtp.20210702.12 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref4">
    <label>4</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Loskor, W.Z. and Sarkar, R. (2022) A Numerical Solution of Heat Equation for Several Thermal Diffusivity Using Finite Difference Scheme with Stability Conditions. Journal of Applied Mathematics and Physics, 10, 449-465. &gt;https://doi.org/10.4236/jamp.2022.102034 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref5">
    <label>5</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Kabir, M.H., Afroz, A., Hossain, M.M. and Gani, M.O. (2010) A Finite Difference Method for One Dimensional Heat Equation. Journal of Scientific and Engineering Research, 1, 54-59.
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref6">
    <label>6</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Tawade, S.V. (2022) Comparative Analysis of Two-Dimensional Steady State Heat Flow Problem of a Rectangular Plate by Analytical and Numerical Approach. International Journal of Advanced Research in Science, Communication and Technology, 2, 405-412. &gt;https://doi.org/10.48175/ijarsct-2564 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref7">
    <label>7</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Bernatz, R.A. (2010) Fourier Series and Numerical Methods for Partial Differential Equations. Wiley. &gt;https://doi.org/10.1002/9780470651384 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref8">
    <label>8</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Makhtoumi, M. (2010) Numerical of Solutions Heat Diffusion Equation over One Dimensional Rod Region. International Journal of Advanced Science and Technology, 7, 10-13.
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref9">
    <label>9</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Gorguis, A. and Benny Chan, W.K. (2008) Heat Equation and Its Comparative Solutions. Computers&amp;Mathematics with Applications, 55, 2973-2980. &gt;https://doi.org/10.1016/j.camwa.2007.11.028 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref10">
    <label>10</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Adomian, G. (1988) A Review of the Decomposition Method in Applied Mathematics. Journal of Mathematical Analysis and Applications, 135, 501-544. &gt;https://doi.org/10.1016/0022-247x(88)90170-9 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref11">
    <label>11</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Adomian, G., Rach, R. and Elrod, M. (1989) On the Solution of Partial Differential Equations with Specified Boundary Conditions. Journal of Mathematical Analysis and Applications, 140, 569-581. &gt;https://doi.org/10.1016/0022-247x(89)90084-x 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref12">
    <label>12</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mastoi, S., Ganie, A.H., Saeed, A.M., Ali, U., Rajput, U.A. and Mior Othman, W.A. (2022) Numerical Solution for Two-Dimensional Partial Differential Equations Using SM’s Method. Open Physics, 20, 142-154. &gt;https://doi.org/10.1515/phys-2022-0015 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref13">
    <label>13</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Gonçalves de Brito dos Santos, V. and Gomes dos Anjos, P.T. (2022) Finite Difference Method Applied in Two-Dimensional Heat Conduction Problem in the Permanent Regime in Rectangular Coordinates. Advances in Pure Mathematics, 12, 505-518. &gt;https://doi.org/10.4236/apm.2022.129038 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref14">
    <label>14</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Li, N., Steiner, J. and Tang, S. (1994) Convergence and Stability Analysis of an Explicit Finite Difference Method for 2-Dimensional Reaction-Diffusion Equations. The Journal of the Australian Mathematical Society. Series B. Applied Mathematics, 36, 234-241. &gt;https://doi.org/10.1017/s0334270000010377 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref15">
    <label>15</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Rajput, M.N., Shaikh, A.A. and Kamboh, S.A. (2020) Computational Analysis of the Stability of 2D Heat Equation on Elliptical Domain Using Finite Difference Method. Asian Research Journal of Mathematics, 16, 8-19. &gt;https://doi.org/10.9734/arjom/2020/v16i330177 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref16">
    <label>16</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Haque, M.N., Nasu, N.J., Al Mahbub, M.A. and Mohebujjaman, M. (2024) Two-Grid Stabilized Lowest Equal-Order Finite Element Method for the Dual-Permeability-Stokes Fluid Flow Model. Journal of Scientific Computing, 102, Article No. 1. &gt;https://doi.org/10.1007/s10915-024-02723-x 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref17">
    <label>17</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Mahardika, D.P. and Haryani, F.F. (2020) Numerical Analysis of One Dimensional Heat Transfer on Varying Metal. Journal of Physics: Conference Series, 1511, Article 012049. &gt;https://doi.org/10.1088/1742-6596/1511/1/012049 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref18">
    <label>18</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Firmansah, E. and Rosyid, M.F. (2019) Study of Heat Equations with Boundary Differential Equations. Journal of Physics: Conference Series, 1170, Article 012015. &gt;https://doi.org/10.1088/1742-6596/1170/1/012015 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref19">
    <label>19</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Ali, U., Abdullah, F.A. and Ismail, A.I. (2009) Crank-Nicolson Finite Difference Method for Two-Dimensional Fractional Sub-Diffusion Equation. Journal of Interpolation and Approximation in Scientific Computing, 1, 71-77.
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref20">
    <label>20</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     LeVeque, R.J. (2007) Finite Difference Methods for Ordinary and Partial Differential Equations. Society for Industrial and Applied Mathematics. &gt;https://doi.org/10.1137/1.9780898717839 
    </mixed-citation>
   </ref>
   <ref id="scirp.143957-ref21">
    <label>21</label>
    <mixed-citation publication-type="other" xlink:type="simple">
     Stynes, M., O’Riordan, E. and Gracia, J.L. (2017) Error Analysis of a Finite Difference Method on Graded Meshes for a Time-Fractional Diffusion Equation. SIAM Journal on Numerical Analysis, 55, 1057-1079. &gt;https://doi.org/10.1137/16m1082329
    </mixed-citation>
   </ref>
  </ref-list>
 </back>
</article>