
A First Course in Linear Algebra
A.G. Hamilton · Study material generated by AI from this edition. Not affiliated with the publisher.

A.G. Hamilton · Study material generated by AI from this edition. Not affiliated with the publisher.
Chapter 4 · pp. 42–53
Some matrices have shapes or properties that make them easy to work with and very useful later on. This chapter introduces zero, identity, diagonal, triangular, symmetric, skew-symmetric, orthogonal and elementary matrices. It also gives the rules for the transpose, including the one that reverses the order of a product.
A zero matrix has every entry equal to 0. It behaves like the number 0: adding it changes nothing, and multiplying by it gives a zero matrix. There are many zero matrices, one for each size, so always check that the sizes fit the calculation (p. 42).
An identity matrix is a square matrix with 1s on the main diagonal (top left to bottom right) and 0s everywhere else. It plays the role of the number 1. There is one identity matrix for each , written , or just when the size is clear. For example,
(p. 42)
The key property is
when is square and has the same size. Each row of has a single 1, so when it multiplies a column of it picks out exactly one entry and leaves unchanged. (p. 42)
A diagonal matrix is a square matrix whose entries off the main diagonal are all 0. The diagonal entries themselves may be anything, including 0. So identity matrices, and even square zero matrices, count as diagonal. Adding or multiplying two diagonal matrices gives another diagonal matrix. For instance, diag(2, 3) times diag(4, 5) is diag(8, 15). (p. 42)
The main diagonal splits a square matrix into two triangles.
(pp. 42–44)
Sums and products of upper triangular matrices are upper triangular. The same holds for lower triangular matrices. For example,
and the answer still has a 0 below the diagonal. (pp. 43–44)
These matrices matter in practice. Applying Gaussian elimination to any square matrix always ends with an upper triangular matrix. (p. 44)
The transpose is the matrix reflected in its main diagonal. Its -entry is , so the rows of are the columns of , and the columns of are the rows of . (p. 44)
A square matrix is symmetric if , meaning the reflection changes nothing. For example,
is symmetric because the two off-diagonal entries match. (pp. 43–44)
Sums stay symmetric. If and are symmetric and the same size, then . (p. 43)
Common mistake: products are not always symmetric. It is tempting to think that if sums of symmetric matrices are symmetric, products must be too. This is wrong. Using the rule for transposing a product (see below), . This usually differs from . Here is a check with two symmetric matrices:
The product has 1 in one off-diagonal position and 3 in the other, so it is not symmetric. (pp. 43–44)
For matrices of suitable sizes:
Reflecting twice returns the original matrix, which explains rule 1. Rule 2 holds because adding entries and then swapping positions gives the same result as swapping first. (p. 46)
Rule 3 is the important one, because the order reverses. Forgetting this is a very common error. The proof compares entries. The -entry of is the -entry of , which is . The -entry of is . These sums are equal. (pp. 45–46)
A matrix is skew-symmetric if . Entries opposite each other across the diagonal must have opposite signs. Each diagonal entry must satisfy , so it must be 0. For example,
is skew-symmetric. (pp. 45–46)
An orthogonal matrix is a square matrix with and . A simple example is
Here . An orthogonal matrix and its transpose are inverses of each other. (pp. 45–46, 48)
An elementary matrix is an identity matrix changed by one elementary row operation. The three kinds of operation give three kinds of matrix:
(p. 47)
The main fact is that multiplying on the left by an elementary matrix does the same thing as applying that row operation directly to . Take as the identity with its first two rows swapped. Then is with its first two rows swapped. If has rows (1, 2, 3), (4, 5, 6), (7, 8, 9), then has rows (4, 5, 6), (1, 2, 3), (7, 8, 9). (pp. 47–48)
This means Gaussian elimination can be written as matrix multiplication. For any square matrix there are elementary matrices , one for each row operation used, such that
is upper triangular. is applied first, so it sits next to . (pp. 48–49)
Every elementary matrix has a partner with , because a second row operation can undo the first. The two matrices are inverses of each other. For example:
(pp. 48–49)