\r\n" );
document.write( "2y³+y²-2y-1\r\n" );
document.write( "\r\n" );
document.write( "Using the factor theorem:\r\n" );
document.write( "\r\n" );
document.write( "If r is a root then (y-r) is a factor\r\n" );
document.write( "\r\n" );
document.write( "The candidates for the roots are ± the factors each of whose\r\n" );
document.write( "numerator is a factor of 1, the constant term, and whose \r\n" );
document.write( "denominator is a factor of 2, the coefficient of the term\r\n" );
document.write( "with the largest power of the variable, 2y³.\r\n" );
document.write( "\r\n" );
document.write( "The candidates for roots are ±1,
\r\n" );
document.write( "\r\n" );
document.write( "We try 1 using synthetic division:\r\n" );
document.write( "\r\n" );
document.write( "1|2 1 -2 -1\r\n" );
document.write( " | 2 3 1\r\n" );
document.write( " 2 3 1 0\r\n" );
document.write( "\r\n" );
document.write( "The remainder is 0, so 1 is a root and we have now\r\n" );
document.write( "factorised 2y³+y²-2y-1 as\r\n" );
document.write( "\r\n" );
document.write( "(y-1)(2y²+3y+1)\r\n" );
document.write( "\r\n" );
document.write( "We now factorise the trinomial 2x²+3x+1 as (2x+1)(x+1)\r\n" );
document.write( "\r\n" );
document.write( "(y-1)(2y+1)(y+1) \r\n" );
document.write( "\r\n" );
document.write( "------------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "Without using the factor theorem:\r\n" );
document.write( "\r\n" );
document.write( "2y³+y²-2y-1\r\n" );
document.write( "\r\n" );
document.write( "Factorise out y² from the first two terms\r\n" );
document.write( "Factorise out -1 from the last two terms\r\n" );
document.write( "\r\n" );
document.write( "y²(2y+1)-1(2y+1)\r\n" );
document.write( "\r\n" );
document.write( "Factorise out (2y+1)\r\n" );
document.write( "\r\n" );
document.write( "(2y+1)(y²-1)\r\n" );
document.write( "\r\n" );
document.write( "Factorise y²-1 as the difference of squares (y-1)(y+1)\r\n" );
document.write( "\r\n" );
document.write( "(2y+1)(y-1)(y+1)\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( "