How to find the Determinant of a Matrix?
Last Updated :
23 Aug, 2024
Answer: The following steps are to be followed to find the Determinant of a Matrix
- Select any row or column. To find the determinant, we normally start with the first row.
- Determine the co-factors of each of the row/column items that we picked in Step 1.
- Multiply the row/column items from Step 1 by the appropriate co-factors from Step 2.
- Add all of the products from Step 3 to get the matrix's determinant.
- Alternatively, the following formula can also be used for this purpose:
|A| = a(ei − fh) − b(di − fg) + c(dh − eg)
In mathematics, a matrix is a rectangle or square-shaped array of numbers or symbols grouped in rows and columns to represent a mathematical object or one of its qualities. For example, \begin{vmatrix}{a}&b&c\\p&q&r\\s&t&u\end{vmatrix} is a square matrix. On the other hand, \begin{vmatrix}{a}&b&c\\p&q&r\end{vmatrix} is a rectangular matrix.
Determinant of a Matrix
The matrix determinant is the product of the components of any row or column and their respective co-factors. They only exist for square matrices, i.e. the ones which have an equal number of rows and columns. The determinant of any square matrix A is represented by detA (or) |A|. It is sometimes represented by the sign. Calculating the determinants of 1 × 1 and 2 × 2 matrices is very straightforward, but the procedure becomes more complicated as the rank of the matrix grows. Minors and co-factors are involved in the process of determining the determinant of a matrix.
Properties of Determinant
- The determinant of a matrix and its own transpose are always equal, i.e., \begin{vmatrix}{a}&b&c\\l&m&n\\x&y&z\end{vmatrix}=\begin{vmatrix}{a}&l&x\\b&m&y\\c&n&z\end{vmatrix}
- Interchanging any two rows or columns of a matrix would change the sign of its determinant, i.e., \begin{vmatrix}{a}&b&c\\l&m&n\\x&y&z\end{vmatrix}=-\begin{vmatrix}{a}&b&c\\x&y&z\\l&m&n\end{vmatrix} .
- The determinant of a matrix with any two identical rows or columns is zero, i.e., \begin{vmatrix}{l}&m&n\\l&m&n\\x&y&z\end{vmatrix}=0=\begin{vmatrix}{l}&l&x\\m&m&y\\n&n&z\end{vmatrix} .
- The determinant of a matrix with zeroes as the elements of any one of its rows or columns is zero, i.e., \begin{vmatrix}{0}&0&0\\l&m&n\\x&y&z\end{vmatrix}=0
- Multiplying each row of a determinant with a constant m would increase the value of the determinant to m times as well, i.e., \begin{vmatrix}{ka}&kb&kc\\l&m&n\\x&y&z\end{vmatrix}=k\begin{vmatrix}{a}&b&c\\l&m&n\\x&y&z\end{vmatrix}.
- Determinant of 1 × 1 Matrix
A 1 × 1 matrix is a row with only one row and one column, and hence only one element. The determinant of every 1 × 1 matrix is always equal to the matrix element.
Example: If matrix A = [69]1 × 1, then det A or |A| = 69.
- Determinant of a 2 × 2 Matrix
Given matrix A = \begin{vmatrix}{a}&b\\c&d\end{vmatrix} then its determinant is given by ad - bc. It is simply calculated by cross multiplying the components from top left to bottom right and then finding the difference of the two.
Example: Evaluate, \begin{vmatrix}{4}&7\\5&8\end{vmatrix}.
Here, a = 4, b = 7, c = 5 and d = 8.
Hence, |A| = 4(8) - 5(7)
|A| = −3
- Determinant of a 3 × 3 Matrix
In order to find the determinant of 3 × 3 matrices, we need to understand the term minor of an element,
Minor of an Element
The determinant of a square matrix of any order derived by deleting the row and column containing the element is the minor of the element.
Example: Find the minor of 6 in the matrix \left[\begin{array}{ccc}1&2&3\\4&5&6\\7&8&9\end{array}\right].
Solution:
Since 6 lies in the second row and third column of the given matrix, its matrix would be equal to the determinant of the matrix obtained by removing the second row and the third column.
Minor of 6 = \left|\begin{array}{cc}1&2\\7 & 8\end{array}\right|
= 8 × 1 - 2 × 7
= 8 - 14
= -6
The following steps are to be followed,
- Select any row or column. To find the determinant, we normally start with the first row.
- Determine the co-factors of each of the row/column items that we picked in Step 1.
- Multiply the row/column items from Step 1 by the appropriate co-factors from Step 2.
- Add all of the products from Step 3 to get the matrix's determinant.
Alternatively, the following formula can also be used for this purpose:
|A| = a(ei − fh) − b(di − fg) + c(dh − eg)
Sample Problems
Question 1. Find the minor of 9 in the matrix \left[\begin{array}{ccc}1&2&3\\4&5&6\\7&8&9\end{array}\right] .
Solution:
Since 9 lies in the third row and third column of the given matrix, its matrix would be equal to the determinant of the matrix obtained by removing the third row and the third column.
Minor of 9 = \left|\begin{array}{cc}1 & 2 \\4 & 5\end{array}\right|
= 1 × 5 - 2 × 4
= 5 - 8
= -3
Question 2. Find the value of |4A| if A = \left[\begin{array}{lll}1 & 1 & -1\\1 & 2 & 2\\0 & 3 & 4\end{array}\right] .
Solution:
A = \left[\begin{array}{lll}1 & 1 & -1\\1 & 2 & 2\\0 & 3 & 4\end{array}\right]
Thus, 4A = \left[\begin{array}{lll}4 & 4 & -4\\4 & 8 & 8\\0 & 12 & 16\end{array}\right]
Now, |4A| = 4 (128 - 96) - 4 (64 - 0) - 4 (48 - 0)
= 4(32) - 4(64) - 4(48)
|4A| = -320
Question 3: Find x if the determinant of the matrix \left[\begin{array}{cc}4&8\\2 & x\end{array}\right] is 0.
Solution:
Given: A = \left[\begin{array}{cc}4&8\\2 & x\end{array}\right]
|A| = 4(x) - 8(2)
= 4x - 16
Since |A| = 0.
⇒ 4x - 16 = 0
or, 4x = 16
⇒ x = 4
Question 4: Evaluate: \left[\begin{array}{cc}2&8&5&-3\\0&1&3&4\\6&24&15&-9\\7&2&1&10\end{array}\right]. Use properties of determinants.
Solution:
Clearly, the elements of the third row have 3 as a common factor. It can be depicted as:
\left[\begin{array}{cc}2&8&5&-3\\0&1&3&4\\6&24&15&-9\\7&2&1&10\end{array}\right]=3\left[\begin{array}{cc}2&8&5&-3\\0&1&3&4\\2&8&5&-3\\7&2&1&10\end{array}\right]
Since the first and third rows of the given matrix are equal now, using the third property the value of the matrix would be zero.
|A| = 3 × 0
|A| = 0
Question 5: Find the value of (a2 + b2 – c2)|A| if A = \begin{vmatrix}0&c&-b\\-c&0&a\\b&-a&0\end{vmatrix}.
Solution:
|A| = 0(0(0) - a(a)) - c(0(-c) - a(b)) + (-b)((-c)(-a) - 0(b))
= 0 × (a2) − c(0 − ab) − b(ac - 0)
= 0
Hence, (a2 + b2 – c2)|A| = (a2 + b2 – c2)(0)
⇒ (a2 + b2 – c2)|A| = 0
Question 6: Find t if the determinant of the matrix \left[\begin{array}{cc}0&x\\5&3\end{array}\right] is 10.
Solution:
Given: A = \left[\begin{array}{cc}0&x\\5&3\end{array}\right]
|A| = 3(0) - 5(x)
= 0 - 5x
= -5x
Since |A| = 10.
⇒ -5x = 10
⇒ x = -2
Question 7: Find x if the determinant of the matrix \left[\begin{array}{cc}5&1\\3&x\end{array}\right] is 12.
Solution:
Given: A = \left[\begin{array}{cc}5&1\\3&x\end{array}\right]
|A| = 5(x) - 3(1)
= 5x - 3
Since |A| = 12
⇒ 5x - 3 = 12
⇒ 5x = 15
⇒ x = 3
Question 8: Evaluate: \begin{vmatrix}{1}&2&3\\4&5&6\\7&8&9\end{vmatrix}.
Solution:
Here, a = 1, b = 2, c = 3, d = 4, e = 5, f = 6, g = 7, h = 8, i = 9.
Thus, |A| = 1(5(9) - 6(8)) - 2(4(9) - 6(7)) + 3(4(8) - 5(7))
= 1(45 - 42) - 2(36 - 42) + 3(32 - 35)
= 1(3) - 2(-6) + 3(-3)
= 3 + 12 - 9
⇒ |A| = 0
Related Articles:
Similar Reads
How to find the Diagonal of a Matrix?
British Mathematician Arthur Cayley was the first person to develop the algebraic aspect of the matrix. After that, Psychiat Heisenberg used matrices as a tool to explain his famous Quantum principle. The study of matrices originated while solving different types of simple and complex linear problem
6 min read
Determinant of 4x4 Matrix | Examples and How to Find
Determinant of 4x4 Matrix: Determinant of a Matrix is a fundamental concept in linear algebra, essential for deriving a single scalar value from the matrix. 4x4 is a square matrix with 4 rows and 4 columns whose determinant can be found by a formula which we will discuss. This article will explore t
15+ min read
How to determine Eigenvalues of a Matrix?
Eigenvalue is defined as a scalar associated with a given linear transformation of a vector space and having the property that there is some non-zero vector which when multiplied by the scalar is equal to the vector obtained by letting the transformation operate on the vector. The roots of the linea
5 min read
How to Find Column Space of a Matrix
The concept of the column space of any specific matrix may well be considered one of the simplest ideas in linear algebra and is, without doubt, one of the crucial ideas in the study of the solutions to linear systems and in the manner that promotes understanding of the effects of linear transformat
10 min read
How to Calculate Determinant of a Matrix in PHP?
Given a Matrix of size M*N, where N and M is an Integer, we need to Calculate calculate of a Matrix in PHP. Example: Input: [[1, 2],[2, 3]]Output: 6Explanation: (1*3)-(2*2)= 6-4= 2 There are several ways to find the determinant of the matrix in PHP which are as follows: Table of Content Using Recurs
4 min read
Find determinant of a complex matrix in PyTorch
Linear Algebra module torch.linalg of PyTorch provides the function torch.linalg.det() to compute the determinant of a square(real or complex) matrix. This function also computes the determinant of each square matrix in a batch. Syntax: torch.linalg.det(input) --> Tensor input is an (n, n) matri
3 min read
Determinant of a Square Matrix
Determinant of a square matrix is the scalar value or number calculated using the square matrix. The determinant of square matrix X is represented as |X| or det(X). In this article we will explore the determinant of square matrix in detail along with the determinant definition, determinant represent
6 min read
How to find the rank of a matrix in R
A matrix is an arrangement of data in a row- and column-wise fashion or a matrix is nothing but a set of particular kinds of data like numbers. It has many applications in mathematics, Physics, engineering, etc. The number of rows and columns defines the matrix size called an order. For example, if
6 min read
Determinant of 3Ã3 Matrix
A 3 Ã 3 matrix is a square matrix with three rows and three columns, often used to organize numbers in math and related fields. It plays a key role in linear algebra, mainly when calculating the determinantâa single value that provides essential information about the matrix. This article will explai
12 min read
How to Find Rank of a 3x3 Matrix
Rank of a matrix is equal to the number of linear independent rows or columns in it. The rank of the matrix is always less than or equal to the order of the matrix. In this article we will explore how to find rank of 3Ã3 matrix in detail along with the basics of the rank of a matrix. Table of Conten
6 min read