When f(x)is divided by x-1 and x+2,the remainders are 4 and -2 respectively . Hence find the remainder when f(x)is divided by x^2+x-2 .