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