document.write( "Question 206096: How do you solve a linear equations with Gaussian elimination?\r
\n" ); document.write( "\n" ); document.write( "x+ y + Z =9
\n" ); document.write( "2X- 3y +4z =7
\n" ); document.write( "X- 4y + 3Z =-2
\n" ); document.write( "

Algebra.Com's Answer #155727 by Edwin McCravy(20056)\"\" \"About 
You can put this solution on YOUR website!
\"%28matrix%283%2C4%2C1%2C1%2C1%2C9%2C2%2C-3%2C4%2C7%2C1%2C-4%2C3%2C-2%29%29\"
\n" ); document.write( "
\r\n" );
document.write( "Multiply row 1 thru by -2 and add to row 2\r\n" );
document.write( "\r\n" );
document.write( "\"%28matrix%283%2C4%2C1%2C1%2C1%2C9%2C0%2C-5%2C2%2C-11%2C1%2C-4%2C3%2C-2%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "Multiply row 1 by -1 and add to row 3\r\n" );
document.write( "\r\n" );
document.write( "\"%28matrix%283%2C4%2C1%2C1%2C1%2C9%2C0%2C-5%2C2%2C-11%2C0%2C-5%2C2%2C-11%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "Multiply row 2 by -1 and add to row 3\r\n" );
document.write( "\r\n" );
document.write( "\"%28matrix%283%2C4%2C1%2C1%2C1%2C9%2C0%2C-5%2C2%2C-11%2C0%2C0%2C0%2C0%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "Now we write the system of equations that this\r\n" );
document.write( "matrix represents:\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "The bottom equation is all 0's so any values of\r\n" );
document.write( "x, y, and z would be solutions to it, so we eliminate\r\n" );
document.write( "it\r\n" );
document.write( "\r\n" );
document.write( "Choose an arbitrary value for z, we will use \"z=a\"\r\n" );
document.write( "\r\n" );
document.write( "Or, after erasing the 0s and 1 coefficients:\r\n" );
document.write( "\r\n" );
document.write( "\"system%28x+%2B+y+%2B+z+=+++9%2C%0D%0A+-5y+%2B+2z+=+-11%29\"\r\n" );
document.write( "\r\n" );
document.write( "Substitute \"a\" for \"z\" in the 2nd equation:\r\n" );
document.write( "\r\n" );
document.write( "\"-5y+%2B+2a+=+-11\"\r\n" );
document.write( "\r\n" );
document.write( "Solve for y\r\n" );
document.write( "\r\n" );
document.write( "\"-5y=-11-2a\"\r\n" );
document.write( "\r\n" );
document.write( "\"y=11%2F5%2B2a%2F5\"\r\n" );
document.write( "\r\n" );
document.write( "Substitute \"a\" for \"z\" and \"11%2F5%2B2a%2F5\" \r\n" );
document.write( "for \"y\" in the first equation:\r\n" );
document.write( "\r\n" );
document.write( "\"x+%2B+y+%2B+z+=+++9\"\r\n" );
document.write( "\r\n" );
document.write( "\"x+%2B+%2811%2F5+%2B2a%2F5%29+%2B+a+=+9\"\r\n" );
document.write( "\r\n" );
document.write( "\"x+%2B+11%2F5+%2B+2a%2F5+%2B+a+=+9\"\r\n" );
document.write( "\r\n" );
document.write( "Clear of fractions:\r\n" );
document.write( "\r\n" );
document.write( "\"5x+%2B+11+%2B+2a+%2B+5a+=+45\"\r\n" );
document.write( "\r\n" );
document.write( "\"5x+%2B+11+%2B+7a+=+45\"\r\n" );
document.write( "\r\n" );
document.write( "\"5x+=+34+-+7a\"\r\n" );
document.write( "\r\n" );
document.write( "\"+x+=+34%2F5+-+7a%2F5\"\r\n" );
document.write( "\r\n" );
document.write( "So the solution is:\r\n" );
document.write( "\r\n" );
document.write( "(x, y, z) = (\"34%2F5-7a%2F5\",\"11%2F5%2B2a%2F5\",\"a\") \r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );