# Square Matrix

• Last Updated : 09 Jan, 2023

A matrix is defined as a rectangular array of numbers that are arranged in rows and columns. The size of a matrix can be determined by the number of rows and columns in it. A matrix is said to be an “m by n” matrix when it has “m” rows and “n” columns and is written as an “m × n” matrix. For example, if the order of a matrix is “4 × 3,” then it has four rows and three columns. We have different types of matrices, such as rectangular matrices, square matrices, triangular matrices, symmetric matrices, etc.

## What is a Square Matrix?

A square matrix is defined as a matrix that has an equal number of rows and columns. The order of a square matrix that has “n” rows and “n” columns is “n × n.” The number of elements in a matrix can be determined by the product of the number of rows and columns in the matrix. So, the number of elements in a square matrix is always a perfect square number. If any two square matrices of the same order are added or multiplied, the order of the resultant matrix remains the same.

## Examples of a Square Matrix

Some common examples of square matrices of different orders are given below:

• The following matrix is a square matrix of order “2 × 2,” i.e., the given matrix has two rows and two columns.

• The following matrix is a square matrix of order “3 × 3,” i.e., the given matrix has three rows and three columns.

• The following matrix is a square matrix of order “n × n,” i.e., the given matrix has “n” rows and “n” columns.

## Properties of a Square Matrix

The following are some important properties of a square matrix:

• In every square matrix, the number of rows and columns is equal.
• The sum of all principal diagonal elements in a square matrix is defined as the trace of a matrix.
• The determinant value can be determined only for square matrices.
• If the determinant of a square matrix is zero, then the matrix is called a singular matrix, whereas it is said to be non-singular if its determinant is not equal to zero.
• If the principal diagonal elements in a square matrix are ones and the rest of the elements are zeros, then the matrix is called an identity matrix.
• The order of a square matrix and its transpose are the same.
• We can perform various operations on a square matrix, such as addition, multiplication, inverse, etc.

## Types of Square Matrices

We have various types of square matrices, such as identity matrices, singular matrices, non-singular matrices, symmetric matrices, etc.

• Singular Matrix: If the determinant of a square matrix is zero, then the matrix is called a singular matrix.

“A” is a square matrix of order “n × n” and is said to be a singular matrix if |A| = 0.

• Scalar Matrix: A scalar matrix is a square matrix whose principal diagonal elements are equal and the rest of the elements are zeros.
• Identity Matrix: An identity matrix is a square matrix whose principal diagonal elements are ones and the rest of the elements are zeros.
• Symmetric Matrix: A symmetric matrix is a square matrix whose transpose is the same as the original matrix.

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = A

• Skew-Symmetric Matrix: A skew-symmetric matrix is a square matrix whose transpose is equal to the negative of the original matrix.

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = −A

• Orthogonal Matrix: An orthogonal matrix is a square matrix whose inverse is equal to the transpose of the matrix.

“A” is a square matrix of order “n × n” and is said to be an orthogonal matrix if A-1 = AT.

### Addition and Subtraction of Square Matrices

We can perform various mathematical operations on a square matrix, such as addition, multiplication, etc. When two square matrices of the same order are added or subtracted, the resultant matrix is obtained when corresponding elements are added or subtracted.

If  are two square matrices of order “2 × 2,” then .

• If A and B are two square matrices of the same order, then A + B = B + A.

### Multiplication of Square Matrices

If are  are two square matrices of order “2 × 2,” then

.

## Determinant of a Square Matrix

The determinant of a square matrix is a scalar value or a summary value that represents the entire set of elements in the matrix. The determinant of a “2 × 2” square matrix can be easily determined using the formula, which is the difference of the product of the matrix’s principal diagonal elements.

If  is a square matrix of order “2 × 2,” then the formula to calculate its determinant is given as follows:

|A| or det A = [ad – bc]

## Inverse of a Square Matrix

Inverse operation can be performed on the square matrix. Division of a matrix can be achieved using the inverse of a Matrix. Inverse of a matrix is found after the determinant of the Square Matrix is calculated. After that Adjoint of the Square matrix is found. Then Inverse is calculated as,

Also, Check: Minors and Cofactors of Determinants

## Solved Examples on Square Matrix

Example 1: Calculate the determinant of the square matrix given below.

Solution:

Given matrix,

|P| = (-3 × 0) – (–2 × 5)

|P| = 0 – (–10) = 10

Hence, the determinant of the given matrix is 10.

Example 2: Find whether the matrix given below is a singular matrix or not.

Solution:

To find whether the matrix given below is singular or not, we have to calculate its determinant.

|B| = (4 × 4) – (0 × 0) = 16 ≠ 0

As the determinant of the given matrix is not equal to zero, the given matrix is non-singular.

Example 3: Determine the inverse of the matrix given below.

Solution:

If , then

Example 4: Find whether the matrix given below is symmetric or not.

Solution:

“A” is a square matrix of order “n × n” and is said to be a symmetric matrix if AT = A.

The given matrix,

≠ A

Since, AT ≠ A, the given square matrix is not symmetric.

## FAQs on Square Matrix

### Question 1: Define a square matrix.

A square matrix is defined as a matrix that has an equal number of rows and columns. The order of a square matrix that has “n” rows and “n” columns is “n × n.”

### Question 2: What is an orthogonal matrix?

An orthogonal matrix is a square matrix whose inverse is equal to the transpose of the matrix.

“A” is a square matrix of order “n × n” and is said to be an orthogonal matrix if A-1 = AT.

### Question 3: What is meant by the determinant of a matrix?

The determinant of a square matrix is a scalar value or a summary value that represents the entire set of elements in the matrix.