Practice
Lesson goal
- recognise a square matrix and its order;
- find the main diagonal and compute the trace;
- recognise diagonal, identity and zero matrices;
- recognise upper and lower triangular matrices.
Square Matrices
Some matrices have a shape, or a pattern of zeros, that makes them far easier to work with than the rest. This lesson names the ones the whole course keeps meeting.
A matrix with as many rows as columns is called square. A square matrix with rows and columns has order .
This matrix is , so it is square of order . A matrix is not square: it has more columns than rows.
Try it
Which of these matrices is square?
The Main Diagonal
The entries whose row index equals their column index — , , and so on — lie on the main diagonal. In a square matrix it runs from the top left corner to the bottom right one.
Here the main diagonal holds , and . The other corner-to-corner line, from the top right to the bottom left, is not the main diagonal.
Try it
Select the entries of the main diagonal of .
The Trace
The trace of a square matrix is the sum of the entries on its main diagonal. It is written .
Try it
Compute .
Diagonal Matrices
A square matrix is diagonal when every entry off the main diagonal is zero. The entries on the diagonal may be anything at all, zero included.
This is diagonal even though one diagonal entry is : the condition is on the entries off the diagonal. It is often written .
Try it
Which matrix is diagonal?
Try it
A diagonal matrix cannot have a zero on its main diagonal.
The Identity Matrix
The identity matrix of order , written or just , is the diagonal matrix whose diagonal entries are all .
Its entries follow one rule: where the row index equals the column index, and everywhere else. Later in this chapter it will turn out to play the part the number plays in multiplication.
Try it
What is the entry in row 2, column 3 of ?
Try it
What is ?
The Zero Matrix
A matrix whose entries are all zero is a zero matrix, written . There is one of every size, square or not.
Try it
A zero matrix must be square.
Triangular Matrices
A square matrix is upper triangular when every entry below the main diagonal is zero, and lower triangular when every entry above it is zero.
In index form, is upper triangular when whenever , and is lower triangular when whenever . The name says where the non-zero entries may live.
Try it
Select every entry of that must be for to be upper triangular.
Try it
What kind of matrix is ?
Try it
A square matrix is both upper triangular and lower triangular. What must it be?
What You Learned
- A matrix is square when it has as many rows as columns; an matrix has order .
- The main diagonal holds , and the trace is their sum.
Final checkpoint
Try it
Compute .
Try it
Which matrix is upper triangular?
Try it
The matrix is diagonal.
Try it
An upper triangular matrix may have non-zero entries below its main diagonal.
Try it
Which matrix is ?
Completion
Lesson complete
Great work! You now know how to:
- recognise a square matrix and its order;
- find the main diagonal and compute the trace;
- recognise diagonal, identity and zero matrices;
- tell upper triangular from lower triangular.