How about $x\cdot|x|$? That avoids the need for piecewise definition. And if $|x|$ is defined piecewise for you, then you can use $x\sqrt{x^2},$ instead.
How about $x\cdot|x|$? That avoids the need for piecewise definition. And if $|x|$ is defined piecewise for you, then you can use $x\sqrt{x^2},$ instead.