There are many matrices that have special forms and hence have special names — which we now list.

  • A square matrix is a matrix with the same number of rows and columns; that is, a square matrix is an matrix.
  • A diagonal matrix is a square matrix whose only nonzero entries are along the main diagonal; that is, if . The following is a diagonal matrix There is a shorthand in MATLAB for entering diagonal matrices. To enter this matrix, type diag([1 2 3]).
  • The identity matrix is the diagonal matrix all of whose diagonal entries equal . The identity matrix is denoted by . This identity matrix is entered in MATLAB by typing eye(n).
  • A zero matrix is a matrix all of whose entries are . A zero matrix is denoted by . This notation is ambiguous since there is a zero matrix for every and . Nevertheless, this ambiguity rarely causes any difficulty. In MATLAB, to define an matrix whose entries all equal , just type A = zeros(m,n). To define an zero matrix , type B = zeros(n).
  • The transpose of an matrix is the matrix obtained from by interchanging rows and columns. Thus the transpose of the matrix is the matrix Suppose that you enter this matrix into MATLAB by typing
         A = [2 1; -1 2; 3 -4; 5 7]
         

    The transpose of a matrix is denoted by . To compute the transpose of in MATLAB, just type A.

  • A symmetric matrix is a square matrix whose entries are symmetric about the main diagonal; that is . Note that a symmetric matrix is a square matrix for which .
  • An upper triangular matrix is a square matrix all of whose entries below the main diagonal are ; that is, if . A strictly upper triangular matrix is an upper triangular matrix whose diagonal entries are also equal to . Similar definitions hold for lower triangular and strictly lower triangular matrices. The following four matrices are examples of upper triangular, strictly upper triangular, lower triangular, and strictly lower triangular matrices:
  • A square matrix is block diagonal if where each is itself a square matrix. An example of a block diagonal matrix with one block and one block is:

Exercises

In Exercises ?? – ?? decide whether or not the given matrix is symmetric.

.
The matrix is symmetric. The matrix is not symmetric.
.
The matrix is symmetric. The matrix is not symmetric.
.
The matrix is symmetric. The matrix is not symmetric.
.
The matrix is symmetric. The matrix is not symmetric.
.
The matrix is symmetric. The matrix is not symmetric.

In Exercises ?? – ?? decide which of the given matrices are upper (or lower) triangular and which are strictly upper (or lower) triangular.

.
The matrix is lower triangular. The matrix is strictly lower triangular. The matrix is upper triangular. The matrix is strictly upper triangular. None of the above.
.
The matrix is lower triangular. The matrix is strictly lower triangular. The matrix is upper triangular. The matrix is strictly upper triangular. None of the above.
.
The matrix is upper triangular. The matrix is strictly upper triangular.
.
The matrix is lower triangular. The matrix is strictly lower triangular. The matrix is upper triangular. The matrix is strictly upper triangular. None of the above.
.
The matrix is lower triangular. The matrix is strictly lower triangular. The matrix is upper triangular. The matrix is strictly upper triangular. None of the above.

A general diagonal matrix has the form . Thus the two unknown real numbers and are needed to specify each diagonal matrix. In Exercises ?? – ??, how many unknown real numbers are needed to specify each of the given matrices:

An upper triangular matrix?
A symmetric matrix?
An matrix?
A diagonal matrix?
An upper triangular matrix?
Recall the summation formula:
A symmetric matrix?

In each of Exercises ?? – ?? determine whether the statement is True or False?

Every symmetric, upper triangular matrix is diagonal.
True False
Every diagonal matrix is a multiple of the identity matrix.
True False
Every block diagonal matrix is symmetric.
True False
Use MATLAB to compute when Use MATLAB to verify that by setting B=A’, C=B’, and checking that .
Use MATLAB to compute when is a matrix.