plot (1-x)*x+2x and -1/2+(1-2x)*x +4x from 0 to 1/2