We begin with a lot of definitions.
A matrix is a rectangular grid of numbers with rows and columns.
A square matrix is one which is for some .
A (height ) column vector is an matrix.
A (width ) row vector is a matrix.
is the set of all column vectors with height and real numbers as entries, is the set of all height column vectors with complex numbers as entries.
is the set of all matrices with real number entries.
The zero matrix, written , is the matrix all of whose entries are zero.
is the column vector with all entries 0.
is a column vector, an element of .
is a matrix
is a row vector
is a square matrix.
.
The entry of a matrix means the number in row and column . It is important to get these the correct way round. Usually when you give coordinates, refers to the horizontal direction and refers to the vertical direction. When we talk about the entry of a matrix, however, the first number refers to the row number (i.e. the vertical direction) and the second number refers to the column number (i.e. the horizontal direction).
We often write to mean that is the matrix whose , entry is called . For example, if is then saying means that
If you’re using this notation you must also specify the size of the matrix, of course.
We often talk about the columns and rows of a matrix. If is an matrix
then the th row of means the row vector
and the th column of is the column vector
For example, if
then the first row is and the second column is .
We can add matrices of the same size. If and are the same size, then is defined to be the matrix whose entry is .
In other words, we add matrices by adding corresponding entries. We never add matrices of different sizes.
We also multiply matrices by numbers. This is called scalar multiplication. If is a matrix and a number then means the matrix obtained by multiplying every entry in by , so the entry of is .
These operations have some familiar properties.
If and are numbers and , , and are matrices of the same size,
(commutativity)
(associativity)
(distributivity),
(distributivity), and
. ∎
These can be proved using the usual laws for addition and multiplication of numbers.