Question Video: Solving Systems of Equations Driven from Real-Life Applications Using Matrices | Nagwa Question Video: Solving Systems of Equations Driven from Real-Life Applications Using Matrices | Nagwa

Question Video: Solving Systems of Equations Driven from Real-Life Applications Using Matrices Mathematics • First Year of Secondary School

Join Nagwa Classes

Attend live Mathematics sessions on Nagwa Classes to learn more about this topic from an expert teacher!

A girl bought 37 kilograms of flour and 4 kilograms of butter for 340 LE, and her friend bought 13 kg of flour and 12 kg of butter for 236 LE. Using matrices, find the price per kilogram of both flour and butter.

05:37

Video Transcript

A girl bought 37 kilograms of flour and four kilograms of butter for 340 Egyptian pounds, and her friend bought 13 kilograms of flour and 12 kilograms of butter for 236 Egyptian pounds. Using matrices, find the price per kilogram of both flour and butter.

In order to be able to answer this question, let’s begin by defining some variables. Let’s let the variable π‘₯ represent in Egyptian pounds the price per kilogram of flour. And in a similar way, we’ll let 𝑦 be the price in Egyptian pounds per kilogram of butter. Now, we can use these variables to set up a system of linear equations. We’re told that a total of 37 kilograms of flour and four kilograms of butter have a total cost of 340 Egyptian pounds. Since π‘₯ is the price per kilogram of flour, the total price of 37 kilograms of flour is 37π‘₯. And in a similar way, the total price of four kilograms of butter is four 𝑦. So the first equation that we can form is 37π‘₯ plus four 𝑦 equals 340.

Next, we know that 13 kilograms of flour and 12 kilograms of butter cost 236 Egyptian pounds. So 13π‘₯ plus 12𝑦 equals 236. We now have a system of linear equations, which we need to solve for π‘₯ and 𝑦. And in fact, we’re told to do this using matrices. So we’ll set up a matrix equation in the form 𝐴𝑋 equals 𝐡. In this matrix equation, 𝐴 is going to be a two-by-two matrix containing numbers. 𝑋 is going to be a column matrix containing the variables π‘₯ and 𝑦. And 𝐡 is going to be another constant matrix. This time, that’s going to be a column matrix.

And due to the way matrix multiplication works, π‘Ž is the value of the coefficient of π‘₯ in our first equation. Similarly, 𝑏 is the coefficient of 𝑦 in our first equation, 𝑐 is the coefficient of π‘₯ in our second equation, and 𝑑 is the coefficient of 𝑦 in our second equation. Then the constant matrix 𝑒, 𝑓 is given by the elements 340 and 236. So the equivalent matrix equation to our system of linear equations is the two-by-two matrix 37, four, 13, 12 times the column matrix π‘₯, 𝑦 is equal to the matrix with elements 340 and 236. So now we have our matrix equation, let’s recall how to solve it.

We multiply both sides by the inverse of matrix 𝐴. And since the inverse of a matrix times itself is the identity matrix, we’re actually just left with π‘₯ is equal to the inverse of 𝐴 times 𝐡. So if our matrix 𝐴 is this two-by-two matrix 37, four, 13, 12, it follows that we’re going to need to begin by finding the inverse of this matrix. And so we recall that given a two-by-two matrix π‘Ž, 𝑏, 𝑐, 𝑑, its inverse is one over the determinant of that matrix times the matrix with elements 𝑑, negative 𝑏, negative 𝑐, π‘Ž, where the determinant is the product of elements π‘Žπ‘‘ minus the product of elements 𝑏 and 𝑐. And of course, if this determinant is equal to zero, the inverse of the matrix doesn’t exist.

So let’s begin by finding the determinant of our two-by-two matrix. It’s the product of the elements in the top left and bottom right, so 37 times 12, minus the product of the elements in the top right and bottom left, so minus four times 13, which is 392. So we know that the inverse of our two-by-two matrix is going to be one over 392 multiplied by some other two-by-two matrix. To find this two-by-two matrix, we switch the elements defined as π‘Ž and 𝑑. And we change the signs of the remaining two. So we have the inverse of our matrix. We know that we’re going to multiply both sides of our equation by this matrix. So let’s clear some space and do that.

The left-hand side simply becomes π‘₯, 𝑦. And the right-hand side is as shown. We’re now going to multiply the two-by-two matrix with the column matrix. And our result will be, in fact, another column matrix. We begin by finding the dot product of the elements in the first row of the first matrix and of our column. That’s 12 times 340 plus negative four times 236. That’s 3136. Next, we repeat this process, but this time we use the elements in the second row of our first matrix. So it’s negative 13 times 340 plus 37 times 236. That’s 4312.

Our matrix π‘₯, 𝑦 then is equal to one over 392 times the column matrix with these entries. And so all we need to do to find the column matrix π‘₯, 𝑦 and hence the values of π‘₯ and 𝑦 is divide each term in our matrix by 392. 3136 divided by 392 is eight, and 4312 divided by 392 is 11. Since we defined π‘₯ to be the price per kilogram of flour in Egyptian pounds and 𝑦 to be the price per kilogram of butter, we see that one kilogram of flour costs eight Egyptian pounds and one kilogram of butter costs 11.

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