How do you solve #x + y = 1# and #2x + 5y = 4# using matrices?

3 Answers
Jul 3, 2016

#y = 2/3, x = 1/3#

Explanation:

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

We want to reduce the coefficient matrix to echelon form. We use elementary row operations to achieve this, particularly the one that allows us to add a scalar multiple of one row to another.

We're going to add "#-2#" times the first row to the second row, resulting in:

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

Multiplying out gives:

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

#implies y = 2/3, x = 1/3#

Jul 3, 2016

It is worth the time learning this method.
#x = 1/3 and y = 2/3#

Explanation:

There is some beautiful maths involved in solving simultaneous equations using matrices.

It involves the concept that a 2x2 matrix multiplied by its inverse gives the unit or identity matrix which is #((1,0),(0,1))#

In the same way that #5 + 0 = 5# and #5 xx 1 = 5#,

any 2x2 matrix multiplied by the unit matrix stays the same.

So if we can find the inverse of the matrix which represents the coefficients in the equations we are solving, we can multiply that inverse matrix on both sides of the equation which will give the following:

#((?,?),(?,?))((1,1),(2,5))((x),(y)) = ((?,?),(?,?))((1),(4))#

This will lead to
#((1,0),(0,1))((x),(y)) =((?,?),(?,?))((1),(4))#

Which gives #((x),(y)) =((?,?),(?,?))((1),(4))#

Once we calculate the product on the right side,this gives the solution for x and y directly.

Let's find the inverse matrix
of #((a,b),(c,d)) rArr " it is "1/(ad - bc)((d,-b),(-c,a)) #

of #((1,1),(2,5))rArr "it is "1/(5-2)((5,-1),(-2,1)) #

#= 1/(3)((5,-1),(-2,1)) = color(red)(((5/3,-1/3),(-2/3,1/3))) #

Multiply on both sides of the equation:

#color(red)(((5/3,-1/3),(-2/3,1/3))) ((1,1),(2,5))((x),(y)) = color(red)(((5/3,-1/3),(-2/3,1/3)) )((1),(4))#

Now multiplying as usual with matrices, leads to

#((1,0),(0,1))((x),(y)) = ((1/3),(2/3))# or just #((x),(y)) = ((1/3),(2/3))#

So, #x = 1/3 and y = 2/3#

Despite the fact that this looks horrible, with a bit of perseverance and practice, it can be done quite easily. I have had students for whom this was their method of choice in solving simultaneous equations.

Jul 3, 2016

It is worth the time learning this method.
#x = 1/3 and y = 2/3#

Explanation: