I am looking at Robert's answer here. The question is to find a function $f$ which is in $L^p$ for only one value of $p$. The answer given by Robert is:
$$f(x)=\frac{1}{x^{1/p}((\log x)^2+1)} \text{ on } (0,\infty)$$
I am assuming this $f$ is supposed to be in $L^1$ and not in $L^p$ for $p>1$? Assuming the previous line is correct, I can see that $f\in L^1$ and don't understand why $f\notin L^p$ for $p>1$?
Because:
$$\int_{(0,\infty)}\left( \frac{1}{x^{1/p}((\log x)^2+1)}\right)^pdx = \int_{(-\infty,\infty)}\frac{1}{(y^2+1)^p}dy\leq \int_{(-\infty,\infty)}\frac{1}{(y^2+1)}dy<\infty$$
May I know what's wrong in my thinking? Thanks.