Show that if $\int fh < \infty$ for all $h \in L^q$ then $f \in L^p$
We can assume we are on Lebesgue measure if necessary. This seems like it should not be hard to show but this is the first problem i encountered which wants you to prove integrability. My idea was as follows. Let $A_n=\{x | |f(x)||>n\}$ then we have two options, either $\mu(A_n)<\infty$ for some $n$ or $\mu(A_n)=\infty$ for all $n$. The first case: By continuity of measure we know that for some big $M$ $\mu(A_M)<1$ and so it's characteristic function belong to $L^q$ and we know the integral over that set is finite. So now we have the function is bounded on an infinite set. I am not sure what to do now. My suspicion is pick a good $h$ but I do not know how. Hints would be appriciated.