Simplify 3x^2-2x+4-x^2+x