The following is the well known Poincaré inequality for $H_0^1(\Omega)$:
Suppose that $\Omega$ is an open set in $\mathbb{R}^n$ that is bounded in some direction. Then there is a constant $C$ such that $$ \int_\Omega u^2\ dx\leq C\int_\Omega|Du|^2\ dx\quad \textrm{ for all }\ \ \color{red}{u\in H_0^1(\Omega)}. $$
Here are my questions:
- Could anyone come up with an example that $f\in H^1(\Omega)\setminus H_0^1(\Omega)$?
- Is the statement above true if one replaces $H_0^1(\Omega)$ with $H^1(\Omega)$?
Take $u \equiv 1$. Then, $u \in H^1(\Omega) \setminus H_0^1(\Omega)$ and your inequality fails (as long as $\Omega \ne \emptyset$).