\int|x|dx=\int xsgnxdx=sgnx\int xdx=\frac{x^2}{2}sgnx+C=\frac{1}{2}x xsgnx+C=\frac{1}{2}x|x|+C