Let $\Omega \subset \mathbb{R}^2$ and $v: \mathbb{R}^2 \to \mathbb{R}$ be a solution to:
$$\begin{cases} v_{xx}+v_{yy} = -2 &\text{in $\Omega$}\\ v = 0 &\text{in $\partial \Omega$} \end{cases}$$ And let $u = |\nabla v|^2$. I need to show that $u$ reaches its maximum in $\partial \Omega$. My first line of thought would be to show that $u$ is harmonic in $\Omega$, which by the maximum principle would show what I need. I proceeded as follows:
$u = v_x^2+v_y^2$, so $u_x = 2(v_xv_{xx}+v_yv_{yx})$, and $u_y = 2(v_xv_{xy}+v_yv_{yy})$.
So, $u_{xx} = 2(v_{xx}^2+v_xv_{xxx} + v_{yx}^2+v_yv_{yxx})$, and $u_{yy} = 2(v_{xy}^2+v_xv_{xyy}+v_{yy}^2+v_yv_{yyy})$.
Now, $u_{xx}+u_{yy} = 2(v_{xx}^2+2v_{yx}^2+v_{yy}^2+v_y\Delta v_y + v_x\Delta v_x)$.
Finally, $\Delta v_y = \Delta v_x = 0$ (This follows easily since $\Delta v$ is constant), we have $u_{xx} + u_{yy} = 2(v_{xx}^2 + 2v_{yx}^2 + v_{yy}^2)$, which i'd like to show to be $0$. I know that $v_{xx}^2 + 2v_{yx}^2 + v_{yy}^2 = (\Delta v)^2 - 2v_{xx}v_{yy} + 2v_{yx}^2 = 4 - 2v_{xx}v_{yy} + 2v_{yx}^2$.
So ideally, $-v_{xx}v_{yy} + v_{yx}^2 = 2$ and i'm done, but I dont see how this is true.