g(x)=\left\{\begin{array}{ll}0, & x>0,\\ x^2, & x\leq 0.\end{array}\right.