Divide the following by both long division and synthetic division

a). x^3 + x^2 - 2x + 4 by x-2

b). x^5 + 4x^4 + x^3 - x^2 + 2x - 7