Let $(X,M, μ)$ be a measure space and $0 < p < ∞$. Prove that, $μ$ is $σ$-finite iff $L^p(X)$ contains a strictly positive function.
My Work:
If I suppose $L^p(X)$ contains a strictly positive function $f$, then $f^p>0$ on $X$ and $\int_X f^p d\mu<\infty$. Then by a Proposition, $\{x:f^p(x)>0\}$ is $\sigma$- finite. That is $\mu(X)<\infty$. Hence, $μ$ is $σ$-finite. But I was stuck in proving the other direction. Can anybody please give me a hint?
Let $(X,M,\mu)$ be a measure space and $0<p<\infty$
1) If $\mu$ is σ-finite we have $$X=\bigcup_{n=1}^\infty A_n, \ \ \mu(A_n)<\infty .$$ Let us be define $$f(x)=\sum \limits_{n=1}^{\infty}\frac{1}{2^{\frac{n}{p}}}\frac{1}{(\mu(A_n)+1)^{\frac{1}{p}}}X_{A_n}(x),$$ where $X_{A_n}(x)$ is the characteristic function of $A_n$. We note $f(x)>0$ moreover $$\int \limits_{X}f^{p}(x)d\mu\leq\sum \limits_{n=1}^{\infty}\frac{1}{2^{n}}\frac{\mu(A_n)}{(\mu(A_n)+1)}\leq\sum \limits_{n=1}^{\infty}\frac{1}{2^{n}}<\infty,$$ then $f\in \mathbf L^{p}$.
2) If $\mathbf L^{p}$ contains a strictly positive function $f$. For each $n\in \mathbb N$ we consider the measurable set $$A_{n}=\{ x\in X: f^{p}(x)>\frac{1}{n}\}.$$ We observe:
i) $X=\bigcup_{n=1}^\infty A_n, \ \ \mu(A_n)<\infty .$
ii) $\mu(A_n)\leq n\int \limits_{A_n}f^{p}(x)d\mu \leq n\int \limits_{X}f^{p}(x)d\mu<\infty.$\ From i) and ii) $\mu$ is $\sigma$ finite.
Regards!!