Types of Matrices

Matrices are fundamental building blocks in linear algebra, and understanding their different types is crucial for solving various mathematical problems, especially in areas like engineering, physics, and computer science. We'll explore the most common classifications of matrices based on their dimensions, elements, and specific properties.

1. Classification Based on Dimensions

a) Row Matrix

A row matrix is a matrix that has only one row. It can have any number of columns. The order of a row matrix is $1 \times n$, where $n$ is the number of columns.

Example: $A = \begin{bmatrix} 2 & -1 & 3 & 5 \end{bmatrix}$ is a row matrix of order $1 \times 4$.

b) Column Matrix

A column matrix is a matrix that has only one column. It can have any number of rows. The order of a column matrix is $m \times 1$, where $m$ is the number of rows.

Example: $B = \begin{bmatrix} 1 \\ 0 \\ -2 \end{bmatrix}$ is a column matrix of order $3 \times 1$.

c) Square Matrix

A square matrix is a matrix in which the number of rows is equal to the number of columns. The order of a square matrix is $n \times n$, often referred to as an $n$-rowed square matrix or simply a square matrix of order $n$.

Example: $C = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ is a square matrix of order $2 \times 2$.

Example: $D = \begin{bmatrix} 5 & -1 & 0 \\ 2 & 3 & 7 \\ 1 & 0 & 9 \end{bmatrix}$ is a square matrix of order $3 \times 3$.

d) Rectangular Matrix

A rectangular matrix is a matrix in which the number of rows is not equal to the number of columns. The order is $m \times n$, where $m \neq n$.

Example: $E = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}$ is a rectangular matrix of order $2 \times 3$.

2. Classification Based on Elements

a) Zero Matrix (or Null Matrix)

A zero matrix is a matrix in which all the elements are zero. A zero matrix can be of any order, square or rectangular. It is usually denoted by $O$ or $0_{m \times n}$.

Example: $O_{2 \times 2} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}$

Example: $O_{2 \times 3} = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}$

A zero matrix plays a role similar to zero in scalar arithmetic, such as $A + O = A$ and $A - A = O$.

b) Diagonal Matrix

A diagonal matrix is a square matrix in which all the non-diagonal elements are zero. The diagonal elements can be zero or non-zero.

A square matrix $A = [a_{ij}]_{n \times n}$ is called a diagonal matrix if $a_{ij} = 0$ for all $i \neq j$.

Example: $F = \begin{bmatrix} 2 & 0 & 0 \\ 0 & -5 & 0 \\ 0 & 0 & 7 \end{bmatrix}$ is a diagonal matrix of order $3 \times 3$.

Note that a diagonal matrix is always a square matrix.

c) Scalar Matrix

A scalar matrix is a diagonal matrix in which all the diagonal elements are equal.

A diagonal matrix $A = [a_{ij}]_{n \times n}$ is called a scalar matrix if $a_{ij} = 0$ for $i \neq j$ and $a_{ii} = k$ for all $i$, where $k$ is a constant.

Example: $G = \begin{bmatrix} 4 & 0 & 0 \\ 0 & 4 & 0 \\ 0 & 0 & 4 \end{bmatrix}$ is a scalar matrix of order $3 \times 3$.

A scalar matrix can be represented as $kI$, where $I$ is the identity matrix of the same order and $k$ is a scalar. For instance, the matrix $G$ is $4I_{3 \times 3}$.

d) Identity Matrix (or Unit Matrix)

An identity matrix is a scalar matrix in which the diagonal elements are all equal to 1. An identity matrix is always a square matrix. It is denoted by $I$ or $I_{n \times n}$.

A square matrix $A = [a_{ij}]_{n \times n}$ is called an identity matrix if $a_{ij} = 0$ for $i \neq j$ and $a_{ii} = 1$ for all $i$.

Example: $I_{2 \times 2} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}$

Example: $I_{3 \times 3} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}$

The identity matrix is the multiplicative identity for matrices, meaning $AI = IA = A$ for any compatible matrix $A$.

3. Classification Based on Specific Properties

a) Triangular Matrix

A triangular matrix is a square matrix where all the elements either above or below the main diagonal are zero. There are two types of triangular matrices:

i) Upper Triangular Matrix

In an upper triangular matrix, all the elements below the main diagonal are zero.

A square matrix $A = [a_{ij}]_{n \times n}$ is called an upper triangular matrix if $a_{ij} = 0$ for all $i > j$.

Example: $H = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 4 & 5 \\ 0 & 0 & 6 \end{bmatrix}$ is an upper triangular matrix of order $3 \times 3$.

Note that a diagonal matrix is also an upper triangular matrix.

ii) Lower Triangular Matrix

In a lower triangular matrix, all the elements above the main diagonal are zero.

A square matrix $A = [a_{ij}]_{n \times n}$ is called a lower triangular matrix if $a_{ij} = 0$ for all $i < j$.

Example: $J = \begin{bmatrix} 7 & 0 & 0 \\ 8 & 9 & 0 \\ 1 & 2 & 3 \end{bmatrix}$ is a lower triangular matrix of order $3 \times 3$.

