we consider the function $f(x)= \ln(|x|)$ defined in $\mathbb{R}^2 \setminus \{0\}$. I have difficlties for these two questions:
How we prouve that $f \in L^p_\text{loc}(\mathbb{R}^2)$ for $p < +\infty$?
How we prouve that $\partial_i f \in L^p_\text{loc}(\mathbb{R}^2), i=1,2$ for $p < 2$?
I know that $f$ is continuous then $f \in L^1_\text{loc}(\mathbb{R})$, but i have difficulties with two questions.
Thank you in advance to the help.
Local integrability is equivalent to integrabilty over some ball around each point. Considering the fact that f and its partials are continuous on $\mathbb R^{2} \setminus \{0\}$ we only have to consider integrals over $\{x:|x|<\delta\}$for some $\delta >0$. This is very easy using polar coordinates: $\int_{\{x:|x|<\delta\}} ln|x| dx = \int_0^{2\pi}\int_0^{\delta} r \ln (r) dr d\theta$ which is finite because $r \ln (r) \to 0$ as $r \to 0$. For the partial write $f(x)=\frac 1 2 \ln (x^{2}+y^{2})$. If you differentiate and change to polar coordinates again you will get integrals of $\frac {\cos (\theta)} r$ and $\frac {\sin (\theta)} r$ with respect to $rdrd\theta$ which are finite.