- Last updated
- Save as PDF
- Page ID
- 108730
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)
\( \newcommand{\vectorC}[1]{\textbf{#1}}\)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}}\)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}\)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
\(n \times n\) Determinants
The \(2 \times 2\) determinant we looked at in Section 11.3 can be used to find the determinant of larger matrices. We will now explore how to find the determinant of a \(3 \times 3\) matrix, using several tools, including the \(2 \times 2\) determinant.
We begin with the following definition.
Definition \(\PageIndex{1}\) The \(ij^{th}\) Minor of a Matrix
Let \(A\) be a \(3\times 3\) matrix. The \(ij^{th}\) minor of \(A\), denoted as \(minor\left( A\right) _{ij},\) is the determinant of the \(2\times 2\) matrix which results from deleting the \(i^{th}\) row and the \(j^{th}\) column of \(A\).
In general, if \(A\) is an \(n\times n\) matrix, then the \(ij^{th}\) minor of \(A\) is the determinant of the \(n-1 \times n-1\) matrix which results from deleting the \(i^{th}\) row and the \(j^{th}\) column of \(A\).
Hence, there is a minor associated with each entry of \(A\). Consider the following example which demonstrates this definition.
Example \(\PageIndex{1}\)
Let \[A = \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 3 & 2 \\ 3 & 2 & 1 \end{array} \right]\nonumber \] Find \(minor\left( A\right) _{12}\) and \(minor\left( A\right) _{23}\).
Solution
First we will find \(minor\left( A\right) _{12}\). By Definition \(\PageIndex{1}\), this is the determinant of the \(2\times 2\) matrix which results when you delete the first row and the second column. This minor is given by \[minor \left(A\right)_{12} = \det \left[ \begin{array}{rr} 4 & 2 \\ 3 & 1 \end{array} \right]=-2\nonumber\]
Similarly, \(minor\left(A\right)_{23}\) is the determinant of the \(2\times 2\) matrix which results when you delete the second row and the third column. This minor is therefore \[minor \left(A\right)_{23} = \det \left[ \begin{array}{rr} 1 & 2 \\ 3 & 2 \end{array} \right] = -4\nonumber \] Finding the other minors of \(A\) is left as an exercise.
The \(ij^{th}\) minor of a matrix \(A\) is used in another important definition, given next.
It is also convenient to refer to the cofactor of an entry of a matrix as follows. If \(a_{ij}\) is the \(ij^{th}\) entry of the matrix, then its cofactor is just \(C_{ij}.\)
Example \(\PageIndex{2}\)
Consider the matrix \[A=\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 3 & 2 \\ 3 & 2 & 1 \end{array} \right].\nonumber \]
Find \(C_{12}\) and \(C_{23}\).
Solution
We will use Definition \(\PageIndex{2}\) to compute these cofactors.
First, we will compute \(C_{12}\):
\[C_{12}=(-1)^{1+2}\det \left[ \begin{array}{rr} 4 & 2 \\ 3 & 1 \end{array} \right] = (-1)(-2)=2.\nonumber \]
Similarly, we can find \(C_{23}\):
\[C_{23}=(-1)^{2+3}\det \left[ \begin{array}{rr} 1 & 2 \\ 3 & 2 \end{array} \right] = (-1)(-4)=4.\nonumber \]
You may wish to find the remaining cofactors for the above matrix. Remember that there is a cofactor for every entry in the matrix.
We have now established the tools we need to find the determinant of a \(3 \times3\) matrix.
Definition \(\PageIndex{3}\) The Determinant of a Three By Three Matrix
Let \(A\) be a \(3\times 3\) matrix. Then, \(\det \left(A\right)\) is calculated by picking a row (or column) and taking the product of each entry in that row (column) with its cofactor and adding these products together.
This process when applied to the \(i^{th}\) row (column) is known as expanding along the \(i^{th}\) row (column) and is given by \[\det \left(A\right) = a_{i1}C_{i1} + a_{i2}C_{i2} + a_{i3}C_{i3}\nonumber \]
When calculating the determinant, you can choose to expand any row or any column. Regardless of your choice, you will always get the same number which is the determinant of the matrix \(A.\) This method of evaluating a determinant by expanding along a row or a column is called Cofactor Expansion.
Consider the following example.
Example \(\PageIndex{3}\)
Let \[A=\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 3 & 2 \\ 3 & 2 & 1 \end{array} \right]\nonumber \] Find \(\det\left(A\right)\) using the method of Cofactor Expansion.
Solution
First, we will calculate \(\det \left(A\right)\) by expanding along the first column. Using Definition \(\PageIndex{3}\), we take the \(1\) in the first column and multiply it by its cofactor, \[1 \left( -1\right) ^{1+1}\left| \begin{array}{rr} 3 & 2 \\ 2 & 1 \end{array} \right| = (1)(1)(-1) = -1\nonumber \] Similarly, we take the \(4\) in the first column and multiply it by its cofactor, as well as with the \(3\) in the first column. Finally, we add these numbers together, as given in the following equation. \[\det \left(A\right) = 1 \overset{C_{11}}{\overbrace{\left( -1\right) ^{1+1}\left| \begin{array}{rr} 3 & 2 \\ 2 & 1 \end{array} \right| }}+4 \overset{C_{21}}{\overbrace{\left( -1\right) ^{2+1}\left| \begin{array}{rr} 2 & 3 \\ 2 & 1 \end{array} \right| }}+3 \overset{C_{31}}{\overbrace{\left( -1\right) ^{3+1}\left| \begin{array}{rr} 2 & 3 \\ 3 & 2 \end{array} \right| }}\nonumber \] Calculating each of these, we obtain \[\det \left(A\right) = 1 \left(1\right)\left(-1\right) + 4 \left(-1\right)\left(-4\right) + 3 \left(1\right)\left(-5\right) = -1 + 16 + -15 = 0\nonumber \] Hence, \(\det\left(A\right) = 0\).
As mentioned in Definition \(\PageIndex{3}\), we can choose to expand along any row or column. Let’s try now by expanding along the second row. Here, we take the \(4\) in the second row and multiply it to its cofactor, then add this to the \(3\) in the second row multiplied by its cofactor, and the \(2\) in the second row multiplied by its cofactor. The calculation is as follows. \[\det \left(A\right) = 4 \overset{C_{21}}{\overbrace{\left( -1\right) ^{2+1}\left| \begin{array}{rr} 2 & 3 \\ 2 & 1 \end{array} \right| }}+3 \overset{C_{22}}{\overbrace{\left( -1\right) ^{2+2}\left| \begin{array}{rr} 1 & 3 \\ 3 & 1 \end{array} \right| }}+2 \overset{C_{23}}{\overbrace{\left( -1\right) ^{2+3}\left| \begin{array}{rr} 1 & 2 \\ 3 & 2 \end{array} \right| }}\nonumber \]
Calculating each of these products, we obtain \[\det \left(A\right) = 4\left(-1\right)\left(-4\right) + 3\left(1\right)\left(-8\right) + 2 \left(-1\right)\left(-4\right) = 0\nonumber \]
You can see that for both methods, we obtained \(\det \left(A\right) = 0\).
As mentioned above, we will always come up with the same value for \(\det \left(A\right)\) regardless of the row or column we choose to expand along. You should try to compute the above determinant by expanding along other rows and columns. This is a good way to check your work, because you should come up with the same number each time.
We present this idea formally in the following theorem, which we state without proof.
There will be times when we need to find the determinant of a matrix with function entries instead of constants; we give an example here.
Example \(\PageIndex{4}\)
Suppose \[A\left( t\right) =\left[ \begin{array}{ccc} e^{t} & 0 & 0 \\ 0 & \cos t & \sin t \\ 0 & -\sin t & \cos t \end{array} \right].\nonumber \]
Find the determinant of \(A(t)\).
Solution
It is clear we should expand about the first row or column and either way we get:
\(\det \left( A\left( t\right) \right) = e^{t}(\cos^2 t + \sin^2 t) = e^{t}\).
We have now looked at the determinant of \(2 \times 2\) and \(3 \times 3\) matrices. It turns out that the method used to calculate the determinant of a \(3 \times 3\) matrix can be used to calculate the determinant of any sized matrix.
For example, the \(ij^{th}\) minor of a \(4 \times 4\) matrix is the determinant of the \(3 \times 3\) matrix you obtain when you delete the \(i^{th}\) row and the \(j^{th}\) column. Just as with the \(3 \times 3\) determinant, we can compute the determinant of a \(4 \times 4\) matrix by Cofactor Expansion, along any row or column
Consider the following example.
Example \(\PageIndex{5}\)
Find \(\det \left( A\right)\) where \[A=\left[ \begin{array}{rrrr} 1 & 2 & 3 & 4 \\ 5 & 4 & 2 & 3 \\ 1 & 3 & 4 & 5 \\ 3 & 4 & 3 & 2 \end{array} \right]\nonumber \]
Solution
As in the case of a \(3\times 3\) matrix, you can expand this along any row or column. Lets pick the third column. Then, using Cofactor Expansion, \[\det \left( A\right) = 3\left( -1\right) ^{1+3}\left\vert \begin{array}{rrr} 5 & 4 & 3 \\ 1 & 3 & 5 \\ 3 & 4 & 2 \end{array} \right\vert +2\left( -1\right) ^{2+3}\left\vert \begin{array}{rrr} 1 & 2 & 4 \\ 1 & 3 & 5 \\ 3 & 4 & 2 \end{array} \right\vert +\nonumber \] \[4\left( -1\right) ^{3+3}\left\vert \begin{array}{rrr} 1 & 2 & 4 \\ 5 & 4 & 3 \\ 3 & 4 & 2 \end{array} \right\vert +3\left( -1\right) ^{4+3}\left\vert \begin{array}{rrr} 1 & 2 & 4 \\ 5 & 4 & 3 \\ 1 & 3 & 5 \end{array} \right\vert\nonumber \]
Now, you can calculate each \(3 \times 3\) determinant using Cofactor Expansion, as we did above. You should complete these as an exercise and verify that \(\det \left( A \right)= -12\).
The following provides a formal definition for the determinant of an \(n \times n\) matrix. You may wish to take a moment and consider the above definitions for \(2 \times 2\) and \(3 \times 3\) determinants in context of this definition.
Definition \(\PageIndex{4}\) The Determinant of an \(n\times n\) Matrix
Let \(A\) be an \(n\times n\) matrix where \(n\geq 2\) and suppose the determinant of an \(\left( n-1\right) \times \left( n-1\right)\) has been defined. Then \[\det \left( A\right) =\sum_{j=1}^{n}a_{ij}C_{ij}=\sum_{i=1}^{n}a_{ij}C_{ij}\nonumber \] The first formula consists of expanding the determinant along the \(i^{th}\) row and the second expands the determinant along the \(j^{th}\) column.
The Determinant of a Triangular Matrix
There is a certain type of matrix for which finding the determinant is a very simple procedure. Consider the following definition.
Definition \(\PageIndex{5}\) Triangular Matrices
An \(n\times n\) matrix \(A\) is upper triangular if \(a_{ij}=0\) whenever \(i>j\). Thus the entries of such a matrix below the main diagonal equal \(0\), as shown. Here, \(\ast\) refers to any number. \[ \left[ \begin{array}{cccc} \ast & \ast & \cdots & \ast \\ 0 & \ast & \cdots & \vdots \\ \vdots & \vdots & \ddots & \ast \\ 0 & \cdots & 0 & \ast \end{array} \right]\nonumber \] A lower triangular matrix is defined similarly as a matrix for which all entries above the main diagonal are equal to zero.
The following theorem provides a useful way to calculate the determinant of a triangular matrix.
The verification of this Theorem can be done by computing the determinant using Cofactor Expansion along the first row or column.
Consider the following example.
Example \(\PageIndex{6}\)
Let \[A=\left[ \begin{array}{rrrr} 1 & 2 & 3 & 77 \\ 0 & 2 & 6 & 7 \\ 0 & 0 & 3 & 33.7 \\ 0 & 0 & 0 & -1 \end{array} \right]\nonumber \] Find \(\det \left( A\right) .\)
Solution
From Theorem \(\PageIndex{2}\), it suffices to take the product of the elements on the main diagonal. Thus \(\det \left( A\right) =(1)(2)(3)(-1)=-6.\)
Without using Theorem \(\PageIndex{2}\), you could use Cofactor Expansion. We will expand along the first column. This gives \[\begin{aligned} \det \left(A\right) = &1\left( -1\right) ^{1+1}\left| \begin{array}{rrr} 2 & 6 & 7 \\ 0 & 3 & 33.7 \\ 0 & 0 & -1 \end{array} \right| +0\left( -1\right) ^{2+1}\left| \begin{array}{rrr} 2 & 3 & 77 \\ 0 & 3 & 33.7 \\ 0 & 0 & -1 \end{array} \right| + \\ &0\left( -1\right) ^{3+1}\left| \begin{array}{rrr} 2 & 3 & 77 \\ 2 & 6 & 7 \\ 0 & 0 & -1 \end{array} \right| +0\left( -1\right) ^{4+1}\left| \begin{array}{rrr} 2 & 3 & 77 \\ 2 & 6 & 7 \\ 0 & 3 & 33.7 \end{array} \right|\end{aligned}\]
\[=1\left( -1\right) ^{1+1}\left| \begin{array}{rrr} 2 & 6 & 7 \\ 0 & 3 & 33.7 \\ 0 & 0 & -1 \end{array} \right|\nonumber \]
\[=\left| \begin{array}{rrr} 2 & 6 & 7 \\ 0 & 3 & 33.7 \\ 0 & 0 & -1 \end{array} \right|\nonumber \]
Now find the determinant of this \(3 \times 3\) matrix, by expanding along the first column to obtain
\[\det \left(A\right) = 2\left( -1\right) ^{1+1} \left| \begin{array}{rr} 3 & 33.7 \\ 0 & -1 \end{array} \right| +0\left( -1\right) ^{2+1}\left| \begin{array}{rr} 6 & 7 \\ 0 & -1 \end{array} \right| +0\left( -1\right) ^{3+1}\left| \begin{array}{rr} 6 & 7 \\ 3 & 33.7 \end{array} \right|\nonumber \]
\[=(1)(2)\left| \begin{array}{rr} 3 & 33.7 \\ 0 & -1 \end{array} \right|\nonumber \] Next find the determinant of this \(2 \times 2\) matrix, which is just \((3)(-1)\). Putting all these steps together, we have \[\det \left(A\right) = (1)(2)(3)(-1) =-6\nonumber \] which is just the product of the entries down the main diagonal of the original matrix.
You can see that while both methods result in the same answer, Theorem \(\PageIndex{2}\) provides a much quicker result.
Cramer’s Rule for an \(n\times n\) Matrix
Cramer's Rule for \(n\times n\) matrices is similar to what we did in Section 11.3 for \(2\times 2\) matrices; we state the generalized theorem here.
Theorem \(\PageIndex{3}\): Cramer's Rule for an \(n\times n\) Matrix
Consider the following system of equations:
\[\begin{array}{ccccc} a_{11}x_1+a_{12}x_2+\cdots+a_{1n}x_n=b_1 \\ \vdots \\ a_{n1}x_1+a_{n2}x_2+\cdots+a_{nn}x_n=b_n \end{array}\nonumber\]
Let \(A=\left[\begin{array}{ccccc} a_{11} & \cdots & a_{1n} \\ & \vdots & \\ a_{n1} & \cdots & a_{nn}\end{array}\right]\) and b\(= \left[ \begin{array}{r} b_1 \\\vdots \\ b_n \end{array} \right].\)
Let \(A_i\) be the matrix where the \(i^{th}\) column of \(A\) has been replaced with b.
Then \[x_{i}= \frac{\det \left(A_{i}\right)}{\det \left(A\right)}\nonumber \]
Example \(\PageIndex{7}\)
Use Cramer's Rule to solve:
\[\begin{aligned}x_1+2x_2+x_3&=1 \\ 3x_1+2x_2+x_3&=2 \\ 2x_1-3x_2+2x_3&=3\end{aligned}\nonumber\]
We have \(A=\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 3 & 2 & 1 \\ 2 & -3 & 2 \end{array} \right]\) and b\(= \left[ \begin{array}{r} 1 \\ 2 \\ 3 \end{array} \right].\nonumber\)
Solution
In order to find \(x_1\), we calculate \[x_1 = \frac{\det \left(A_{1}\right)}{\det \left(A\right)}\nonumber \] where \(A_1\) is the matrix obtained from replacing the first column of \(A\) with b.
Hence, \(A_1\) is given by \[A_1 = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 2 & 2 & 1 \\ 3 & -3 & 2 \end{array} \right]\nonumber \]
Therefore, \[x_1= \frac{\det \left(A_{1}\right)}{\det \left(A\right)} = \frac{\left| \begin{array}{rrr} 1 & 2 & 1 \\ 2 & 2 & 1 \\ 3 & -3 & 2 \end{array} \right| }{\left| \begin{array}{rrr} 1 & 2 & 1 \\ 3 & 2 & 1 \\ 2 & -3 & 2 \end{array} \right| }=\frac{1}{2}\nonumber \]
Similarly, to find \(x_2\) we construct \(A_2\) by replacing the second column of \(A\) with b. Hence, \(A_2\) is given by \[A_2 = \left[ \begin{array}{rrr} 1 & 1 & 1 \\ 3 & 2 & 1 \\ 2 & 3 & 2 \end{array} \right]\nonumber \]
Therefore, \[x_2=\frac{\det \left(A_{2}\right)}{\det \left(A\right)} = \frac{\left| \begin{array}{rrr} 1 & 1 & 1 \\ 3 & 2 & 1 \\ 2 & 3 & 2 \end{array} \right| }{\left| \begin{array}{rrr} 1 & 2 & 1 \\ 3 & 2 & 1 \\ 2 & -3 & 2 \end{array} \right| }=-\frac{1}{7}\nonumber \]
Similarly, \(A_3\) is constructed by replacing the third column of \(A\) with b. Then, \(A_3\) is given by \[A_3 = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 3 & 2 & 2 \\ 2 & -3 & 3 \end{array} \right]\nonumber \]
Therefore, \(x_3\) is calculated as follows.
\[x_3= \frac{\det \left(A_{3}\right)}{\det \left(A\right)} = \frac{\left| \begin{array}{rrr} 1 & 2 & 1 \\ 3 & 2 & 2 \\ 2 & -3 & 3 \end{array} \right| }{\left| \begin{array}{rrr} 1 & 2 & 1 \\ 3 & 2 & 1 \\ 2 & -3 & 2 \end{array} \right| }=\frac{11}{14}\nonumber \]
Again, there will be times when we need to solve systems with functions as coefficients instead of constants; we give an example here.
Example \(\PageIndex{8}\)
Use Cramer's Rule to solve for \(x_3\):
\[\begin{aligned}&x_1=1 \\ &(e^{t}\cos t)x_2+(e^{t}\sin t )x_3=t \\ &(-e^{t}\sin t)x_2+(e^{t}\cos t)x_3=t^2\end{aligned}\nonumber\]
We have \(A=\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & e^{t}\cos t & e^{t}\sin t \\ 0 & -e^{t}\sin t & e^{t}\cos t \end{array} \right]\) and b\(= \left[ \begin{array}{r} 1 \\ t \\ t^2 \end{array} \right].\)
Solution
We are asked to find the value of \(x_3\) in the solution. We will solve using Cramer’s rule. Thus
\[x_3=\frac{\left| \begin{array}{ccc} 1 & 0 & 1 \\ 0 & e^{t}\cos t & t \\ 0 & -e^{t}\sin t & t^{2} \end{array} \right| }{\left| \begin{array}{ccc} 1 & 0 & 0 \\ 0 & e^{t}\cos t & e^{t}\sin t \\ 0 & -e^{t}\sin t & e^{t}\cos t \end{array} \right| }= {t^2e^t\cos t+te^t\sin t\over e^{2t}\cos^2 t+e^{2t}\sin^2 t}=t^2e^{-t}\cos t+te^{-t}\sin t\nonumber \]