Note that a diagonal matrix is also a lower triangular matrix.

b) Symmetric Matrix

A square matrix $A$ is called a symmetric matrix if it is equal to its transpose, i.e., $A = A^T$.

For a square matrix $A = [a_{ij}]_{n \times n}$ to be symmetric, the element $a_{ij}$ must be equal to the element $a_{ji}$ for all $i$ and $j$. In other words, elements equidistant from the main diagonal must be equal.

Example: $K = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{bmatrix}$. Here, $a_{12} = 2 = a_{21}$, $a_{13} = 3 = a_{31}$, and $a_{23} = 5 = a_{32}$. So, $K$ is a symmetric matrix.

A symmetric matrix must be a square matrix.

c) Skew-Symmetric Matrix (or Antisymmetric Matrix)

A square matrix $A$ is called a skew-symmetric matrix if its transpose is equal to its negative, i.e., $A^T = -A$.

For a square matrix $A = [a_{ij}]_{n \times n}$ to be skew-symmetric, the element $a_{ij}$ must be equal to $-a_{ji}$ for all $i$ and $j$.

Let's consider the condition $a_{ii} = -a_{ii}$. This implies $2a_{ii} = 0$, which means $a_{ii} = 0$. Therefore, all the diagonal elements of a skew-symmetric matrix must be zero.

Example: $L = \begin{bmatrix} 0 & 2 & -3 \\ -2 & 0 & 5 \\ 3 & -5 & 0 \end{bmatrix}$. Here, $a_{12} = 2 = -a_{21}$, $a_{13} = -3 = -a_{31}$, and $a_{23} = 5 = -a_{32}$. Also, the diagonal elements are all zero. So, $L$ is a skew-symmetric matrix.

A skew-symmetric matrix must be a square matrix.

Key Point: Any square matrix $A$ can be expressed as the sum of a symmetric matrix and a skew-symmetric matrix. Specifically, $A = S + K$, where $S = \frac{1}{2}(A + A^T)$ is symmetric, and $K = \frac{1}{2}(A - A^T)$ is skew-symmetric.

d) Orthogonal Matrix

A square matrix $A$ is called an orthogonal matrix if its transpose is equal to its inverse, i.e., $A^T = A^{-1}$.

Multiplying both sides by $A$ (from the right), we get $A^T A = A^{-1} A$. Since $A^{-1} A = I$ (the identity matrix), we have $A^T A = I$.

Similarly, multiplying by $A$ from the left, we get $A A^T = A A^{-1} = I$.

So, a square matrix $A$ is orthogonal if $A^T A = A A^T = I$.

Example: Let $A = \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}$. Then $A^T = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix}$. $A^T A = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix}$ $A^T A = \begin{bmatrix} \cos^2 \theta + \sin^2 \theta & -\cos \theta \sin \theta + \sin \theta \cos \theta \\ -\sin \theta \cos \theta + \cos \theta \sin \theta & \sin^2 \theta + \cos^2 \theta \end{bmatrix}$ $A^T A = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I$. Thus, $A$ is an orthogonal matrix.

The rows (and columns) of an orthogonal matrix form an orthonormal set of vectors.

e) Idempotent Matrix

A square matrix $A$ is called an idempotent matrix if $A^2 = A$.

Example: Let $A = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}$. $A^2 = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 1 \cdot 1 + 0 \cdot 0 & 1 \cdot 0 + 0 \cdot 0 \\ 0 \cdot 1 + 0 \cdot 0 & 0 \cdot 0 + 0 \cdot 0 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} = A$. So, $A$ is idempotent.

f) Involutory Matrix

A square matrix $A$ is called an involutory matrix if $A^2 = I$, where $I$ is the identity matrix.

Example: Let $A = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}$. $A^2 = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} 0 \cdot 0 + 1 \cdot 1 & 0 \cdot 1 + 1 \cdot 0 \\ 1 \cdot 0 + 0 \cdot 1 & 1 \cdot 1 + 0 \cdot 0 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I$. So, $A$ is an involutory matrix.

JEE Main Shortcut: Remember that the identity matrix $I$ and the zero matrix $O$ are both idempotent ($I^2=I$, $O^2=O$) and involutory ($I^2=I$, $O^2=O$).

g) Nilpotent Matrix

A square matrix $A$ is called a nilpotent matrix if $A^k = O$ for some positive integer $k$, where $O$ is the zero matrix. The smallest such positive integer $k$ is called the index of nilpotency.

Example: Let $A = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}$. $A^2 = \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 \cdot 0 + 1 \cdot 0 & 0 \cdot 1 + 1 \cdot 0 \\ 0 \cdot 0 + 0 \cdot 0 & 0 \cdot 1 + 0 \cdot 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} = O$. So, $A$ is a nilpotent matrix of index 2.

Example: Let $A = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{bmatrix}$. $A^2 = \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}$. $A^3 = A^2 A = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 & 0 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix} = O$. So, $A$ is a nilpotent matrix of index 3.

