SOLUTION: "Solve the following set of equations using Cramer's rule or matrix inversion for x+5y=7 & -2x-7y=-5"

Algebra ->  Matrices-and-determiminant -> SOLUTION: "Solve the following set of equations using Cramer's rule or matrix inversion for x+5y=7 & -2x-7y=-5"       Log On


   



Question 969043: "Solve the following set of equations using Cramer's rule or matrix inversion for x+5y=7 & -2x-7y=-5"
thank you

Answer by Edwin McCravy(20060) About Me  (Show Source):
You can put this solution on YOUR website!
I'll do it both ways:

By Cramer's rule:

system%28x%2B5y=7%2C+-2x-7y=-5%29

 1x + 5y =  7
-2x - 7y = -5

Form the determinant D which is the
coefficients as they appear left of
the equal sign when in general form:

D%22%22=%22%22abs%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%223  

The "column of constants" is matrix%282%2C1%2C7%2C-5%29, consisting of the numbers
right of the equal signs is not used in the determinant D 
but is used in the other two determinants.

Dx is formed by replacing the FIRST column of D (the 
coefficients of x, the FIRST variable) by the column of constants:

D%5Bx%5D%22%22=%22%22abs%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

Dy is formed by replacing the SECOND column of D (the 
coefficients of y, the SECOND variable) by the column of constants:


D%5By%5D%22%22=%22%22abs%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%229 

Then:

x%22%22=%22%22D%5Bx%5D%2FD%22%22=%22%22%28-24%29%2F3%22%22=%22%22-8

y%22%22=%22%22D%5By%5D%2FD%22%22=%22%229%2F3%22%22=%22%223   

So we see that x = -8 and y = 3

The solution is (x,y) = (-8,3)

---------------------------------------

By matrix inversion:

 1x + 5y =  7
-2x - 7y = -5

Form the matrix equation:



Now we find the inverse of the coefficient matrix %28matrix%282%2C2%2C1%2C5%2C-2%2C-7%29%29

To find the inverse of a 2x2 matrix: 

1. find the determinant of the matrix:
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%223

[Note that this is exactly the same as the determinant D in Cramer's rule
above.]

2. Swap the upper left and lower right elements:
%28matrix%282%2C2%2C-7%2C5%2C-2%2C1%29%29

3. Change the signs of the upper right and lower left elements:
%28matrix%282%2C2%2C-7%2C-5%2C2%2C1%29%29

4. Divide every term by the value of the determinant in step 1, which is 3.
%28matrix%282%2C2%2C-7%2F3%2C-5%2F3%2C2%2F3%2C1%2F3%29%29

Now go back to the matrix equation


            
Multiply the inverse matrix on the left of the
left side and also on the left of the right side;



I assume you know how to multiply matrices. If you
don't, post again asking how to. Multiply the first
two matrices on the left, and multiply the matrices on
the right:

            

We have the identity matrix on the left to multiply by
the matrix %28matrix%282%2C1%2Cx%2Cy%29%29 which just gives:

                %28matrix%282%2C1%2Cx%2Cy%29%29=%28matrix%282%2C1%2C-8%2C3%29%29

So we see that x = -8 and y = 3.

The solution is (x,y) = (-8,3)

Edwin