Solve the system of equations # 2x + 3y = 5 # and # x + y = 1 # using matrices?

1 Answer
Sep 22, 2017

#x=-2# and #y=3#

Explanation:

We have:

# 2x + 3y = 5 #
# x + y = 1 #

Which we can write in vector matrix form:

# ( (2,3), (1,1) ) ( (x), (y) ) = ( (5), (1) ) #

Or:

# bb(A) bb(ul x) = bb(ul b) => bb(ul x) = bb(A)^(-1) bb(ul b) #

Where

# bb(A) = ( (2,3), (1,1) ) #; # bb(ul x) = ( (x), (y) ) #; # bb(ul b) ( (5), (1) ) #

We can find #bb(A)^(-1)#, using matrix inversion:

Method 2 - Matrix Inversion

A matrix, #bb(A)#, is invertible if and only if its determinant #abs(bb(A)) != 0#. There are several ways to invert a matrix inclining finding the adjoint, row reduction or even a calculator. I will use the adjoint method, which has several steps;

  • Calculating the Matrix of Minors,
  • Form the Matrix of Cofactors, #cof(bb(A))#
  • Form the adjoint matrix, #adj(bb(A))#
  • Multiply #adj(bb(A))# by #1/abs(bb(A))# to form the inverse #bb(A)^-1#

At some point we need to calculate #abs(bb(A))#, or #det(bb(A))#, and this can also be used to test if the matrix is actually invertible so I prefer to do this first;

# bb(A) = ( (2,3), (1,1)) #

If we expand about the first row;

# abs(bb(A)) = (2)(1) - (1)(3) #
# \ \ \ \ \ = 2-3 #
# \ \ \ \ \ = -1 #

As #abs(bb(A)) !=0 => bb(A) # is invertible, so we now calculate the matrix of minors by systematically working through each element in the matrix and "strike out" that row and columns and form the determinant of the remaining elements, as follows:

#"minors"(bb(A)) = ( (1, 1), (3, 2 ))#

We now form the matrix of cofactors, #cof(A)#, by taking the above matrix of minors and applying the alternating sign matrix as in

# ( (+, -), (-, +) )#

Where we change the sign of those elements with the minus sign to get;

# cof(bbA) = ( (1, -1), (-3, 2 )) #

Then we form the adjoint matrix by transposing the matrix of cofactors, #cof(A)#, so;

#adj(A) = cof(A)^T#
#\ \ \ \ \ \ \ \ \ \ \ = ( (1, -1), (-3, 2 ))^T #
#\ \ \ \ \ \ \ \ \ \ \ = ( (1, -3), (-1, 2 )) #

And then finally we multiply by the reciprocal of the determinant to get:

#bb(A)^-1 = 1/abs(bb A) adj(bb A)#
#\ \ \ \ \ \ \ = (1.(-1)) ( (1, -3), (-1, 2 )) #
#\ \ \ \ \ \ \ = ( (-1, 3), (1, -2 )) #

So then we get the solution the linear equations as:

# bb(ul x) = bb(A)^(-1) bb(ul b) # ..... #[star]#

# :. ( (x), (y) ) = ( (-1, 3), (1, -2 )) ( (5), (1) ) #
# \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ = ( ((-1)(5)+(3)(1) ), ((1)(5)+(-2)(1) ) ) #

# \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ = ( (-5+3), (5-2) ) #
# \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ = ( (-2), (3) ) #

Thus we have a unique solution:

# x=-2, y=3#