# Determinants and Matrices

**Determinants and matrices, **in linear algebra, are used to solve linear equations by applying Cramer’s rule to a set of non-homogeneous equations which are in linear form. Determinants are calculated for square matrices only. If the determinant of a matrix is zero, it is called a **singular determinant** and if it is one, then it is known as **unimodular**. For the system of equations to have a unique solution, the determinant of the matrix must be nonsingular, that is its value must be nonzero.

## Matrices

**Matrices** are the ordered rectangular array of numbers, which are used to express linear equations. A matrix has rows and columns. we can also perform the mathematical operations on matrices such as addition, subtraction, multiplication of matrix. Suppose the number of rows is m and columns is n, then the matrix is represented as m × n matrix.

### Types of Matrices

There are different **types of matrices**. They are:

- Row matrix
- Column Matrix
- Rectangular matrix
- Triangular matrix
- Square matrix
- Scalar matrix
- Diagonal matrix
- Identity matrix
- Transpose of a matrix
- Null matrix

## Inverse of a Matrix

Inverse of a matrix is defined usually for square matrices. For every m × n square matrix, there exists an inverse matrix. If A is the square matrix then A^{-1} is the inverse of matrix A and satisfies the property:

AA^{-1} = A^{-1}A = I, where I is the Identity matrix.

Also, the determinant of the square matrix here should not be equal to zero.

## Determinant

A determinant can be defined in many ways for a square matrix.

The first and most simple way is to formulate the determinant by taking into account the top row elements and the corresponding minors. Take the first element of the top row and multiply it by it’s minor, then subtract the product of the second element and its minor. Continue to alternately add and subtract the product of each element of the top row with its respective minor until all the elements of the top row have been considered.

For example let us consider a 4×4 matrix A.

The second way to define a determinant is to express in terms of the columns of the matrix by expressing an n x n matrix in terms of the column vectors.

Consider the column vectors of matrix A as A = [ a_{1}, a_{2}, a_{3}, …a_{n}] where any element a_{j }is a vector of size x.

Then the determinant of matrix A is defined such that

Det [ a_{1} + a_{2} …. ba_{j}+cv … a_{x} ] = b det (A) + c det [ a_{1}+ a_{2} + … v … a_{x} ]

Det [ a_{1} + a_{2} …. a_{j } a_{j+1}… a_{x} ] = – det [ a_{1}+ a_{2} + … a_{j+1} a_{j} … a_{x} ]

Det (I) = 1

Where the scalars are denoted by b and c, a vector of size x is denoted by v, and the identity matrix of size x is denoted by I.

We can infer from these equations that the determinant is a linear function of the columns. Further, we observe that the sign of the determinant can be interchanged by interchanging the position of adjacent columns. The identity matrix of the respective unit scalar is mapped by the alternating multi-linear function of the columns. This function is the determinant of the matrix.

## Properties of Determinant

- If I
_{n }is the identity matrix of the order nxn, then det(I) = 1 - If the matrix M
^{T }is the transpose of matrix M, then det (M^{T}) = det (M) - If matrix M
^{-1}is the inverse of matrix M, then det (M^{-1}) = \(\frac{1}{det (M)}\) = det (M)^{-1} - If two square matrices M and N have the same size, then det (MN) = det (M) det (N)
- If matrix M has a size axa and C is a constant, then det (CM) = C
^{a }det (M) - If X, Y, and Z are three positive semidefinite matrices of equal size, then the following holds true along with the corollary det (X+Y) ≥ det(X) + det (Y) for X,Y, Z ≥ 0 det (X+Y+Z) + det C ≥ det (X+Y) + det (Y+Z)
- In a triangular matrix, the determinant is equal to the product of the diagonal elements.
- The determinant of a matrix is zero if all the elements of the matrix are zero.
- Laplace’s Formula and the Adjugate Matrix

Apart from these properties of determinants, there are some other properties, such as

- Reflection Property
- All-zero property
- Proportionality property or Repetition Property
- Switching Property
- Sum Property
- Scalar multiple Property
- Factor Property
- Triangle Property
- Invariance Property
- The determinant of Cofactor matrix

### Laplace Formula for Determinant

With Laplace’s formula, the determinant of a matrix can be expressed in terms of the minors of the matrix.

If matrix B_{xy }is the minor of matrix A obtained by removing x^{th }and y^{th} column and has a size of

( j-1 x j-1), then the determinant of the matrix A is given by

det (A) = \(\sum_{y=1}^{j}(-1)^{x+y}a_{x,y}B_{x,y}\)

And \((-1)^{x+y}B_{x,y}\) is known as the cofactor.

The adjugate matrix is obtained by transposing the matrix containing the cofactors and is given by the equation,

(Adj (A))_{x,y} = (-1)^{x+y} B_{x,y}