Piecewise[{{x, x < 0}}, Sin[x]]