Let a and b real numbers such that x^4+2x^3-4x^2+ax+b = (Q(x))^2 for some polynomial Q(x). What is the value of a + b?