# Explainer: Types of Matrices

In this explainer, we will learn how to determine the type of given matrices.

When describing matrices in a general sense, we often prefer to use shortened notation rather than going through the potentially tedious task of manually writing out every single entry. This is especially true when we are working with matrices that have a large number of rows and columns. Given that a matrix of order has rows and columns, this will have a total number of entries. It is easy to see why writing out such a matrix in full may not be a very fulfilling task.

Provided that we do not need to specify the value of the entries in a matrix, it is often convenient to refer to matrices only by their order, thereby describing the number of rows and columns but without describing the entries that it contains. When considering general operations such as matrix addition or multiplication, knowing the order is essential to check whether or not the operation is valid to perform, before the individual entries are even considered.

Even though knowing the order of a matrix can give important, high-level information, there are other ways of categorizing matrices that can also help to guide calculations and determine which calculations will be valid. We therefore begin to subdivide matrices into different “types,” which are often given names containing geometric descriptions in accordance with their properties. It is entirely possible for one particular matrix to have more than one type, as we will see later. We begin this explainer by defining several types of matrices that occur repeatedly in linear algebra.

### Definition: Row Matrices and Column Matrices

A matrix of order is referred to as a “row vector” or a “row matrix” and has the general form whereas a “column vector” or a “column matrix” is a matrix of order and has the general form

For example, the following matrices are all row matrices because they have only one row: whereas the following matrices are not row matrices because they all have more than one row:

In the example above, the only column matrix is , whereas all of the other matrices have more than one column and so these are not column matrices.

### Definition: Square Matrices

A “square” matrix is one which has rows and columns, having the general form

The order of such a matrix is and there will be entries in total.

Square matrices are highly important mathematical objects that are of regular consideration in linear algebra. Many deep, useful theorems are based on the involved matrices being square. Although the operations of matrix addition and matrix multiplication can be defined on matrices of a general order, the operations of exponentiation and inversion are only defined when the matrix is square.

As an example, the following matrices each have an equal number of rows and columns and hence are classified as square matrices: whereas none of the following matrices are square:

Square matrices are so important that many other special types of matrices have a definition which first specifies that they are already a square matrix.

### Definition: Diagonal Matrices

For a matrix , the “diagonal” entries are those which have the same row number and column number, and the “nondiagonal” entries are all other entries. If is a square matrix and all of the nondiagonal entries are zero, then is called a “diagonal” matrix.

We have highlighted in red all of the diagonal entries below:

Given that the matrices are all square matrices and that all nondiagonal entries are zero, the above are all diagonal matrices. We should comment that the matrix has the diagonal entry . Even though the value of this diagonal entry is zero, this is consistent with the definition above, which only requires that the nondiagonal elements have a value of zero.

The following matrices are not diagonal:

We have highlighted in orange the nondiagonal entries in and which are nonzero and hence prevent these matrices from being in diagonal form. The matrix could never have been a diagonal matrix, as it is not a square matrix and therefore does not meet the requirements of the definition above. Although the concept of a diagonal-rectangular matrix does exist, it is used far less frequently than the standard, square diagonal matrices and is therefore outside the scope of this explainer.

### Definition: Identity Matrices

An “identity matrix,” sometimes called a “unit matrix,” is a diagonal matrix with ones on the main diagonal and zeros elsewhere. We often refer to these matrices by the special symbols or , where denotes that the matrix is of order .

The matrices below are all identity matrices: whereas none of the previous matrices in this explainer have been identity matrices.

### Definition: Zero Matrices

A “zero matrix” of order is a matrix with rows and columns for which every entry is zero, which is often denoted as . If a zero matrix is also a square matrix of order , then the notation is sometimes used.

For example, the following matrices are all zero matrices:

There are various other types of matrices that merit their own classification and label, such as symmetric matrices, skew-symmetric matrices, orthogonal matrices, block matrices, and so on. Each of these is interesting and rich enough to require its own, separate investigation.

Once the concepts above have been fully understood, it is possible to begin understanding these important types of matrices and their many applications. To practice recognizing these common types of matrices, in the following pages we give several questions that rely on the definitions that we have given above.

### Example 1: Types of Matrices

Determine the type of the matrix

1. Row matrix
2. Square matrix
3. Identity matrix
4. Column matrix