h) Periodic Matrix

A square matrix $A$ is called a periodic matrix if $A^k = I$ for some positive integer $k$. The smallest such positive integer $k$ is called the period of the matrix.

Example: The identity matrix $I$ is a periodic matrix with period 1, since $I^1 = I$.

Example: Consider $A = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}$. $A^2 = \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix} = \begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix} = -I$. $A^3 = A^2 A = (-I)A = -A = \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}$. $A^4 = (A^2)^2 = (-I)^2 = I$. So, $A$ is a periodic matrix with period 4.

4. Special Types of Square Matrices

a) Determinant of a Matrix

The determinant is a scalar value that can be computed from the elements of a square matrix. It provides important information about the matrix, such as whether it is invertible. The determinant of a matrix $A$ is denoted by $|A|$ or $\det(A)$.

For a $2 \times 2$ matrix $A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}$, the determinant is $|A| = ad - bc$.

For a $3 \times 3$ matrix $A = \begin{bmatrix} a & b & c \\ d & e & f \\ g & h & i \end{bmatrix}$, the determinant is $|A| = a(ei - fh) - b(di - fg) + c(dh - eg)$.

b) Singular and Non-Singular Matrices

A square matrix is called singular if its determinant is zero.

A square matrix is called non-singular if its determinant is non-zero.

Example: $A = \begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix}$. $|A| = (2)(2) - (4)(1) = 4 - 4 = 0$. So, $A$ is a singular matrix.

Example: $B = \begin{bmatrix} 3 & 1 \\ 2 & 4 \end{bmatrix}$. $|B| = (3)(4) - (1)(2) = 12 - 2 = 10$. Since $|B| \neq 0$, $B$ is a non-singular matrix.

JEE Main Relevance: Non-singular matrices have an inverse, while singular matrices do not. This is a critical concept for solving systems of linear equations and understanding matrix properties.

c) Trace of a Matrix

The trace of a square matrix is the sum of the elements on its main diagonal. It is denoted by $\text{tr}(A)$.

For a square matrix $A = [a_{ij}]_{n \times n}$, $\text{tr}(A) = \sum_{i=1}^{n} a_{ii}$.

Example: If $A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}$, then $\text{tr}(A) = 1 + 5 + 9 = 15$.

Properties of Trace:

  • $\text{tr}(A+B) = \text{tr}(A) + \text{tr}(B)$
  • $\text{tr}(kA) = k \cdot \text{tr}(A)$, where $k$ is a scalar.
  • $\text{tr}(AB) = \text{tr}(BA)$
  • $\text{tr}(A^T) = \text{tr}(A)$

5. Summary Table of Matrix Types

Matrix Type Condition/Definition Example
Row Matrix 1 row, any number of columns ($1 \times n$) $ \begin{bmatrix} 1 & 2 & 3 \end{bmatrix} $
Column Matrix Any number of rows, 1 column ($m \times 1$) $ \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} $
Square Matrix Number of rows = Number of columns ($n \times n$) $ \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} $
Zero Matrix All elements are 0 $ \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix} $
Diagonal Matrix Square matrix; $a_{ij} = 0$ for $i \neq j$ $ \begin{bmatrix} 1 & 0 \\ 0 & 2 \end{bmatrix} $
Scalar Matrix Diagonal matrix with $a_{ii} = k$ (constant) $ \begin{bmatrix} 3 & 0 \\ 0 & 3 \end{bmatrix} $
Identity Matrix Scalar matrix with $a_{ii} = 1$ $ \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} $
Upper Triangular Square matrix; $a_{ij} = 0$ for $i > j$ $ \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix} $
Lower Triangular Square matrix; $a_{ij} = 0$ for $i < j$ $ \begin{bmatrix} 1 & 0 \\ 2 & 3 \end{bmatrix} $
Symmetric Matrix Square matrix; $A^T = A$ ($a_{ij} = a_{ji}$) $ \begin{bmatrix} 1 & 2 \\ 2 & 3 \end{bmatrix} $
Skew-Symmetric Matrix Square matrix; $A^T = -A$ ($a_{ij} = -a_{ji}$, $a_{ii}=0$) $ \begin{bmatrix} 0 & 2 \\ -2 & 0 \end{bmatrix} $
Orthogonal Matrix Square matrix; $A^T A = I$ $ \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} $
Idempotent Matrix Square matrix; $A^2 = A$ $ \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix} $
Involutory Matrix Square matrix; $A^2 = I$ $ \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} $
Nilpotent Matrix Square matrix; $A^k = O$ for some $k \ge 1$ $ \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix} $ ($k=2$)
Singular Matrix Square matrix; $|A| = 0$ $ \begin{bmatrix} 2 & 4 \\ 1 & 2 \end{bmatrix} $
Non-Singular Matrix Square matrix; $|A| \neq 0$ $ \begin{bmatrix} 3 & 1 \\ 2 & 4 \end{bmatrix} $