# A-level Mathematics/MEI/FP2/Matrices

This section aims to expand upon information gathered about matrices in FP1, dealing with 3x3 matrices, eigenvectors and eigenvalues as well as the Cayley-Hamilton theorem.

## Determinant of a 3x3 Matrix

### How to find the determinant

The determinant of a 3x3 matrix ${\displaystyle M={\begin{pmatrix}a_{1}&b_{1}&c_{1}\\a_{2}&b_{2}&c_{2}\\a_{3}&b_{3}&c_{3}\end{pmatrix}}}$ is given by:
${\displaystyle |M|={\begin{vmatrix}a_{1}&b_{1}&c_{1}\\a_{2}&b_{2}&c_{2}\\a_{3}&b_{3}&c_{3}\end{vmatrix}}=a_{1}{\begin{vmatrix}b_{2}&c_{2}\\b_{3}&c_{3}\end{vmatrix}}-a_{2}{\begin{vmatrix}b_{1}&c_{1}\\b_{3}&c_{3}\end{vmatrix}}+a_{3}{\begin{vmatrix}b_{1}&c_{1}\\b_{2}&c_{2}\end{vmatrix}}}$

To find the determinant of a 3x3 matrix, it is necessary to choose a row or column to start with. In the above example, the first column (${\displaystyle a}$) was selected. The first entry in this column is selected (i.e. ${\displaystyle a_{1}}$) and multiplied by its minor. The minor of ${\displaystyle a_{1}}$ is obtained by crossing off the row and column which contains ${\displaystyle a_{1}}$, in this case to leave the matrix ${\displaystyle {\begin{pmatrix}b_{2}&c_{2}\\b_{3}&c_{3}\end{pmatrix}}}$. The 'minor' is the determinant of this matrix. The minors of ${\displaystyle a_{2}}$ and ${\displaystyle a_{3}}$ are ${\displaystyle {\begin{vmatrix}b_{1}&c_{1}\\b_{3}&c_{3}\end{vmatrix}}}$ and ${\displaystyle {\begin{vmatrix}b_{1}&c_{1}\\b_{2}&c_{2}\end{vmatrix}}}$ respectively. To determine the sign which precedes the term of the expansion, the following matrix is used: ${\displaystyle {\begin{pmatrix}+&-&+\\-&+&-\\+&-&+\end{pmatrix}}}$. A minor along with its corresponding sign is known as a cofactor. The cofactor of ${\displaystyle a_{1}\,}$ may be written as ${\displaystyle A_{1}\,}$.

So if you were to select the second column (${\displaystyle b\,}$), the determinant would be found by:
${\displaystyle |M|={\begin{vmatrix}a_{1}&b_{1}&c_{1}\\a_{2}&b_{2}&c_{2}\\a_{3}&b_{3}&c_{3}\end{vmatrix}}=-b_{1}{\begin{vmatrix}a_{2}&c_{2}\\a_{3}&c_{3}\end{vmatrix}}+b_{2}{\begin{vmatrix}a_{1}&c_{1}\\a_{3}&c_{3}\end{vmatrix}}-b_{3}{\begin{vmatrix}a_{1}&c_{1}\\a_{2}&c_{2}\end{vmatrix}}}$. This may be re-written as ${\displaystyle b_{1}B_{1}+b_{2}B_{2}+b_{3}B_{3}\,}$.

### Example

Find the determinant of the matrix ${\displaystyle M\,}$, where ${\displaystyle M={\begin{pmatrix}5&7&2\\1&9&4\\2&6&3\end{pmatrix}}}$:

Solution:- ${\displaystyle |M|={\begin{vmatrix}5&7&2\\1&9&4\\2&6&3\end{vmatrix}}=}$ ${\displaystyle 5{\begin{vmatrix}9&4\\6&3\end{vmatrix}}-1{\begin{vmatrix}7&2\\6&3\end{vmatrix}}+2{\begin{vmatrix}7&2\\9&4\end{vmatrix}}=}$
${\displaystyle 5(9\times 3-6\times 4)-1(7\times 3-6\times 2)+2(7\times 4-9\times 2)=\,}$
${\displaystyle 5(27-24)-1(21-12)+2(28-18)=\,}$
${\displaystyle 15-9+20=\,}$
${\displaystyle {\underline {26}}}$

Alternatively, the Sarrus Method can also be used to find the determinant of a 3x3 matrix. Note that the Sarrus method doesn't work with larger dimensions (eg. 4x4 matrices).

## Inverse of a 3x3 Matrix

The inverse of a 3x3 matrix is found in a similar way to that of a 2x2 Matrix. To recap, the inverse of the 2x2 matrix ${\displaystyle M={\begin{pmatrix}a&c\\b&d\end{pmatrix}}}$ is found via:
${\displaystyle \mathbf {M} ^{-1}={1 \over det\mathbf {M} }{\begin{pmatrix}d&-c\\-b&a\end{pmatrix}}}$

