Chapter 2: Operations with Matrices

Matrix Multiplication

Matrices can also be multiplied together, but this operation is somewhat complicated. Watch the progression in the examples below; basically, the elements of the row of the first matrix are multiplied by the corresponding elements of the column of the second matrix. Matrix multiplication can be written in terms of components as $$C_{ij}=\sum_k A_{ik}B_{kj}.$$

The simplest example is $$ \left(\begin{array}{cc} a&b\\ \end{array} \right) \left(\begin{array}{c} e\\ g\\ \end{array} \right) = ae+bg$$ which should remind you of the dot product. Somewhat more complicated examples are $$\left(\begin{array}{cc} a&b\\ c&d\\ \end{array} \right) \left(\begin{array}{c} e\\ g\\ \end{array} \right) = \left(\begin{array}{cc} ae+bg\\ ce+dg\\ \end{array} \right)$$ and $$\left(\begin{array}{cc} a&b\\ \end{array} \right) \left(\begin{array}{cc} e&f\\ g&h\\ \end{array} \right) = \left(\begin{array}{cc} ae+bg&af+bh\\ \end{array} \right).$$ A more general example, combining these ideas, is given by $$ \left(\begin{array}{cc} a&b\\ c&d\\ \end{array} \right) \left(\begin{array}{cc} e&f\\ g&h\\ \end{array} \right) = \left(\begin{array}{cc} ae+bg&af+bh\\ ce+dg&cf+dh \end{array} \right).$$ and a numerical example is $$ \left(\begin{array}{cc} 1&2\\ 3&4\\ \end{array} \right) \left(\begin{array}{cc} 5&6\\ 7&8\\ \end{array} \right) = \left(\begin{array}{cc} 1(5)+2(7)&1(6)+2(8)\\ 3(5)+4(7)&3(6)+4(8) \end{array} \right) = \left(\begin{array}{cc} 19&22\\ 43&50\\ \end{array} \right).$$ Note however that $$\left(\begin{array}{cc} a&b\\ \end{array} \right) \left(\begin{array}{cc} c&d\\ \end{array} \right)$$ is undefined. For matrix multiplication to be defined, the number of columns of the matrix on the left must equal the number of rows of the matrix on the right.

Try it for yourself by computing $$\left(\begin{array}{cc} 1&i\\ -i&1\\ \end{array} \right) \left(\begin{array}{c} 1\\ -1\\ \end{array} \right).$$


Personal Tools