Matrix is one of the most commonly used elements in linear algebra. Matrix is the rectangular arrangement of numbers/elements/objects. The horizontal arrangement is called the row and the vertical arrangement is the column of a matrix. The order of a matrix is determined by the number of rows by columns. Suppose a matrix has 2 rows and 3 rows of elements, then its order is 2×3. In the same way, when a matrix has an equal number of rows and columns, then the matrix is called the square matrix. In this article, you will learn the mathematical definition of a square matrix, properties of square matrix and examples in detail.
Square Matrix Definition
A square matrix is a matrix that has an equal number of rows and columns. In mathematics, m × m matrix is called the square matrix of order m. If we multiply or add any two square matrices, the order of the resulting matrix remains the same.
Square Matrix Example
In the above example, we can see, the number of rows and columns are three respectively. Since the order of the matrix is 3 × 3, hence X is a square matrix. We can also find the determinant of a 3×3 square matrix here.
Again, if we take another example, such as;
Here, the number of rows is two and the number of columns is 3. Since rows and columns of matrix Y are not equal, hence it is not a square matrix.
Square Matrix of Order 2
The square matrix of order 2 is the matrix with 2 rows and 2 columns. The general form of a 2×2 matrix or the square matrix of order 2 is given by:
Square Matrix of Order 3
A square matrix of order 3 contains 3 rows and 3 columns, that means its order is 3×3. The general form of square matrix with order 3 is given as:
Addition of Square Matrix
As we have already mentioned in the introduction part, that two square matrices can be added in a very simple way. Let us consider there is 3 by 3 matrix A and B whose values are given here:
As we can see from the above example, the addition of square matrices is very important to perform. Each value in one matrix of a row is added to the other value of the same row and column of another matrix.
Multiplication of Square Matrix
Just like the addition method, the two square matrices are multiplied in the simple way. Let us consider two 2 by 2 square matrices to be multiplied together. Hence, the resultant matrix will be:
Note: The number of rows and columns should always be the same.
Square Matrix Determinant
The determinant of a matrix is the scalar value or a number estimated using a square matrix. The square matrix could be any number of rows and columns such as 2×2, 3×3, 4×4, or in the form of n × n, where the number of columns and rows are equal.
Check: Determinant of a Matrix
If S is the set of square matrices, R is the set of numbers (real or complex) and f : S → R is defined by f (A) = k, where A ∈ S and k ∈ R, then f (A) is called the determinant of A. The determinant of a square matrix A is denoted by “det A” or | A |.
For a 2 by 2 matrix, the determinant is given by:
det A = a11×a22-a12×a21
Hence, we can find the determinant using this formula.
Square Matrix Properties
Some of the important properties of square matrices are listed below:
- The number of rows and columns is equal.
- The sum of all the diagonal elements of a square matrix is called the trace of a matrix.
- If all the diagonal elements of a square matrix are equal to 1, then it is called an identity matrix.
- For a square matrix, we can perform different operations such as inverse.
- The determinant value can be calculated only for the square matrix.
- The order of transpose of a square matrix is the same as the original matrix.