It can be shown (using the properties of determinants) that ${\displaystyle {\begin{pmatrix}A_{1}&A_{2}&A_{3}\\B_{1}&B_{2}&B_{3}\\C_{1}&C_{2}&C_{3}\end{pmatrix}}{\begin{pmatrix}a_{1}&b_{1}&c_{1}\\a_{2}&b_{2}&c_{2}\\a_{3}&b_{3}&c_{3}\end{pmatrix}}={\begin{pmatrix}|\mathbf {M} |&0&0\\0&|\mathbf {M} |&0\\0&0&|\mathbf {M} |\end{pmatrix}}}$
So, by factoring out |M|, ${\displaystyle {1 \over |\mathbf {M} |}{\begin{pmatrix}A_{1}&A_{2}&A_{3}\\B_{1}&B_{2}&B_{3}\\C_{1}&C_{2}&C_{3}\end{pmatrix}}{\begin{pmatrix}a_{1}&b_{1}&c_{1}\\a_{2}&b_{2}&c_{2}\\a_{3}&b_{3}&c_{3}\end{pmatrix}}={\begin{pmatrix}1&0&0\\0&1&0\\0&0&1\end{pmatrix}}}$
This shows that ${\displaystyle {1 \over |\mathbf {M} |}{\begin{pmatrix}A_{1}&A_{2}&A_{3}\\B_{1}&B_{2}&B_{3}\\C_{1}&C_{2}&C_{3}\end{pmatrix}}}$ is the inverse of ${\displaystyle M\,}$. The matrix ${\displaystyle {\begin{pmatrix}A_{1}&A_{2}&A_{3}\\B_{1}&B_{2}&B_{3}\\C_{1}&C_{2}&C_{3}\end{pmatrix}}}$ is known as the adjoint or adjugate matrix of M. It is found by replacing each element of the matrix with its corresponding co-factor and then transposing (swapping the rows for columns of) the matrix.

## Eigenvectors and Eigenvalues

Consider a transformation achieved through a matrix - for the sake of argument, an enlargement - of scale factor two. If we think of lines through the origin, upon undergoing the transformation, each point on each line through the origin maps to another point on its line, but the origin maps to itself. We can say that, if ${\displaystyle \mathbf {M} }$ is the matrix responsible for the transformation, and ${\displaystyle \mathbf {s} }$ the 'point' on the line (in column-vector form - i.e., that of a 1x2 matrix), then ${\displaystyle \mathbf {Ms} =\lambda \mathbf {s} }$; in the case of our example of scale factor two, ${\displaystyle \lambda }$ would be 2. Every point undergoing the matrix would become a multiple of itself; that multiple would be two.

We can generalise this further to situations beyond mere enlargements. Formally, we can say that if ${\displaystyle \mathbf {s} }$ is a non-zero vector such that ${\displaystyle \mathbf {Ms} =\lambda \mathbf {s} }$, where ${\displaystyle \mathbf {M} }$ is a matrix and ${\displaystyle \lambda }$ is a scalar, then ${\displaystyle \mathbf {s} }$ is called an eigenvector of ${\displaystyle \mathbf {M} }$. The scalar ${\displaystyle \lambda }$ is known as an eigenvalue.

Let us illustrate this with an example:

Since:

${\displaystyle {\begin{pmatrix}4&2\\1&3\end{pmatrix}}{\begin{pmatrix}2\\1\end{pmatrix}}={\begin{pmatrix}10\\5\end{pmatrix}}=5{\begin{pmatrix}2\\1\end{pmatrix}}}$

and:

${\displaystyle {\begin{pmatrix}4&2\\1&3\end{pmatrix}}{\begin{pmatrix}-1\\1\end{pmatrix}}={\begin{pmatrix}-2\\2\end{pmatrix}}=2{\begin{pmatrix}-1\\1\end{pmatrix}}}$

it must be that ${\displaystyle {\begin{pmatrix}2\\1\end{pmatrix}}}$ and ${\displaystyle {\begin{pmatrix}-1\\1\end{pmatrix}}}$ are eigenvectors of the matrix ${\displaystyle \mathbf {M} ={\begin{pmatrix}4&2\\1&3\end{pmatrix}}}$, respectively corresponding to the eigenvalues 5 and 2. It will become evident shortly that these are the only two eigenvalues.

Notice that all non-zero scalar multiples of these two eigenvectors are also eigenvectors of ${\displaystyle \mathbf {M} }$, with the same respective eigenvalues. Likewise, under the transformation, the eigenvector is enlarged by a scale factor equal to its eigenvalue, and that the direction of an eigenvector is unchanged by the transformation.

When finding eigenvectors, you need to be able to solve the equation ${\displaystyle \mathbf {Ms} =\lambda \mathbf {s} }$:

• ${\displaystyle \mathbf {Ms} =\lambda \mathbf {s} }$
• ${\displaystyle \mathbf {Ms} -\lambda \mathbf {s} =\mathbf {0} }$
• ${\displaystyle \mathbf {Ms} -\lambda \mathbf {Is} =\mathbf {0} }$ (The use of the identity matrix is not necessary here)
• ${\displaystyle (\mathbf {M} -\lambda I)\mathbf {s} =\mathbf {0} }$ (But it is vital here!)

Clearly, ${\displaystyle \mathbf {s} =\mathbf {0} }$ is always a solution, but is rather pointless. For non-zero solutions, we require ${\displaystyle {\mbox{det(}}\mathbf {M-I} \lambda {\mbox{)}}=\mathbf {0} }$. This equation is called the characteristic equation, and the resultant polynomial (from finding the determinant) is called the characteristic polynomial.

This leads to three steps to finding eigenvectors:

1. Form the characteristic equation ${\displaystyle {\mbox{det(}}\mathbf {M-I} \lambda {\mbox{)}}=\mathbf {0} }$
2. Solve the characteristic equation to find the eigenvalues, ${\displaystyle \lambda }$
3. For each eigenvalue, find a corresponding eigenvector by solving ${\displaystyle \mathbf {Ms} =\lambda \mathbf {s} }$ or ${\displaystyle (\mathbf {M} -\lambda \mathbf {I} )\mathbf {s} =\mathbf {0} }$

This is true irrespective of the size of M.

## Powers of 2x2 and 3x3 Matrices

${\displaystyle \mathbf {M} ^{n}=\mathbf {SA} ^{n}\mathbf {S} ^{-1}}$

## The Cayley-Hamilton Theorem

"Every square matrix M satisfies its own characteristic equation."