The square matrix A_{m\times m} has the same number of rows as columns.
Any square matrix can be multiplied by itself and the result is a square matrix of the same dimensions. So, we can write A_{n\times n}\times A_{n\times n}=B_{n\times n} or, more simply, A^2=B.
A matrix can only be raised to a power when it is square. We often denote the square matrix of order n as A_n.
Find A^2.A=\begin{bmatrix} -4 & 4 \\ 9 & -3 \end{bmatrix}
A matrix can only be raised to a power when it is square.
A square matrix of order n can be written as A_n.
It can be just as hard to know when to stop looking as it is to find them all. Instead, we are going to use the network's adjacency matrix to answer this for us. Let’s start by writing it out.
If two vertices are connected by an edge, there is a 1 in their corresponding row and column. If they are not connected, there is a 0 instead.
\begin{array}{cc} &\begin{array}{ccc} A&B&C&D&E&F&G \end{array} \\ \begin{array}{c} A \\ B \\ C \\D\\E\\F\\G \end{array} & \left( \begin{array}{ccc} 0&1&0&1&\,1&\,\,1&\,\,\,0\\ 1&0&1&0&\,0&\,\,0&\,\,\,0 \\ 0&1&0&0&\,0&\,\,1&\,\,\,1 \\ 1 &0&0&0&\,1&\,\,1&\,\,\,1 \\ 1&0&0&1&\,0&\,\,1&\,\,\,0 \\ 1&0&1&1&\,1&\,\,0&\,\,\,0 \\ 0&0&1&1&\,0&\,\,0&\,\,\,0 \end{array}\right) \end{array}
The number of routes of length n in a network from one vertex to another is equal to the entry in the start vertex’s row and end vertex’s column of the matrix M^n, where M is the adjacency matrix for the network.
Since we are asking about a route of length 3, we need to cube the matrix above. Using a calculator or an online tool we get the result:
\begin{array}{cc} & \begin{array}{ccc} A&B&C&D&E&F&G \end{array} \\ \begin{array}{c} A \\ B \\ C \\D\\E\\F\\G \end{array} & \left( \begin{array}{ccc} 6&6&3&9&8&10&4 \\ 6&0&5&4&3&2&1 \\ 3&5&0&3&4&8&5 \\ 9&4&3&6&8&10&6 \\ 8&3&4&8&6&8&3 \\ 10&2&8&10&8&6&2 \\ 4&1&5&6&3&2&0 \end{array}\right) \end{array}
This same idea works for directed networks as well. Consider the network below:
Find A^{4}, the matrix that represents all possible four-step paths between the towns. Use technology to calculate A^4.
How many four-step paths can be taken from Ashland to Dunham?
The number of routes of length n in a network from one vertex to another is equal to the entry in the start vertex’s row and end vertex’s column of the matrix M^n, where M is the adjacency matrix for the network.