Matrix Structure
Let \(A\) be an \(m \times n\) matrix:
We can write the entries of \(A\) explicitly as follows:
- \(a_{ij}\) is the \((i,j)\)-entry of \(A\) (located in row \(i\) and column \(j\)).
- The main diagonal of \(A\) consists of the entries \(a_{11}, a_{22}, \dots, a_{nn}\).
Definitions
Diagonal Matrix: A square \(n \times n\) matrix whose non-diagonal entries are zero. For example:
\[ \begin{bmatrix} a_{11} & 0 & \dots & 0 \\ 0 & a_{22} & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & a_{nn} \end{bmatrix} \]Zero Matrix: A matrix whose entries are all zero (denoted by \(O\)).
\(n \times n\) Identity Matrix:
\[ I_n = \begin{bmatrix} 1 & 0 & \dots & 0 \\ 0 & 1 & \dots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \dots & 1 \end{bmatrix} \](I) Sums and Scalar Multiples
Two matrices are equal (\(A = B\)) if they have the same size and the same corresponding entries.
Sum: Let \(A = [a_{ij}]_{m \times n}\) and \(B = [b_{ij}]_{m \times n}\). Their sum is defined as:
\[ A + B = [a_{ij} + b_{ij}]_{m \times n} \]Scalar Multiples: For a scalar \(r\):
- \(rA = [ra_{ij}]\)
- \(-A = (-1)A\)
- \(A - B = A + (-1)B\)
Theorem 1
Let \(A\), \(B\), and \(C\) be matrices of the same size, and let \(r\) and \(s\) be scalars.
- \(A + B = B + A\) (Commutative Law)
- \((A + B) + C = A + (B + C)\) (Associative Law)
- \(A + O = A\)
- \(r(A + B) = rA + rB\)
- \((r + s)A = rA + sA\)
- \(r(sA) = (rs)A\)
(II) Matrix Multiplication
Multiplication of matrices corresponds to the composition of linear transformations.
If \(\vec{x} \in \mathbb{R}^p\), multiplying by an \(n \times p\) matrix \(B\) yields \(B\vec{x} \in \mathbb{R}^n\). Multiplying that result by an \(m \times n\) matrix \(A\) yields \(A(B\vec{x}) \in \mathbb{R}^m\).
Definition
If \(A\) is an \(m \times n\) matrix, and if \(B\) is an \(n \times p\) matrix with columns \(\vec{b}_1, \vec{b}_2, \dots, \vec{b}_p\), then the product \(AB\) is the \(m \times p\) matrix whose columns are \(A\vec{b}_1, A\vec{b}_2, \dots, A\vec{b}_p\). That is:
Note: The number of columns of \(A\) must match the number of rows in \(B\) in order for a linear combination (such as \(A\vec{b}_1\)) to be defined.
Each column of \(AB\) is a linear combination of the columns of \(A\) using weights from the corresponding column of \(B\).
Row-Column Rule for Computing \(AB\)
If the product \(AB\) is defined (where \(A\) is \(m \times n\) and \(B\) is \(n \times p\)), then the \((i,j)\)-entry of \(AB\) is the sum of the products of corresponding entries from Row \(i\) of \(A\) and Column \(j\) of \(B\).
This is a more efficient method for calculation.
Use both the definition and the Row-Column Rule to compute \(AB\) for:
\[ A = \begin{bmatrix} 4 & -2 \\ -3 & 0 \\ 3 & 5 \end{bmatrix} \quad \text{and} \quad B = \begin{bmatrix} 1 & 3 \\ 4 & -1 \end{bmatrix} \]Solution using Definition:
Let \(\vec{b}_1 = \begin{bmatrix} 1 \\ 4 \end{bmatrix}\) and \(\vec{b}_2 = \begin{bmatrix} 3 \\ -1 \end{bmatrix}\).
\[ A\vec{b}_1 = \begin{bmatrix} 4(1) + (-2)(4) \\ -3(1) + 0(4) \\ 3(1) + 5(4) \end{bmatrix} = \begin{bmatrix} -4 \\ -3 \\ 23 \end{bmatrix} \] \[ A\vec{b}_2 = \begin{bmatrix} 4(3) + (-2)(-1) \\ -3(3) + 0(-1) \\ 3(3) + 5(-1) \end{bmatrix} = \begin{bmatrix} 14 \\ -9 \\ 4 \end{bmatrix} \] \[ AB = \begin{bmatrix} A\vec{b}_1 & A\vec{b}_2 \end{bmatrix} = \begin{bmatrix} -4 & 14 \\ -3 & -9 \\ 23 & 4 \end{bmatrix} \]Solution using Row-Column Rule:
\[ AB = \begin{bmatrix} (4)(1) + (-2)(4) & (4)(3) + (-2)(-1) \\ (-3)(1) + (0)(4) & (-3)(3) + (0)(-1) \\ (3)(1) + (5)(4) & (3)(3) + (5)(-1) \end{bmatrix} = \begin{bmatrix} -4 & 14 \\ -3 & -9 \\ 23 & 4 \end{bmatrix} \](III) Properties of Matrix Multiplication
Theorem 2
Let \(A\) be an \(m \times n\) matrix, and let \(B\) and \(C\) have sizes for which the indicated sums and products are defined.
- \(A(BC) = (AB)C\) (Associative Law of Multiplication)
- \(A(B + C) = AB + AC\) (Left Distributive Law)
- \((B + C)A = BA + CA\) (Right Distributive Law)
- \(r(AB) = (rA)B = A(rB)\) for any scalar \(r\)
- \(I_m A = A = A I_n\) (Identity for Matrix Multiplication)
Warnings
-
In general, \(AB \neq BA\) (Matrix multiplication is not commutative).
Example: If \( A = \begin{bmatrix} -3 & 2 \\ 3 & -2 \end{bmatrix} \) and \( B = \begin{bmatrix} 2 & 0 \\ 4 & 3 \end{bmatrix} \), then: \[ AB = \begin{bmatrix} 2 & 6 \\ -2 & -6 \end{bmatrix} \neq BA = \begin{bmatrix} -6 & 4 \\ -3 & 2 \end{bmatrix} \] -
The Cancellation Laws do not hold for matrix multiplication.
That is, if \(AB = AC\), then it is not true in general that \(B = C\).
Example: Let \( A = \begin{bmatrix} -3 & 2 \\ 3 & -2 \end{bmatrix} \), \( B = \begin{bmatrix} 2 & 0 \\ 4 & 3 \end{bmatrix} \), and \( C = \begin{bmatrix} 0 & 0 \\ 1 & 3 \end{bmatrix} \).
Here, \(AB = AC = \begin{bmatrix} 2 & 6 \\ -2 & -6 \end{bmatrix}\), but clearly \(B \neq C\). -
If \(AB = O\), we cannot conclude that \(A = O\) or \(B = O\) in general.
Example: Let \( A = \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} \) and \( B = \begin{bmatrix} 4 & 2 \\ -2 & -1 \end{bmatrix} \).
Here, \(AB = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = O\), yet neither \(A\) nor \(B\) is the zero matrix.
Powers of a Matrix
If \(A\) is an \(n \times n\) matrix and \(k\) is a positive integer, then:
(IV) The Transpose of a Matrix
If \(A\) is an \(m \times n\) matrix, its transpose, denoted \(A^T\), is an \(n \times m\) matrix.
Transpose of \(A\): The columns of \(A^T\) are formed from the corresponding rows of \(A\).
Theorem 3
Let \(A\) and \(B\) denote matrices whose sizes are appropriate for the indicated sum and product.
- \((A^T)^T = A\)
- \((A + B)^T = A^T + B^T\)
- \((rA)^T = rA^T\) for any scalar \(r\)
- \((AB)^T = B^T A^T\)
Note on (4): The transpose of a product of matrices equals the product of their transposes in the reverse order.
Generalizing (4) for multiple matrices: