f(x)=\left\{\begin{array}{ll}x^2,&x\geq 0\\-x^2,&x<0\end{array}\right.