Question Video: Solving a Pair of Simultaneous Equations Using Matrices | Nagwa Question Video: Solving a Pair of Simultaneous Equations Using Matrices | Nagwa

Question Video: Solving a Pair of Simultaneous Equations Using Matrices Mathematics • First Year of Secondary School

Use matrices to solve the system of equations 𝑛 + 1 = 2𝑚, 𝑛 = 𝑚 + 2.

04:39

Video Transcript

Use matrices to solve the system of equations 𝑛 plus one equals two 𝑚, 𝑛 equals 𝑚 plus two.

Remember, given a pair of linear equations 𝑎𝑥 plus 𝑏𝑦 equals 𝑒 and 𝑐𝑥 plus 𝑑𝑦 equals 𝑓, because of the way we multiply a pair of matrices, we can write this equivalently in matrix form as the matrix 𝑎, 𝑏, 𝑐, 𝑑 times the matrix 𝑥, 𝑦 equals the matrix 𝑒, 𝑓. Then, if we let capital 𝐴 be the matrix 𝑎, 𝑏, 𝑐, 𝑑; capital 𝑋 be the column matrix 𝑥, 𝑦; and capital 𝐵 be the column matrix 𝑒, 𝑓, we can multiply both sides of our equation by the inverse of matrix 𝐴 if it exists. And that gives us 𝑋 is equal to the inverse of 𝐴 times 𝐵.

And so, this is how we’re going to solve our system of equations. We’ll begin by writing it in matrix form, and then we’ll find the inverse of the matrix that we define to be equal to 𝐴. Once we have that, we can multiply it by matrix 𝐵, which will give us the matrix 𝑋. Before we do, though, let’s rearrange each of our equations so that the variables, in this case 𝑛 and 𝑚, are all on one side. For our first equation, we subtract two 𝑚 and we subtract one and we get 𝑛 minus two 𝑚 equals negative one. And for our second equation, we’re just going to subtract 𝑚. So, 𝑛 minus 𝑚 is equal to two.

And then, since we’re working with 𝑛 and 𝑚 instead of 𝑥 and 𝑦, we redefine our general form. So, 𝑎𝑛 plus 𝑏𝑚 equals 𝑒 and 𝑐𝑛 plus 𝑑𝑚 equals 𝑓. 𝑎 and 𝑏 are, respectively, the coefficients of 𝑛 and 𝑚 in our first equation; that’s one and negative two. Similarly, 𝑐 and 𝑑 are one and negative one. So, matrix 𝐴 is the matrix with elements one, negative two, one, negative one. The matrix 𝑋 is the column matrix that contains our variables, so it’s simply 𝑛𝑚. Then, the matrix 𝐵 contains our constants; that’s negative one, two.

Since the solution to our equation and the values then of 𝑛 and 𝑚 is given by multiplying the inverse of 𝐴 by 𝐵, it’s clear we have to find the inverse of 𝐴 first. Assuming the determinant of matrix 𝐴 is not equal to zero, then the inverse is one over the determinant of 𝐴 multiplied by the matrix whose elements are 𝑑, negative 𝑏, negative 𝑐, 𝑎, where the determinant is 𝑎𝑑 minus 𝑏𝑐. In other words, the determinant is the product of the top left and bottom right minus the product of the top right and bottom left. And the inverse is found by multiplying one over the determinant of the matrix by the matrix containing elements where the top left and bottom right have switched and the signs of the remaining two have changed.

So, let’s begin by checking that the determinant of our matrix is not equal to zero. It’s one times negative one minus negative two times one. That’s negative one plus two, which is one. So, the inverse of 𝐴 is one over the determinant of 𝐴, one over one. And then, we switch the elements in the top left and bottom right, so we switch one and negative one. And we change the sign of the remaining two. So, the inverse of 𝐴 is one over one times the matrix with elements negative one, two, negative one, one which is simply the matrix with elements negative one, two, negative one, one.

With this in mind, we can now substitute everything we know about our system of equations into the general form for the solution, 𝑋 equals the inverse of 𝐴 times 𝐵. 𝑋 is the matrix 𝑛, 𝑚. We’ve just found the inverse of 𝐴, and 𝐵 is the constant matrix negative one, two. Then, we multiply these matrices by finding the dot product of the elements on the first row of the first with the elements in the column of our second. That’s negative one times negative one plus two times two, which is equal to five. Then we repeat this, and we find the dot product of the elements in our second row with the elements in our column matrix. This time, that’s negative one times negative one plus one times two, which is equal to three. And so, our matrix 𝑋, which has elements 𝑛, 𝑚, is five, three.

We could therefore say that the solution to our system of equations in alphabetical order is 𝑚 equals three and 𝑛 equals five. Or we could put the solutions back into matrix form, putting the 𝑚 first since we’re working in alphabetical order. The matrix solution then is 𝑚, 𝑛 equals three, five.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy