Matrix Operations
Provided two matrices are the same size we are able to add them together and their sum can be defined as . When adding two vectors together, the numbers in the same position will be added together i.e.
and so on.
A matrix can also be multiplied by a scalar. So if then
.
\\ If you already have no idea about what I’m talking about then read Introduction to Matrices first ?
Worked examples:
Given matrices
a)

\\ Corresponding values are simply added together.
b)

\\ Write out the expression and then multiply out.

\\ Perform appropriate operation.

\\ Voila
Matrix multiplication
We can multiply matrices together provided we’ve met certain conditions are met. For the product to exist, the number of columns of
must equal the number of rows in
. So if
is a
matrix and
is an
matrix then the product
can only exist if
.
The result will be a matrix whose size is
.
is
is
is
To see how this works, let’s try out a few examples:
Consider whether the following matrices can be multiplied together:






















































\\ Note: when considering the product of the matrix ““; only if the numbers that are underlined are the same (i.e. the columns of
= the number of rows in
), then a product of
is possible.
Calculating the product of two matrices
Now that we have got to the point where we can “qualify” that the matrices we are dealing with can, in fact be multiplied together, we can now begin to look at the process of creating a product of two matrices by multiplying them together.
When given the following example find the product of







\\ is a
by
and
is a
by
so the product
will be a
matrix.

\\ Firstly: we deal with the first row of and the first column of
.

\\ The first row is multiplied by the first column and then the second and then the third.

Note: The first row of is multiplied by the first column of
which populates the first row of the new matrix
(which we already know is a
matrix).

\\ Second row of by the first column of
, and then second and then third columns as before.

Some important rules about matrices
- In general:
- If
then
is found by multiplying
th row of
by the
th column of
.
- In the product
, because
is in front of
, we say that
“premultiplies”
.
- In the product
we would say that
“postmultiplies”
.
- When you premultiply or postmultiply any matrix by an appropriate size identity matrix the same as the original input matrix, hence both of the following statements hold true.
Note: is the identity matrix and
is the matrix being considered, so if it is possible to multiply two together, we’ll just get the same answer anyway if we do. So don’t!