jwpaine said:
Would someone please show Ruby and I how to find the imaginary roots?
Jwpaine: There are different methods, one of which (specific to this exercise) is explained by sorobon. When you can't find nice
rational roots, the problem generally becomes much more difficult, and sometimes you just have to resort to numerical methods.
In this particular case, however, you can find the solution working backwards from some reasonable assumptions.
. . .We have x<sup>4</sup> - x<sup>3</sup> + x<sup>2</sup> - x + 1, a suspiciously-neat and
. . .simple polynomial. It's a degree-four polynomial.
. . .Let's assume that it's the product of two quadratics.
. . .Then:
. . . . .x<sup>4</sup> - x<sup>3</sup> + x<sup>2</sup> - x + 1 = (x<sup>2</sup> + ax + 1)(x<sup>2</sup> + bx + 1)
. . .The x<sup>2</sup>'s and the 1's are fairly obvious. Now we need
. . .to try to find values for our variables "a" and "b".
. . .Multiplying out, we get:
. . . . .x<sup>4</sup> + (a + b)x<sup>3</sup> + (ab + 2)x<sup>2</sup> + (a + b)x + 1
. . .Equating coefficients, we get:
. . . . .ab + 2 = 1
. . . . .ab = -1
. . . . .b = -1/a
. . . . .a + b = 1
. . . . .a + (-1/a) = 1
. . . . .a<sup>2</sup> - 1 = a
. . . . .a<sup>2</sup> - a - 1 = 0
Then solve for the value(s) of "a", back-solve for the corresponding value(s) of "b", and plug-n-chug. Then apply the Quadratic Formula to each of the quadratic factors to find the (complex) results provided earlier.
I hope that helps a bit.
Eliz.