Mark M. answered 07/30/19
Retired college math professor. Extensive tutoring experience.
Since i and 2i are roots, so are -i and -2i.
f(x) = a(x - i)(x - (-i))(x - 2i)(x-(-2i)) = a(x-i)(x+i)(x-2i)(x+2i)
f(x) = a(x2 + 1)(x2 + 4)
f(-1) = 20, so, 10a = 20. So, a = 2.
f(x) = 2(x2 + 1)(x2 + 4) = 2(x4 + 5x2 + 4) = 2x4 + 10x2 + 8