piecewise[{{x^2+2*x,x<=1},{2*x-1,x>1}}]