Special square matrices
Diagonal, scalar, identity and zero.
Matrices inside matrices
In the identity matrix, every diagonal entry is 1 and every other entry is 0.
Is the identity matrix also a diagonal matrix?
What this lesson covers
The idea
A diagonal matrix has all non-diagonal elements zero; a scalar matrix is a diagonal matrix with equal diagonal elements; the identity matrix Iₙ has 1s on the diagonal and 0s elsewhere; a zero matrix O has all elements zero.
Matrices inside matrices
In the identity matrix, every diagonal entry is 1 and every other entry is 0.
Is the identity matrix also a diagonal matrix?
- Yes
- No
Build the identity
Select an entry and change it with the buttons. Make this matrix the identity matrix and watch which tags light up on the way.
Special matrices
A diagonal matrix has all non-diagonal entries zero. A scalar matrix is a diagonal matrix with equal diagonal entries. The identity matrix Iₙ has 1s on the diagonal and 0s elsewhere. A zero matrix O has every entry zero.
Every identity matrix is a scalar matrix (with k = 1), and every scalar matrix is a diagonal matrix.
Notes
Diagonal: off-diagonal entries 0. Scalar: diagonal with equal entries. Identity Iₙ: 1s on the diagonal. Zero O: all entries 0.
Check yourself
[[3, 0], [0, 3]] is
[[−1, 0, 0], [0, 2, 0], [0, 0, 3]] is
Must a zero matrix be square?
- the identity matrix. The identity needs 1s on the diagonal.
- not diagonal. Its off-diagonal entries are 0, so it is diagonal.
- a scalar matrix — correct. Yes. Diagonal, with equal diagonal entries 3.
- diagonal but not scalar — correct. Right. The off-diagonal entries are 0, but −1, 2, 3 are not equal.
- scalar. A scalar matrix needs equal diagonal entries.
- the zero matrix. Its diagonal entries are not zero.
- Yes, always. [0, 0] is a 1 × 2 zero matrix.
- No: any order works, e.g. [0, 0] — correct. Right. The book's examples include a 2 × 3 zero matrix.