The function f:Z→Z, f(x)={0 if x is oddx2 if xis even then f is
Let A={x:−1≤x≤1} and f:A→A is a function defined by f(x)=x|x|, then f is