Piecewise[{{(3 (-1/3 + (2 - x)^(-1)))/2, -1 <= x <= 1}, {1, x > 1}}]