We learnt about basic matrix operations . In this chapter we will learn about another very important and widely used property of matrices, called determinant.
I. Introduction
The determinant of a square matrix is a scalar value that is computed from its entries. For non-square matrices, determinants are not defined.
For a matrix with a single element, that is, a $1 \times 1$ matrix, the determinant is the element itself.
$\det(\begin{bmatrix} a \end{bmatrix}) = a$
Determinant of a square matrix of order $2 \times 2$ is as follows:
If $A = \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix}$, then
$|A| = a_{11} \cdot a_{22} - a_{12} \cdot a_{22}$
Conceptually, the magnitude of the determinant of a $2 \times 2$ matrix, is the area enclosed by the parallelogram formed by the two column (or row) vectors of the matrix.
For example, the $2 \times 2$ matrix $\begin{bmatrix} a & b \\ c & d \end{bmatrix}$. can be treated as a combination of two column vectors
$\begin{bmatrix} \begin{bmatrix} a \\ c \end{bmatrix} & \begin{bmatrix} b \\ d \end{bmatrix} \end{bmatrix}$ or as a combination of two row vectors like $\begin{bmatrix} \begin{bmatrix} a & b \end{bmatrix} \\ \begin{bmatrix} c & d \end{bmatrix} \end{bmatrix}$. Any $n \times n$ square matrix can be treated as a combination of $n$, $n$-dimensional column vectors or $n$, $n$-dimensional row vectors.
-----------book page break-----------
The two column vectors can be represented as $v_1 =$
$a \hat{i} + c \hat{j}$
and $v_2 = $
$b \hat{i} + d \hat{j}$
, the tips of which, in the Cartesian plane will be at $(a, c)$ and $(b, d)$ respectively.
It is easy to show that the parallelogram, drawn as shown in the following widget, will have the fourth point $D$ at $(a + c, b + d)$ and will have an area of $ad - bc$
--------- Reference to widget: 6841bcb1-219d-4dae-bfeb-5619b82db614 ---------
We will see a brief proof of this here. The above widget shows the concept using column vectors, therefore, for this proof we will consider the matrix as a combination of row vectors just to show that it works for both cases.
-----------book page break-----------
Consider the matrix: $\begin{bmatrix} p & q \\ r & s \end{bmatrix}$
Representing this as a combination of row vectors, we get: $\begin{bmatrix} \begin{bmatrix} p & q\end{bmatrix} \\ \begin{bmatrix} r & s\end{bmatrix} \end{bmatrix}$
Let's call these two vectors as $\overrightarrow{OM} = \begin{bmatrix} p & q\end{bmatrix}$ and $\overrightarrow{ON} = \begin{bmatrix} r & s\end{bmatrix}$.
Now, we can plot these two vectors as follows:
The coordinates of the points $M$ and $N$ are $(p, q)$ and $(r, s)$ respectively.
We draw a line passing through the point $M$, parallel to $\overrightarrow{ON}$ and a line passing through $N$ parallel to $\overrightarrow{OM}$. Let these two lines meet at $P$. The coordinates of the point $P$ will be $(p + r, q + s)$ To find the area of the parallelogram $OMPN$, we draw perpendiculars to both axes from points $M$, $P$ and $N$ respectively as shown above.
-----------book page break-----------
We can find the area of $OMPN$ using: $[OMPN] = [OBPD] - [\triangle OAN] - [ANPB] - [\triangle OCM] - [CMPD]$
$[OBPD] = OB \times OD = (p + r)(q + s) = pq + ps + rq + rs$
$[\triangle OAN] = \dfrac{1}{2} OA \times AN = \dfrac{1}{2} r s$
$[ANPB] = \dfrac{1}{2} AB (AN + BP) = \dfrac{1}{2} p (s + q + s)$
The determinant of the given matrix, as we saw before, is given by $ps - qr$.
Since, $|ps - qr| = |qr - ps|$. therefore, the magnitude of the two quantities are the same.
Similarly the magnitude of the determinant of a $3 \times 3$ matrix, is the volume of the parallelepiped formed by the three row or column vectors of that matrix.
The symbols commonly used for denoting the determinant of any matrix $A = \begin{bmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1, n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2, n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n,1} & a_{n,2} & \cdots & a_{n, n} \end{bmatrix}$ are as follows:
-----------book page break-----------
$i)$ The matrix elements enclosed inside two plain vertical lines:
$iii)$ The name of the matrix surrounded by two vertical lines
$|A|$
$iv)$ The $\Delta$ symbol with the name of the matrix as suffix:
$\Delta_{A}$
II. Submatrix, Minors And Cofactors
Before we get onto finding determinants, we need to understand about minors and cofactors of a matrix.
A submatrix of a given matrix, $A$, is a matrix that is obtained by eliminating any collection or rows and columns from $A$. A submatrix can be obtained from not only square matrices, but any matrix of any random order. Since we are learning submatrices for the purpose of finding determinants, we will focus mostly on square matrices.
-----------book page break-----------
Although there is no standard notation for submatrices, we will use the notation $S_{i,j}$ to denote a submatrix which is obtained by eliminating the $i \xasuper{th}$ row and the $j \xasuper{th}$ column from a given input matrix $A$.
For example, if we have:
$A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}$ as our original matrix, then submatrix, $S_{2, 3}$, of $A$ will be obtained by eliminating the $2\xasuper{nd}$ row and the $3 \xasuper{rd}$ column of $A$.
Now that we know what a minor is, understanding cofactor should just be a small step away.
The cofactor, $c_{i, j}$, of any element $a_{ij}$ of $A$ is the its minor $m_{i,j}$, multiplied by $(-1)^{i + j}$.
That is:
$c_{ij} = (-1)^{i + j} \cdot m_{ij}$
-----------book page break-----------
A cofactor matrix is a matrix formed by replacing each element, $a_{ij}$, of a matrix with the corresponding cofactor, $c_{ij}$, of $a_{i,j}$.
For our example matrix of $\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}$ the cofactor values can be computed in the following way:
Now that we have familiarized ourselves with the concepts of minors and cofactors of a matrix, we can go ahead a learn about finding the determinant.
To find the determinant of an $n \times n$ matrix $A$ we need to perform the following steps:
- Select any single row or column of the matrix. This is called the reference row or column. Let us say we selected the $k\xasuper{th}$ row of the matrix as the reference row.
- For each of the $n$ element $a_{kj}$ of the reference row/column, compute the cofactor, $c_{kj}$ of $a_{kj}$. If instead of a row a reference column is selected, then the cofactors $c_{ik}$ of each element $a_{ik}$ of the $k \xasuper{th}$ column needs to be computed.
- For any selected row $k$, The determinant of $A$ is given by:
$|A| = \sum\limits_{j = 1}^{n} a_{kj} \times c_{kj}$. The result will be same for any selected column as well.
This method of finding the determinant is called the Laplace Expansion of matrices.
Note that although the order of each submatrix $S_{ij}$ is one less than the order of $A$, it may still be higher than $1$. In that case the determinant of each $S_{ij}$ can be calculated by repeating the Laplace Expansion for each $S_{i,j}$.
-----------book page break-----------
The following interactive example shows how the determinant of a $3 \times 3$ matrix is computed. You can select either row-wise or column-wise calculation and then click on any row or column, to view the calculation steps.
--------- Reference to widget: b2c93ff8-54bf-4d11-bfe9-e74d77f5bd55 ---------
IV. Elementary Row & Column Transformation
Now we will see some properties of matrices involving row and column manipulations, that does not change the value of the determinant, but can reduce the calculation time significantly.
Any transformation of a row involving adding or subtracting multiples of one or more other rows, does not alter the value of a matrix. For example, if we add $n$ times the second row of a matrix to the first row of a matrix, and replace the first row values with the new values then the determinant of the matrix does not change. This is written as $R_1 = R_1 \pm n \times R_2$. This is true for column transformations as well.
-----------book page break-----------
We can take a simple example to understand it better.
Let us consider the following $3 \times 3$ matrix:
We can observe that $a_{2, 1} = 6$, which can be written as $2 \times (a_{2, 2} - a_{2, 3})$.
Therefore, if we perform the transformation $C_1 = C_1 - 2(C2 - C3)$, then $a_{2, 1}$ will become $0$. Performing this transformation on $C_1$, we get:
Now that we have two elements of the first column as $0$s, we can find the determinant of $C$ using the first column as:
$|C| = 14((-7) \times 7 - 10 \times (-5)) = 14$
Now we can see that although $A \ne B \ne C$, we get $|A| = |B| = |C|$
Matrices that have a determinant value of $0$ are called degenerate or singular matrices. Observe that for a non-degenerate matrix, it will never be possible to reduce a complete column or a row to all zeros using elementary transformations, whereas for a degenerate matrix such a reduction should be possible.
A few points to remember regarding elementary transforms:
The row or column that is being transformed must be included in the transform with a coefficient of $1$.
$R_2 = R_1 + 4R_3$ is an invalid transformation.
$R_2 = 3R_2 + 2R_1$ is an invalid transformation, since this will change the determinant $\Delta$ to $3\Delta$. If such a transformation is applied, the final determinant value needs to be multiplied by the coefficients inverse, like in this case $\dfrac{1}{3}$
Multiplication of two rows or columns is not allowed.
$C_3 = C_3 - C_1 \cdot C_2$ is not a valid transformation.
-----------book page break-----------
Here is a thinking assignment.
Why doesn't a valid row/column transformation change the value of the determinant, although it changes the matrix?
Hint: Think about a $2 \times 2$ matrix and the fact that the determinant represents the area of the parallelogram as shown in the first section.
Now it is time for some practice. Use the following widget to practice calculating determinants of matrices of different orders. Remember, for matrices of order $\ge 3$, performing row or column transformation will make your calculations much faster.
--------- Reference to widget: 4fe520d1-906c-47d7-a0bc-2d42e216ee61 ---------
-----------book page break-----------
V. Properties Of Determinants
Scalar Multiplication Of Row Or Column
Multiplying a single row or a single column of a matrix by a scalar quantity, $k$, will multiply the determinant by $k$. This is easy to see. Earlier we saw that the determinant of a matrix can be computed by selecting any row or column of the matrix. Now, if we multiply any row or column of the matrix by a scalar quantity $k$ and find the determinant using that row or column, then each term of the determinant expression will get multiplied by $k$. Therefore, the determinant of the matrix will also get multiplied by $k$.
Scalar Multiplication Of Matrix
When we multiply a matrix $A_{(n, n)}$ by a scalar quantity $k$, the resultant matrix will have a determinant of $k^n \Delta$. This is also fairly simple to see, because multiplying each row or column by $k$ contributes a multiplication factor of $k$ to the determinant. Therefore, multiplying all rows (or columns) by $k$ will contribute $n$ multiplying factors, each equal to $k$, since the matrix has $n$ rows and columns..
Therefore, $|kA_{(n,n)}| = k^n |A_{(n, n)}|$.
Determinant Of Transpose
Since determinant can be computed using any row or column, leading to the same result, interchanging the rows or columns of a matrix will not change the determinant. Therefore,
$|A| = |A^T|$
Determinant Of Matrix Products
If we have two square matrices, $A$ and $B$, of the same order, then:
We will learn more about this when we learn about inverse of a matrix, but for now it should suffice to know that the inverse of a matrix $A$, denoted by $A^{-1}$, is such that $AA^{-1} = I$, where $I$ is the unit matrix.
The unit matrix has a determinant of $1$, since it can be considered as either a lower or upper triangular matrix, hence the determinant is equal to the product of the diagonal elements which are all ones.
-----------book page break-----------
$AA^{-1} = I$
$\Rightarrow |AA^{-1}| = |I|$
$\Rightarrow |A||A^{-1}| = 1$
$\Rightarrow |A^{-1}| = \dfrac{1}{|A|}$
Now, let us try the following problem:
--------- Reference to question: e8e1ddbd-a613-463b-b23c-ca8d50e97154 ---------