Sec 4 G3 E-Maths

Matrices

How can one multiplication give a shop's total for a day?

Line up each item count with its own price. Multiplying a row of quantities by a column of prices pairs matching items and adds their takings.

Worked example

On Monday, a shop sells two pens and three notebooks. On Tuesday it sells four pens and one notebook. Pens cost one dollar and notebooks cost four. Find each day's takings.

  1. (2341)(14)\begin{pmatrix}2&3\\4&1\end{pmatrix}\begin{pmatrix}1\\4\end{pmatrix}

    Put days down the rows and products across the columns, pens first. The price column must use the same product order.

  2. (2(1)+3(4)4(1)+1(4))=(148)\begin{pmatrix}2(1)+3(4)\\4(1)+1(4)\end{pmatrix}=\begin{pmatrix}14\\8\end{pmatrix}

    The top entry is Monday's total in dollars. The second is Tuesday's total.

Your turn

If notebooks are listed before pens, what must happen to the price column?

Show the reasoning

Put 4 before 1. Monday's reordered calculation is 3(4)+2(1)=143(4)+2(1)=14. Keeping the original price order would give the wrong total.