Piecewise[{{2, x <= 2}, {6, x > 2}}]-Piecewise[{{-1, x <= 2}, {3, x > 2}}]