Mark M. answered 09/23/19
Retired math prof. Very extensive Precalculus tutoring experience.
Since the polynomial has degree 5, there can't be more than 5 distinct roots.
Since f(x) has real coefficients, complex roots occur in conjugate pairs. So, since -i is a root, so is i. Since -2+i is a root, so is -2-i.
f(x) = (x+1)(x - (-i))(x - i)(x - (-2+i))(x - (-2-i))
= (x+1)(x+i)(x-i)[(x+2)-i][(x+2+i]
= (x+1)(x2+1)[(x+2)2 -i2]
= (x+1)(x2+1)(x2+4x+5)
= (x3 + x2 + x + 1)(x2 + 4x + 5)
= x5 + 4x4 + 5x3 + x4 + 4x3 + 5x2 + x3 + 4x2 + 5x + x2 + 4x + 5
= x5 + 5x4 + 10x3 + 10x2 + 9x + 5