\r\n" );
document.write( "x²-2x-6x+16\r\n" );
document.write( "\r\n" );
document.write( "Combine the two middle terms:\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "Make sure the trinomial is in descending order\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "1. Make a 4-square box\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "2. Put the first term in the upper left box:\r\n" );
document.write( " Put the last term in the lower right box:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "3. Multiply their coefficients (ignoring signs): (1)(16) = 16\r\n" );
document.write( " Factor the product into all factor pairs:\r\n" );
document.write( " 16\r\n" );
document.write( " /\\r\n" );
document.write( " 16 1\r\n" );
document.write( " 8 2\r\n" );
document.write( " 4 4\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "4. Add each set of factor pairs, since last term is positive.\r\n" );
document.write( " (We would subtract them if the last term were negative)\r\n" );
document.write( "\r\n" );
document.write( " 16\r\n" );
document.write( " /\\r\n" );
document.write( " 16 1 16+1=17\r\n" );
document.write( " 8 2 8+2=10\r\n" );
document.write( " 4 4 4+4=8\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16 \r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "5. Match the absolute value of the middle term coefficient with \r\n" );
document.write( " the same term\r\n" );
document.write( " \r\n" );
document.write( "That's 8.\r\n" );
document.write( "\r\n" );
document.write( " 16\r\n" );
document.write( " /\\r\n" );
document.write( " 16 1 16+1=17\r\n" );
document.write( " 8 2 8+2=10\r\n" );
document.write( " 4 4 4+4=8\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "6. Put one of the factors in the upper right box and put an x after it,\r\n" );
document.write( " (or whatever the variable letter happens to be)\r\n" );
document.write( " Put the other factor in the lower left box and put an x after it,\r\n" );
document.write( " (or whatever the variable letter happens to be)\r\n" );
document.write( "\r\n" );
document.write( " They're both 4, so put 4x in both boxes:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "x²-8x+16\r\n" );
document.write( "\r\n" );
document.write( "7. Give the larger of those two the same sign as the middle term.\r\n" );
document.write( " If the last term is positive, give the smaller the same sign.\r\n" );
document.write( " If the last term is negative, give the smaller the opposite sign.\r\n" );
document.write( "\r\n" );
document.write( "They're both the same, so pick one and give it a - sign, since\r\n" );
document.write( "the middle term's sign is -. Give the other one a - sign also, since\r\n" );
document.write( "the last term is +.\r\n" );
document.write( "\r\n" );
document.write( " \r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "8. Put the GCF of the top row to the left of the top row.\r\n" );
document.write( " Put the GCF of the bottom row to the left of the bottom row.\r\n" );
document.write( " If the bottom row begins with a -, give the GCF a -\r\n" );
document.write( " Put the GCF of the left column above the left column.\r\n" );
document.write( " Put the GCF of the right column above the right column.\r\n" );
document.write( " If the right column begins with a -, give the GCF a -,\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "9. Use the factors outside to make two binomials:\r\n" );
document.write( " (x-4)(x-4)\r\n" );
document.write( "\r\n" );
document.write( "That's it. However since they are the same binomial, write just one\r\n" );
document.write( "of them squared:\r\n" );
document.write( "\r\n" );
document.write( "Answer: (x-4)² \r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "