Determinant of a Square Matrix
Last Updated :
31 Jul, 2024
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 representation and determinant formula.
We will also discuss how to find determinant and solve some examples related to the determinant of a square matrix. Let's start our learning on the topic "Determinant of a Square Matrix".
What is Square Matrix?
A square matrix is a type of matrix in mathematics where the number of rows is equal to the number of columns. This means that a square matrix has an equal number of elements along its horizontal and vertical dimensions.
The general form of a square matrix of order n is represented as follows:
\mathbf{A} = \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & \cdots & a_{nn} \end{bmatrix}
What is Determinant of a Square Matrix?
Determinant of a square matrix is defined as the number obtained by the addition of the product of a row or column element with its cofactors. Determinant can only be obtained for a square matrix.
The determinant maps a square matrix to a specific number f: P→Q and is defined as f(p) = q, where q is the determinant of the square matrix p.
Determinant Representation
The determinant representation of a square matrix P is given below.
|P| or Det(P)
The formula for determinant of 2×2 square matrix A = \begin{bmatrix} a & b\\ c & d\\ \end{bmatrix} is given by:
|A| = ad - bc
The formula for determinant of 3×3 Square Matrix B = \begin{bmatrix} a& b& c\\ d& e& f\\ g& h& i\\ \end{bmatrix} is given by:
|B| = a [(e × i)- (f × h)] - b [(d × i)- (g × f)] + c [(d × h) - (e × g)]
Read More,
How to Find Determinant for n × n Square Matrix
To find the determinant for n × n square matrix we follow following steps:
- First, select any row or column of the given matrix.
- Then, for each element aij in the selected row find its cofactor Cij.
- The cofactor of aij is given by: Cij = (-1)i + j Mij where Mij is minor of aij
- The minor of aij is the determinant obtained by eliminating ith row and jth column in the matrix.
- After finding all the cofactors of selected row/column element multiply each element with its cofactor and add them.
- The resultant gives the determinant of the given n × n square matrix.
Solved Examples on Determinant of Square Matrix
Example 1: Find the determinant of matrix X = \begin{bmatrix} 1 & 6\\ 14& -4 \end{bmatrix}
Solution:
To find the determinant of the given matrix we use formula:
|Matrix| = ad - bc
⇒ |X| = (1 × -4) - (14 × 6)
⇒ |X| = -4 - 84
⇒ |X| = -88
So, the determinant of given matrix is -88.
Example 2: Determine the determinant of matrix P = \begin{bmatrix} 0 & -5 & 3\\ 2& -1& 9\\ -7& 4& 6 \end{bmatrix}
Solution:
To find the determinant of matrix P we use formula:
|P| = a [(e × i)- (f × h)] - b [(d × i)- (g × f)] + c [(d × h) - (e × g)]
⇒ |P| = 0 [(-1 × 9)- (9 × 4)] - (-5) [(2 × 6)- (9 × -7)] + 3 [(2 × 4) - (-1 × -7)]
⇒ |P| = 0 [-9 - 36] + 5 [12 + 63] + 3[8 - 7]
⇒ |P| = 0 + 5 × 75 + 3 × 1
⇒ |P| = 375 + 3
⇒ |P| = 378
Example 3: Find the determinant of 4×4 matrix A = \begin{bmatrix} 0 & 1 & 2&-1\\ 3& -1& 2&4\\ -4& 0& 1& 2\\ 0&7& 3&-5 \end{bmatrix}
Solution:
To find the determinant we first select one row or column and alternate add and subtract the selected row elements with its cofactor.
Here, we select first row i.e., (0, 1, 2, -1)
Now, we calculate cofactors of each element.
Cofactor of a11 i.e., 0 = (-1)1+1 \begin{vmatrix} -1 & 2 & 4\\ 0& 1& 2\\ 7& 3& -5 \end{vmatrix} = 11
Cofactor of a12 i.e., 1 = (-1)1+2 \begin{vmatrix} 3 & 2 & 4\\ -4& 1& 2\\ 0& 3& -5 \end{vmatrix} = -121
Cofactor of a13 i.e., 2 = (-1)1+3 \begin{vmatrix} 3 & -1 & 4\\ -4& 0& 2\\ 0& 7& -5 \end{vmatrix} = -134
Cofactor of a14 i.e., -1 = (-1)1+4 \begin{vmatrix} 3 & -1 & 2\\ -4& 0& 1\\ 0& 7& 3 \end{vmatrix} = -89
Now, we add product of elements and its cofactors.
|A| = 0 ×11 + 1 × -121 + 2 × (-134) + (-1) × (-89)
⇒ |A| = 0 + -121 - 268 + 89
⇒ |A| = -300
So, the determinant of given 4×4 square matrix is -300.
Practice Questions on Determinant of Square Matrix
Q1: Find the determinant of matrix X = \begin{bmatrix} 12 & 8\\ 14& 23 \end{bmatrix}
Q2: Determine the determinant of matrix P = \begin{bmatrix} 20 & 15 & 10\\ 7& -11& 19\\ -4& 13& 6 \end{bmatrix}
Q3: Find the determinant of 4×4 matrix A = \begin{bmatrix} 0 & 5 & 3&-1\\ 3& -12& 9&6\\ -4& 0& 16& 2\\ 0&6& 8&-7 \end{bmatrix}
Q4: What is the determinant of matrix Q = \begin{bmatrix} 0 & -5 \\ 3& -12\\ \end{bmatrix}
Similar Reads
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
Determinant of 2x2 Matrix
Determinant of a 2x2 Matrix A = \begin{bmatrix} a&b \\ c&d \\ \end{bmatrix} is denoted as |A| and is calculated as |A| = [ad - bc]. It is used in solving various problems related to a matrix and is used in finding the Inverse, and Rank of 2Ã2 Matrix.In this article, we will learn about, the
7 min read
How to find the Determinant of a Matrix?
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 th
6 min read
Determinant of Matrix with Solved Examples
The determinant of a matrix is a scalar value that can be calculated for a square matrix (a matrix with the same number of rows and columns). It serves as a scaling factor that is used for the transformation of a matrix.It is a single numerical value that plays a key role in various matrix operation
15+ min read
Adjoint of a Matrix
Matrices are fundamental in mathematics and are crucial in various branches such as linear algebra, computer science, and physics. One important concept derived from matrices is the determinant, which is closely related to the adjoint of a matrix.The adjoint (or adjugate) of a matrix is the transpos
13 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
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 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
Applications of Matrices and Determinants
Applications of Matrices and Determinants: One application of matrices and determinants is that they can be used to solve linear equations in two or three variables. Matrices and determinants are also used to check the consistency of any system, whether they are consistent or not. This is the most u
6 min read
Elements of Matrix
Elements of the Matrix are the components or entries of the Matrix. These elements could be any variables, numbers, a mix of variables and numbers, or any other kind of special characters as well. The number of elements of a matrix is equal to the product of the number of rows and columns present in
11 min read