The problem is given as follows
\begin{align} -\Delta u &= f, \text{in} \: \Omega \\ u &= 0, \text{on} \: \delta \Omega_D \\ H(u) &= 0, \text{on} \: \delta \Omega_N, \end{align} where $\Omega$ is the domain to be considered and the Dirichlet and Neumann boundary conditions are applied on $\delta \Omega_D$ and $\delta \Omega_N$, respectively. What does $H(u)$ mean in this case?
This is an exam question, and I have the solution manual available. I'm trying to understand the proposed solution where the 5-point formula is used to obtain a matrix $A$ such that $AU=F$. I've set up the 5-point formula which looks like this $$ -\frac{1}{h^2}(U_{i+1}^{j}+U_{i-1}^{j}+U_{i}^{j+1}+U_{i}^{j-1}-4U_{i}^{j}) = f_i^j,$$ where the indexes $i$ and $j$ are iterated in the $x$ and $y$ direction, respectively, and $U_{i}^{j}$ is the numerical approximation of $u(x_i^j,y_i^j)$.
In the solution manual, the points on the boundary $\delta\Omega_N$ rely on twice the contribution from the points in $\Omega$. E.g. say the point $(X^j_i,Y^j_i) \in \delta\Omega_N$ has a neighbouring point $(X^{j}_i,Y^{j+1}_i) \in \Omega$ which lies right above. Then according to the solution manual, the 5-point formula gives $$-\frac{1}{h^2}(2U_{i}^{j+1}-4U_{i}^{j}) = f_i^j.$$ I suspect my derivation of the 5-point formula above doesn't take into account the correct given boundary conditions. Can you explain how the contribution from the inner points of the domain $\Omega$ is twice as much when evaluating the points on the Neumann boundary $\delta \Omega_N$?