2 Definitions
An array of numbers, rectangular in shape, is called a matrix . The first matrix below has 3 rows and 2 columns and is said to be a ‘3 by 2’ matrix (written ). The second matrix is a ‘2 by 4’ matrix (written ).
The general matrix can be written
where
denotes the element in row
, column
.
For example in the matrix:
Key Point 1
The General Matrix
A general matrix has rows and columns.
The entries in the matrix are called the elements of .
In matrix the element in row and column is denoted by .
A matrix with only one column is called a column vector (or column matrix ).
For example, and are both column vectors.
A matrix with only one row is called a row vector (or row matrix ). For example is a row vector. Often the entries in a row vector are separated by commas for clarity.
2.1 Square matrices
When the number of rows is the same as the number of columns, i.e. , the matrix is said to be square and of order (or ).
-
In an
square matrix
, the
leading diagonal
(or
principal diagonal
) is the ‘north-west to south-east’ collection of elements
The sum of the elements in the leading diagonal of
is called the
trace
of the matrix, denoted by tr
.
-
A square matrix in which all the elements below the leading diagonal are zero is called an
upper triangular matrix
, often denoted by
.
-
A square matrix in which all the elements above the leading diagonal are zero is called a
lower triangular matrix
, often denoted by
.
-
A square matrix where all the non-zero elements are along the leading diagonal is called a diagonal matrix, often denoted by
.
2.2 Some examples of matrices and their classification
is . It is not square.
is . It is square.
Also, tr does not exist, and tr .
and are both , square and upper triangular.
Also, tr and tr .
and are both , square and lower triangular.
Also, tr and tr .
and are both , square and diagonal.
Also, tr and tr .
Task!
Classify the following matrices (and, where possible, find the trace):
is , is , is and square.
The trace is not defined for or . However, tr .
Task!
Classify the following matrices:
is and square, is lower triangular, is upper triangular and is diagonal.
2.3 Equality of matrices
As we noted earlier, the terms in a matrix are called the elements of the matrix.
We say two matrices , are equal to each other only if and have the same number of rows and the same number of columns and if each element of is equal to the corresponding element of . When this is the case we write . For example if the following two matrices are equal:
then we can conclude that and .
2.4 The unit matrix
The unit matrix or the identity matrix , denoted by (or, often, simply ), is the diagonal matrix of order in which all diagonal elements are 1.
Hence, for example, and .
2.5 The zero matrix
The zero matrix or null matrix is the matrix all of whose elements are zero. There is a zero matrix for every size. For example the and cases are:
Zero matrices, of whatever size, are denoted by .
2.6 The transpose of a matrix
The transpose of a matrix is a matrix where the rows of become the columns of the new matrix and the columns of become its rows. For example
The resulting matrix is called the transposed matrix of and denoted . In the previous example it is clear that is not equal to since the matrices are of different sizes. If is square then will also be .
Example 1
Find the transpose of the matrix
Solution
Interchanging rows with columns we find
Both matrices are but and are clearly different.
When the transpose of a matrix is equal to the original matrix i.e. , then we say that the matrix is symmetric . (This is because it has symmetry about the leading diagonal.)
In Example 1 is not symmetric.
Example 2
Show that the matrix is symmetric.
Solution
Taking the transpose of :
.
Clearly and so is a symmetric matrix. Notice how the leading diagonal acts as a “mirror”; for example and . In general for a symmetric matrix.
Task!
Find the transpose of each of the following matrices. Which are symmetric?