You can put this solution on YOUR website! I will prove only (a). You do the rest....
if x > 0; if x < 0. (And of course, .)
Given: n < 0.
Case I. m > 0.
===> , and so
Case II. m < 0.
===> , and so .
Case III. m = 0 is trivial after substitution of 0 for m to both sides of the equation.
Hope you get the drift...