Question Video: Solving a System of Two Equations Using Matrices | Nagwa Question Video: Solving a System of Two Equations Using Matrices | Nagwa

Question Video: Solving a System of Two Equations Using Matrices Mathematics

The straight line whose equation is 𝑦 + π‘Žπ‘₯ = 𝑐 passes through the two points (βˆ’5, 5) and (3, 10). Using matrices, find π‘Ž and 𝑐.

06:29

Video Transcript

The straight line whose equation is 𝑦 plus π‘Žπ‘₯ equals 𝑐 passes through the two points negative five, five and three, 10. Using matrices, find π‘Ž and 𝑐.

Before we can use matrices to solve this problem, we’re going to begin by attempting to write a system of linear equations. First, we know that the straight line with equation 𝑦 plus π‘Žπ‘₯ equals 𝑐 passes through the points negative five, five and three, 10. In other words, when π‘₯ is equal to negative five, 𝑦 is equal to five. So we can substitute these values into the equation of our straight line 𝑦 plus π‘Žπ‘₯ equals 𝑐. Then we’ll be able to repeat this with the coordinates three, 10 and we should then have a system of linear equations for π‘Ž and 𝑐. Replacing 𝑦 with five and π‘₯ with negative five and our equation becomes five plus π‘Ž times negative five equals 𝑐, which can alternatively be represented as five minus five π‘Ž equals 𝑐.

Finally, we’re going to rearrange this equation to ensure that the variables are on the same side. And we do that by adding five π‘Ž to both sides, giving us five π‘Ž plus 𝑐 equals five. Let’s now repeat this, but this time letting π‘₯ equal three and 𝑦 equal 10. That gives us 10 plus three π‘Ž equals 𝑐. And then this time we’ll subtract three π‘Ž from both sides, giving us negative three π‘Ž plus 𝑐 equals 10. We now have a system of linear equations, so let’s clear some space and figure out where to go next.

We need to find a way to represent the system of linear equations using matrices. And so we recall that due to the way we multiply a two-by-two matrix by a column matrix, the system of linear equations of the form π‘Žπ‘₯ plus 𝑏𝑦 equals 𝑒 and 𝑐π‘₯ plus 𝑑𝑦 equals 𝑓 can be represented in matrix notation as the two-by-two matrix π‘Ž, 𝑏, 𝑐, 𝑑 times the column matrix π‘₯, 𝑦 equals the column matrix 𝑒, 𝑓. In other words, we simply take the coefficients of π‘₯ and 𝑦 and represent that in a two-by-two matrix. Now, in this case, we’re working with the variables π‘Ž and 𝑐, which shouldn’t be confused with the constants π‘Ž and 𝑐 in our general formula.

The coefficient of π‘Ž in our first equation is five, and the coefficient of 𝑐 in our first equation is one. Then the coefficient of π‘Ž in our second equation is negative three, and once again the coefficient of 𝑐 is one. So the left-hand side of our system of linear equations can be represented as the matrix five, one, negative three, one times the column matrix π‘Ž, 𝑐. Then we take the constants five and 10 and we create a second column matrix as shown. Our job will be to solve this matrix equation by essentially making the column matrix π‘Ž, 𝑐 the subject. And so let’s imagine we’re dealing with some general matrix equation 𝐴π‘₯ equals 𝐡, where 𝐴 is a two-by-two matrix, π‘₯ is the variable column matrix, and 𝐡 is another column matrix.

We solve this equation by multiplying both sides by the inverse of 𝐴. And this works because the inverse of 𝐴 times 𝐴 just gives us the identity matrix. And then the identity matrix when multiplying any other matrix just leaves that original matrix. So our matrix 𝐴 is the two-by-two matrix five, one, negative three, one. So it should be quite clear that the next step will be to find the inverse of this matrix. Let’s take the general two-by-two matrix π‘Ž, 𝑏, 𝑐, 𝑑 and define this to be equal to 𝐴.

To find its inverse, we multiply a two-by-two matrix which we’ll define in a second by one over the determinant of 𝐴, where the determinant of 𝐴 is the product of the elements in the top left and bottom right minus the product of the elements in the top right and bottom left. The two-by-two matrix that we multiply this by is found by switching the elements in the top left and bottom right and then changing the sign of the remaining two.

So let’s begin by finding the determinant of our matrix. It’s five multiplied by one minus one multiplied by negative three. That’s five minus negative three, which is of course equal to eight. So to find the inverse of our matrix 𝐴, we’re going to multiply one over eight by some two-by-two matrix. This matrix is found by switching the elements in the top left and bottom right and then simply changing the sign of the remaining two. So the inverse of 𝐴 is an eighth times the matrix one, negative one, three, five. And whilst we could distribute one-eighth across our two-by-two matrix, that would create a matrix that’s very fraction heavy. So we’re going to do that at the end.

Remember to find the variable matrix π‘₯ in the matrix equation 𝐴π‘₯ equals 𝐡, we multiply both sides by the inverse of 𝐴. And on the left-hand side, that just leaves us with the variable matrix π‘₯. Now, of course, our variable matrix is the column matrix π‘Ž, 𝑐. And this is equal to the inverse of 𝐴 times the constant matrix five, 10. So how do we multiply this pair of matrices? We begin by finding the dot product of the elements in the first row of our first matrix and the elements in our column matrix. That’s one times five plus negative one times 10, which is equal to negative five.

Then we find the dot product of the elements in the second row and the column of our column matrix. This time, that’s three times five plus five times 10, which is equal to 65. So our matrix π‘Ž, 𝑐 is equal to one-eighth times the matrix with these elements. And now we can distribute the eighth across this matrix, and we do so simply by multiplying negative five by one-eighth and 65 by one-eighth. And we may as well leave that in fractional form. And when we do, we find the matrix π‘Ž, 𝑐 is equal to the matrix negative five-eighths, sixty-five eighths.

Now, of course, we’re actually trying to find the values of π‘Ž and 𝑐, so we will extract this from its matrix form. If two matrices are equal, it follows that their individual elements must be equal. So our element π‘Ž is equal to the element negative five-eighths and 𝑐 must be equal to 65 over eight. And so we’re done. We found the values of π‘Ž and 𝑐. They are negative five-eighths and sixty-five eighths, respectively.

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