Section 9 of the lectures notes of Maz'ya (Мазья) on isocapacity, lectures notes that can be found at: http://www.math.liu.se/~vlmaz/pdf/mazya.pdf, discusses inequality between the $L^p$ norm in a cube (or a ball) of a function and its gradient, assuming the function vanishes on some compact subset $F$ of the cube. For instance, Theorem 9.1 gives a nice inequality between these quantities involving the $p$-capacity of the set $F$ if $1 < p < n$. My question is what happens if $p > n$ and if $p = n$. If $n > p$, it is known that every non-empty subset of the cube is an essential subset (An essential subset is a non-negligible subset. A negligible subset is a subset that verifies (9.7) for a sufficiently small constant $\gamma$). Therefore, the situation is clearly different. I just can not get how to prove a similar inequality in such case. I would expect something like the following to hold if $p>n$:
$$ \int_{Q_d} |u(x)|^p dx \leq C d^p \int_{Q_d} |\nabla u|^p dx, $$
where $C$ is a positive constant and $d$ is the edge of the cube.