document.write( "Question 969043: \"Solve the following set of equations using Cramer's rule or matrix inversion for x+5y=7 & -2x-7y=-5\"
\n" ); document.write( "thank you
\n" ); document.write( "

Algebra.Com's Answer #592066 by Edwin McCravy(20060)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "I'll do it both ways:\r\n" );
document.write( "\r\n" );
document.write( "By Cramer's rule:\r\n" );
document.write( "\r\n" );
document.write( "\"system%28x%2B5y=7%2C+-2x-7y=-5%29\"\r\n" );
document.write( "\r\n" );
document.write( " 1x + 5y =  7\r\n" );
document.write( "-2x - 7y = -5\r\n" );
document.write( "\r\n" );
document.write( "Form the determinant D which is the\r\n" );
document.write( "coefficients as they appear left of\r\n" );
document.write( "the equal sign when in general form:\r\n" );
document.write( "\r\n" );
document.write( "\"D\"\"%22%22=%22%22\"\"abs%28matrix%282%2C2%2C1%2C5%2C-2%2C-7%29%29\"\"%22%22=%22%22\"\"%281%29%28-7%29-%285%29%28-2%29\"\"%22%22=%22%22\"\"-7%2B10\"\"%22%22=%22%22\"\"3\"  \r\n" );
document.write( "\r\n" );
document.write( "The \"column of constants\" is \"matrix%282%2C1%2C7%2C-5%29\", consisting of the numbers\r\n" );
document.write( "right of the equal signs is not used in the determinant D \r\n" );
document.write( "but is used in the other two determinants.\r\n" );
document.write( "\r\n" );
document.write( "Dx is formed by replacing the FIRST column of D (the \r\n" );
document.write( "coefficients of x, the FIRST variable) by the column of constants:\r\n" );
document.write( "\r\n" );
document.write( "\"D%5Bx%5D\"\"%22%22=%22%22\"\"abs%28matrix%282%2C2%2C7%2C5%2C-5%2C-7%29%29\"\"%22%22=%22%22\"\"%287%29%28-7%29-%285%29%28-5%29\"\"%22%22=%22%22\"\"-49%2B25\"\"%22%22=%22%22\"\"-24\"\r\n" );
document.write( "\r\n" );
document.write( "Dy is formed by replacing the SECOND column of D (the \r\n" );
document.write( "coefficients of y, the SECOND variable) by the column of constants:\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\"D%5By%5D\"\"%22%22=%22%22\"\"abs%28matrix%282%2C2%2C1%2C7%2C-2%2C-5%29%29\"\"%22%22=%22%22\"\"%281%29%28-5%29-%287%29%28-2%29\"\"%22%22=%22%22\"\"-5%2B14\"\"%22%22=%22%22\"\"9\" \r\n" );
document.write( "\r\n" );
document.write( "Then:\r\n" );
document.write( "\r\n" );
document.write( "\"x\"\"%22%22=%22%22\"\"D%5Bx%5D%2FD\"\"%22%22=%22%22\"\"%28-24%29%2F3\"\"%22%22=%22%22\"\"-8\"\r\n" );
document.write( "\r\n" );
document.write( "\"y\"\"%22%22=%22%22\"\"D%5By%5D%2FD\"\"%22%22=%22%22\"\"9%2F3\"\"%22%22=%22%22\"\"3\"   \r\n" );
document.write( "\r\n" );
document.write( "So we see that x = -8 and y = 3\r\n" );
document.write( "\r\n" );
document.write( "The solution is (x,y) = (-8,3)\r\n" );
document.write( "\r\n" );
document.write( "---------------------------------------\r\n" );
document.write( "\r\n" );
document.write( "By matrix inversion:\r\n" );
document.write( "\r\n" );
document.write( " 1x + 5y =  7\r\n" );
document.write( "-2x - 7y = -5\r\n" );
document.write( "\r\n" );
document.write( "Form the matrix equation:\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Now we find the inverse of the coefficient matrix \"%28matrix%282%2C2%2C1%2C5%2C-2%2C-7%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "To find the inverse of a 2x2 matrix: \r\n" );
document.write( "\r\n" );
document.write( "1. find the determinant of the matrix:\r\n" );
document.write( "\"abs%28matrix%282%2C2%2C1%2C5%2C-2%2C-7%29%29%29=%281%29%28-7%29-%285%29%28-2%29\"=\"-7%2B10\"\"%22%22=%22%22\"\"3\"\r\n" );
document.write( "\r\n" );
document.write( "[Note that this is exactly the same as the determinant D in Cramer's rule\r\n" );
document.write( "above.]\r\n" );
document.write( "\r\n" );
document.write( "2. Swap the upper left and lower right elements:\r\n" );
document.write( "\"%28matrix%282%2C2%2C-7%2C5%2C-2%2C1%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "3. Change the signs of the upper right and lower left elements:\r\n" );
document.write( "\"%28matrix%282%2C2%2C-7%2C-5%2C2%2C1%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "4. Divide every term by the value of the determinant in step 1, which is 3.\r\n" );
document.write( "\"%28matrix%282%2C2%2C-7%2F3%2C-5%2F3%2C2%2F3%2C1%2F3%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "Now go back to the matrix equation\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "            \r\n" );
document.write( "Multiply the inverse matrix on the left of the\r\n" );
document.write( "left side and also on the left of the right side;\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "I assume you know how to multiply matrices. If you\r\n" );
document.write( "don't, post again asking how to. Multiply the first\r\n" );
document.write( "two matrices on the left, and multiply the matrices on\r\n" );
document.write( "the right:\r\n" );
document.write( "\r\n" );
document.write( "            \r\n" );
document.write( "\r\n" );
document.write( "We have the identity matrix on the left to multiply by\r\n" );
document.write( "the matrix \"%28matrix%282%2C1%2Cx%2Cy%29%29\" which just gives:\r\n" );
document.write( "\r\n" );
document.write( "                \"%28matrix%282%2C1%2Cx%2Cy%29%29=%28matrix%282%2C1%2C-8%2C3%29%29\"\r\n" );
document.write( "\r\n" );
document.write( "So we see that x = -8 and y = 3.\r\n" );
document.write( "\r\n" );
document.write( "The solution is (x,y) = (-8,3)\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );