Multiplication and Inverse Matrices¶
Matrix Multiplication¶
We discuss four different ways of thinking about the product of two matrices.
If \(A\) is an \(m \times n\) matrix and \(B\) is an \(n \times p\) matrix, then \(C\) is an \(m \times p\) matrix. We use \(c_{ij}\) to denote the entry in row i and column j of matrix \(C\).
Standard (row times column)¶
The standard way of describing a matrix product is to say that \(c_{ij}\) equals the dot product of row i of matrix A and column j of matrix B:
Columns¶
The product of matrix A and column j of matrix B equals column j of matrix C. This tells us that the columns of C are combinations of columns of A.
Rows¶
The product of row i of matrix A and matrix B equals row i of matrix C. So the rows of C are combinations of rows of B.
Column Times Row¶
A column of A is an \(m \times 1\) vector and a row of B is a \(1 \times p\) vector. Their product is a matrix:
The columns of this matrix are multiplies of the column of A and the rows are multiplies of the row of B. If we think of the entries in these rows as the coordinates \((2, 12)\) or \((3, 18)\) or \((4, 24)\), all these points lie on the same line; similarly for the two column vectors. Later we'll see that this is equaivalent to saying that the row space
of this matrix is a single line, as is the column space
.
The product of A and B is the sum of these "column times rows" matrices:
Blocks¶
If we subdivide A and B into blocks that match properly, we can write the product \(AB = C\) in terms of products of the blocks:
Here \(C_1 = A_1B_1 + A_2B_3\)
Inverses¶
Square Matrices¶
If \(A\) is a square matrix, the most important question you can ask it is whether it has an inverse \(A^{-1}\). If it does, then \(A^{-1}A = I = AA^{-1}\) and we say that \(A\) is invertible
or nonsingular
.
If \(A\) is singular
, its determinant is zero and we can find some non-zero vector \(\mathbf{x}\) for which \(A\mathbf{x} = 0\). For example:
In this example, three times the column minus one times the second column equals the zero vector; the two column vectors lie on the same line.
Finding the inverse of a matrix is closely related to solving systems of linear equations:
can be read as saying "A times column j of \(A^{-1}\) equals column j of the identity matrix". This is just a special form of the equation \(A\mathbf{x} =\mathbf{b}\).
Gauss-Jordan Elimination¶
We can use the method of elimination to solve two or more linear equations at the same time. Just augment the matrix with the whole identity matrix \(I\):
Once we have used Gauss's elimination method to convert the origin matrix to upper triangular form, we go on to use Jorden's idea of eliminating entries in the upper right portion of the matrix.
As in the last lecture, we can write the results of the elimination method as the product of a number of elimination matrix \(E_{ij}\) whith the matrix \(A\). Letting \(E\) be the product of all \(E_{ij}\), we write the result of this Guass-Jorden elimination using block matrix \(E [A | I] = [I | E]\). But if \(EA = I\), then \(E = A^{-1}\).