Not every matrix deserves a special name. The families in this note do because their visible patterns impose algebraic restrictions. Once those restrictions are translated into index notation, they let us predict products, transposes, and row operations without expanding every entry.
Throughout the note, entries come from a field , usually in this course. Statements about diagonal and triangular matrices concern square matrices unless another size is stated explicitly.
What a zero pattern lets us predict
A general matrix contains entries, and none of them is forced by shape alone. A special matrix carries extra information before any calculation begins. For example, knowing that a matrix is lower triangular immediately tells us that every entry with is zero. That single condition controls many later computations.
The point of naming matrix families is therefore not classification for its own sake. A good name compresses a useful hypothesis:
- diagonal means that only the main diagonal can contain nonzero entries;
- upper or lower triangular means that an entire side of the main diagonal is already zero;
- identity means that multiplication leaves every compatible matrix unchanged;
- elementary means that one elementary row operation has been encoded as matrix multiplication.
These descriptions are related rather than disjoint. In particular, a diagonal matrix is simultaneously upper triangular and lower triangular. The identity matrix is diagonal, hence belongs to both triangular families as well. A matrix can therefore carry several useful labels at once.
The advantage becomes clearest in proofs. To show that a product of two lower triangular matrices is lower triangular, we do not need to calculate all entries. We only examine an arbitrary entry above the diagonal and show, by splitting its row-by-column sum into two index ranges, that every term must vanish. This is a model for how structural information replaces brute force.
Recognize the matrix families
Definition
Diagonal, triangular, identity, and elementary matrices
Let .
The matrix is diagonal when whenever . We write
It is upper triangular when for , so every entry below the main diagonal is zero. It is lower triangular when for , so every entry above the main diagonal is zero. Consequently, a matrix is diagonal exactly when it is both upper triangular and lower triangular.
The identity matrix is the diagonal matrix .
An elementary matrix of order is obtained from by exactly one elementary row operation: interchanging two rows, multiplying one row by a nonzero scalar, or adding a scalar multiple of one row to another.
The words “above” and “below” refer to indices, not to the signs of the entries: is above the diagonal when , on it when , and below it when . Diagonal entries themselves are unrestricted in a triangular matrix; in particular, they may be zero.
The sequence below organizes these names by the visible information they carry: where zeros must appear, why identity multiplication leaves a matrix unchanged, and how one row operation becomes an elementary matrix. Use it as a fixed map before experimenting with the live classifier.
Classify special matrix families by their visible shape, then connect diagonal and triangular closure, the identity law, and elementary matrices as row-operation packages.
Family map
Diagonal, triangular, identity, zero, and elementary matrices are useful because their shape carries algebraic information.
Diagonal pattern
A diagonal matrix has all off-diagonal entries equal to zero, and the product of two diagonal matrices is still diagonal.
Triangular pattern
An upper triangular matrix has zeros below the main diagonal, and multiplying upper triangular matrices preserves that zero side.
Identity action
The identity matrix is diagonal with ones on the diagonal; compatible products satisfy AI_n = A and I_mA = A.
Elementary bridge
An elementary matrix is obtained by applying one elementary row operation to an identity matrix.
Side matters
Multiplying by E on the left performs the matching row operation on A, while multiplying on the right performs the corresponding column operation.
Special matrix families are not just names. Diagonal, triangular, identity, zero, and elementary matrices package visible structure, so you should classify the shape before deciding how much computation is really needed.
The following widget concentrates on diagonal, identity, symmetric, and skew-symmetric recognition. Its labels are intentionally not an exhaustive list of matrix families: a matrix shown as “neither” in that narrower comparison may still be upper or lower triangular. Use the entries themselves, rather than a single label, when applying the definitions in this note.
Read and try
Classify matrix families by transpose comparison
The live checker compares A with A^T so readers can distinguish symmetric, skew-symmetric, diagonal, identity, and neither cases.
Matrix A
| 2 | -1 |
| -1 | 5 |
Transpose A^T
| 2 | -1 |
| -1 | 5 |
Matrix family
Symmetric
The transpose matches the original matrix entry by entry, so A^T = A.
Which structures survive an operation?
Theorem
Transpose exchanges the two triangular families
Let . Then is upper triangular if and only if is lower triangular. Likewise, is lower triangular if and only if is upper triangular. A diagonal matrix therefore remains diagonal after transposition.
Theorem
Triangular matrices are closed under multiplication
Let . If both matrices are lower triangular, then is lower triangular. If both are upper triangular, then is upper triangular.
As a special case, the product of two diagonal matrices of order is diagonal.
Theorem
Elementary left multiplication performs a row operation
Suppose is obtained by applying one elementary row operation to . For every , the product is defined and is exactly the matrix obtained by applying to the rows of .
The size conditions are part of these statements. Closure under multiplication requires matrices of the same order, while the elementary-matrix theorem only requires the number of rows of to equal the order of .
Use the forced zeros in each proof
For the transpose theorem, suppose is upper triangular. To prove that is lower triangular, choose a position above its diagonal, so . By the definition of transpose,
Since , the entry lies below the diagonal of the upper triangular matrix , and is therefore zero. Hence every entry above the diagonal of vanishes. The reverse implication follows by applying the same argument to and using . Interchanging “upper” and “lower” gives the second equivalence.
The multiplication theorem needs a little more care. Let and be lower triangular matrices. Fix any position above the diagonal; thus . The corresponding entry of the product is
Split the possible values of into the two exhaustive cases and .
- If , then , so . The entry is above the diagonal of the lower triangular matrix , hence .
- If , then is above the diagonal of the lower triangular matrix , hence .
Thus every term in the sum is zero, regardless of . Therefore for every , proving that is lower triangular for arbitrary , not merely in the case. The upper triangular result follows either from the analogous index argument or from and the transpose theorem.
Because a diagonal matrix is both upper and lower triangular, the product of two diagonal matrices is also both, hence diagonal. More explicitly,
This formula also shows that two diagonal matrices of the same order commute. It does not imply that arbitrary upper or lower triangular matrices commute.
There is a second consequence hidden in the same index structure. If and are both lower triangular, then for a diagonal position ,
Indeed, when , the factor is above the diagonal of and is zero; when , the factor is above the diagonal of and is zero. Only can contribute. The same diagonal-entry formula holds for products of upper triangular matrices. This observation will later connect triangular shape with determinants and invertibility.
Finally, the elementary-matrix theorem follows from how matrix multiplication forms rows. The rows of are the standard row vectors. Performing on those rows produces the rows of . When multiplies , the same coefficients form the rows of from the rows of . Checking the three elementary operation types gives respectively a row interchange, a nonzero row scaling, and a row replacement.
Read structure before calculating
Worked example
Identify every applicable matrix family
Consider
The matrix is diagonal because all six off-diagonal entries are zero. It is therefore both upper triangular and lower triangular. It is also symmetric because .
The matrix is upper triangular because its entries with are zero. It is not diagonal, since entries such as above the diagonal are nonzero, and it is not lower triangular for the same reason.
The identity matrix
is an especially important diagonal matrix. Hence it is upper triangular, lower triangular, and symmetric. None of these classifications requires a separate calculation once the defining zero pattern has been read correctly.
Worked example
Transpose a triangular matrix and track its indices
Let
Then
The zero , for example, becomes . In general, every below-diagonal position of becomes the above-diagonal position of . Thus the displayed calculation illustrates the index proof rather than replacing it.
As a quick numerical closure check, take
Then
which is lower triangular. This one example is evidence, while the arbitrary index proof establishes the theorem for every order .
Worked example
Diagonal matrices and an elementary matrix: rows versus columns
Let
The dimensions determine which diagonal matrix can appear on each side: is times , whereas is times . Direct multiplication gives
Left multiplication by a diagonal matrix scales rows: the two diagonal entries of multiply rows 1 and 2. Right multiplication scales columns: the three diagonal entries of multiply columns 1, 2, and 3.
Now form the elementary matrix
obtained from by . Then
The first row is unchanged and the second is , exactly as the elementary left multiplication theorem predicts. Right multiplication by would not even be defined here, because the inner dimensions and do not match.
Consequences and boundary cases
The zero pattern also survives addition and scalar multiplication. If and are lower triangular of order , then for every ,
For any scalar , in the same positions. Thus the sum, difference, and scalar multiple of lower triangular matrices remain lower triangular; the upper triangular and diagonal families have the analogous property. These statements require the matrices being added to have the same dimensions. They are simpler than the multiplication theorem because addition compares matching entries, whereas multiplication mixes an entire row with an entire column.
Closure must not be confused with commutativity. Consider the two upper triangular matrices
Both products remain upper triangular, as the theorem promises, but
Hence . Diagonal matrices commute with one another because their products are computed entry by entry on the diagonal; a diagonal matrix does not necessarily commute with a nondiagonal triangular matrix.
Nor does the theorem cover a product of different triangular types. For
we obtain
which is neither upper nor lower triangular. The closure theorem assumes that both factors belong to the same triangular family; a mixed product must be analysed from its actual entries.
Repeated multiplication gives another immediate consequence. If is upper triangular, then every positive power is upper triangular: start with and apply multiplication closure at each step. The same is true for lower triangular and diagonal matrices. This is an induction argument; it does not say that unrelated operations preserve the same orientation. Transposition, for instance, turns upper triangular shape into lower triangular shape unless the matrix has further restrictions.
Identity and elementary matrices in context
The identity matrix behaves in matrix multiplication as the scalar does in ordinary multiplication, but its order must match the side on which it appears. If is , then
The two identity matrices need not have the same size when . Entrywise, let when and otherwise. Then
This explains why identity matrices occur in inverse problems: a square matrix is invertible precisely when another matrix satisfies . Triangular shape alone does not guarantee invertibility; a triangular matrix with a zero diagonal entry is singular.
Every elementary matrix is invertible because its defining row operation can be undone by another elementary row operation. The detailed construction of all three types, products of several elementary matrices, and their inverses continues in 3.5 Elementary row-operation matrices.
Common mistakes
Common mistake
Using “triangular” as if it meant “diagonal”
Every diagonal matrix is both upper triangular and lower triangular. A matrix that is only upper triangular or only lower triangular may have nonzero entries off the diagonal, so the converse is false.
Common mistake
Testing the wrong side of the diagonal
For an upper triangular matrix, entries with —below the diagonal—must vanish. For a lower triangular matrix, entries with —above the diagonal—must vanish.
Common mistake
Assuming triangular means invertible
A triangular matrix may have zero diagonal entries. Triangular shape by itself does not imply invertibility; the later determinant criterion will require every diagonal entry to be nonzero.
Common mistake
Ignoring dimensions or the side of multiplication
For , the valid identity equations are and . Likewise, left multiplication by an elementary matrix performs a row operation; right multiplication, when defined, acts on columns instead.
Common mistake
Treating an elementary matrix as an arbitrary matrix
An elementary matrix is obtained from an identity matrix by exactly one elementary row operation. A product of several elementary matrices is invertible, but need not itself be elementary.
From matrix shape to algebra
Special matrices turn visible zero patterns into reusable algebra. A diagonal matrix has all off-diagonal entries equal to zero and is therefore both upper and lower triangular. Transposition exchanges the upper and lower triangular families. Multiplication preserves each triangular family: for a lower triangular product, the split or forces one factor in every term above the diagonal to be zero.
Identity matrices preserve compatible matrices on either side, with acting on the rows of an matrix and acting on its columns. Diagonal left and right multipliers scale rows and columns respectively. An elementary matrix goes further by recording one reversible row operation, and left multiplication applies that operation to every column of the target matrix at once.
Quick checks
Checkpoint
Why is every diagonal matrix automatically upper triangular and lower triangular?
Answer by referring to the off-diagonal entries.
Solution · Answer
In a diagonal matrix, every off-diagonal entry is zero. Thus all entries below the diagonal satisfy the upper triangular condition, and all entries above the diagonal satisfy the lower triangular condition.
Checkpoint
What does the identity matrix do when you multiply a compatible matrix by it?
State the effect in words and remember that the order depends on the side.
Solution · Answer
It leaves the matrix unchanged: if is , then and .
Exercises
Checkpoint
Why does the product of two lower triangular matrices remain lower triangular?
Do not multiply every entry. Explain why the entries above the diagonal stay zero.
Solution · Guided solution
For an entry above the diagonal, . In , if , then and ; if , then . Every summand is therefore zero, so every entry above the diagonal of is zero. The same argument works with replaced by any .
Checkpoint
Give one reason the identity matrix belongs to more than one matrix family.
Name at least two families and justify the classification from the entries.
Solution · Guided solution
The identity matrix is diagonal because every off-diagonal entry is zero. Therefore it is also both upper triangular and lower triangular. It is symmetric as well, since .
Related notes
Review 3.3 Transpose, symmetric, and skew-symmetric matrices for the transpose rules used above.
Continue to 3.5 Elementary row-operation matrices for the full algebra of elementary matrices.