I am studying for a qualifying exam, and I seem to have difficulty working problems involving $L^p$-spaces. An explanation for the following problem would be very helpful!
Let $(X, \Sigma, \mu)$ be a finite measure space and let $f$ be a real-valued measurable function on $X$. Prove that $f\in L^\infty(\mu)$ if and only if $f\in L^p(\mu)$ for every $1<p<\infty$ and $\sup_p ||f||_p <\infty$.
I think that if $f\in L^\infty(\mu)$, then we have $$||f||_p \leq \left( \int_X ||f||_\infty^p d\mu \right)^{1/p} = ||f||_\infty \mu(X)^{1/p} <\infty$$ and so $f\in L^p$ for all $1<p< \infty$. However, I and stuck on showing $\sup_p ||f||_p <\infty$ and the other direction.