The following question should be part of the questions I recently asked here Prove or disprove a claim related to $L^p$ space
If $g \in L^p(\Omega, \lambda)$ where $\Omega$ is a bounded subset of $\mathbb{R^n}$, $p>1$ and $\lambda$ is the Lebesgue measure. By Holder's inequality, we know that for any measurable set $E \subset \Omega$, $$\int_E |g| d \lambda \le ||g||_p \lambda (E)^{\frac{p-1}{p}}$$.
Now the question is, if there exits a constant C, such that for any measurable set $E \subset \Omega$, $$\int_E |g| d \lambda \le C \lambda (E)^{\frac{p-1}{p}}$$ Does this imply $g \in L^p(\Omega, \lambda)$?
Here is my partial work. I tried to use the the duality of $L^q$ space by contradiction or the fact that simple functions are dense to prove this characterization, but I cannot control the constant. I think I need a powerful elementary inequality. Or maybe this characterization is not true.
Any comments would be appreciated. Thanks!
The condition does not imply that $g\in L^p$.
Consider $g(x)=x^{-1/p}$ on $[0,1]$. Obviously, $g(x)\not\in L^p([0,1])$.
Let $E_\alpha=\{x:x\le\alpha^{-p}\}$, then $|E_\alpha|=\alpha^{-p}$ and $$ \begin{align} \int_{E_\alpha}g(x)\,\mathrm{d}x &=\frac{p}{p-1}\alpha^{1-p}\\ &=\frac{p}{p-1}|E_\alpha|^{\frac{p-1}p} \end{align} $$ Since $g(x)$ is smaller on any other set of measure $\alpha^{-p}$, we have $$ \int_Eg(x)\,\mathrm{d}x\le\frac{p}{p-1}|E|^{\frac{p-1}p} $$