Chapter 3: Matrices
A matrix is a rectangular array of numbers or other mathematical objects. They are fundamental in various fields, from engineering to social sciences.
Why do we use matrices?
An \(m \times n\) matrix \(A\) has \(m\) rows and \(n\) columns.
\[ A = \left( \begin{array}{c c c c c c} a _ {1 1} & a _ {1 2} & \dots & a _ {1 j} & \dots & a _ {1 n} \\ a _ {2 1} & a _ {2 2} & \dots & a _ {2 j} & \dots & a _ {2 n} \\ \vdots & \vdots & & \vdots & & \vdots \\ a _ {i 1} & a _ {i 2} & \dots & a _ {i j} & \dots & a _ {i n} \\ \vdots & \vdots & & \vdots & & \\ a _ {m 1} & a _ {m 2} & \dots & a _ {m j} & \dots & a _ {m n} \end{array} \right). \]
The structure of a matrix is defined by its rows and columns.
\(i\)th row of \(A\)
(where \(1 \leq i \leq m\))
\[ \left( \begin{array}{c c c c} a _ {i 1} & a _ {i 2} & \dots & a _ {i n} \end{array} \right) \]
\(j\)th column of \(A\)
(where \(1 \leq j \leq n\))
\[ \left( \begin{array}{c} a _ {1 j} \\ a _ {2 j} \\ \vdots \\ a _ {m j} \end{array} \right) \]
Tip
The size of a matrix is given as \(m \times n\), read as “m by n”, where \(m\) is the number of rows and \(n\) is the number of columns.
Matrices come in various forms, each with specific properties.
In square matrices, specific entries hold special importance.
Diagonal Entries
For an \(n \times n\) square matrix \(A\): \[ A = \left[ \begin{array}{c c c c} a _ {1 1} & a _ {1 2} & \dots & a _ {1 n} \\ a _ {2 1} & a _ {2 2} & \dots & a _ {2 n} \\ \vdots & \vdots & & \vdots \\ a _ {m 1} & a _ {m 2} & \dots & a _ {n n} \end{array} \right]. \] The entries \(a_{11}, a_{22}, \dots, a_{nn}\) are on the main diagonal.
Identity Matrix (\(I_n\))
\[ I _ {2} = \left( \begin{array}{c c} 1 & 0 \\ 0 & 1 \end{array} \right), \quad I _ {3} = \left( \begin{array}{c c c} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right). \] The identity matrix acts like the number ‘1’ in scalar multiplication.
Beyond the identity matrix, other structured square matrices exist.
Diagonal Matrix
\[ A = \left( \begin{array}{c c c} a & 0 & 0 \\ 0 & e & 0 \\ 0 & 0 & g \end{array} \right) \]
Upper Triangular Matrix
\[ A = \left( \begin{array}{c c c} a & b & c \\ 0 & e & f \\ 0 & 0 & g \end{array} \right) \]
Lower Triangular Matrix
\[ C = \left( \begin{array}{c c} a & 0 \\ c & d \end{array} \right) \]
Note
Scalars refer to real or complex numbers when discussing matrices and vectors.
Two matrices are equal if and only if they have the same size and their corresponding entries are equal.
Solve the following matrix equation for \(a, b, c\) and \(d\):
\[ \left[ \begin{array}{c c} a - b & b + c \\ 3 d + c & 2 a - 4 d \end{array} \right] = \left[ \begin{array}{c c} 8 & 1 \\ 7 & 6 \end{array} \right] \]
This leads to a system of linear equations:
\(a - b = 8\)
\(b + c = 1\)
\(3 d + c = 7\)
\(2 a - 4 d = 6\)
Solving this system gives \(a=5, b=-3, c=4, d=1\).
Matrices of the same size can be added or subtracted by operating on their corresponding entries.
Addition (\(A+B\))
Note
Let \(A = \left( \begin{array}{lll}1 & 2 & 3\\ 4 & 5 & 6 \end{array} \right)\) and \(B = \left( \begin{array}{lll}7 & 8 & 9\\ 10 & 11 & 12 \end{array} \right)\).
\[ A + B = \left( \begin{array}{c c c} 1+7 & 2+8 & 3+9 \\ 4+10 & 5+11 & 6+12 \end{array} \right) = \left( \begin{array}{c c c} 8 & 10 & 12 \\ 14 & 16 & 18 \end{array} \right) \]
Subtraction (\(A-B\))
Note
Using the same \(A\) and \(B\):
\[ A - B = \left( \begin{array}{c c c} 1-7 & 2-8 & 3-9 \\ 4-10 & 5-11 & 6-12 \end{array} \right) = \left( \begin{array}{c c c} -6 & -6 & -6 \\ -6 & -6 & -6 \end{array} \right) \]
Warning
Matrices of different sizes cannot be added or subtracted.
Multiplying a matrix by a scalar (a real or complex number) involves multiplying each entry of the matrix by that scalar.
Let \(A = \left( \begin{array}{c c c} 1 & 3 & 5 \\ 7 & 9 & 1 1 \end{array} \right)\). Then:
\[ 2 A = \left( \begin{array}{c c c} 2 & 6 & 1 0 \\ 1 4 & 1 8 & 2 2 \end{array} \right) \] \[ (- 3) A = \left( \begin{array}{c c c} - 3 & - 9 & - 1 5 \\ - 2 1 & - 2 7 & - 3 3 \end{array} \right) \] \[ \frac {1}{3} A = \left( \begin{array}{c c c} \frac {1}{3} & 1 & \frac {5}{3} \\ \frac {7}{3} & 3 & \frac {1 1}{3} \end{array} \right) \]
Matrix arithmetic, including addition, subtraction, and scalar multiplication, follows familiar rules.
Assuming matrix sizes allow operations:
Note
These properties are analogous to those of real numbers, reflecting the entry-wise nature of these operations.
Matrix multiplication is not element-wise. Instead, it’s defined using the dot product of rows and columns.
\[ (A B) _ {i j} = A _ {i 1} B _ {1 j} + A _ {i 2} B _ {2 j} + \dots + A _ {i r} B _ {r j} = \sum_ {k = 1} ^ {r} A _ {i k} B _ {k j}. \]
Important
For the product \(AB\) to be defined, the number of columns in \(A\) (\(r\)) must equal the number of rows in \(B\) (\(r\)). The resulting matrix \(AB\) will have dimensions \(m \times n\).
Let’s break down the process.
\[ A B = \left( \begin{array}{c c c c} A _ {1 1} & A _ {1 2} & \dots & A _ {1 r} \\ A _ {2 1} & A _ {2 2} & \dots & A _ {2 r} \\ \vdots & \vdots & & \vdots \\ A _ {i 1} & A _ {i 2} & \dots & A _ {i r} \\ \vdots & \vdots & & \vdots \\ A _ {m 1} & A _ {m 2} & \dots & A _ {m r} \end{array} \right) \left( \begin{array}{c c c c c c} B _ {1 1} & B _ {1 2} & \dots & B _ {1 j} & \dots & B _ {1 n} \\ B _ {2 1} & B _ {2 2} & \dots & B _ {2 j} & \dots & B _ {2 n} \\ \vdots & \vdots & & \vdots \\ B _ {r 1} & B _ {r 2} & \dots & B _ {r j} & \dots & B _ {r n} \end{array} \right). \]
To find \((AB)_{ij}\):
Let \(A = \left( \begin{array}{rrr}1 & 2 & -1\\ 3 & 1 & 4 \end{array} \right)\) (\(2 \times 3\)) and \(B = \left( \begin{array}{c} - 2\\ 4\\ 2 \end{array} \right)\) (\(3 \times 1\)).
The product \(AB\) will be a \(2 \times 1\) matrix.
\((AB)_{11} = (1)(-2) + (2)(4) + (-1)(2) = -2 + 8 - 2 = 4\)
\((AB)_{21} = (3)(-2) + (1)(4) + (4)(2) = -6 + 4 + 8 = 6\)
So, \(AB = \left[ \begin{array}{l} 4 \\ 6 \end{array} \right]\).
Matrix multiplication has distinct properties compared to scalar multiplication.
Find two non-zero \(2 \times 2\) matrices \(A\) and \(B\) such that \(AB = 0\).
Let \(A = \left[ \begin{array}{cc} 1 & 0 \\ 0 & 0 \end{array} \right]\) and \(B = \left[ \begin{array}{cc} 0 & 0 \\ 0 & 1 \end{array} \right]\). Both are non-zero.
\(AB = \left[ \begin{array}{cc} 1 & 0 \\ 0 & 0 \end{array} \right] \left[ \begin{array}{cc} 0 & 0 \\ 0 & 1 \end{array} \right] = \left[ \begin{array}{cc} (1)(0)+(0)(0) & (1)(0)+(0)(1) \\ (0)(0)+(0)(0) & (0)(0)+(0)(1) \end{array} \right] = \left[ \begin{array}{cc} 0 & 0 \\ 0 & 0 \end{array} \right]\).
Matrix multiplication also has properties related to identity and distribution.
Assuming matrix sizes allow operations:
Tip
The identity matrix acts as ‘1’ for matrix multiplication, allowing you to remove it without changing the matrix.
The transpose of a matrix \(A\), denoted \(A^T\), is obtained by interchanging its rows and columns.
Let \(A = \left( \begin{array}{rrr}4 & 3 & 2\\ 1 & 3 & 1 \end{array} \right)\) (\(2 \times 3\)). Then:
\[ A ^ {T} = \left( \begin{array}{c c} 4 & 1 \\ 3 & 3 \\ 2 & 1 \end{array} \right) \] Let \(B = \left( \begin{array}{rrr}1 & 0 & 1\\ -2 & 1 & 0\\ 0 & -3 & -2 \end{array} \right)\) (\(3 \times 3\)). Then:
\[ B ^ {T} = \left( \begin{array}{c c c} 1 & -2 & 0 \\ 0 & 1 & -3 \\ 1 & 0 & -2 \end{array} \right) \]
The transpose operation has several useful properties:
Assuming matrix sizes allow operations:
Important
The property \((AB)^T = B^T A^T\) is crucial and often a point of error. Remember to reverse the order of multiplication when taking the transpose of a product.
For a square matrix \(A\), its inverse \(A^{-1}\) acts like a reciprocal in scalar arithmetic.
Definition: Let \(A\) be an \(n \times n\) square matrix. If there exists another \(n \times n\) matrix \(B\) such that \(AB = I_n\) and \(BA = I_n\), then:
Let \(A = \left( \begin{array}{cc} -1 & -2 \\ 3 & 5 \end{array} \right)\) and \(B = \left( \begin{array}{cc} 5 & 2 \\ -3 & -1 \end{array} \right)\).
Verify:
\(AB = \left( \begin{array}{cc} (-1)(5)+(-2)(-3) & (-1)(2)+(-2)(-1) \\ (3)(5)+(5)(-3) & (3)(2)+(5)(-1) \end{array} \right) = \left( \begin{array}{cc} -5+6 & -2+2 \\ 15-15 & 6-5 \end{array} \right) = \left( \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right) = I_2\)
\(BA = \left( \begin{array}{cc} (5)(-1)+(2)(3) & (5)(-2)+(2)(5) \\ (-3)(-1)+(-1)(3) & (-3)(-2)+(-1)(5) \end{array} \right) = \left( \begin{array}{cc} -5+6 & -10+10 \\ 3-3 & 6-5 \end{array} \right) = \left( \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right) = I_2\)
Since \(AB=I_2\) and \(BA=I_2\), \(A\) is invertible and \(B=A^{-1}\).
Some square matrices are not invertible. These are called singular matrices.
Conditions for a Matrix to be Singular:
Note
\(C = \left( \begin{array}{lll}0 & 0 & 0\\ a & b & c\\ d & e & f \end{array} \right)\) is singular because any matrix \(D\) multiplied by \(C\) will result in a matrix with a row of zeros. Thus \(CD \neq I\).
Note
\(E = \left( \begin{array}{ccc}a & b & c\\ 2a & 2b & 2c\\ d & e & f \end{array} \right)\) is singular because \(R_2 = 2R_1\). If \(EF=I\), then \(R_2\) of \(EF\) would be \(2R_1\) of \(EF\), which cannot be the identity matrix.
Note
\(G = \left( \begin{array}{cccc}a & b & c\\ d & e & f\\ 2a - 5d & 2b - 5e & 2c - 5f \end{array} \right)\). Here, \(R_3 = 2R_1 - 5R_2\). Thus \(G\) is singular.
If an inverse exists for a matrix, it is unique.
Proposition: If \(B\) and \(\widehat{B}\) are both inverses of an invertible matrix \(A\), then \(B = \widehat{B}\).
Note
Because the inverse is unique, we can confidently use the notation \(A^{-1}\) to refer to the inverse of \(A\).
Proposition: If \(A\) is an invertible matrix, then \(A^{-1}\) is also invertible, and \((A^{-1})^{-1} = A\).
For \(2 \times 2\) matrices, there’s a simple condition for invertibility and a direct formula for the inverse.
Proposition: A \(2 \times 2\) matrix \(A = \left( \begin{array}{cc} a & b \\ c & d \end{array} \right)\) is invertible if and only if \(ad - bc \neq 0\).
In this case, its inverse \(A^{-1}\) is given by:
\[ A ^ {- 1} = \frac {1}{a d - b c} \left( \begin{array}{c c} d & - b \\ - c & a \end{array} \right). \tag {3.1} \]
Note
The value \(ad - bc\) is called the determinant of \(A\), denoted \(\operatorname{det}(A)\). So, \(A\) is invertible if and only if \(\operatorname{det}(A) \neq 0\).
Determine if \(A = \left( \begin{array}{ll}5 & 3\\ 7 & 9 \end{array} \right)\) is invertible, and if so, find its inverse.
\(\operatorname{det}(A) = (5)(9) - (3)(7) = 45 - 21 = 24\).
Since \(24 \neq 0\), \(A\) is invertible.
\(A^{-1} = \frac{1}{24} \left( \begin{array}{cc} 9 & -3 \\ -7 & 5 \end{array} \right) = \left( \begin{array}{cc} 9/24 & -3/24 \\ -7/24 & 5/24 \end{array} \right) = \left( \begin{array}{cc} 3/8 & -1/8 \\ -7/24 & 5/24 \end{array} \right)\).
Diagonal matrices have a straightforward condition for invertibility.
Proposition: A diagonal matrix \(A = [a_{ij}]\) is invertible if and only if all its diagonal entries are non-zero (\(a_{ii} \neq 0\) for every \(i\)).
When \(A\) is invertible, its inverse \(A^{-1}\) is a diagonal matrix where each diagonal entry is the reciprocal of the corresponding entry in \(A\).
\[ \text{If } A = \left( \begin{array}{c c c} a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & c \end{array} \right) \text{ then } A^{-1} = \left( \begin{array}{c c c} 1/a & 0 & 0 \\ 0 & 1/b & 0 \\ 0 & 0 & 1/c \end{array} \right) \]
Find the inverse of \(\left( \begin{array}{cccc} 2 & 0 & 0 & 0 \\ 0 & 3 & 0 & 0 \\ 0 & 0 & 5 & 0 \\ 0 & 0 & 0 & -1 \end{array} \right)\).
Since all diagonal entries are non-zero, the matrix is invertible.
Its inverse is \(\left( \begin{array}{cccc} 1/2 & 0 & 0 & 0 \\ 0 & 1/3 & 0 & 0 \\ 0 & 0 & 1/5 & 0 \\ 0 & 0 & 0 & -1 \end{array} \right)\).
Invertible matrices have several important properties that simplify matrix algebra.
Proposition: Let \(A\) and \(B\) be invertible matrices.
Tip
The cancellation laws are only valid for invertible matrices. If a matrix is singular, you cannot cancel it.
We can define integer powers for square matrices.
Definition: Let \(A\) be a square matrix.
Laws of Exponents (parallel to real numbers): - \(A^r A^s = A^{r+s}\) - \((A^r)^s = A^{rs}\)
Proposition: If \(A\) is an invertible matrix, then \(A^n\) is invertible and \((A^n)^{-1} = (A^{-1})^n\).
The determinant is a scalar value that can be computed from the entries of a square matrix. It provides crucial information about the matrix, particularly its invertibility.
Note
For \(n \times n\) matrices where \(n \geq 3\), the determinant is computed inductively using cofactor expansion.
To compute determinants for larger matrices, we need minors and cofactors.
Definition: Suppose \(A\) is an \(n \times n\) matrix.
Consider \(A = \left[ \begin{array}{c c c} 1 & 5 & 0 \\ - 3 & 2 & 1 \\ 1 & 2 & 1 \end{array} \right]\).
Find the \((1,1)\)-cofactor \(C_{11}\):
\(M_{11} = \left| \begin{array}{cc} 2 & 1 \\ 2 & 1 \end{array} \right| = (2)(1) - (1)(2) = 0\).
\(C_{11} = (-1)^{1+1}M_{11} = (1)(0) = 0\).
Find the \((2,3)\)-cofactor \(C_{23}\):
\(M_{23} = \left| \begin{array}{cc} 1 & 5 \\ 1 & 2 \end{array} \right| = (1)(2) - (5)(1) = 2 - 5 = -3\).
\(C_{23} = (-1)^{2+3}M_{23} = (-1)(-3) = 3\).
The determinant of an \(n \times n\) matrix \(A\) (for \(n \geq 3\)) can be found by expanding along any row or column using cofactors.
Expansion along the \(i\)th row: \[ \det (A) = a _ {i 1} C _ {i 1} + a _ {i 2} C _ {i 2} + \dots a _ {i n} C _ {i n} = \sum_ {j = 1} ^ {n} a _ {i j} C i j \]
Expansion along the \(j\)th column: \[ \det (A) = a _ {1 j} C _ {1 j} + a _ {2 j} C _ {2 j} + \dots + a _ {n j} C _ {n j} = \sum_ {k = 1} ^ {n} a _ {k j} C _ {k j}. \]
Find \(\det(A)\) for \(A = \left[ \begin{array}{rrr}1 & 5 & 0\\ -3 & 2 & 1\\ 1 & 2 & 1 \end{array} \right]\) by expanding along the second row.
The checkerboard signs for the second row are -, +, -.
\(C_{21} = (-1)^{2+1} \left| \begin{array}{cc} 5 & 0 \\ 2 & 1 \end{array} \right| = - (5 \cdot 1 - 0 \cdot 2) = -5\)
\(C_{22} = (-1)^{2+2} \left| \begin{array}{cc} 1 & 0 \\ 1 & 1 \end{array} \right| = + (1 \cdot 1 - 0 \cdot 1) = 1\)
\(C_{23} = (-1)^{2+3} \left| \begin{array}{cc} 1 & 5 \\ 1 & 2 \end{array} \right| = - (1 \cdot 2 - 5 \cdot 1) = - (2 - 5) = 3\)
\(\det(A) = a_{21}C_{21} + a_{22}C_{22} + a_{23}C_{23}\)
\(\det(A) = (-3)(-5) + (2)(1) + (1)(3) = 15 + 2 + 3 = 20\).
Certain matrix types have determinants that are easy to compute.
Matrices with a zero row/column: If an \(n \times n\) matrix \(A\) has a row of zeros or a column of zeros, then \(\det(A) = 0\).
Matrices with linearly dependent rows/columns: If \(A\) has two rows (or columns) such that one is a multiple of the other, then \(\det(A) = 0\). (This is a special case of linear dependence.)
Triangular Matrices: If \(A\) is a triangular matrix (upper, lower, or diagonal), then \(\det(A)\) is the product of its diagonal entries. \[ \left| \begin{array}{cccc}4 & 0 & 0 & 5\\ 0 & -2 & 0 & 7\\ 0 & 0 & 3 & 0\\ 0 & 0 & 0 & \frac{1}{2} \end{array} \right| \quad \text{has determinant } (4)(-2)(3)(1/2) = -12. \]
Important
\(\det(I_n) = 1\) because \(I_n\) is a diagonal matrix with all diagonal entries being 1.
The determinant is the ultimate test for matrix invertibility.
Theorem: For two \(n \times n\) matrices \(A\) and \(B\): \[ \det (A B) = \det (A) \det (B). \]
Corollary: If \(A\) is an \(n \times n\) invertible matrix, then \(\det(A) \neq 0\).
Moreover, \(\det (A ^ {- 1}) = \frac {1}{\det (A)}\).
Proof (Sketch):
We know \(AA^{-1} = I\).
Taking the determinant of both sides: \(\det(AA^{-1}) = \det(I)\).
Using the product rule: \(\det(A)\det(A^{-1}) = 1\).
Since \(\det(I)=1\), this implies \(\det(A) \neq 0\) and \(\det(A^{-1}) = 1/\det(A)\).
Important
A square matrix \(A\) is invertible if and only if \(\det(A) \neq 0\). Equivalently, \(A\) is singular if and only if \(\det(A) = 0\).
The adjoint of a matrix provides a formula for its inverse.
Definition: Let \(A\) be an \(n \times n\) matrix, and \(C_{ij}\) be its \((i,j)\)th cofactor.
The matrix of cofactors from \(A\) is: \[ C = \left[ \begin{array}{c c c c} C _ {1 1} & C _ {1 2} & \dots & C _ {1 n} \\ C _ {2 1} & C _ {2 2} & \dots & C _ {2 n} \\ . & . & \dots & . \\ . & . & \dots & . \\ . & . & \dots & . \\ C _ {n 1} & C _ {n 2} & \dots & C _ {n n} \end{array} \right] \] The adjoint of \(A\), denoted \(\operatorname{adj}(A)\), is the transpose of the matrix of cofactors: \[ \operatorname {adj} (A) = C^T \quad \text{or} \quad (\operatorname {adj} (A)) _ {i j} = C _ {j i}. \]
Find \(\operatorname{adj}(A)\) for \(A = \left[ \begin{array}{rrr}1 & 5 & 0\\ -3 & 2 & 1\\ 1 & 2 & 1 \end{array} \right]\). (We found \(\det(A)=20\) earlier).
Cofactor matrix \(C = \left[ \begin{array}{r r r} 0 & 4 & - 8 \\ - 5 & 1 & 3 \\ 5 & - 1 & 1 7 \end{array} \right]\).
\(\operatorname{adj}(A) = C^T = \left[ \begin{array}{r r r} 0 & - 5 & 5 \\ 4 & 1 & - 1 \\ - 8 & 3 & 1 7 \end{array} \right]\).
The adjoint matrix gives a direct formula for the inverse of an invertible matrix.
Theorem: Let \(A\) be an \(n \times n\) square matrix. Then: \[ A \operatorname{adj} (A) = \det (A) I. \]
Theorem: If \(A\) is an \(n \times n\) invertible matrix, then: \[ A ^ {- 1} = \frac {1}{\det (A)} \operatorname {adj} (A). \]
Find the inverse of \(A = \left[ \begin{array}{rrr}1 & 5 & 0\\ -3 & 2 & 1\\ 1 & 2 & 1 \end{array} \right]\) using the adjoint.
We found \(\det(A) = 20\) and \(\operatorname{adj}(A) = \left[ \begin{array}{r r r} 0 & - 5 & 5 \\ 4 & 1 & - 1 \\ - 8 & 3 & 1 7 \end{array} \right]\).
\[ A^{-1} = \frac{1}{20} \left[ \begin{array}{r r r} 0 & - 5 & 5 \\ 4 & 1 & - 1 \\ - 8 & 3 & 1 7 \end{array} \right] = \left[ \begin{array}{r r r} 0 & -1/4 & 1/4 \\ 1/5 & 1/20 & -1/20 \\ -2/5 & 3/20 & 17/20 \end{array} \right]. \]
Cramer’s Rule offers a method to solve systems of linear equations using determinants, when the coefficient matrix is invertible.
Consider a system \(\mathbf{Ax} = \mathbf{b}\) of \(n\) linear equations in \(n\) unknowns.
If \(\det(A) \neq 0\), then the system has a unique solution given by: \[ x _ {j} = \frac {\det (A _ {j})}{\det (A)}, \quad j = 1, 2, \ldots , n \] where \(A_j\) is the matrix formed by replacing the \(j\)th column of \(A\) with the vector \(\mathbf{b}\).
\[ A _ {j} = \left[ \begin{array}{c c c c c c c} a _ {1 1} & \dots & a _ {1 j - 1} & \mathbf{b _ {1}} & a _ {1 j + 1} & \dots & a _ {1 n} \\ a _ {2 1} & \dots & a _ {2 j - 1} & \mathbf{b _ {2}} & a _ {2 j + 1} & \dots & a _ {2 n} \\ \vdots & & \vdots & \vdots & \vdots & & \vdots \\ a _ {n 1} & \dots & a _ {n j - 1} & \mathbf{b _ {n}} & a _ {n j + 1} & \dots & a _ {n n} \end{array} \right] \]
Important
Cramer’s Rule is only applicable if the coefficient matrix \(A\) is square and \(\det(A) \neq 0\).
Let’s apply Cramer’s Rule to a \(2 \times 2\) system.
Solve the linear system: \[ \begin{array}{l} 7 x _ {1} - 2 x _ {2} = 3 \\ 3 x _ {1} + x _ {2} = 5 \\ \end{array} \] This can be written as \(A\mathbf{x} = \mathbf{b}\) where \(A = \left[ \begin{array}{cc} 7 & -2 \\ 3 & 1 \end{array} \right]\) and \(\mathbf{b} = \left[ \begin{array}{c} 3 \\ 5 \end{array} \right]\).
Calculate \(\det(A)\): \(\det(A) = (7)(1) - (-2)(3) = 7 - (-6) = 13\). Since \(\det(A) = 13 \neq 0\), Cramer’s Rule is applicable.
Form \(A_1\) and calculate \(\det(A_1)\): Replace column 1 of \(A\) with \(\mathbf{b}\). \(A_1 = \left[ \begin{array}{cc} 3 & -2 \\ 5 & 1 \end{array} \right]\). \(\det(A_1) = (3)(1) - (-2)(5) = 3 - (-10) = 13\).
Form \(A_2\) and calculate \(\det(A_2)\): Replace column 2 of \(A\) with \(\mathbf{b}\). \(A_2 = \left[ \begin{array}{cc} 7 & 3 \\ 3 & 5 \end{array} \right]\). \(\det(A_2) = (7)(5) - (3)(3) = 35 - 9 = 26\).
Find \(x_1\) and \(x_2\): \(x_1 = \frac{\det(A_1)}{\det(A)} = \frac{13}{13} = 1\). \(x_2 = \frac{\det(A_2)}{\det(A)} = \frac{26}{13} = 2\).
The unique solution is \(x_1=1, x_2=2\).
| Equation | Description |
|---|---|
| \((A + B)_{ij} = A_{ij} + B_{ij}\) | Matrix addition (entry-wise) |
| \((\alpha A)_{ij} = \alpha (A_{ij})\) | Scalar multiplication (entry-wise) |
| \((AB)_{ij} = \sum_{k=1}^{r} A_{ik} B_{kj}\) | Matrix multiplication (row-column dot product) |
| \((A^T)_{ij} = A_{ji}\) | Transpose of a matrix |
| \(AA^{-1} = I\) and \(A^{-1}A = I\) | Definition of matrix inverse |
| \(A^{-1} = \frac{1}{ad-bc} \left( \begin{array}{cc} d & -b \\ -c & a \end{array} \right)\) | Inverse of a \(2 \times 2\) matrix \(A=\left(\begin{smallmatrix} a & b \\ c & d \end{smallmatrix}\right)\) |
| \(\det(A) = ad-bc\) | Determinant of a \(2 \times 2\) matrix \(A=\left(\begin{smallmatrix} a & b \\ c & d \end{smallmatrix}\right)\) |
| \(\det(A) = \sum_{j=1}^{n} a_{ij}C_{ij}\) | Cofactor expansion along row \(i\) |
| \(\det(AB) = \det(A)\det(B)\) | Determinant of a matrix product |
| \(A^{-1} = \frac{1}{\det(A)} \operatorname{adj}(A)\) | Inverse using the adjoint matrix (if \(\det(A) \neq 0\)) |
| \(x_j = \frac{\det(A_j)}{\det(A)}\) | Cramer’s Rule for solving \(A\mathbf{x} = \mathbf{b}\) |
| Term | Definition |
|---|---|
| Matrix | A rectangular array of numbers or mathematical objects. |
| \((i,j)\)th Entry | The element located in the \(i\)th row and \(j\)th column of a matrix. |
| Size (\(m \times n\)) | Describes a matrix with \(m\) rows and \(n\) columns. |
| Row Matrix (Vector) | A matrix with only one row. |
| Column Matrix (Vector) | A matrix with only one column. |
| Zero Matrix | A matrix where all entries are zero. |
| Square Matrix | A matrix where the number of rows equals the number of columns (\(m=n\)). |
| Diagonal Entries | Entries \(a_{ii}\) along the main diagonal of a square matrix. |
| Identity Matrix (\(I_n\)) | An \(n \times n\) square matrix with 1s on the main diagonal and 0s elsewhere. |
| Diagonal Matrix | A square matrix where all off-diagonal entries are zero. |
| Triangular Matrix | A square matrix with all entries either above (upper triangular) or below (lower triangular) the main diagonal being zero. |
| Scalar | A real or complex number used in matrix operations. |
| Transpose (\(A^T\)) | The matrix obtained by interchanging the rows and columns of \(A\). |
| Invertible (Non-singular) | A square matrix \(A\) for which an inverse matrix \(A^{-1}\) exists. |
| Not Invertible (Singular) | A square matrix for which no inverse matrix exists. |
| Determinant (\(\det(A)\)) | A scalar value calculated from the entries of a square matrix, indicating its invertibility. |
| Minor (\(M_{ij}\)) | The determinant of the submatrix remaining after deleting the \(i\)th row and \(j\)th column. |
| Cofactor (\(C_{ij}\)) | The minor \(M_{ij}\) multiplied by \((-1)^{i+j}\). |
| Adjoint (\(\operatorname{adj}(A)\)) | The transpose of the matrix of cofactors. |
| Cramer’s Rule | A formula for solving a system of linear equations using determinants. |