Plot[{1,x,(1/2)-x},{x,-0.5,1}]