f(x) = If[x  <  -2, (-x),If[x > 2, x^(2),sin(x)]]