Row times column
- Each element of \(AB\) comes from one row of \(A\) and one column of \(B\): multiply the matching pairs and add.
- The element in row 2, column 1 uses row 2 of \(A\) and column 1 of \(B\).
AI HL · AHL 5
0 of 63 skills done
Matrix multiplication
AHL 5.2
a·b, and a^2
Screenshot and video to come
Each answer comes from one row of A and one column of B. Work out the next answer yourself, then press Next to check it. Change any number to try your own.
\(A\) has order 2 × 4 and \(B\) has order 4 × 3. Find the order of \(AB\), and explain why \(BA\) does not exist.
Have a go first. Then open the working one line at a time.
\((2 \times 4)(4 \times 3)\)
The inside numbers match, so \(AB\) exists.
2 × 3
The outside numbers.
\((4 \times 3)(2 \times 4)\)
3 columns against 2 rows: they do not match, so \(BA\) does not exist.
Find \(\begin{pmatrix}2 & -3 \\ 1 & 4\end{pmatrix}\begin{pmatrix}5 & 1 \\ -2 & 3\end{pmatrix}\).
Have a go first. Then open the working one line at a time.
\(2(5) + (-3)(-2) = 16\)
Row 1 with column 1.
\(2(1) + (-3)(3) = -7\)
Row 1 with column 2.
\(1(5) + 4(-2) = -3\) and \(1(1) + 4(3) = 13\)
Row 2 with each column.
\(\begin{pmatrix}16 & -7 \\ -3 & 13\end{pmatrix}\)
Check it on the calculator.
Using the same two matrices, find \(\begin{pmatrix}5 & 1 \\ -2 & 3\end{pmatrix}\begin{pmatrix}2 & -3 \\ 1 & 4\end{pmatrix}\) and compare.
Have a go first. Then open the working one line at a time.
\(\begin{pmatrix}5 & 1 \\ -2 & 3\end{pmatrix}\begin{pmatrix}2 & -3 \\ 1 & 4\end{pmatrix} = \begin{pmatrix}11 & -11 \\ -1 & 18\end{pmatrix}\)
Row 1 with column 1: \(5(2) + 1(1) = 11\).
\(\begin{pmatrix}16 & -7 \\ -3 & 13\end{pmatrix} \ne \begin{pmatrix}11 & -11 \\ -1 & 18\end{pmatrix}\)
\(AB \ne BA\). Always keep the order you are given.
A café has two branches, Town (T) and Station (S). The prices in euros of a coffee, a sandwich and a cake are \(P = \begin{pmatrix}3.00 & 3.40 \\ 6.50 & 7.00 \\ 4.00 & 4.20\end{pmatrix}\), with the columns in the order T, S. (a) Town prices rise by 2% and Station prices by 5%. (b) Instead, coffee rises by 10%, sandwiches fall by 2% and cake stays the same. Write each change as a matrix product and find the new prices.
Have a go first. Then open the working one line at a time.
By column: one factor for T, one for S
Columns are scaled by a diagonal matrix on the right.
\(P\begin{pmatrix}1.02 & 0 \\ 0 & 1.05\end{pmatrix} = \begin{pmatrix}3.06 & 3.57 \\ 6.63 & 7.35 \\ 4.08 & 4.41\end{pmatrix}\)
3 × 2 times 2 × 2: the orders fit.
By row: one factor for each item
Rows are scaled by a diagonal matrix on the left.
\(\begin{pmatrix}1.10 & 0 & 0 \\ 0 & 0.98 & 0 \\ 0 & 0 & 1\end{pmatrix}P = \begin{pmatrix}3.30 & 3.74 \\ 6.37 & 6.86 \\ 4.00 & 4.20\end{pmatrix}\)
3 × 3 times 3 × 2. No change is a 1 on the diagonal.
Columns: multiply on the right. Rows: multiply on the left.
The other way round the orders would not fit.
Two clubs order kit. The numbers of shirts, shorts and pairs of socks are \(D = \begin{pmatrix}30 & 25 & 40 \\ 20 & 26 & 30\end{pmatrix}\) (rows: Harriers, Kestrels). Two suppliers charge, in pounds per item, \(C = \begin{pmatrix}18 & 16 \\ 12 & 14 \\ 4 & 4\end{pmatrix}\) (columns: supplier X, supplier Y). Find the total cost matrix and say which supplier each club should use.
Have a go first. Then open the working one line at a time.
\((2 \times 3)(3 \times 2)\)
Items run along the rows of \(D\) and down the columns of \(C\), so quantities meet prices.
\(DC = \begin{pmatrix}1000 & 990 \\ 792 & 804\end{pmatrix}\)
Top left: \(30(18) + 25(12) + 40(4) = 1000\).
Harriers: Y (£990 < £1000). Kestrels: X (£792 < £804).
Each row is a club. Each column is a supplier.
\(A = \begin{pmatrix}2 & 1 \\ -1 & 3\end{pmatrix}\). Find \(A^2 + 3I\).
Have a go first. Then open the working one line at a time.
\(A^2 = \begin{pmatrix}2 & 1 \\ -1 & 3\end{pmatrix}\begin{pmatrix}2 & 1 \\ -1 & 3\end{pmatrix} = \begin{pmatrix}3 & 5 \\ -5 & 8\end{pmatrix}\)
\(A^2\) is \(A\) times \(A\), not each element squared.
\(3I = \begin{pmatrix}3 & 0 \\ 0 & 3\end{pmatrix}\)
\(A\) is 2 × 2, so \(I\) is the 2 × 2 identity.
\(\begin{pmatrix}6 & 5 \\ -5 & 11\end{pmatrix}\)
Add matching elements.
A café makes lasagne and pizza. In one day it makes \(O = \begin{pmatrix}40 & 25\end{pmatrix}\) (lasagne, pizza). The units of pasta, cheese and tomato each dish needs are \(D = \begin{pmatrix}2 & 3 & 1 \\ 1 & 2 & 2\end{pmatrix}\) (rows: lasagne, pizza). Two suppliers charge, in euros per unit, \(P = \begin{pmatrix}1.5 & 1.6 \\ 0.8 & 0.7 \\ 2.4 & 2.5\end{pmatrix}\) (rows: pasta, cheese, tomato; columns: supplier X, supplier Y). Find the cost of the day's ingredients from each supplier.
Have a go first. Then open the working one line at a time.
\((1 \times 2)(2 \times 3)(3 \times 2)\)
The inner orders match, so the product exists. It has order \(1 \times 2\): one cost for each supplier.
\(OD = \begin{pmatrix}105 & 170 & 90\end{pmatrix}\)
Top left: \(40(2) + 25(1) = 105\) units of pasta for the day.
\(ODP = \begin{pmatrix}509.5 & 512\end{pmatrix}\)
Multiply the units by the prices. The calculator does the whole product in one go: o·d·p.
Supplier X: €509.5. Supplier Y: €512.
Each column is a supplier.