In each of the following, two polynomials, find the value of a, if x + a is a factor.
(i) x3+ax2 - 2x + a + 4
(ii) x4−a2x2 + 3x - a