Answer:
(x-3)(x+i)(x-i)
Explanation:

We apply grouping method
We group first two terms and last two terms
Take out GCF x^2 from first group. Also take out 1 from second group

Now we factor x^2 + 1
We use difference of square formula
a^2 - b^2 = (a+b)(a-b)
x^1 + 1 can be written as
, the value of -1 is i^2

x^2 - i^2 = (x+i)(x-i)
Final answer is (x-3)(x+i)(x-i)