The finite difference formulation above can easily be extended to two- or
three-dimensional heat transfer problems by replacing each second derivative
by a difference equation in that direction. For example, the finite difference
formulation for steady two-dimensional heat conduction in a region with heat generation and constant thermal conductivity can be expressed in rectangular
coordinates as (Fig. 5–9)