Let collect the unknowns in grid column , and define . The terms within one column form the block
while coupling to either adjacent column contributes
The zero boundary values remove all blocks outside the displayed range, so the nine-point finite-difference stencil becomes the block tridiagonal matrix system