A nine-point finite-difference stencil on a square grid couples a central value to its four axial neighbours and four diagonal neighbours. Ordering the grid by columns produces a block tridiagonal matrix whose diagonal and off-diagonal blocks are symmetric tridiagonal Toeplitz matrices.
Let and define . The artificial boundary values are . For the symmetric tridiagonal Toeplitz matrix , the sine addition formula gives
Thus all such matrices have the same discrete sine transform eigenvectors, with eigenvalues
The sine vectors are mutually orthogonal vectors and nonzero, so the matrix is invertible. If , then and therefore