This matrix is evidently not a square matrix since it does not have the same number of rows as columns, which eliminates option (B). This implies that the answer also cannot be option (C) because an identity matrix is a square matrix (in particular, a diagonal matrix with all diagonal entries having the same value of 1). Since the matrix has only one row and more than one column, it is a row matrix and hence the correct choice is (A).

### Example 2: Types of Matrices

Determine the type of the matrix

1. Row matrix
2. Square matrix
3. Identity matrix
4. Column matrix

This matrix has more than one row and exactly one column, so it is a column matrix. The correct answer is option (D).

### Example 3: Types of Matrices

Determine the type of the matrix

1. Row matrix
2. Square matrix
3. Identity matrix
4. Column matrix

This matrix has more than one row and column and so cannot be either option (A) or option (D). Since the number of rows is the same as the number of columns, the matrix is a square matrix and so the answer is either option (B) or option (C). For a square matrix to be an identity matrix, it must also be a diagonal matrix, which is not true in this instance. Therefore, the answer cannot be option (C), which means that (B) is the correct answer.

### Example 4: Types of Matrices

Determine the type of the matrix

1. Row matrix
2. Zero matrix
3. Identity matrix
4. Column matrix

The matrix has more than one row and more than one column, so it is neither a row matrix nor column matrix, which excludes options (A) and (D). Although the matrix is a square matrix and is also actually a diagonal matrix (since all of the nondiagonal entries are zero), it cannot be an identity matrix because the diagonal entries are not all equal to 1. Therefore, the answer cannot be option (C). Since every entry of the matrix is zero, the correct answer is option (B). We would refer to the given matrix as the zero matrix or, if we prefer the shorthand notation for square-zero matrices, we would simply refer to this as .

### Example 5: Types of Matrices

Determine the type of the matrix

1. Row matrix
2. Zero matrix
3. Identity matrix
4. Column matrix

The given matrix cannot be either of options (A) and (D). Given that there are nonzero entries in this matrix, we know that option (B) is not possible. The given matrix is a diagonal matrix and all of the diagonal entries are equal to 1, so this an identity matrix and would be denoted either as or as . Therefore, the correct answer is option (C).

### Example 6: Types of Matrices

Determine the type of the matrix

1. Row matrix
2. Diagonal matrix
3. Identity matrix
4. Column matrix

Clearly this matrix is neither a row matrix nor a column matrix, so options (A) and (D) cannot be correct. The matrix is in diagonal form because all of the nondiagonal entries are zero. Given that the diagonal entries are not all equal to 1, this cannot be an identity matrix and therefore option (C) is not possible. Note that even though one of the diagonal entries is equal to zero, this does not prevent the matrix from being classified as diagonal and thus the correct answer is (B).

With further study of linear algebra, it quickly becomes apparent why exactly we have chosen to identify these particular types of matrices. Often, it is possible to gain significant high-level understanding of a problem just by understanding the types of matrices that are involved. For example, if we are working with a square matrix then we will actually be working with a matrix that is guaranteed to preserve dimensions when combined in a certain way with row matrices and column matrices. As another example, we mentioned above that a square matrix is necessary for the possibility of matrix “division” (known properly as “inversion”) to be well-defined.

In addition to the types of matrices defined above, there are other types of matrices that are of fundamental importance in physics and the other sciences. The concept of a “Hermitian” matrix, for example, is necessary for quantum mechanics to be well defined in a mathematical sense and therefore produce results that could be measured in real life. The idea of “triangular” matrices becomes fundamental in the optimization of computer graphics rendering, with the Vandermonde matrix allowing for smooth curve interpolation. More often than not, these special matrices are square matrices but this does not diminish the importance of nonsquare matrices, which are very useful whenever transforming between different dimensions.

### Key Points

• Row matrices and column matrices (often referred to as row vectors and column vectors), respectively, have either only one row or one column.
• Square matrices have an equal number of rows and columns.
• Diagonal matrices are square matrices where every nondiagonal element has a value of zero.
• An identity matrix (often referred to as the unit matrix) is a diagonal matrix where the diagonal entries all have a value of 1. The notation for an identity matrix of order is either or and these matrices are of vital importance in linear algebra.
• A zero matrix of order is populated only by entries which have a value of zero. We often label such a matrix as .