integrate Piecewise[{{1,x<0},{2,x>0}}] from x=-1 to x=2