WEBVTT
00:00:02.770 --> 00:00:07.370
The table shows the number of different types of rooms in three hotels owned by a company.
00:00:07.850 --> 00:00:23.330
If a single room costs 160 Egyptian pounds per night, a double room costs 430 Egyptian pounds per night, and a suite costs 740 Egyptian pounds per night, determine the company’s daily income when all the rooms are occupied.
00:00:25.500 --> 00:00:28.250
We can answer this question using matrices.
00:00:29.540 --> 00:00:36.150
The table containing the number of different types of rooms in the three hotels can be thought of as a three-by-three matrix.
00:00:37.560 --> 00:00:46.240
In order to find the company’s daily income, we need to multiply the matrix containing the number of rooms by a matrix containing the costs of each type of room.
00:00:47.740 --> 00:00:57.720
In order to be able to multiply these two matrices together, the number of rows in the second matrix, the matrix of costs, needs to be the same as the number of columns in the first matrix.
00:00:57.950 --> 00:01:02.610
Therefore, the matrix of costs needs to be a three-by-one column matrix.
00:01:04.180 --> 00:01:18.870
The elements for this matrix are the costs for the three different types of room: 160 Egyptian pounds for the single room, 430 Egyptian pounds for the double room, and 740 Egyptian pounds for a suite.
00:01:20.170 --> 00:01:25.410
Now we multiply the two matrices together, remembering the process for multiplying matrices.
00:01:27.100 --> 00:01:37.570
As we multiply a matrix of order three by three by a matrix of order three by one, the product will be a matrix of order three by one, so another column matrix with three rows.
00:01:39.060 --> 00:01:47.100
First, we multiply the elements in the first row of the first matrix by the elements in the first and in this case only column in the second matrix.
00:01:48.640 --> 00:02:00.860
This gives 45 multiplied by 160 plus 74 multiplied by 430 plus 15 multiplied by 740, which is 50120.
00:02:02.450 --> 00:02:05.580
So we found the first element in our product matrix.
00:02:06.860 --> 00:02:13.620
To find the second element, we multiply the second row of the first matrix by the first and only column of the second.
00:02:15.070 --> 00:02:28.940
This gives 48 multiplied by 160 plus 74 multiplied by 430 plus 19 multiplied by 740, the total of which is 53560.
00:02:30.640 --> 00:02:37.290
To find the final element, we multiply the third row of the first matrix by the first and only column of the second.
00:02:38.860 --> 00:02:51.910
This gives 49 multiplied by 160 plus 94 multiplied by 430 plus 10 multiplied by 740, the total of which is 55660.
00:02:53.510 --> 00:02:59.330
So now that we found the product of these two matrices, what does each element in the product represent?
00:03:00.910 --> 00:03:04.380
The elements in the product represent the total cost for each hotel.
00:03:04.840 --> 00:03:12.180
The total cost for the first hotel for all the singles, doubles, and suites is 50120 Egyptian pounds.
00:03:13.590 --> 00:03:22.410
For the second hotel, it’s 53560 Egyptian pounds, and for the third 55660 Egyptian pounds.
00:03:23.040 --> 00:03:28.640
To find the total daily income for the company, we need to add all three elements of this matrix together.
00:03:30.240 --> 00:03:35.810
The sum of these three values is 159340.
00:03:37.580 --> 00:03:40.760
So this is the total daily income for the company.
00:03:42.380 --> 00:03:46.130
Now there is actually a second approach that we could take to answering this question.
00:03:46.590 --> 00:03:50.140
Each type of room cost the same regardless of which hotel it’s in.
00:03:50.250 --> 00:03:54.260
It doesn’t actually matter whether it’s in the first hotel, the second, or the third.
00:03:55.650 --> 00:04:06.200
Therefore, we could condense the first matrix into a row matrix by adding together the number of single rooms in each hotel, the number of double rooms in each hotel, and the number of suites.
00:04:07.670 --> 00:04:13.180
This would give the row matrix 142, 242, 44.
00:04:14.880 --> 00:04:23.260
We’d now be multiplying a one-by-three matrix by a three-by-one matrix to give a one-by-one matrix, that is, the overall answer.
00:04:24.890 --> 00:04:36.450
The calculation would be 142 multiplied by 160 plus 242 multiplied by 430 plus 44 multiplied by 740.
00:04:36.570 --> 00:04:42.840
And you can confirm that this gives the same answer as before, 159340.
00:04:44.450 --> 00:04:53.800
In the first approach to this question, we had to do some summing for the three different hotels at the end, whereas in the second approach, we summed across the three different hotels at the start.
00:04:54.180 --> 00:05:01.480
Both approaches are equally valid and give the same result, 159340 Egyptian pounds.