I have the following question:
We consider in the segment $I=]-1,1[$, the function $f(x)=|x|.$ The question is: For each value $p \in [1,+\infty[$ do we have $f \in W^{1,p}(I)$?
My purpose is: We know that $$ W^{m,p}(I)=\{u \in L^p(I), D^{\alpha} u \in L^p(I) \forall |\alpha| \leq m\} $$ where $D^{\alpha} u $ is derivative in a distribution sense. So, $$ W^{1,p}(I)= \{u \in L^p(I), u' \in L^p(I)\} $$ First, we search all $p$ that $u \in L^p(I).$ We have $$ \displaystyle\int_{-1}^1 |x|^p dx = \displaystyle\int_{-1}^0 (-x)^p dx + \displaystyle\int_0^1 x^p dx = -\dfrac{(1)^{p+1}}{p+1} + \dfrac{(1)^{p+1}}{p+1}= 0 $$ Can we conclude that $u \in L^p(I)$ for all $p$?
Second, we search all $p$ that $u' \in L^p(I)$. We have for all $\varphi \in D(I)$ $$ \langle u',\varphi\rangle=-\langle u,\varphi'\rangle = - \displaystyle\int_{-1}^0 (-x)^p \varphi'(x) dx + \displaystyle\int_0^1 x^p \varphi'(x) dx $$ By integration by parts, we have: $$ \displaystyle\int_{-1}^0 (-x)^p \varphi'(x)dx = [(-x)^p \varphi(x)]_{-1}^0 + p \displaystyle\int_{-1}^0 (-x)^{p-1} \varphi(x) dx $$ and $$ \displaystyle\int_0^1 x^p \varphi'(x)dx = [x^p \varphi(x)]_0^1 - p \displaystyle\int_0^1 x^{p-1} \varphi(x) dx $$ but I cannot conclude what $p$ is such that $u' \in L^p(I)$ and, therefore, what $p$ is such that $u \in W^{1,p}(I)$.
The measure of the space is finite, and $f$ is bounded, so $f\in L^p$ for all $p\ge 1$. And the distributional derivative of f is (check): $$f'(x) = 1\text{ for }x>0,\qquad f'(x) =- 1\text{ for }x<0.$$ Is $f'\in L^p$?