If $\mathrm{A}$ is the domain and $\mathrm{B}$ is the range of the function $f(x)=\left\{\begin{array}{ll}3…
If $\mathrm{A}$ is the domain and $\mathrm{B}$ is the range of the function
$f(x)=\left\{\begin{array}{ll}3 x-1, & x>1 \\ x^2+1, & x \leq 1\end{array}\right.$ then $A-B=$