QuestionShareThe function $f(x)=\left\{\begin{array}{cc}x^2 & \text { for } x<1 \\ 2-x & \text { for } x \geq 1\end{array}\right.$ is