I have an exercise from the PDE class:
Suppose u is a smooth solution to $$ \left\{ \begin{aligned} Lu:= \Delta u + cu = \vert \nabla u \vert^2 \quad \text{in}\ \Omega, \\ u = 0 \quad \text{on}\ \partial \Omega, \end{aligned} \right. $$ where $\Omega \subset \mathbb{R}^n$ is a open bounded region and $c \le 0$ is a constant. Show that $u\equiv 0$ in $\Omega$.
The professor talked about a version of Maximum Principle like this:
Let $u \in C^2(\Omega) \cap C(\overline{\Omega})$ satisfies $Lu \ge 0$ and $c(x) \le 0$ in $\Omega$. Then the nonnegative maximum of $u$ in $\overline{\Omega}$ can be attained only on $\partial \Omega$, unless $u$ is a constant.
My attempt:
First deal with the case of $c < 0$.
If $u$ is not constant on $\Omega$, by the Maximum Principle we must have $u < 0$ in $\Omega$. Take $M = \inf_{x \in \Omega} u$ and $M<0$. Since $u$ is smooth and $\Omega$ is bounded, we can assume $u$ attains the minimum at $x_0 \in \Omega$. Then by the equation we have $$ \Delta u(x_0) = \vert \nabla u(x_0) \vert^2 - cu(x_0) = -cM < 0. $$ This implies that the Hessian $D^2u$ at $x_0$ must have a negative eigenvalue, so $u(x_0)$ cannot be the minimum inside $\Omega$.
However, the above argument does not stand in the case of $c=0$. Any hint will be appreciated!