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