Review of linear algebra#
Terminology#
An ordinary number in
In this text, all vectors are column vectors, and we use
We use capital letters in bold to refer to matrices, and lowercase bold letters for vectors. The bold symbol
To refer to a specific element of a matrix, we use the uppercase name of the matrix without boldface. For instance,
We will have frequent need to refer to the individual columns of a matrix as vectors. We use a lowercase bold version of the matrix name with a subscript to represent the column number. For example,
to emphasize the connection between a matrix and its columns.
The diagonal (more specifically, main diagonal) of an
A diagonal matrix is one whose entries are all zero off the main diagonal. An upper triangular matrix
The transpose of
The adjoint or hermitian of a matrix
Algebra#
Matrices and vectors of the same size may be added elementwise. Multiplication by a scalar is also defined elementwise. These operations obey the familiar laws of commutativity, associativity, and distributivity. The multiplication of two matrices, on the other hand, is less straightforward.
There are two ways for vectors to be multiplied together. If
Trivially, one finds that
Additionally, any two vectors
For real vectors, the complex conjugates above have no effect and
In order for matrices
Note that even if
Matrix multiplication is not commutative, i.e., the order of terms in a product matters to the result.
Matrix multiplication is associative, however:
Hence while we cannot change the ordering of the terms, we can change the order of the operations. This is a property that we will use repeatedly. We also note here the important identity
Specifically, if either product is defined, then they both are defined and equal each other.
Linear combinations#
It is worth reinterpreting (2) at a vector level. If
We say that
Multiplying a matrix on the right by a column vector produces a linear combination of the columns of the matrix.
There is a similar interpretation of multiplying
Multiplying a matrix on the left by a row vector produces a linear combination of the rows of the matrix.
These two observations extend to more general matrix-matrix multiplications. One can show that (assuming that
Equivalently, if we write
A matrix-matrix product is a horizontal concatenation of matrix-vector products involving the columns of the right-hand matrix. Equivalently, a matrix-matrix product is also a vertical concatenation of vector-matrix products involving the rows of the left-hand matrix.
The representations of matrix multiplication are interchangeable; whichever one is most convenient at any moment can be used.
There is also an interpretation, presented in Section 2.4, of matrix products in terms of vector outer products.
Identity and inverse#
The identity matrix of size
Let
Suppose we want to create a zero in the (2,1) entry by adding
We can express this operation as a product
Since the first and third rows of
This can be verified using (2).
Note that a square matrix
If
If
The zero matrix has no inverse. For
Linear systems#
Given a square,
The following facts are usually proved in any elementary text on linear algebra.
The following statements are equivalent:
is nonsingular. . implies that . has a unique solution, , for any -vector .
Exercises#
✍ In racquetball, the winner of a rally serves the next rally. Generally, the server has an advantage. Suppose that when Ashley and Barbara are playing racquetball, Ashley wins 60% of the rallies she serves and Barbara wins 70% of the rallies she serves. If
is such that is the probability that Ashley serves first and is the probability that Barbara serves first, define a matrix such that is a vector of the probabilities that Ashley and Barbara each serve the second rally. What is the meaning of ?✍ Suppose we have lists of
terms and documents. We can define an matrix such that if term appears in document , and otherwise. Now suppose that the term list is"numerical", "analysis", "more", "cool", "accounting"
and that
. Give an interpretation of the product .✍ Let
Show that
when .✍ Find two matrices
and , neither of which is the zero matrix, such that .✍ Prove that when
is defined, is defined too, and use Equation (2) to show that .✍ Show that if
is invertible, then . (This matrix is often just written as .)✍ Prove true, or give a counterexample: The product of upper triangular square matrices is upper triangular.
- 1
The conjugate of a complex number is found by replacing all references to the imaginary unit
by . We do not use complex numbers until the second half of the book.