document.write( "Question 1208646: Form a polynomial f left parenthesis x right parenthesis with real coefficients having the given degree and zeros.
\n" ); document.write( "Degree​ 5; ​ zeros: negative 4 ; minus i ; 5 plus i
\n" ); document.write( "

Algebra.Com's Answer #847031 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer is f(x) = x^5 - 6x^4 - 13x^3 + 98x^2 - 14x + 104\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "How to find that answer:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Since all of the coefficients are real numbers, this means the complex roots come in conjugate pairs.
\n" ); document.write( "a+bi pairs with a-bi\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-i pairs with i
\n" ); document.write( "5+i pairs with 5-i\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The five roots are: -4, i, -i, 5+i, 5-i
\n" ); document.write( "Recall the fundamental theorem of algebra says that any nth degree polynomial has n complex roots.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = i has both sides square to x^2 = -1 and then we get everything to one side: x^2+1=0. So that yields the factor (x^2+1).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x = 5+i becomes x-5 = i; then both sides square to x^2-10x+25 = -1 and it becomes x^2-10x+26=0
\n" ); document.write( "Use the quadratic formula to solve x^2-10x+26=0 and you should get x = 5+i and x = 5-i.
\n" ); document.write( "Note: If you're using GeoGebra, you need to use the CSolve command (in contrast to the regular Solve command). Otherwise, it will produce an empty set of solutions.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That slight tangent aside, we can say the following
\n" ); document.write( "The root x = -4 leads to the factor (x+4)
\n" ); document.write( "The roots x = i, x = -i lead to the factor (x^2+1)
\n" ); document.write( "The roots x = 5+i, x = 5-i lead to the factor (x^2-10x+26)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The goal is to expand this out: (x+4)(x^2+1)(x^2-10x+26)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For now let's focus on expanding the portion (x+4)(x^2+1)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We could use the FOIL rule, but I'll use the box method instead.
\n" ); document.write( "Place the terms x and 4 along the left hand side. Place the terms x^2 and 1 along the top.
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
x^21
x
4
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To fill out this table, multiply each pair of headers.
\n" ); document.write( "Eg: top left corner is x^2*x = x^3
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
x^21
xx^3x
44x^24

\n" ); document.write( "The inner terms in blue are then added to get x^3+4x^2+x+4. There aren't any like terms to combine.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have shown that (x+4)(x^2+1) = x^3+4x^2+x+4\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So
\n" ); document.write( "(x+4)(x^2+1)(x^2-10x+26)
\n" ); document.write( "updates to
\n" ); document.write( "(x^3+4x^2+x+4)(x^2-10x+26)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We'll need to do one more application of the box method.
\n" ); document.write( "Here's the blank template with the headers filled in.
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
x^2-10x26
x^3
4x^2
x
4
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "And here's the completed table
\n" ); document.write( "\n" ); document.write( "\n" ); document.write( "
x^2-10x26
x^3x^5-10x^426x^3
4x^24x^4-40x^3104x^2
xx^3-10x^226x
44x^2-40x104

\n" ); document.write( "Add up the terms in blue.
\n" ); document.write( "This time we have groups of like terms to combine (eg: 4x^4 + (-10x^4) = -6x^4)
\n" ); document.write( "Notice the like terms are along northeast diagonals.
\n" ); document.write( "I'll skip a bit of scratch work and leave it to the student. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You should get the final result f(x) = x^5 - 6x^4 - 13x^3 + 98x^2 - 14x + 104\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You can use various software tools to verify this answer.
\n" ); document.write( "WolframAlpha is one example. GeoGebra is another (make sure to use Csolve instead of Solve).
\n" ); document.write( "
\n" ); document.write( "
\n" );