Let $p<n$ and consider the Sobolev inequality on $W^{1,p}(\mathbb{R}^n)$ space: $$\tag{1} \left\lVert u \right\rVert_{p^\star, \mathbb{R}^n} \le C\left\lVert \nabla u \right\rVert_{p,\mathbb{R}^n}.$$ Inequality $(1)$ cannot hold verbatim for a bounded domain $D$: indeed, testing it against the constant function $1$ we get the contradiction $$\tag{!!} 0<\left\lVert1\right\rVert_{p^\star, D}\le C \left\lVert \nabla 1\right\rVert_{p, D}=0.$$ What we do have on $D$, provided that its boundary is not too wild, is the following weaker version of $(1)$: $$\tag{1weak} \left\lVert u \right\rVert_{p^\star, D}\le C\left\lVert u\right\rVert_{1, p, D}.$$
Now let us consider the unbounded open set $\mathbb{R}^n_+=\left\{(x', x_n)\in \mathbb{R}^{n-1}\times \mathbb{R}\ :\ x_n>0\right\}$. Here inequality $(1)$ does hold (if I am not mistaken), because if $u\in C^1\left(\overline{\mathbb{R}^n_+ }\right)\cap W^{1, p}(\mathbb{R}^n_+)$ then we can extend it by reflection: $$\overline{u}(x', x_n)=\begin{cases} u(x', x_n)& x_n \ge 0 \\ -3u(x', -x_n)+4\left(x', -\frac{x_n}{2}\right) & x_n <0 \end{cases}$$ obtaining a function $\overline{u}\in C^1(\mathbb{R}^n)\cap W^{1, p}(\mathbb{R}^n)$ satisfying the following pair of estimates: \begin{align*} \left\lVert \overline{u}\right\rVert_{p, \mathbb{R}^n}&\le C_0 \left\lVert u\right\rVert_{p, \mathbb{R}^n_+}\\ \left\lVert \nabla\overline{u}\right\rVert_{p, \mathbb{R}^n}&\le C_1 \left\lVert \nabla u\right\rVert_{p, \mathbb{R}^n_+}. \end{align*} Thus applying inequality $(1)$ to the extended function $\overline{u}$ we immediately get $$\tag{2} \left\lVert u\right\rVert_{p^\star, \mathbb{R}^n_+}\le C\left\lVert \nabla u \right\rVert_{p, \mathbb{R}^n_+}.$$
Questions.
- Where does this procedure fail on a bounded domain?
- Which (unbounded) domains are such that the Sobolev inequality holds in its stronger form $(1)$?
Thank you for reading.