Let our problem be $$ \begin{align*} -\Delta u &= f(x,y), \quad (x,y) \in [0,5]\times [0,5]\\ u(x,y) &= g(x,y), \quad (x,y) \in \partial\{[0,5] \times [0,5]\} \end{align*} $$
Suppose you have a $4\times4$ step mesh grid (for a total of $25$ grid points). Begin the indexing at $i,j = (1,1)$ for the bottom left corner; take a lexicographical ordering from bottom up, then progressing from left to right. So in the equation $Au = b$, where $A$ is $25\times25$, b is $25\times1$.
Then for inhomogeneous Dirichlet boundary conditions, what is are the values of $b$ at the corner of the grid and the corner of the interior grid? That is, what values constitute $b_1, b_5, b_{21}, b_{25}$ for the corner of the outer grid, and $b_7, b_9, b_{17}, b_{19}$ for corner points of the interior grid (which has $9$ grid points).
I understand the homogeneous case, but I'm a little confused on the non-homogeneous case.



. 