
Sagar R. answered 10/06/22
An experienced tutor, computer scientist, and mathematician
I like to remember these two closely related forms for a polynomial (in this case, degree 4):
f(x) = a(x-r1)(x-r2)(x-r3)(x-r4) = a(x3+bx2+cx+d)
The left side is:
f(x) = a(x+3)(x-1)(x-i)(x-r4)
From these we can come up with some information about the polynomial.
We know that the coefficients must be real, so the last zero has to be the complex conjugate of i. Therefore, r4 = -i, so
f(x) = a(x+3)(x-1)(x-i)(x+i)
We know f(0) = 12, so plugging that in we get
f(0) = a*3*-1*-i*i = ad
-3a = ad
d = -3
We also have
ad = -12
so
a = 4
Now that we know a and all the roots, we can write
f(x) = 4(x+3)(x-1)(x-i)(x+i)
Which we can expand (if necessary):
f(x) = 4(x2+2x-3)(x2+1)
f(x) = 4(x4+2x3-2x2+2x-3)
f(x) = 4x4+8x3-8x2-12