Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ii/paper-1/41c/a/solution

At an interior grid point, the five-point finite difference method gives
Let
where the zero Dirichlet boundary values are already incorporated. Stack the unknowns with the index varying fastest. Using the Kronecker product, define
Then the semidiscrete equation is
Moreover,
Thus the directional matrices commute, as in the five-point Dirichlet Laplacian as a Kronecker sum.

New to topics? Read the docs here!