Plot[Piecewise[{{x^2+3, x<= 0}, {sin(3*x)/x, x > 0}}], {x, -2, 2}]