plot Piecewise[{{x^2 -5,x<=3},{x+2,x>3}}] from -10 to 10