4.3 \(n\) by \(n\) Determinants
Definition 4.3.1. Let \(A=(a_{ij})\) be an \(n\) by \(n\) matrix. The determinant of \(A\) is defined by \begin {align*} \det A &=a_{11}\det A_{11}-a_{12}\det A_{12}+\cdots +(-1)^{1+n}a_{1n}\det A_{1n}\\ &=\sum ^n_{j=1}(-1)^{1+j}a_{1j}\det A_{1j}, \end {align*}
where \(A_{1j}\) is the \(n-1\) by \(n-1\) matrix obtained by deleting the first row and the \(j^{\text {th}}\) column of \(A\).
The definition is recursive: an \(n\) by \(n\) determinant is written in terms of \(n\) determinants of size \(n-1\), and the recursion stops at the \(1\) by \(1\) case, where \(\det (a)=a\).
Example 4.3.2. The determinant of the 4 by 4 \(A= \begin {pmatrix} 1&-1&2&1\\ 2&0&-1 &1\\ 0&0&1&3\\ -1&1&-2&0\\ \end {pmatrix} \) is \begin {align*} \det A &=\det \begin {pmatrix} 0&-1&1\\0&1&3\\1&-2&0\\ \end {pmatrix} +\det \begin {pmatrix} 2&-1&1\\0&1&3\\-1&-2&0\\ \end {pmatrix} +2\det \begin {pmatrix} 2&0&1\\0&0&3\\-1&1&0\\ \end {pmatrix} -\det \begin {pmatrix} 2&0&-1\\0&0&1\\-1&1&-2\\ \end {pmatrix}\\\\ &=-4+16-12-2 =-2\\ \end {align*}
The following properties of \(n\) by \(n\) determinants can be proven:
- 1.
- \(\det I_n=1\), where \(I_n\) is the \(n\) by \(n\) identity matrix.
- 2.
- If \(B\) is the matrix obtained by carrying out the elementary row operation \(r_i\longrightarrow kr_i\) on the \(n\) by \(n\) matrix \(A\), then \(\det B=k\det A\).
- 3.
- If \(B\) is the matrix obtained by carrying out the elementary row operation \(r_i\longleftrightarrow r_j\) on an \(n\) by \(n\) matrix \(A\), then \(\det B=-\det A\).
- 4.
- If the matrix \(B\) is obtained by carrying out the elementary row operation \(r_i\longrightarrow r_i+kr_j\), on an \(n\) by \(n\), matrix \(A\) then \(\det B=\det A\).
- 5.
- The sum of two or more \(n\) by \(n\) determinants that have a common row or column can be written as a single determinant.
To prove the multiplicative properties of 2 by 2 and 3 by 3 determinants explicitly expressions for 2 by 2 and 3 by 3 determinants were used.
For general \(n\) by \(n\) matrices where \(n\geq 2\), the explicit expressions for determinants are too complicated to be used in the proofs. The multiplicative properties of \(n\) by \(n\) determinants are proved using elementary matrices.
Proof.
- i.
- If \(E\) is obtained from \(I_n\) by the elementary row operation \(r_i\longrightarrow kr_i\), then \(\det E=k\det I_n=k\). If \(E\) is obtained from \(I_n\) by the elementary row operation \(r_i\longleftrightarrow r_j\), then \(\det E=-\det I_n=-1\). If \(E\) is obtained from \(I_n\) by the elementary row operation \(r_i\longrightarrow r_i+kr_j\), then \(\det E=\det I_n=1\). Hence \(\det E\neq 0\).
- ii.
- If \(E\) is obtained from \(I_n\) by the elementary row operation \(r_i\longleftrightarrow r_j\) then \(E^t=E\), so that the \(\det E=\det E^t\). If \(E\) is obtained from \(I_n\) by the elementary row operation \(r_i\longrightarrow kr_i\), \(k\neq 0\) then \(E=E^t\) and \(\det E=\det E^t\). If \(E\) is obtained from \(I_n\) using the elementary row operation \(r_i\longrightarrow r_i+kr_j\) then \(E\) is lower triangular or upper triangular and so is \(E^t\). The diagonal elements of \(E\) and \(E^t\) are the same, and since \(\det E\) is the product of the diagonal elements it follows that \(\det E^t=\det E\).
The following theorem is a consequence of Theorem 4.3.3
- 1.
- If \(E\) is an elementary \(n\) by \(n\) matrix, then \(\det EA=\det E\det A\).
- 2.
- An \(n\) by \(n\) matrix \(A\) is non-singular if and only if \(\det A\neq 0\).
- 3.
- If \(A\) and \(B\) are any \(n\) by \(n\) matrices, then \(\det A\det B=\det AB\).
- 4.
- The system of \(n\) homogeneous equations in \(n\) variables \(\sum \limits _{j=1}^{n}a_{ij}x_j=0\) \((i=1,2,\dots ,n)\) has a non-trivial solution if and only if \(\det A=0\), where \(A=(a_{ij})\) is the coefficient matrix of the system.
- 5.
- If \(A\) is an \(n\) by \(n\) matrix then \(\det A=\det A^t\).
Proof.
- 1.
- By Theorem 2.6.3(1), \(EA\) is \(A\) with the corresponding row operation applied, and the effect of each operation on the determinant is known: multiplying a row by \(k\) multiplies the determinant by \(k\), interchanging two rows changes its sign, and adding a multiple of one row to another leaves it unchanged. Applying the same three facts to \(E=e(I)\) gives \(\det E=k\), \(-1\) and \(1\) respectively. In each case \(\det (EA)=\det E\cdot \det A\).
- 2.
- Let \(R\) be the reduced echelon form of \(A\), so \(R=E_k\cdots E_1A\) with each \(E_t\) elementary. By (1) applied repeatedly,
\[\det R=\det E_k\cdots \det E_1\cdot \det A,\]
and every \(\det E_t\) is non-zero. So \(\det A=0\) if and only if \(\det R=0\).
Now \(R\) is a square reduced echelon matrix, so it is either \(I_n\) — in which case \(\det R=1\neq 0\) — or it has a row of zeros, in which case expanding along that row gives \(\det R=0\). By the Section 2 problem on reduced echelon forms, \(R=I_n\) exactly when \(A\) is non-singular. Combining, \(A\) is non-singular if and only if \(\det A\neq 0\).
- 3.
- If \(A\) is singular then by (2) \(\det A=0\); also \(AB\) is then singular (if \(AB\) had an inverse \(C\) then \(BC\) would be a right inverse of \(A\), forcing \(A\) non-singular), so \(\det AB=0=\det A\det B\). If \(A\) is non-singular, write \(A=E_1E_2\cdots E_k\) as a product of elementary matrices — possible because its reduced echelon form is \(I_n\) — and apply (1) \(k\) times to both \(\det (AB)\) and \(\det A\).
- 4.
- By Theorem 3.3.3(2) the system has a non-trivial solution if and only if \(R\neq I_n\), and by the argument in (2) that happens exactly when \(\det A=0\).
- 5.
- Both \(\det A\) and \(\det A^t\) can be written as the same sum over permutations, each term being a product of \(n\) entries, one from each row and one from each column. Transposing exchanges the roles of the row and column indices, which replaces each permutation by its inverse; a permutation and its inverse have the same sign, so the terms — and hence the sums — agree.
Remark. Part (2) is the result that ties the whole section together. It says the determinant is not merely a number attached to a matrix but a complete test for invertibility, and it is what lets (4) convert a question about solutions into a single computation.
- 1.
- Determine which of the following matrices are non-singular \[\text {(i)}\hspace {0.3cm} \begin {pmatrix} -3&2&1\\2&1&-1\\-2&4&5\\ \end {pmatrix} \hspace {0.4cm}\text {(ii)}.\hspace {0.3cm} \begin {pmatrix} 1&-1&1\\1&2&0\\5&1&5\\ \end {pmatrix} \hspace {0.4cm}\text {(iii).}\hspace {0.3cm} \begin {pmatrix} 0&1&2\\1&-1&1\\-1&2&1\\ \end {pmatrix} \]
- 2.
- Determine whether the following systems of homogeneous equations have non-trivial solutions \begin {align*} \text {i.}\hspace {0.5cm} 2w-x+y+3z &=0\\ w+2x-y+z&=0\\ -w+x+3y+2z&=0\\4w-3x-y-z&=0\\\\ \text {ii.}\hspace {0.5cm} x_1+x_2+x_3-x_4&=0\\x_1+x_2-x_3-x_4&=0\\x_1-x_2-x_3-x_4&=0\\-x_1-x_2-x_3-x_4&=0\\ \end {align*}
Solution.
- 1.
- (i). \( \begin {vmatrix} -3&2&1\\2&1&-1\\-2&4&5\\ \end {vmatrix} =-33\neq 0\), so it is non-singular.
(ii).
(iii). - 2.
- (i). \(A= \begin {pmatrix} 2&-1&1&3\\1&2&-1&1\\-1&1&3&2\\4&-3&-1&-1\\ \end {pmatrix} \) is the coefficient matrix. Since \(\det A=-72\), there is a non-trivial solution. (ii). \(A= \begin {pmatrix} 1&1&1&-1\\1&1&-1&-1\\1&-1&-1&-1\\-1&-1&-1&-1\\ \end {pmatrix} \) is the coefficient matrix. Since \(\det A=8\neq 0\) there is no non-trivial solution.
Questions on this section
Stuck on something here? Ask below and it stays attached to this topic.