Denote $U=\{x\in \mathbb{R}^2 | |x_1|<1, |x_2|<1\}$
Define:
$ u(x) = \begin{cases} 1-x_1 &\mbox{if } x_1>0, |x_2|<x_1 \\ 1+x_1& \mbox{if } x_1<0, |x_2|<-x_1 \\ 1-x_2& \mbox{if } x_2>0, |x_1|<x_2 \\ 1+x_2& \mbox{if } x_2<0, |x_1|<-x_2. \end{cases} $
For which $1\leq p<\infty$ does u belongs to $W^{1,p}(U)$ ?
I know that I have to find $p$ such that $u$ has derivative in the weak sense and the derivative $|Du|\in L^p(U)$ .
To show that $u$ has derivative in a weak sense, I let $\phi \in C_c^\infty(U)$ and show that :
$$\int_U u\phi_{x_i}dx=-\int_U u_{x_i}\phi(x) dx, i=1,2$$ This is where I got stuck. I wrote down the double integrals with respect to each case , but I do not know how to simplify those.