If x ^ 3-3x ^ 2 + 3x-9 can be divided by X + A, then the value of a is

If x ^ 3-3x ^ 2 + 3x-9 can be divided by X + A, then the value of a is

x^3-3x^2+3x-9=x^2(x-3)+3(x-3)=(x^2+3)(x-3)
So a = - 3