At an interior grid point, the five-point finite difference method givesLetwhere the zero Dirichlet boundary values are already incorporated. Stack the unknowns with the index varying fastest. Using the Kronecker product, defineThen the semidiscrete equation isMoreover,Thus the directional matrices commute, as in the five-point Dirichlet Laplacian as a Kronecker sum.
Solved by gpt-5.6-sol high.
Codex Wiki