Matrix Arithmetic 矩阵运算 矩阵运算
本页译自 LibreTexts · A First Course in Linear Algebra (Kuttler)「Matrices(矩阵)」第 2 章的 2.1–2.10 节及习题。公式经 MathJax 渲染,自定义宏已注入;正文与译文段段对照。
学习目标 Outcomes
- Perform the matrix operations of matrix addition, scalar multiplication, transposition and matrix multiplication. Identify when these operations are not defined. Represent these operations in terms of the entries of a matrix.
- Prove algebraic properties for matrix addition, scalar multiplication, transposition, and matrix multiplication. Apply these properties to manipulate an algebraic expression involving matrices.
- Compute the inverse of a matrix using row operations, and prove identities involving matrix inverses.
- Solve a linear system using matrix algebra.
- Use multiplication by an elementary matrix to apply row operations.
- Write a matrix as a product of elementary matrices.
- 执行矩阵加法、标量乘法、转置与矩阵乘法等矩阵运算,并判断这些运算在何时无定义,还能用矩阵的各个元来表示这些运算。
- 证明矩阵加法、标量乘法、转置与矩阵乘法的代数性质,并运用这些性质化简要(涉及矩阵的)代数表达式。
- 用初等行运算计算矩阵的逆,并证明涉及矩阵逆的恒等式。
- 利用矩阵代数求解线性方程组。
- 通过乘以初等矩阵来执行初等行运算。
- 把一个矩阵写成若干个初等矩阵的乘积。
You have now solved systems of equations by writing them in terms of an augmented matrix and then doing row operations on this augmented matrix. It turns out that matrices are important not only for systems of equations but also in many applications.
Recall that a matrix is a rectangular array of numbers. Several of them are referred to as matrices. For example, here is a matrix.
Recall that the size or dimension of a matrix is defined as $m\times n$ where $m$ is the number of rows and $n$ is the number of columns. The above matrix is a $3\times 4$ matrix because there are three rows and four columns. You can remember the columns are like columns in a Greek temple. They stand upright while the rows lay flat like rows made by a tractor in a plowed field.
When specifying the size of a matrix, you always list the number of rows before the number of columns.You might remember that you always list the rows before the columns by using the phrase Rowman Catholic.
Consider the following definition.
定义 1:方阵 Square Matrix
A matrix $A$ which has size $n \times n$ is called a square matrix. In other words, $A$ is a square matrix if it has the same number of rows and columns.
There is some notation specific to matrices which we now introduce. We denote the columns of a matrix $A$ by $A_{j}$ as follows $$A = \left[ \begin{array}{rrrr} A_{1} & A_{2} & \cdots & A_{n} \end{array} \right] $$ Therefore, $A_{j}$ is the $j^{th}$ column of $A$, when counted from left to right.
The individual elements of the matrix are called entries or components of $A$. Elements of the matrix are identified according to their position. The $\mathbf{\left( i, j \right)}$-entry of a matrix is the entry in the $i^{th}$ row and $j^{th}$ column. For example, in the matrix the equation above, $8$ is in position $\left(2,3 \right)$ (and is called the $\left(2,3 \right)$-entry) because it is in the second row and the third column.
In order to remember which matrix we are speaking of, we will denote the entry in the $i^{th}$ row and the $j^{th}$ column of matrix $A$ by $a_{ij}$. Then, we can write $A$ in terms of its entries, as $A= \left[ a_{ij} \right]$. Using this notation on the matrix the equation above, $a_{23}=8, a_{32}=-9, a_{12}=2,$ etc.
There are various operations which are done on matrices of appropriate sizes. Matrices can be added to and subtracted from other matrices, multiplied by a scalar, and multiplied by other matrices. We will never divide a matrix by another matrix, but we will see later how matrix inverses play a similar role.
In doing arithmetic with matrices, we often define the action by what happens in terms of the entries (or components) of the matrices. Before looking at these operations in depth, consider a few general definitions.
定义 2:零矩阵 The Zero Matrix
The $m\times n$ zero matrix is the $m\times n$ matrix having every entry equal to zero. It is denoted by $0.$
One possible zero matrix is shown in the following example.
示例 1:零矩阵 The Zero Matrix
The $2\times 3$ zero matrix is $0= \left[ \begin{array}{ccc} 0 & 0 & 0 \\ 0 & 0 & 0 \end{array} \right]$.
Note there is a $2\times 3$ zero matrix, a $3\times 4$ zero matrix, etc. In fact there is a zero matrix for every size!
定义 3:矩阵相等 Equality of Matrices
Let $A$ and $B$ be two $m\times n$ matrices. Then $A=B$ means that for $A=\left[ a_{ij}\right]$ and $B=\left[ b_{ij}\right]$, $a_{ij}=b_{ij}$ for all $1\leq i\leq m$ and $1\leq j\leq n$.
In other words, two matrices are equal exactly when they are the same size and the corresponding entries are identical. Thus $\left[ \begin{array}{rr} 0 & 0 \\ 0 & 0 \\ 0 & 0 \end{array} \right] \neq \left[ \begin{array}{rr} 0 & 0 \\ 0 & 0 \end{array} \right]$ because they are different sizes. Also, $\left[ \begin{array}{rr} 0 & 1 \\ 3 & 2 \end{array} \right] \neq \left[ \begin{array}{rr} 1 & 0 \\ 2 & 3 \end{array} \right]$ because, although they are the same size, their corresponding entries are not identical.
In the following section, we explore addition of matrices.
Addition of Matrices 矩阵的加法
When adding matrices, all matrices in the sum need have the same size. For example, $\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \\ 5 & 2 \end{array} \right]$ and $\left[ \begin{array}{rrr} -1 & 4 & 8 \\ 2 & 8 & 5 \end{array} \right]$ cannot be added, as one has size $3 \times 2$ while the other has size $2 \times 3$.
However, the addition $\left[ \begin{array}{rrr} 4 & 6 & 3 \\ 5 & 0 & 4 \\ 11 & -2 & 3 \end{array} \right] + \left[ \begin{array}{rrr} 0 & 5 & 0 \\ 4 & -4 & 14 \\ 1 & 2 & 6 \end{array} \right]$ is possible.
The formal definition is as follows.
定义 4:矩阵的加法 Addition of Matrices
Let $A=\left[ a_{ij}\right]$ and $B=\left[ b_{ij}\right]$ be two $m\times n$ matrices. Then $A+B=C$ where $C$ is the $m \times n$ matrix $C=\left[ c_{ij}\right]$ defined by $c_{ij}=a_{ij}+b_{ij} $
This definition tells us that when adding matrices, we simply add corresponding entries of the matrices. This is demonstrated in the next example.
示例 2:同大小矩阵的加法 Addition of Matrices of Same Size
Add the following matrices, if possible. $A = \left[ \begin{array}{ccc} 1 & 2 & 3 \\ 1 & 0 & 4 \end{array} \right], B = \left[ \begin{array}{rrr} 5 & 2 & 3 \\ -6 & 2 & 1 \end{array} \right] $
解 Solution
Notice that both $A$ and $B$ are of size $2 \times 3$. Since $A$ and $B$ are of the same size, the addition is possible. Using Definition 4, the addition is done as follows. $A + B = \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 1 & 0 & 4 \end{array} \right] + \left[ \begin{array}{rrr} 5 & 2 & 3 \\ -6 & 2 & 1 \end{array} \right] = \left[ \begin{array}{rrr} 1+5 & 2+2 & 3+3 \\ 1+ -6 & 0+2 & 4+1 \end{array} \right] = \left[ \begin{array}{rrr} 6 & 4 & 6 \\ -5 & 2 & 5 \end{array} \right] $
Addition of matrices obeys very much the same properties as normal addition with numbers. Note that when we write for example $A+B$ then we assume that both matrices are of equal size so that the operation is indeed possible.
命题 1:矩阵加法的性质 Properties of Matrix Addition
Let $A,B$ and $C$ be matrices. Then, the following properties hold.
- Commutative Law of Addition $A+B=B+A$
- Associative Law of Addition $\left( A+B\right) +C=A+\left( B+C\right) $
- Existence of an Additive Identity $A+0=A $
- Existence of an Additive Inverse $ A+\left( -A\right) =0 $
- 加法交换律 $A+B=B+A$
- 加法结合律 $\left( A+B\right) +C=A+\left( B+C\right) $
- 加法单位元的存在性 $A+0=A $
- 加法逆元的存在性 $ A+\left( -A\right) =0 $
Proof
Consider the Commutative Law of Addition given in the equation above. Let $A,B,C,$ and $D$ be matrices such that $A+B=C$ and $B+A=D.$ We want to show that $D=C$. To do so, we will use the definition of matrix addition given in Definition 4. Now, $c_{ij}=a_{ij}+b_{ij}=b_{ij}+a_{ij}=d_{ij} $ Therefore, $C=D$ because the $ij^{th}$ entries are the same for all $i$ and $j$. Note that the conclusion follows from the commutative law of addition of numbers, which says that if $a$ and $b$ are two numbers, then $a+b = b+a$. The proof of the other results are similar, and are left as an exercise.
We call the zero matrix in the equation above the additive identity. Similarly, we call the matrix $-A$ in the equation above the additive inverse. $-A$ is defined to equal $\left( -1\right) A = \left[ -a_{ij}\right]$ In other words, every entry of $A$ is multiplied by $-1$.
In the next section we will study scalar multiplication in more depth to understand what is meant by $\left( -1\right) A.$
Scalar Multiplication of Matrices 矩阵的标量乘法
Recall that we use the word scalar when referring to numbers. Therefore, scalar multiplication of a matrix is the multiplication of a matrix by a number. To illustrate this concept, consider the following example in which a matrix is multiplied by the scalar $3$. $3\left[ \begin{array}{rrrr} 1 & 2 & 3 & 4 \\ 5 & 2 & 8 & 7 \\ 6 & -9 & 1 & 2 \end{array} \right] = \left[ \begin{array}{rrrr} 3 & 6 & 9 & 12 \\ 15 & 6 & 24 & 21 \\ 18 & -27 & 3 & 6 \end{array} \right] $
The new matrix is obtained by multiplying every entry of the original matrix by the given scalar.
The formal definition of scalar multiplication is as follows.
定义 5:矩阵的标量乘法 Scalar Multiplication of Matrices
If $A=\left[ a_{ij}\right]$ and $k$ is a scalar, then $kA=\left[ ka_{ij}\right] .$
Consider the following example.
示例 3:乘以一个标量的效果 Effect of Multiplication by a Scalar
Find the result of multiplying the following matrix $A$ by $7$. $A=\left[ \begin{array}{rr} 2 & 0 \\ 1 & -4 \end{array} \right] $
解 Solution
By Definition 5, we multiply each element of $A$ by $7$. Therefore, $7A = 7\left[ \begin{array}{rr} 2 & 0 \\ 1 & -4 \end{array} \right] = \left[ \begin{array}{rr} 7(2) & 7(0) \\ 7(1) & 7(-4) \end{array} \right] = \left[ \begin{array}{rr} 14 & 0 \\ 7 & -28 \end{array} \right] $
Similarly to addition of matrices, there are several properties of scalar multiplication which hold.
命题 2:标量乘法的性质 Properties of Scalar Multiplication
Let $A, B$ be matrices, and $k, p$ be scalars. Then, the following properties hold.
- Distributive Law over Matrix Addition $k \left( A+B\right) =k A+ kB $
- Distributive Law over Scalar Addition $\left( k +p \right) A= k A+p A $
- Associative Law for Scalar Multiplication $k \left( p A\right) = \left( k p \right) A $
- Rule for Multiplication by $1$ $1A=A $
- 对矩阵加法的分配律 $k \left( A+B\right) =k A+ kB $
- 对标量加法的分配律 $\left( k +p \right) A= k A+p A $
- 标量乘法的结合律 $k \left( p A\right) = \left( k p \right) A $
- 乘以 $1$ 的规则 $1A=A $
Proof
The proof of this proposition is similar to the proof of Proposition 1 and is left an exercise to the reader.
Multiplication of Matrices 矩阵的乘法
The next important matrix operation we will explore is multiplication of matrices. The operation of matrix multiplication is one of the most important and useful of the matrix operations. Throughout this section, we will also demonstrate how matrix multiplication relates to linear systems of equations.
First, we provide a formal definition of row and column vectors.
定义 1:行向量与列向量 Row and Column Vectors
Matrices of size $n\times 1$ or $1\times n$ are called vectors. If $X$ is such a matrix, then we write $x_{i}$ to denote the entry of $X$ in the $i^{th}$ row of a column matrix, or the $i^{th}$ column of a row matrix.
The $n\times 1$ matrix $X=\left[ \begin{array}{c} x_{1} \\ \vdots \\ x_{n} \end{array} \right] $ is called a column vector. The $1\times n$ matrix $X = \left[ \begin{array}{ccc} x_{1} & \cdots & x_{n} \end{array} \right] $ is called a row vector.
We may simply use the term vector throughout this text to refer to either a column or row vector. If we do so, the context will make it clear which we are referring to.
In this chapter, we will again use the notion of linear combination of vectors as in Definition 9.2.2. In this context, a linear combination is a sum consisting of vectors multiplied by scalars. For example, $\left[ \begin{array}{r} 50 \\ 122 \end{array} \right] = 7\left[ \begin{array}{r} 1 \\ 4 \end{array} \right] +8\left[ \begin{array}{r} 2 \\ 5 \end{array} \right] +9\left[ \begin{array}{r} 3 \\ 6 \end{array} \right] $ is a linear combination of three vectors.
It turns out that we can express any system of linear equations as a linear combination of vectors. In fact, the vectors that we will use are just the columns of the corresponding augmented matrix!
定义 2:线性方程组的向量形式 The Vector Form of a System of Linear Equations
Suppose we have a system of equations given by $a_{11}x_{1}+\cdots +a_{1n}x_{n}=b_{1}, \dots, a_{m1}x_{1}+\cdots +a_{mn}x_{n}=b_{m}$. We can express this system in vector form which is as follows: $x_1 \left[ \begin{array}{c} a_{11}\\ a_{21}\\ \vdots \\ a_{m1} \end{array} \right] + x_2 \left[ \begin{array}{c} a_{12}\\ a_{22}\\ \vdots \\ a_{m2} \end{array} \right] + \cdots + x_n \left[ \begin{array}{c} a_{1n}\\ a_{2n}\\ \vdots \\ a_{mn} \end{array} \right] = \left[ \begin{array}{c} b_1\\ b_2\\ \vdots \\ b_m \end{array} \right] $
Notice that each vector used here is one column from the corresponding augmented matrix. There is one vector for each variable in the system, along with the constant vector.
The first important form of matrix multiplication is multiplying a matrix by a vector. Consider the product given by $\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 5 & 6 \end{array} \right] \left[ \begin{array}{r} 7 \\ 8 \\ 9 \end{array} \right] $ We will soon see that this equals $7\left[ \begin{array}{c} 1 \\ 4 \end{array} \right] +8\left[ \begin{array}{c} 2 \\ 5 \end{array} \right] +9\left[ \begin{array}{c} 3 \\ 6 \end{array} \right] =\left[ \begin{array}{c} 50 \\ 122 \end{array} \right] $
In general terms, $\begin{aligned} \left[ \begin{array}{ccc} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \end{array} \right] \left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \end{array} \right] &= x_{1}\left[ \begin{array}{c} a_{11} \\ a_{21} \end{array} \right] +x_{2}\left[ \begin{array}{c} a_{12} \\ a_{22} \end{array} \right] +x_{3}\left[ \begin{array}{c} a_{13} \\ a_{23} \end{array} \right] \\ &=\left[ \begin{array}{c} a_{11}x_{1}+a_{12}x_{2}+a_{13}x_{3} \\ a_{21}x_{1}+a_{22}x_{2}+a_{23}x_{3} \end{array} \right] \end{aligned}$ Thus you take $x_{1}$ times the first column, add to $x_{2}$ times the second column, and finally $x_{3}$ times the third column. The above sum is a linear combination of the columns of the matrix. When you multiply a matrix on the left by a vector on the right, the numbers making up the vector are just the scalars to be used in the linear combination of the columns as illustrated above.
Here is the formal definition of how to multiply an $m\times n$ matrix by an $n\times 1$ column vector.
定义 3:向量与矩阵的乘法 Multiplication of Vector by Matrix
Let $A=\left[ a_{ij} \right]$ be an $m\times n$ matrix and let $X$ be an $n\times 1$ matrix given by $A=\left[ A_{1} \cdots A_{n}\right], X = \left[ \begin{array}{r} x_{1} \\ \vdots \\ x_{n} \end{array} \right] $
Then the product $AX$ is the $m\times 1$ column vector which equals the following linear combination of the columns of $A$: $x_{1}A_{1}+x_{2}A_{2}+\cdots +x_{n}A_{n} = \sum_{j=1}^{n}x_{j}A_{j} $
If we write the columns of $A$ in terms of their entries, they are of the form $A_{j} = \left[ \begin{array}{c} a_{1j} \\ a_{2j} \\ \vdots \\ a_{mj} \end{array} \right] $ Then, we can write the product $AX$ as $AX = x_{1}\left[ \begin{array}{c} a_{11} \\ a_{21} \\ \vdots \\ a_{m1} \end{array} \right] + x_{2}\left[ \begin{array}{c} a_{12} \\ a_{22} \\ \vdots \\ a_{m2} \end{array} \right] +\cdots + x_{n}\left[ \begin{array}{c} a_{1n} \\ a_{2n} \\ \vdots \\ a_{mn} \end{array} \right] $
Note that multiplication of an $m \times n$ matrix and an $n \times 1$ vector produces an $m \times 1$ vector.
Here is an example.
示例 1:用一个矩阵去乘一个向量 A Vector Multiplied by a Matrix
Compute the product $AX$ for $A = \left[ \begin{array}{rrrr} 1 & 2 & 1 & 3 \\ 0 & 2 & 1 & -2 \\ 2 & 1 & 4 & 1 \end{array} \right], X = \left[ \begin{array}{r} 1 \\ 2 \\ 0 \\ 1 \end{array} \right] $
解 Solution
We will use Definition 3 to compute the product. Therefore, we compute the product $AX$ as follows. $\begin{aligned} & 1\left[ \begin{array}{r} 1 \\ 0 \\ 2 \end{array} \right] + 2\left[ \begin{array}{r} 2 \\ 2 \\ 1 \end{array} \right] + 0\left[ \begin{array}{r} 1 \\ 1 \\ 4 \end{array} \right] + 1 \left[ \begin{array}{r} 3 \\ -2 \\ 1 \end{array} \right] \\ &= \left[ \begin{array}{r} 1 \\ 0 \\ 2 \end{array} \right] + \left[ \begin{array}{r} 4 \\ 4 \\ 2 \end{array} \right] + \left[ \begin{array}{r} 0 \\ 0 \\ 0 \end{array} \right] + \left[ \begin{array}{r} 3 \\ -2 \\ 1 \end{array} \right] \\ &= \left[ \begin{array}{r} 8 \\ 2 \\ 5 \end{array} \right]\end{aligned}$
Using the above operation, we can also write a system of linear equations in matrix form. In this form, we express the system as a matrix multiplied by a vector. Consider the following definition.
定义 4:线性方程组的矩阵形式 The Matrix Form of a System of Linear Equations
Suppose we have a system of equations given by $a_{11}x_{1}+\cdots +a_{1n}x_{n}=b_{1}, a_{21}x_{1}+\cdots +a_{2n}x_{n}=b_{2}, \dots, a_{m1}x_{1}+\cdots +a_{mn}x_{n}=b_{m}$. Then we can express this system in matrix form as follows. $\left[ \begin{array}{cccc} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{array} \right] \left[ \begin{array}{c} x_{1} \\ x_{2} \\ \vdots \\ x_{n} \end{array} \right] = \left[ \begin{array}{c} b_{1}\\ b_{2}\\ \vdots \\ b_{m} \end{array} \right] $
The expression $AX=B$ is also known as the Matrix Form of the corresponding system of linear equations. The matrix $A$ is simply the coefficient matrix of the system, the vector $X$ is the column vector constructed from the variables of the system, and finally the vector $B$ is the column vector constructed from the constants of the system. It is important to note that any system of linear equations can be written in this form.
Notice that if we write a homogeneous system of equations in matrix form, it would have the form $AX=0$, for the zero vector $0$.
You can see from this definition that a vector $X = \left[ \begin{array}{c} x_{1} \\ x_{2} \\ \vdots \\ x_{n} \end{array} \right] $ will satisfy the equation $AX=B$ only when the entries $x_{1}, x_{2}, \cdots, x_{n}$ of the vector $X$ are solutions to the original system.
Now that we have examined how to multiply a matrix by a vector, we wish to consider the case where we multiply two matrices of more general sizes, although these sizes still need to be appropriate as we will see. For example, in Example 1, we multiplied a $3 \times 4$ matrix by a $4 \times 1$ vector. We want to investigate how to multiply other sizes of matrices.
We have not yet given any conditions on when matrix multiplication is possible! For matrices $A$ and $B$, in order to form the product $AB$, the number of columns of $A$ must equal the number of rows of $B.$ Consider a product $AB$ where $A$ has size $m\times n$ and $B$ has size $n \times p$. Then, the product in terms of size of matrices is given by $(m\times n)\,(n\times p)=m\times p$
Note the two outside numbers give the size of the product. One of the most important rules regarding matrix multiplication is the following. If the two middle numbers don’t match, you can’t multiply the matrices!
When the number of columns of $A$ equals the number of rows of $B$ the two matrices are said to be conformable and the product $AB$ is obtained as follows.
定义 5:两个矩阵的乘法 Multiplication of Two Matrices
Let $A$ be an $m\times n$ matrix and let $B$ be an $n\times p$ matrix of the form $B=\left[ B_{1} \cdots B_{p}\right] $ where $B_{1},...,B_{p}$ are the $n\times 1$ columns of $B$. Then the $m\times p$ matrix $AB$ is defined as follows: $AB = A \left[ B_{1} \cdots B_{p}\right] = \left[ (A B)_{1} \cdots (AB)_{p}\right] $ where $(AB)_{k}$ is an $m\times 1$ matrix or column vector which gives the $k^{th}$ column of $AB$.
Consider the following example.
示例 2:两个矩阵相乘 Multiplying Two Matrices
Find $AB$ if possible. $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 2 & 1 \end{array} \right], B = \left[ \begin{array}{rrr} 1 & 2 & 0 \\ 0 & 3 & 1 \\ -2 & 1 & 1 \end{array} \right] $
解 Solution
The first thing you need to verify when calculating a product is whether the multiplication is possible. The first matrix has size $2\times 3$ and the second matrix has size $3\times 3$. The inside numbers are equal, so $A$ and $B$ are conformable matrices. According to the above discussion $AB$ will be a $2\times 3$ matrix. Definition 5 gives us a way to calculate each column of $AB$, as follows.
You know how to multiply a matrix times a vector, using Definition 3 for each of the three columns. Thus
Since vectors are simply $n \times 1$ or $1 \times m$ matrices, we can also multiply a vector by another vector.
示例 3:向量乘向量 Vector Times Vector Multiplication
Multiply if possible $\left[ \begin{array}{r} 1 \\ 2 \\ 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & 2 & 1 & 0 \end{array} \right] .$
解 Solution
In this case we are multiplying a matrix of size $3 \times 1$ by a matrix of size $1 \times 4.$ The inside numbers match so the product is defined. Note that the product will be a matrix of size $3 \times 4$. Using Definition 5, we can compute this product as follows
You can use Definition 3 to verify that this product is $\left[ \begin{array}{cccc} 1 & 2 & 1 & 0 \\ 2 & 4 & 2 & 0 \\ 1 & 2 & 1 & 0 \end{array} \right] $
示例 4:一个未定义的乘法 A Multiplication Which is Not Defined
Find $BA$ if possible. $B = \left[ \begin{array}{ccc} 1 & 2 & 0 \\ 0 & 3 & 1 \\ -2 & 1 & 1 \end{array} \right], A = \left[ \begin{array}{ccc} 1 & 2 & 1 \\ 0 & 2 & 1 \end{array} \right] $
解 Solution
First check if it is possible. This product is of the form $\left( 3\times 3\right) \left( 2\times 3\right) .$ The inside numbers do not match and so you can’t do this multiplication.
In this case, we say that the multiplication is not defined. Notice that these are the same matrices which we used in Example 2. In this example, we tried to calculate $BA$ instead of $AB$. This demonstrates another property of matrix multiplication. While the product $AB$ maybe be defined, we cannot assume that the product $BA$ will be possible. Therefore, it is important to always check that the product is defined before carrying out any calculations.
Earlier, we defined the zero matrix $0$ to be the matrix (of appropriate size) containing zeros in all entries. Consider the following example for multiplication by the zero matrix.
示例 5:与零矩阵相乘 Multiplication by the Zero Matrix
Compute the product $A0$ for the matrix $A= \left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right] $ and the $2 \times 2$ zero matrix given by $0= \left[ \begin{array}{rr} 0 & 0 \\ 0 & 0 \end{array} \right] $
解 Solution
In this product, we compute $\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right] \left[ \begin{array}{rr} 0 & 0 \\ 0 & 0 \end{array} \right] = \left[ \begin{array}{rr} 0 & 0 \\ 0 & 0 \end{array} \right] $
Hence, $A0=0$.
Notice that we could also multiply $A$ by the $2 \times 1$ zero vector given by $\left[ \begin{array}{r} 0 \\ 0 \end{array} \right]$. The result would be the $2 \times 1$ zero vector. Therefore, it is always the case that $A0=0$, for an appropriately sized zero matrix or vector.
The $ij^{th}$ Entry of a Product 乘积的 $ij^{th}$ 元
In previous sections, we used the entries of a matrix to describe the action of matrix addition and scalar multiplication. We can also study matrix multiplication using the entries of matrices.
What is the $ij^{th}$ entry of $AB?$ It is the entry in the $i^{th}$ row and the $j^{th}$ column of the product $AB$.
Now if $A$ is $m \times n$ and $B$ is $n \times p$, then we know that the product $AB$ has the form $\left[ \begin{array}{cccc} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{array} \right] \left[ \begin{array}{cccccc} b_{11} & b_{12} & \cdots & b_{1j} & \cdots & b_{1p} \\ b_{21} & b_{22} & \cdots & b_{2j} & \cdots & b_{2p} \\ \vdots & \vdots & & \vdots & & \vdots \\ b_{n1} & b_{n2} & \cdots & b_{nj} & \cdots & b_{np} \end{array} \right] $
The $j^{th}$ column of $AB$ is of the form $\left[ \begin{array}{cccc} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{array} \right] \left[ \begin{array}{c} b_{1j} \\ b_{2j} \\ \vdots \\ b_{nj} \end{array} \right] $ which is an $m\times 1$ column vector. It is calculated by $b_{1j} \left[ \begin{array}{c} a_{11} \\ a_{21} \\ \vdots \\ a_{m1} \end{array} \right] + b_{2j}\left[ \begin{array}{c} a_{12} \\ a_{22} \\ \vdots \\ a_{m2} \end{array} \right] +\cdots + b_{nj}\left[ \begin{array}{c} a_{1n} \\ a_{2n} \\ \vdots \\ a_{mn} \end{array} \right] $
Therefore, the $ij^{th}$ entry is the entry in row $i$ of this vector. This is computed by $a_{i1}b_{1j}+a_{i2}b_{2j}+\cdots + a_{in}b_{nj}=\sum_{k=1}^{n}a_{ik}b_{kj} $
The following is the formal definition for the $ij^{th}$ entry of a product of matrices.
定义 1:乘积的 $ij^{th}$ 元 The $ij^{th}$ Entry of a Product
Let $A=\left[ a_{ij}\right]$ be an $m\times n$ matrix and let $B=\left[ b_{ij}\right]$ be an $n\times p$ matrix. Then $AB$ is an $m\times p$ matrix and the $\left( i, j \right)$-entry of $AB$ is defined as $(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj} $ Another way to write this is $(AB)_{ij}=\left[ \begin{array}{cccc} a_{i1} & a_{i2} & \cdots & a_{in} \end{array} \right] \left[ \begin{array}{c} b_{1j} \\ b_{2j} \\ \vdots \\ b_{nj} \end{array} \right] = a_{i1}b_{1j} + a_{i2}b_{2j} + \cdots + a_{in}b_{nj} $
In other words, to find the $\left( i, j \right)$-entry of the product $AB$, or $(AB)_{ij}$, you multiply the $i^{th}$ row of $A,$ on the left by the $j^{th}$ column of $B$. To express $AB$ in terms of its entries, we write $AB = \left[ (AB)_{ij} \right]$
Consider the following example.
示例 1:乘积的各个元 The Entries of a Product
Compute $AB$ if possible. If it is, find the $\left( 3,2 \right)$-entry of $AB$ using Definition 1. $A = \left[ \begin{array}{cc} 1 & 2 \\ 3 & 1 \\ 2 & 6 \end{array} \right], B = \left[ \begin{array}{ccc} 2 & 3 & 1 \\ 7 & 6 & 2 \end{array} \right] $
解 Solution
First check if the product is possible. It is of the form $\left( 3\times 2\right) \left( 2\times 3\right)$ and since the inside numbers match, it is possible to do the multiplication. The result should be a $3\times 3$ matrix. We can first compute $AB$: $\left[ \left[ \begin{array}{rr} 1 & 2 \\ 3 & 1 \\ 2 & 6 \end{array} \right] \left[ \begin{array}{r} 2 \\ 7 \end{array} \right] ,\left[ \begin{array}{rr} 1 & 2 \\ 3 & 1 \\ 2 & 6 \end{array} \right] \left[ \begin{array}{r} 3 \\ 6 \end{array} \right] ,\left[ \begin{array}{rr} 1 & 2 \\ 3 & 1 \\ 2 & 6 \end{array} \right] \left[ \begin{array}{r} 1 \\ 2 \end{array} \right] \right] $ where the commas separate the columns in the resulting product. Thus the above product equals $\left[ \begin{array}{rrr} 16 & 15 & 5 \\ 13 & 15 & 5 \\ 46 & 42 & 14 \end{array} \right] $ which is a $3\times 3$ matrix as desired. Thus, the $\left( 3,2 \right)$-entry equals 42.
Now using Definition 1, we can find that the $\left( 3,2 \right)$-entry equals $\begin{aligned} \sum_{k=1}^{2}a_{3k}b_{k2} &=a_{31}b_{12}+a_{32}b_{22} \\ &=2\times 3+6\times 6=42\end{aligned}$ Consulting our result for $AB$ above, this is correct!
You may wish to use this method to verify that the rest of the entries in $AB$ are correct.
Here is another example.
示例 2:求乘积的各个元 Finding the Entries of a Product
Determine if the product $AB$ is defined. If it is, find the $\left( 2, 1 \right)$-entry of the product. $A= \left[ \begin{array}{rrr} 2 & 3 & 1 \\ 7 & 6 & 2 \\ 0 & 0 & 0 \end{array} \right], B =\left[ \begin{array}{rr} 1 & 2 \\ 3 & 1 \\ 2 & 6 \end{array} \right] $
解 Solution
This product is of the form $\left( 3\times 3\right) \left( 3\times 2\right)$. The middle numbers match so the matrices are conformable and it is possible to compute the product.
We want to find the $\left( 2, 1 \right)$-entry of $AB$, that is, the entry in the second row and first column of the product. We will use Definition 1, which states $(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj} $ In this case, $n=3$, $i=2$ and $j=1$. Hence the $\left( 2, 1 \right)$-entry is found by computing $(AB)_{21} = \sum_{k=1}^{3}a_{2k}b_{k1} = \left[ \begin{array}{ccc} a_{21} & a_{22} & a_{23} \end{array} \right] \left[ \begin{array}{c} b_{11} \\ b_{21} \\ b_{31} \end{array} \right] $ Substituting in the appropriate values, this product becomes $\left[ \begin{array}{ccc} a_{21} & a_{22} & a_{23} \end{array} \right] \left[ \begin{array}{c} b_{11} \\ b_{21} \\ b_{31} \end{array} \right] = \left[ \begin{array}{ccc} 7 & 6 & 2 \end{array} \right] \left[ \begin{array}{c} 1 \\ 3 \\ 2 \end{array} \right] = 1 \times 7 + 3 \times 6 + 2 \times 2 = 29 $
Hence, $(AB)_{21} = 29$.
You should take a moment to find a few other entries of $AB$. You can multiply the matrices to check that your answers are correct. The product $AB$ is given by $AB = \left[ \begin{array}{cc} 13 & 13 \\ 29 & 32 \\ 0 & 0 \end{array} \right] $
Properties of Matrix Multiplication 矩阵乘法的性质
As pointed out above, it is sometimes possible to multiply matrices in one order but not in the other order. However, even if both $AB$ and $BA$ are defined, they may not be equal.
示例 1:矩阵乘法不满足交换律 Matrix Multiplication is Not Commutative
Compare the products $AB$ and $BA$, for matrices $A = \left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right], B= \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$
解 Solution
First, notice that $A$ and $B$ are both of size $2 \times 2$. Therefore, both products $AB$ and $BA$ are defined. The first product, $AB$ is
The second product, $BA$ is
Therefore, $AB \neq BA$.
This example illustrates that you cannot assume $AB=BA$ even when multiplication is defined in both orders. If for some matrices $A$ and $B$ it is true that $AB=BA$, then we say that $A$ and $B$ commute. This is one important property of matrix multiplication.
The following are other important properties of matrix multiplication. Notice that these properties hold only when the size of matrices are such that the products are defined.
命题 1:矩阵乘法的性质 Properties of Matrix Multiplication
The following hold for matrices $A,B,$ and $C$ and for scalars $r$ and $s$,
Proof
First we will prove the first equation (matrix properties 1). We will use Definition 2.3.1 and prove this statement using the $ij^{th}$ entries of a matrix. Therefore,
Thus $A\left( rB+sC\right) =r(AB)+s(AC) $ as claimed.
The proof of Equation (matrix properties 2) follows the same pattern and is left as an exercise.
Statement (matrix properties 3) is the associative law of multiplication. Using Definition 2.3.1,
This proves matrix properties 3.
The Transpose 转置
Another important operation on matrices is that of taking the transpose. For a matrix $A$, we denote the transpose of $A$ by $A^T$. Before formally defining the transpose, we explore this operation on the following matrix.
What happened? The first column became the first row and the second column became the second row. Thus the $3\times 2$ matrix became a $2\times 3$ matrix. The number $4$ was in the first row and the second column and it ended up in the second row and first column.
The definition of the transpose is as follows.
定义 1:矩阵的转置 The Transpose of a Matrix
Let $A$ be an $m\times n$ matrix. Then $A^{T}$, the transpose of $A$, denotes the $n\times m$ matrix given by
The $\left( i, j \right)$-entry of $A$ becomes the $\left( j,i \right)$-entry of $A^T$.
Consider the following example.
示例 1:矩阵的转置 The Transpose of a Matrix
Calculate $A^T$ for the following matrix
解 Solution
By Definition 1, we know that for $A = \left[ a_{ij} \right]$, $A^T = \left[ a_{ji} \right]$. In other words, we switch the row and column location of each entry. The $\left( 1, 2 \right)$-entry becomes the $\left( 2,1 \right)$-entry.
Thus, $A^T = \left[ \begin{array}{rr} 1 & 3 \\ 2 & 5 \\ -6 & 4 \end{array} \right]$
Notice that $A$ is a $2 \times 3$ matrix, while $A^T$ is a $3 \times 2$ matrix.
The transpose of a matrix has the following important properties.
引理 1:矩阵转置的性质 Properties of the Transpose of a Matrix
Let $A$ be an $m\times n$ matrix, $B$ an $n\times p$ matrix, and $r$ and $s$ scalars. Then
- $\left(A^{T}\right)^{T} = A $
- $\left( AB\right) ^{T}=B^{T}A^{T}$
- $\left( rA+ sB\right) ^{T}=rA^{T}+ sB^{T}$
- $\left(A^{T}\right)^{T} = A $
- $\left( AB\right) ^{T}=B^{T}A^{T}$
- $\left( rA+ sB\right) ^{T}=rA^{T}+ sB^{T}$
Proof
First we prove 2. From Definition 1,
The proof of Formula 3 is left as an exercise.
The transpose of a matrix is related to other important topics. Consider the following definition.
定义 2:对称矩阵与反对称矩阵 Symmetric and Skew Symmetric Matrices
An $n\times n$ matrix $A$ is said to be symmetric if $A=A^{T}.$ It is said to be skew symmetric if $A=-A^{T}.$
We will explore these definitions in the following examples.
示例 2:对称矩阵 Symmetric Matrices
Let
Use Definition 2 to show that $A$ is symmetric.
解 Solution
By Definition 2, we need to show that $A = A^T$. Now, using Definition 1,
Hence, $A = A^{T}$, so $A$ is symmetric.
示例 3:一个反对称矩阵 A Skew Symmetric Matrix
Let
Show that $A$ is skew symmetric.
解 Solution
By Definition 2,
You can see that each entry of $A^T$ is equal to $-1$ times the same entry of $A$. Hence, $A^{T} = - A$ and so by Definition 2, $A$ is skew symmetric.
The Identity and Inverses 单位矩阵与逆矩阵
There is a special matrix, denoted $I$, which is called to as the identity matrix. The identity matrix is always a square matrix, and it has the property that there are ones down the main diagonal and zeroes elsewhere. Here are some identity matrices of various sizes.
The first is the $1\times 1$ identity matrix, the second is the $2\times 2$ identity matrix, and so on. By extension, you can likely see what the $n\times n$ identity matrix would be. When it is necessary to distinguish which size of identity matrix is being discussed, we will use the notation $I_n$ for the $n \times n$ identity matrix.
The identity matrix is so important that there is a special symbol to denote the $ij^{th}$ entry of the identity matrix. This symbol is given by $I_{ij}=\delta _{ij}$ where $\delta _{ij}$ is the Kronecker symbol defined by $\delta _{ij}=\left\{ \begin{array}{c} 1 \text{ if }i=j \\ 0\text{ if }i\neq j \end{array} \right. $
$I_n$ is called the identity matrix because it is a multiplicative identity in the following sense.
引理 1:乘以单位矩阵 Multiplication by the Identity Matrix
Suppose $A$ is an $m\times n$ matrix and $I_{n}$ is the $n\times n$ identity matrix. Then $AI_{n}=A.$ If $I_{m}$ is the $m\times m$ identity matrix, it also follows that $I_{m}A=A.$
Proof
The $(i,j)$-entry of $AI_n$ is given by: $\sum_{k}a_{ik}\delta _{kj}=a_{ij} $ and so $AI_{n}=A.$ The other case is left as an exercise for you.
We now define the matrix operation which in some ways plays the role of division.
定义 1:矩阵的逆 The Inverse of a Matrix
A square $n\times n$ matrix $A$ is said to have an inverse $A^{-1}$ if and only if
In this case, the matrix $A$ is called invertible.
Such a matrix $A^{-1}$ will have the same size as the matrix $A$. It is very important to observe that the inverse of a matrix, if it exists, is unique. Another way to think of this is that if it acts like the inverse, then it $\textbf{is}$ the inverse.
定理 1:逆的唯一性 Uniqueness of Inverse
Suppose $A$ is an $n \times n$ matrix such that an inverse $A^{-1}$ exists. Then there is only one such inverse matrix. That is, given any matrix $B$ such that $AB=BA=I$, $B=A^{-1}$.
Proof
In this proof, it is assumed that $I$ is the $n \times n$ identity matrix. Let $A, B$ be $n \times n$ matrices such that $A^{-1}$ exists and $AB=BA=I$. We want to show that $A^{-1} = B$. Now using properties we have seen, we get:
Hence, $A^{-1} = B$ which tells us that the inverse is unique.
The next example demonstrates how to check the inverse of a matrix.
示例 1:检验一个矩阵的逆 Verifying the Inverse of a Matrix
Let $A=\left[ \begin{array}{rr} 1 & 1 \\ 1 & 2 \end{array} \right] .$ Show $\left[ \begin{array}{rr} 2 & -1 \\ -1 & 1 \end{array} \right]$ is the inverse of $A.$
解 Solution
To check this, multiply $\left[ \begin{array}{rr} 1 & 1 \\ 1 & 2 \end{array} \right] \left[ \begin{array}{rr} 2 & -1 \\ -1 & 1 \end{array} \right] = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right] = I $ and $\left[ \begin{array}{rr} 2 & -1 \\ -1 & 1 \end{array} \right] \left[ \begin{array}{rr} 1 & 1 \\ 1 & 2 \end{array} \right] = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right] = I $ showing that this matrix is indeed the inverse of $A.$
Unlike ordinary multiplication of numbers, it can happen that $A\neq 0$ but $A$ may fail to have an inverse. This is illustrated in the following example.
示例 2:一个没有逆的非零矩阵 A Nonzero Matrix With No Inverse
Let $A=\left[ \begin{array}{rr} 1 & 1 \\ 1 & 1 \end{array} \right] .$ Show that $A$ does not have an inverse.
解 Solution
One might think $A$ would have an inverse because it does not equal zero. However, note that $\left[ \begin{array}{rr} 1 & 1 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{r} -1 \\ 1 \end{array} \right] =\left[ \begin{array}{r} 0 \\ 0 \end{array} \right] $ If $A^{-1}$ existed, we would have the following $\begin{aligned} \left[ \begin{array}{r} 0 \\ 0 \end{array} \right] &= A^{-1}\left( \left[ \begin{array}{r} 0 \\ 0 \end{array} \right] \right) \\ &= A^{-1}\left( A\left[ \begin{array}{r} -1 \\ 1 \end{array} \right] \right) \\ &=\left( A^{-1}A\right) \left[ \begin{array}{r} -1 \\ 1 \end{array} \right] \\ &=I\left[ \begin{array}{r} -1 \\ 1 \end{array} \right] \\ &=\left[ \begin{array}{r} -1 \\ 1 \end{array} \right]\end{aligned}$ This says that $\left[ \begin{array}{r} 0 \\ 0 \end{array} \right] = \left[ \begin{array}{r} -1 \\ 1 \end{array} \right] $ which is impossible! Therefore, $A$ does not have an inverse.
In the next section, we will explore how to find the inverse of a matrix, if it exists.
Finding the Inverse of a Matrix 矩阵的逆的求法
算法 1:矩阵求逆算法 Matrix Inverse Algorithm
Suppose $A$ is an $n\times n$ matrix. To find $A^{-1}$ if it exists, form the augmented $n\times 2n$ matrix $\left[ A\ \middle|\ I \right] $ If possible do row operations until you obtain an $n\times 2n$ matrix of the form $\left[ I\ \middle|\ B \right] $ When this has been done, $B=A^{-1}.$ In this case, we say that $A$ is invertible. If it is impossible to row reduce to a matrix of the form $\left[ I\ \middle|\ B \right] ,$ then $A$ has no inverse.
This algorithm shows how to find the inverse if it exists. It will also tell you if $A$ does not have an inverse.
Consider the following example.
示例 1:求逆 Finding the Inverse
Let $A=\left[ \begin{array}{rrr} 1 & 2 & 2 \\ 1 & 0 & 2 \\ 3 & 1 & -1 \end{array} \right]$. Find $A^{-1}$ if it exists.
解 Solution
Set up the augmented matrix $\left[ A\ \middle|\ I \right] = \left[ \begin{array}{rrr|rrr} 1 & 2 & 2 & 1 & 0 & 0 \\ 1 & 0 & 2 & 0 & 1 & 0 \\ 3 & 1 & -1 & 0 & 0 & 1 \end{array} \right].$
Now we row reduce, with the goal of obtaining the $3 \times 3$ identity matrix on the left hand side. First, take $-1$ times the first row and add to the second followed by $-3$ times the first row added to the third row. This yields $$\left[ \begin{array}{rrr|rrr} 1 & 2 & 2 & 1 & 0 & 0 \\ 0 & -2 & 0 & -1 & 1 & 0 \\ 0 & -5 & -7 & -3 & 0 & 1 \end{array} \right]$$ Then take $5$ times the second row and add to $-2$ times the third row. $$\left[ \begin{array}{rrr|rrr} 1 & 2 & 2 & 1 & 0 & 0 \\ 0 & -10 & 0 & -5 & 5 & 0 \\ 0 & 0 & 14 & 1 & 5 & -2 \end{array} \right]$$ Next take the third row and add to $-7$ times the first row. This yields $$\left[ \begin{array}{rrr|rrr} -7 & -14 & 0 & -6 & 5 & -2 \\ 0 & -10 & 0 & -5 & 5 & 0 \\ 0 & 0 & 14 & 1 & 5 & -2 \end{array} \right]$$ Now take $-\frac{7}{5}$ times the second row and add to the first row. $$\left[ \begin{array}{rrr|rrr} -7 & 0 & 0 & 1 & -2 & -2 \\ 0 & -10 & 0 & -5 & 5 & 0 \\ 0 & 0 & 14 & 1 & 5 & -2 \end{array} \right]$$ Finally divide the first row by $-7$, the second row by $-10$ and the third row by $14$ which yields $$\left[ \begin{array}{rrr|rrr} 1 & 0 & 0 & -\frac{1}{7} & \frac{2}{7} & \frac{2}{7} \\ 0 & 1 & 0 & \frac{1}{2} & -\frac{1}{2} & 0 \\ 0 & 0 & 1 & \frac{1}{14} & \frac{5}{14} & -\frac{1}{7} \end{array} \right]$$ Notice that the left hand side of this matrix is now the $3 \times 3$ identity matrix $I_3$. Therefore, the inverse is the $3 \times 3$ matrix on the right hand side, given by $$\left[ \begin{array}{rrr} -\frac{1}{7} & \frac{2}{7} & \frac{2}{7} \\ \frac{1}{2} & -\frac{1}{2} & 0 \\ \frac{1}{14} & \frac{5}{14} & -\frac{1}{7} \end{array} \right].$$
It may happen that through this algorithm, you discover that the left hand side cannot be row reduced to the identity matrix. Consider the following example of this situation.
示例 2:没有逆的矩阵 A Matrix Which Has No Inverse
Let $A=\left[ \begin{array}{rrr} 1 & 2 & 2 \\ 1 & 0 & 2 \\ 2 & 2 & 4 \end{array} \right]$. Find $A^{-1}$ if it exists.
解 Solution
Write the augmented matrix $\left[ A\ \middle|\ I \right] $ $\left[ \begin{array}{rrr|rrr} 1 & 2 & 2 & 1 & 0 & 0 \\ 1 & 0 & 2 & 0 & 1 & 0 \\ 2 & 2 & 4 & 0 & 0 & 1 \end{array} \right] $ and proceed to do row operations attempting to obtain $\left[ I\ \middle|\ A^{-1} \right] .$ Take $-1$ times the first row and add to the second. Then take $-2$ times the first row and add to the third row. $$\left[ \begin{array}{rrr|rrr} 1 & 2 & 2 & 1 & 0 & 0 \\ 0 & -2 & 0 & -1 & 1 & 0 \\ 0 & -2 & 0 & -2 & 0 & 1 \end{array} \right]$$ Next add $-1$ times the second row to the third row. $$\left[ \begin{array}{rrr|rrr} 1 & 2 & 2 & 1 & 0 & 0 \\ 0 & -2 & 0 & -1 & 1 & 0 \\ 0 & 0 & 0 & -1 & -1 & 1 \end{array} \right]$$ At this point, you can see there will be no way to obtain $I$ on the left side of this augmented matrix. Hence, there is no way to complete this algorithm, and therefore the inverse of $A$ does not exist. In this case, we say that $A$ is not invertible.
If the algorithm provides an inverse for the original matrix, it is always possible to check your answer. To do so, use the method demonstrated in Example 2.6.1. Check that the products $AA^{-1}$ and $A^{-1}A$ both equal the identity matrix. Through this method, you can always be sure that you have calculated $A^{-1}$ properly!
One way in which the inverse of a matrix is useful is to find the solution of a system of linear equations. Recall from Definition 2.2.4 that we can write a system of equations in matrix form, which is of the form $AX=B$. Suppose you find the inverse of the matrix $A^{-1}$. Then you could multiply both sides of this equation on the left by $A^{-1}$ and simplify to obtain $$\begin{array}{c} \left( A^{-1} \right) AX =A^{-1}B \\ \left(A^{-1}A\right) X = A^{-1}B \\ IX = A^{-1}B \\ X = A^{-1}B \end{array}$$ Therefore we can find $X$, the solution to the system, by computing $X=A^{-1}B$. Note that once you have found $A^{-1}$, you can easily get the solution for different right hand sides (different $B$). It is always just $A^{-1}B$.
We will explore this method of finding the solution to a system in the following example.
示例 3:利用逆求解方程组 Using the Inverse to Solve a System of Equations
Consider the following system of equations. Use the inverse of a suitable matrix to give the solutions to this system. $$\begin{array}{c} x+z=1 \\ x-y+z=3 \\ x+y-z=2 \end{array}$$
解 Solution
First, we can write the system of equations in matrix form $AX = \left[ \begin{array}{rrr} 1 & 0 & 1 \\ 1 & -1 & 1 \\ 1 & 1 & -1 \end{array} \right] \left[ \begin{array}{r} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{r} 1 \\ 3 \\ 2 \end{array} \right] = B.$
The inverse of the matrix $A = \left[ \begin{array}{rrr} 1 & 0 & 1 \\ 1 & -1 & 1 \\ 1 & 1 & -1 \end{array} \right] $ is $A^{-1} = \left[ \begin{array}{rrr} 0 & \frac{1}{2} & \frac{1}{2} \\ 1 & -1 & 0 \\ 1 & -\frac{1}{2} & -\frac{1}{2} \end{array} \right].$
Verifying this inverse is left as an exercise.
From here, the solution to the given system is found by $\left[ \begin{array}{r} x \\ y \\ z \end{array} \right] = A^{-1}B = \left[ \begin{array}{rrr} 0 & \frac{1}{2} & \frac{1}{2} \\ 1 & -1 & 0 \\ 1 & -\frac{1}{2} & -\frac{1}{2} \end{array} \right] \left[ \begin{array}{r} 1 \\ 3 \\ 2 \end{array} \right] =\left[ \begin{array}{r} \frac{5}{2} \\ -2 \\ -\frac{3}{2} \end{array} \right].$
What if the right side, $B$, had been $\left[ \begin{array}{r} 0 \\ 1 \\ 3 \end{array} \right]?$ In other words, what would be the solution to $\left[ \begin{array}{rrr} 1 & 0 & 1 \\ 1 & -1 & 1 \\ 1 & 1 & -1 \end{array} \right] \left[ \begin{array}{r} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{r} 0 \\ 1 \\ 3 \end{array} \right]?$ By the above discussion, the solution is given by $\left[ \begin{array}{r} x \\ y \\ z \end{array} \right] = A^{-1}B = \left[ \begin{array}{rrr} 0 & \frac{1}{2} & \frac{1}{2} \\ 1 & -1 & 0 \\ 1 & -\frac{1}{2} & -\frac{1}{2} \end{array} \right] \left[ \begin{array}{r} 0 \\ 1 \\ 3 \end{array} \right] =\left[ \begin{array}{r} 2 \\ -1 \\ -2 \end{array} \right].$ This illustrates that for a system $AX=B$ where $A^{-1}$ exists, it is easy to find the solution when the vector $B$ is changed.
We conclude this section with some important properties of the inverse.
定理 1:转置与乘积的逆 Inverses of Transposes and Products
Let $A, B$, and $A_i$ for $i=1,\ldots,k$ be $n \times n$ matrices.
- If $A$ is an invertible matrix, then $(A^{T})^{-1} = (A^{-1})^{T}$.
- If $A$ and $B$ are invertible matrices, then $AB$ is invertible and $(AB)^{-1} = B^{-1}A^{-1}$.
- If $A_1, A_2, \ldots, A_k$ are invertible, then the product $A_1A_2 \cdots A_k$ is invertible, and $(A_1A_2 \cdots A_k)^{-1} = A_k^{-1}A_{k-1}^{-1} \cdots A_2^{-1}A_1^{-1}$.
- 若 $A$ 是可逆矩阵,则 $(A^{T})^{-1} = (A^{-1})^{T}$。
- 若 $A$ 和 $B$ 都是可逆矩阵,则 $AB$ 可逆,且 $(AB)^{-1} = B^{-1}A^{-1}$。
- 若 $A_1, A_2, \ldots, A_k$ 都可逆,则乘积 $A_1A_2 \cdots A_k$ 可逆,且 $(A_1A_2 \cdots A_k)^{-1} = A_k^{-1}A_{k-1}^{-1} \cdots A_2^{-1}A_1^{-1}$。
定理 2:逆的性质 Properties of the Inverse
Let $A$ be an $n \times n$ matrix and $I$ the usual identity matrix.
- $I$ is invertible and $I^{-1} = I$.
- If $A$ is invertible then so is $A^{-1}$, and $(A^{-1})^{-1} = A$.
- If $A$ is invertible then so is $A^k$, and $(A^k)^{-1} = (A^{-1})^k$.
- If $A$ is invertible and $p$ is a nonzero real number, then $pA$ is invertible and $(pA)^{-1} = \frac{1}{p}A^{-1}$.
- $I$ 可逆,且 $I^{-1} = I$。
- 若 $A$ 可逆,则 $A^{-1}$ 也可逆,且 $(A^{-1})^{-1} = A$。
- 若 $A$ 可逆,则 $A^k$ 也可逆,且 $(A^k)^{-1} = (A^{-1})^k$。
- 若 $A$ 可逆且 $p$ 是非零实数,则 $pA$ 可逆,且 $(pA)^{-1} = \frac{1}{p}A^{-1}$。
Elementary Matrices 初等矩阵
We now turn our attention to a special type of matrix called an elementary matrix. An elementary matrix is always a square matrix. Recall the row operations given in Definition 1.3.2. Any elementary matrix, which we often denote by $E$, is obtained from applying one row operation to the identity matrix of the same size.
For example, the matrix $E = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right] $ is the elementary matrix obtained from switching the two rows. The matrix $E = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 1 \end{array} \right] $ is the elementary matrix obtained from multiplying the second row of the $3 \times 3$ identity matrix by $3$. The matrix $E = \left[ \begin{array}{rr} 1 & 0 \\ -3 & 1 \end{array} \right] $ is the elementary matrix obtained from adding $-3$ times the first row to the third row.
You may construct an elementary matrix from any row operation, but remember that you can only apply one operation.
定义 1:初等矩阵与行运算 Elementary Matrices and Row Operations
Let $E$ be an $n \times n$ matrix. Then $E$ is an elementary matrix if it is the result of applying one row operation to the $n \times n$ identity matrix $I_n$.
Those which involve switching rows of the identity matrix are called permutation matrices.
Therefore, $E$ constructed above by switching the two rows of $I_2$ is called a permutation matrix.
Elementary matrices can be used in place of row operations and therefore are very useful. It turns out that multiplying (on the left hand side) by an elementary matrix $E$ will have the same effect as doing the row operation used to obtain $E$.
The following theorem is an important result which we will use throughout this text.
定理 1:乘以初等矩阵与行运算 Multiplication by an Elementary Matrix and Row Operations
To perform any of the three row operations on a matrix $A$ it suffices to take the product $EA$, where $E$ is the elementary matrix obtained by using the desired row operation on the identity matrix.
Therefore, instead of performing row operations on a matrix $A$, we can row reduce through matrix multiplication with the appropriate elementary matrix. We will examine this theorem in detail for each of the three row operations given in Definition 1.3.2.
First, consider the following lemma.
引理 1:置换矩阵的作用 Action of Permutation Matrix
Let $P^{ij}$ denote the elementary matrix which involves switching the $i^{th}$ and the $j^{th}$ rows. Then $P^{ij}$ is a permutation matrix and $P^{ij}A=B$, where $B$ is obtained from $A$ by switching the $i^{th}$ and the $j^{th}$ rows.
We will explore this idea more in the following example.
示例 1:用初等矩阵交换行 Switching Rows with an Elementary Matrix
Let $P^{12} = \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{array} \right], A = \left[ \begin{array}{cc} a & b \\ g & d \\ e & f \end{array} \right].$
Find $B$ where $B = P^{12}A$.
解 Solution
You can see that the matrix $P^{12}$ is obtained by switching the first and second rows of the $3 \times 3$ identity matrix $I$.
Using our usual procedure, compute the product $P^{12}A = B$. The result is given by $$B =\left[ \begin{array}{cc} g & d \\ a & b \\ e & f \end{array} \right].$$
Notice that $B$ is the matrix obtained by switching rows $1$ and $2$ of $A$. Therefore by multiplying $A$ by $P^{12}$, the row operation which was applied to $I$ to obtain $P^{12}$ is applied to $A$ to obtain $B$.
Theorem 1 applies to all three row operations, and we now look at the row operation of multiplying a row by a scalar. Consider the following lemma.
引理 2:乘以标量与初等矩阵 Multiplication by a Scalar and Elementary Matrices
Let $E\left( k,i\right)$ denote the elementary matrix corresponding to the row operation in which the $i^{th}$ row is multiplied by the nonzero scalar $k.$ Then $$E\left( k,i\right) A=B,$$ where $B$ is obtained from $A$ by multiplying the $i^{th}$ row of $A$ by $k$.
We will explore this lemma further in the following example.
示例 2:用初等矩阵把某行乘以 5 Multiplication of a Row by 5 Using Elementary Matrix
Let $$E \left(5, 2\right) = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 5 & 0 \\ 0 & 0 & 1 \end{array} \right], A = \left[ \begin{array}{cc} a & b \\ c & d \\ e & f \end{array} \right].$$ Find the matrix $B$ where $B = E \left(5, 2\right)A.$
解 Solution
You can see that $E \left(5, 2\right)$ is obtained by multiplying the second row of the identity matrix by $5$.
Using our usual procedure for multiplication of matrices, we can compute the product $E \left(5, 2\right)A$. The resulting matrix is given by $$B =\left[ \begin{array}{cc} a & b \\ 5c & 5d \\ e & f \end{array} \right].$$
Notice that $B$ is obtained by multiplying the second row of $A$ by the scalar $5$.
There is one last row operation to consider. The following lemma discusses the final operation of adding a multiple of a row to another row.
引理 3:把行的倍数相加与初等矩阵 Adding Multiples of Rows and Elementary Matrices
Let $E\left( k \times i+j\right)$ denote the elementary matrix obtained from $I$ by adding $k$ times the $i^{th}$ row to the $j^{th}$. Then $$E\left( k \times i+j\right) A=B,$$ where $B$ is obtained from $A$ by adding $k$ times the $i^{th}$ row to the $j^{th}$ row of $A.$
Consider the following example.
示例 3:把第一行的两倍加到末行 Adding Two Times the First Row to the Last
Let $$E\left( 2 \times 1+3\right) = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 2 & 0 & 1 \end{array} \right], A = \left[ \begin{array}{cc} a & b \\ c & d \\ e & f \end{array} \right].$$ Find $B$ where $B = E\left( 2 \times 1+3\right)A.$
解 Solution
You can see that the matrix $E\left( 2 \times 1+3\right)$ was obtained by adding $2$ times the first row of $I$ to the third row of $I$.
Using our usual procedure, we can compute the product $E\left( 2 \times 1+3\right)A$. The resulting matrix $B$ is given by $B = \left[ \begin{array}{cc} a & b \\ c & d \\ 2a+e & 2b+f \end{array} \right].$
You can see that $B$ is the matrix obtained by adding $2$ times the first row of $A$ to the third row.
Suppose we have applied a row operation to a matrix $A$. Consider the row operation required to return $A$ to its original form, to undo the row operation. It turns out that this action is how we find the inverse of an elementary matrix $E$.
Consider the following theorem.
定理 2:初等矩阵与逆 Elementary Matrices and Inverses
Every elementary matrix is invertible and its inverse is also an elementary matrix.
In fact, the inverse of an elementary matrix is constructed by doing the reverse row operation on $I$. $E^{-1}$ will be obtained by performing the row operation which would carry $E$ back to $I$.
- If $E$ is obtained by switching rows $i$ and $j$, then $E^{-1}$ is also obtained by switching rows $i$ and $j$.
- If $E$ is obtained by multiplying row $i$ by the scalar $k$, then $E^{-1}$ is obtained by multiplying row $i$ by the scalar $\frac{1}{k}$.
- If $E$ is obtained by adding $k$ times row $i$ to row $j$, then $E^{-1}$ is obtained by subtracting $k$ times row $i$ from row $j$.
- 若 $E$ 是通过交换第 $i$ 行与第 $j$ 行得到的,则 $E^{-1}$ 也通过交换第 $i$ 行与第 $j$ 行得到。
- 若 $E$ 是第 $i$ 行乘以标量 $k$ 得到的,则 $E^{-1}$ 是第 $i$ 行乘以标量 $\frac{1}{k}$ 得到的。
- 若 $E$ 是把第 $i$ 行的 $k$ 倍加到第 $j$ 行得到的,则 $E^{-1}$ 是把第 $j$ 行减去第 $i$ 行的 $k$ 倍得到的。
Consider the following example.
示例 4:一个初等矩阵的逆 Inverse of an Elementary Matrix
Let $E = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 2 \end{array} \right].$ Find $E^{-1}$.
解 Solution
Consider the elementary matrix $E$ given by $$E = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 2 \end{array} \right].$$
Here, $E$ is obtained from the $2 \times 2$ identity matrix by multiplying the second row by $2$. In order to carry $E$ back to the identity, we need to multiply the second row of $E$ by $\frac{1}{2}$. Hence, $E^{-1}$ is given by $$E^{-1} = \left[ \begin{array}{rr} 1 & 0 \\ 0 & \frac{1}{2} \end{array} \right].$$
We can verify that $EE^{-1}=I$. Take the product $EE^{-1}$, given by $$EE^{-1} = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 2 \end{array} \right] \left[ \begin{array}{rr} 1 & 0 \\ 0 & \frac{1}{2} \end{array} \right] = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right].$$
This equals $I$ so we know that we have computed $E^{-1}$ properly.
Suppose an $m \times n$ matrix $A$ is row reduced to its reduced row-echelon form. By tracking each row operation completed, this row reduction can be completed through multiplication by elementary matrices.
Consider the following definition.
定义 2:形如 $B=UA$ The Form $B=UA$
Let $A$ be an $m \times n$ matrix and let $B$ be the reduced row-echelon form of $A$. Then we can write $B = UA$ where $U$ is the product of all elementary matrices representing the row operations done to $A$ to obtain $B$.
Consider the following example.
示例 5:形如 $B=UA$ The Form $B=UA$
Let $A = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \\ 2 & 0 \end{array} \right]$. Find $B$, the reduced row-echelon form of $A$ and write it in the form $B=UA$.
解 Solution
To find $B$, row reduce $A$. For each step, we will record the appropriate elementary matrix. First, switch rows $1$ and $2$. $$\left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \\ 2 & 0 \end{array} \right] \rightarrow \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 2 & 0 \end{array} \right]$$
The resulting matrix is equivalent to finding the product of $P^{12} =\left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{array} \right]$ and $A$.
Next, add $-2$ times row $1$ to row $3$. $$\left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 2 & 0 \end{array} \right] \rightarrow \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{array} \right]$$
This is equivalent to multiplying by the matrix $E(-2 \times 1 + 3) = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -2 & 0 & 1 \end{array} \right]$. Notice that the resulting matrix is $B$, the required reduced row-echelon form of $A$.
We can then write $$\begin{aligned} B &= E(-2 \times 1 + 2) \left( P^{12} A \right) \\ &= \left( E(-2 \times 1 + 2) P^{12} \right) A \\ &= U A.\end{aligned}$$
It remains to find the matrix $U$. $$\begin{aligned} U &= E(-2 \times 1 + 2) P^{12} \\ &= \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -2 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{array} \right] \\ &= \left[ \begin{array}{rrr} 0 & 1 & 0\\ 1 & 0 & 0 \\ 0 & -2 & 1 \end{array} \right]\end{aligned}$$
We can verify that $B = UA$ holds for this matrix $U$: $$\begin{aligned} UA &= \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & -2 & 1 \end{array} \right] \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \\ 2 & 0 \end{array} \right] \\ &= \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{array} \right] \\ &= B \end{aligned}$$
While the process used in the above example is reliable and simple when only a few row operations are used, it becomes cumbersome in a case where many row operations are needed to carry $A$ to $B$. The following theorem provides an alternate way to find the matrix $U$.
定理 3:求矩阵 $U$ Finding the Matrix $U$
Let $A$ be an $m \times n$ matrix and let $B$ be its reduced row-echelon form. Then $B = UA$ where $U$ is an invertible $m \times m$ matrix found by forming the matrix $\left[ A \ \middle| \ I_m \right]$ and row reducing to $\left[ B \ \middle| \ U \right]$.
Let's revisit the above example using the process outlined in Theorem 3.
示例 6:再论形如 $B=UA$ The Form $B=UA$, Revisited
Let $A = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \\ 2 & 0 \end{array}\right]$. Using the process outlined in Theorem 3, find $U$ such that $B=UA$.
解 Solution
First, set up the matrix $\left[ A \ \middle| \ I_m \right]$: $\left[ \begin{array}{rr|rrr} 0 & 1 & 1 & 0 & 0 \\ 1 & 0 & 0 & 1 & 0 \\ 2 & 0 & 0 & 0 & 1 \end{array}\right] $ Now, row reduce this matrix until the left side equals the reduced row-echelon form of $A$.
$$\begin{aligned} \left[ \begin{array}{rr|rrr} 0 & 1 & 1 & 0 & 0 \\ 1 & 0 & 0 & 1 & 0 \\ 2 & 0 & 0 & 0 & 1 \end{array}\right] &\rightarrow \left[ \begin{array}{rr|rrr} 1 & 0 & 0 & 1 & 0 \\ 0 & 1 & 1 & 0 & 0 \\ 2 & 0 & 0 & 0 & 1 \end{array}\right] \\ &\rightarrow \left[ \begin{array}{rr|rrr} 1 & 0 & 0 & 1 & 0 \\ 0 & 1 & 1 & 0 & 0 \\ 0 & 0 & 0 & -2 & 1 \end{array}\right]\end{aligned}$$
The left side of this matrix is $B$, and the right side is $U$. Comparing this to the matrix $U$ found above in Example 5, you can see that the same matrix is obtained regardless of which process is used.
Recall from Algorithm 2.7.1 that an $n \times n$ matrix $A$ is invertible if and only if $A$ can be carried to the $n \times n$ identity matrix using the usual row operations. This leads to an important consequence related to the above discussion.
Suppose $A$ is an $n \times n$ invertible matrix. Then, set up the matrix $\left[ A \ \middle| \ I_n \right]$ as done above, and row reduce until it is of the form $\left[ B \ \middle| \ U \right]$. In this case, $B = I_n$ because $A$ is invertible. $$\begin{aligned} B &= UA \\ I_n &=UA \\ U^{-1} &= A \end{aligned}$$
Now suppose that $U = E_1 E_2 \cdots E_k$ where each $E_i$ is an elementary matrix representing a row operation used to carry $A$ to $I$. Then, $$U^{-1} = \left( E_1 E_2 \cdots E_k \right) ^{-1} = E_k^{-1} \cdots E_2^{-1} E_1^{-1}.$$
Remember that if $E_i$ is an elementary matrix, so too is $E_i^{-1}$. It follows that $$\begin{aligned} A&= U^{-1} \\ &= E_k^{-1} \cdots E_2^{-1} E_1^{-1}\end{aligned}$$ and $A$ can be written as a product of elementary matrices.
定理 4:初等矩阵的乘积 Product of Elementary Matrices
Let $A$ be an $n \times n$ matrix. Then $A$ is invertible if and only if it can be written as a product of elementary matrices.
Consider the following example.
示例 7:初等矩阵的乘积 Product of Elementary Matrices
Let $A = \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 1 & 0 \\ 0 & -2 & 1 \end{array} \right]$. Write $A$ as a product of elementary matrices.
解 Solution
We will use the process outlined in Theorem 3 to write $A$ as a product of elementary matrices. We will set up the matrix $\left[ A \ \middle| \ I \right]$ and row reduce, recording each row operation as an elementary matrix.
First: $$\left[ \begin{array}{rrr|rrr} 0 & 1 & 0 & 1 & 0 & 0 \\ 1 & 1 & 0 & 0 & 1 & 0 \\ 0 & -2 & 1 & 0 & 0 & 1 \end{array} \right] \rightarrow \left[ \begin{array}{rrr|rrr} 1 & 1 & 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 1 & 0 & 0 \\ 0 & -2 & 1 & 0 & 0 & 1 \end{array} \right]$$ represented by the elementary matrix $E_1= \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{array} \right]$.
Secondly: $$\left[ \begin{array}{rrr|rrr} 1 & 1 & 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 1 & 0 & 0 \\ 0 & -2 & 1 & 0 & 0 & 1 \end{array} \right] \rightarrow \left[ \begin{array}{rrr|rrr} 1 & 0 & 0 & -1 & 1 & 0 \\ 0 & 1 & 0 & 1 & 0 & 0 \\ 0 & -2 & 1 & 0 & 0 & 1 \end{array} \right]$$ represented by the elementary matrix $E_2 = \left[ \begin{array}{rrr} 1 & -1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right]$.
Finally: $$\left[ \begin{array}{rrr|rrr} 1 & 0& 0 & -1 & 1 & 0 \\ 0 & 1 & 0 & 1 & 0 & 0 \\ 0 & -2 & 1 & 0 & 0 & 1 \end{array} \right] \rightarrow \left[ \begin{array}{rrr|rrr} 1 & 0 & 0 &-1 & 1 & 0\\ 0 & 1 & 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 2 & 0 & 1 \end{array} \right]$$ represented by the elementary matrix $E_3= \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 2 & 1 \end{array} \right]$.
Notice that the reduced row-echelon form of $A$ is $I$. Hence $I = UA$ where $U$ is the product of the above elementary matrices. It follows that $A = U^{-1}$. Since we want to write $A$ as a product of elementary matrices, we wish to express $U^{-1}$ as a product of elementary matrices. $$\begin{aligned} U^{-1} &= \left( E_3 E_2 E_1 \right)^{-1}\\ &= E_1^{-1} E_2^{-1} E_3^{-1} \\ &= \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 1 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & -2 & 1 \end{array} \right] \\ &= A\end{aligned}$$
This gives $A$ written as a product of elementary matrices. By Theorem 4 it follows that $A$ is invertible.
More on Matrix Inverses 关于矩阵逆的更多内容
In this section, we will prove three theorems which will clarify the concept of matrix inverses. In order to do this, first recall some important properties of elementary matrices.
Recall that an elementary matrix is a square matrix obtained by performing an elementary operation on an identity matrix. Each elementary matrix is invertible, and its inverse is also an elementary matrix. If $E$ is an $m \times m$ elementary matrix and $A$ is an $m \times n$ matrix, then the product $EA$ is the result of applying to $A$ the same elementary row operation that was applied to the $m \times m$ identity matrix in order to obtain $E$.
Let $R$ be the reduced row-echelon form of an $m \times n$ matrix $A$. $R$ is obtained by iteratively applying a sequence of elementary row operations to $A$. Denote by $E_1, E_2, \cdots, E_k$ the elementary matrices associated with the elementary row operations which were applied, in order, to the matrix $A$ to obtain the resulting $R$. We then have that $R = \left( E_k \cdots \left( E_2 \left( E_1A \right) \right)\right) = E_k \cdots E_2E_1A$. Let $E$ denote the product matrix $E_k \cdots E_2E_1$ so that we can write $R=EA$ where $E$ is an invertible matrix whose inverse is the product $(E_1)^{-1}(E_2)^{-1} \cdots (E_k)^{-1}$.
Now, we will consider some preliminary lemmas.
引理 1:可逆矩阵与零行 Invertible Matrix and Zeros
Suppose that $A$ and $B$ are matrices such that the product $AB$ is an identity matrix. Then the reduced row-echelon form of $A$ does not have a row of zeros.
证 Proof
Let $R$ be the reduced row-echelon form of $A$. Then $R=EA$ for some invertible square matrix $E$ as described above. By hypothesis $AB=I$ where $I$ is an identity matrix, so we have a chain of equalities $R(BE^{-1}) = (EA)(BE^{-1}) = E(AB)E^{-1} = EIE^{-1} = EE^{-1} = I.$ If $R$ would have a row of zeros, then so would the product $R(BE^{-1})$. But since the identity matrix $I$ does not have a row of zeros, neither can $R$ have one.
We now consider a second important lemma.
引理 2:可逆矩阵的大小 Size of Invertible Matrix
Suppose that $A$ and $B$ are matrices such that the product $AB$ is an identity matrix. Then $A$ has at least as many columns as it has rows.
证 Proof
Let $R$ be the reduced row-echelon form of $A$. By Lemma 1, we know that $R$ does not have a row of zeros, and therefore each row of $R$ has a leading $1$. Since each column of $R$ contains at most one of these leading $1$s, $R$ must have at least as many columns as it has rows.
An important theorem follows from this lemma.
定理 1:可逆矩阵必是方阵 Invertible Matrices are Square
Only square matrices can be invertible.
证 Proof
Suppose that $A$ and $B$ are matrices such that both products $AB$ and $BA$ are identity matrices. We will show that $A$ and $B$ must be square matrices of the same size. Let the matrix $A$ have $m$ rows and $n$ columns, so that $A$ is an $m \times n$ matrix. Since the product $AB$ exists, $B$ must have $n$ rows, and since the product $BA$ exists, $B$ must have $m$ columns so that $B$ is an $n \times m$ matrix. To finish the proof, we need only verify that $m=n$.
We first apply Lemma 2 with $A$ and $B$, to obtain the inequality $m \leq n$. We then apply Lemma 2 again (switching the order of the matrices), to obtain the inequality $n \leq m$. It follows that $m=n$, as we wanted.
Of course, not all square matrices are invertible. In particular, zero matrices are not invertible, along with many other square matrices.
The following proposition will be useful in proving the next theorem.
命题 1:方阵的简化行阶梯形 Reduced Row-Echelon Form of a Square Matrix
If $R$ is the reduced row-echelon form of a square matrix, then either $R$ has a row of zeros or $R$ is an identity matrix.
The proof of this proposition is left as an exercise to the reader. We now consider the second important theorem of this section.
定理 2:矩阵逆的唯一性 Unique Inverse of a Matrix
Suppose $A$ and $B$ are square matrices such that $AB=I$ where $I$ is an identity matrix. Then it follows that $BA=I$. Further, both $A$ and $B$ are invertible and $B=A^{-1}$ and $A=B^{-1}$.
证 Proof
Let $R$ be the reduced row-echelon form of a square matrix $A$. Then, $R=EA$ where $E$ is an invertible matrix. Since $AB=I$, Lemma 1 gives us that $R$ does not have a row of zeros. By noting that $R$ is a square matrix and applying Proposition 1, we see that $R=I$. Hence, $EA=I$.
Using both that $EA=I$ and $AB=I$, we can finish the proof with a chain of equalities as given by $$\begin{aligned} BA = IBIA &= (EA)B(E^{-1}E)A \\ &= E(AB)E^{-1}(EA) \\ &= EIE^{-1}I \\ &= EE^{-1} = I\end{aligned}$$ It follows from the definition of the inverse of a matrix that $B=A^{-1}$ and $A=B^{-1}$.
This theorem is very useful, since with it we need only test one of the products $AB$ or $BA$ in order to check that $B$ is the inverse of $A$. The hypothesis that $A$ and $B$ are square matrices is very important, and without this the theorem does not hold.
We will now consider an example.
示例 1:非方阵 Non Square Matrices
Let $A = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{array} \right],$ Show that $A^{T}A = I$ but $AA^{T} \neq 0$.
解 Solution
Consider the product $A^{T}A$ given by $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \end{array} \right] \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{array} \right] = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right].$ Therefore, $A^{T}A = I_2$, where $I_2$ is the $2 \times 2$ identity matrix. However, the product $AA^{T}$ is $\left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{array} \right] \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 0 \end{array} \right].$ Hence $AA^{T}$ is not the $3 \times 3$ identity matrix. This shows that for Theorem 2, it is essential that both matrices be square and of the same size.
Is it possible to have matrices $A$ and $B$ such that $AB=I$, while $BA=0$? This question is left to the reader to answer, and you should take a moment to consider the answer.
We conclude this section with an important theorem.
定理 3:可逆矩阵的简化行阶梯形 The Reduced Row-Echelon Form of an Invertible Matrix
For any matrix $A$ the following conditions are equivalent:
- $A$ is invertible
- The reduced row-echelon form of $A$ is an identity matrix
- $A$ 是可逆的
- $A$ 的简化行阶梯形是单位矩阵
证 Proof
In order to prove this, we show that for any given matrix $A$, each condition implies the other. We first show that if $A$ is invertible, then its reduced row-echelon form is an identity matrix, then we show that if the reduced row-echelon form of $A$ is an identity matrix, then $A$ is invertible.
If $A$ is invertible, there is some matrix $B$ such that $AB = I$. By Lemma 1, we get that the reduced row-echelon form of $A$ does not have a row of zeros. Then by Theorem 1, it follows that $A$ and the reduced row-echelon form of $A$ are square matrices. Finally, by Proposition 1, this reduced row-echelon form of $A$ must be an identity matrix. This proves the first implication.
Now suppose the reduced row-echelon form of $A$ is an identity matrix $I$. Then $I=EA$ for some product $E$ of elementary matrices. By Theorem 2, we can conclude that $A$ is invertible.
Theorem 3 corresponds to Algorithm 2.7.1, which claims that $A^{-1}$ is found by row reducing the augmented matrix $\left[ A\ \middle|\ I \right]$ to the form $\left[ I\ \middle|\ A^{-1} \right]$. This will be a matrix product $E\left[ A\ \middle|\ I \right]$ where $E$ is a product of elementary matrices. By the rules of matrix multiplication, we have that $E\left[ A\ \middle|\ I \right] = \left[ EA\ \middle|\ EI \right] = \left[ EA\ \middle|\ E \right]$.
It follows that the reduced row-echelon form of $\left[ A\ \middle|\ I \right]$ is $\left[ EA\ \middle|\ E \right]$, where $EA$ gives the reduced row-echelon form of $A$. By Theorem 3, if $EA \neq I$, then $A$ is not invertible, and if $EA=I$, $A$ is invertible. If $EA=I$, then by Theorem 2, $E=A^{-1}$. This proves that Algorithm 2.7.1 does in fact find $A^{-1}$.
LU Factorization LU 分解
An $LU$ factorization of a matrix involves writing the given matrix as the product of a lower triangular matrix $L$ which has the main diagonal consisting entirely of ones, and an upper triangular matrix $U$ in the indicated order. This is the version discussed here but it is sometimes the case that the $L$ has numbers other than 1 down the main diagonal. It is still a useful concept. The $L$ goes with "lower" and the $U$ with "upper".
It turns out many matrices can be written in this way and when this is possible, people get excited about slick ways of solving the system of equations, $AX=B$. It is for this reason that you want to study the $LU$ factorization. It allows you to work only with triangular matrices. It turns out that it takes about half as many operations to obtain an $LU$ factorization as it does to find the row reduced echelon form.
First it should be noted not all matrices have an $LU$ factorization and so we will emphasize the techniques for achieving it rather than formal proofs.
示例 1:没有 $LU$ 分解的矩阵 A Matrix with NO $LU$ factorization
Can you write $\left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$ in the form $LU$ as just described?
解 Solution
To do so you would need $\left[ \begin{array}{rr} 1 & 0 \\ x & 1 \end{array} \right] \left[ \begin{array}{rr} a & b \\ 0 & c \end{array} \right] = \left[ \begin{array}{cc} a & b \\ xa & xb+c \end{array} \right] =\left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right] .$
Therefore, $b=1$ and $a=0.$ Also, from the bottom rows, $xa=1$ which can't happen and have $a=0.$ Therefore, you can't write this matrix in the form $LU$. It has no $LU$ factorization. This is what we mean above by saying the method lacks generality.
Nevertheless the method is often extremely useful, and we will describe below one of the many methods used to produce an $LU$ factorization when possible.
目测求 $LU$ 分解 Finding An $LU$ Factorization By Inspection
Which matrices have an $LU$ factorization? It turns out it is those whose row-echelon form can be achieved without switching rows. In other words matrices which only involve using row operations of type 2 or 3 to obtain the row-echelon form.
示例 2:一个 $LU$ 分解 An $LU$ factorization
Find an $LU$ factorization of $A=\left[ \begin{array}{cccc} 1 & 2 & 0 & 2 \\ 1 & 3 & 2 & 1 \\ 2 & 3 & 4 & 0 \end{array} \right] .$
解 Solution
One way to find the $LU$ factorization is to simply look for it directly. You need $$\left[ \begin{array}{cccc} 1 & 2 & 0 & 2 \\ 1 & 3 & 2 & 1 \\ 2 & 3 & 4 & 0 \end{array} \right] =\left[ \begin{array}{ccc} 1 & 0 & 0 \\ x & 1 & 0 \\ y & z & 1 \end{array} \right] \left[ \begin{array}{cccc} a & d & h & j \\ 0 & b & e & i \\ 0 & 0 & c & f \end{array} \right].$$
Then multiplying these you get $\left[ \begin{array}{cccc} a & d & h & j \\ xa & xd+b & xh+e & xj+i \\ ya & yd+zb & yh+ze+c & yj+iz+f \end{array} \right] $ and so you can now tell what the various quantities equal. From the first column, you need $a=1,x=1,y=2.$ Now go to the second column. You need $d=2,xd+b=3$ so $b=1,yd+zb=3$ so $z=-1.$ From the third column, $h=0,e=2,c=6.$ Now from the fourth column, $j=2,i=-1,f=-5.$ Therefore, an $LU$ factorization is $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 2 & -1 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & 2 & 0 & 2 \\ 0 & 1 & 2 & -1 \\ 0 & 0 & 6 & -5 \end{array} \right] .$ You can check whether you got it right by simply multiplying these two.
$LU$ 分解、乘数法 $LU$ Factorization, Multiplier Method
Remember that for a matrix $A$ to be written in the form $A=LU$, you must be able to reduce it to its row-echelon form without interchanging rows. The following method gives a process for calculating the $LU$ factorization of such a matrix $A$.
示例 3:$LU$ 分解 $LU$ factorization
Find an $LU$ factorization for $\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 3 & 1 \\ -2 & 3 & -2 \end{array} \right].$
解 Solution
Write the matrix as the following product. $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 3 & 1 \\ -2 & 3 & -2 \end{array} \right]$
In the matrix on the right, begin with the left row and zero out the entries below the top using the row operation which involves adding a multiple of a row to another row. You do this and also update the matrix on the left so that the product will be unchanged. Here is the first step. Take $-2$ times the top row and add to the second. Then take $2$ times the top row and add to the second in the matrix on the left. $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 2 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 0 & -1 & -5 \\ -2 & 3 & -2 \end{array} \right] $ The next step is to take $2$ times the top row and add to the bottom in the matrix on the right. To ensure that the product is unchanged, you place a $-2$ in the bottom left in the matrix on the left. Thus the next step yields $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 2 & 1 & 0 \\ -2 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 0 & -1 & -5 \\ 0 & 7 & 4 \end{array} \right] $ Next take $7$ times the middle row on right and add to bottom row. Updating the matrix on the left in a similar manner to what was done earlier, $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 2 & 1 & 0 \\ -2 & -7 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 0 & -1 & -5 \\ 0 & 0 & -31 \end{array} \right] $ At this point, stop. You are done.
The method just described is called the multiplier method.
利用 $LU$ 分解求解方程组 Solving Systems using $LU$ Factorization
One reason people care about the $LU$ factorization is it allows the quick solution of systems of equations. Here is an example.
示例 4:用 $LU$ 分解求解方程 $LU$ factorization to Solve Equations
Suppose you want to find the solutions to $\left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 4 & 3 & 1 & 1 \\ 1 & 2 & 3 & 0 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \\ w \end{array} \right] =\left[ \begin{array}{c} 1 \\ 2 \\ 3 \end{array} \right] .$
解 Solution
Of course one way is to write the augmented matrix and grind away. However, this involves more row operations than the computation of the $LU$ factorization and it turns out that the $LU$ factorization can give the solution quickly. Here is how. The following is an $LU$ factorization for the matrix. $\left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 4 & 3 & 1 & 1 \\ 1 & 2 & 3 & 0 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 4 & 1 & 0 \\ 1 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 0 & -5 & -11 & -7 \\ 0 & 0 & 0 & -2 \end{array} \right] .$
Let $UX=Y$ and consider $LY=B$ where in this case, $B=\left[ 1,2,3\right] ^{T}$. Thus $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 4 & 1 & 0 \\ 1 & 0 & 1 \end{array} \right] \left[ \begin{array}{c} y_1 \\ y_2 \\ y_3 \end{array} \right] =\left[ \begin{array}{c} 1 \\ 2 \\ 3 \end{array} \right] $ which yields very quickly that $Y=\left[ \begin{array}{r} 1 \\ -2 \\ 2 \end{array} \right] .$
Now you can find $X$ by solving $UX=Y$. Thus in this case, $\left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 0 & -5 & -11 & -7 \\ 0 & 0 & 0 & -2 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \\ w \end{array} \right] =\left[ \begin{array}{r} 1 \\ -2 \\ 2 \end{array} \right] $ which yields $X=\left[ \begin{array}{c} -\frac{3}{5}+\frac{7}{5}t \\ \frac{9}{5}-\frac{11}{5}t \\ t \\ -1 \end{array} \right] ,\enspace t\in \mathbb{R}\text{.}$
乘数法的依据 Justification for the Multiplier Method
Why does the multiplier method work for finding the $LU$ factorization? Suppose $A$ is a matrix which has the property that the row-echelon form for $A$ may be achieved without switching rows. Thus every row which is replaced using this row operation in obtaining the row-echelon form may be modified by using a row which is above it.
引理 1:乘数法与三角矩阵 Multiplier Method and Triangular Matrices
Let $L$ be a lower (upper) triangular matrix $m\times m$ which has ones down the main diagonal. Then $L^{-1}$ also is a lower (upper) triangular matrix which has ones down the main diagonal. In the case that $L$ is of the form $$L=\left[ \begin{array}{cccc} 1 & & & \\ a_{1} & 1 & & \\ \vdots & & \ddots & \\ a_{n} & & & 1 \end{array} \right]$$ where all entries are zero except for the left column and main diagonal, it is also the case that $L^{-1}$ is obtained from $L$ by simply multiplying each entry below the main diagonal in $L$ with $-1$. The same is true if the single nonzero column is in another position.
证 Proof
Consider the usual setup for finding the inverse $\left[ \begin{array}{cc} L & I \end{array} \right] .$ Then each row operation done to $L$ to reduce to row reduced echelon form results in changing only the entries in $I$ below the main diagonal. In the special case of $L$ given in the equation above, or when the single nonzero column is in another position, multiplication by $-1$ as described in the lemma clearly results in $L^{-1}$.
For a simple illustration of the last claim, $\left[ \begin{array}{cccccc} 1 & 0 & 0 & 1 & 0 & 0 \\ 0 & 1 & 0 & 0 & 1 & 0 \\ 0 & a & 1 & 0 & 0 & 1 \end{array} \right] \rightarrow \left[ \begin{array}{cccccc} 1 & 0 & 0 & 1 & 0 & 0 \\ 0 & 1 & 0 & 0 & 1 & 0 \\ 0 & 0 & 1 & 0 & -a & 1 \end{array} \right].$
Now let $A$ be an $m\times n$ matrix, say $A=\left[ \begin{array}{cccc} a_{11} & a_{12} & \cdots & a_{1n} \\ a_{21} & a_{22} & \cdots & a_{2n} \\ \vdots & \vdots & & \vdots \\ a_{m1} & a_{m2} & \cdots & a_{mn} \end{array} \right] $ and assume $A$ can be row reduced to an upper triangular form using only row operation 3. Thus, in particular, $a_{11}\neq 0$. Multiply on the left by $E_{1}=\left[ \begin{array}{cccc} 1 & 0 & \cdots & 0 \\ -\frac{a_{21}}{a_{11}} & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ -\frac{a_{m1}}{a_{11}} & 0 & \cdots & 1 \end{array} \right] $ This is the product of elementary matrices which make modifications in the first column only. It is equivalent to taking $-a_{21}/a_{11}$ times the first row and adding to the second. Then taking $-a_{31}/a_{11}$ times the first row and adding to the third and so forth. The quotients in the first column of the above matrix are the multipliers. Thus the result is of the form $E_{1}A=\left[ \begin{array}{cccc} a_{11} & a_{12} & \cdots & a_{1n}^{\prime } \\ 0 & a_{22}^{\prime } & \cdots & a_{2n}^{\prime } \\ \vdots & \vdots & & \vdots \\ 0 & a_{m2}^{\prime } & \cdots & a_{mn}^{\prime } \end{array} \right] $ By assumption, $a_{22}^{\prime }\neq 0$ and so it is possible to use this entry to zero out all the entries below it in the matrix on the right by multiplication by a matrix of the form $E_{2}=\left[ \begin{array}{cc} 1 & \mathbf{0} \\ \mathbf{0} & E \end{array} \right]$ where $E$ is an $(m-1)\times (m-1)$ matrix of the form $E=\left[ \begin{array}{cccc} 1 & 0 & \cdots & 0 \\ -\frac{a_{32}^{\prime }}{a_{22}^{\prime }} & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ -\frac{a_{m2}^{\prime }}{a_{22}^{\prime }} & 0 & \cdots & 1 \end{array} \right] $ Again, the entries in the first column below the 1 are the multipliers. Continuing this way, zeroing out the entries below the diagonal entries, finally leads to $E_{m-1}E_{m-2}\cdots E_{1}A=U $ where $U$ is upper triangular. Each $E_{j}$ has all ones down the main diagonal and is lower triangular. Now multiply both sides by the inverses of the $E_{j}$ in the reverse order. This yields $A=E_{1}^{-1}E_{2}^{-1}\cdots E_{m-1}^{-1}U $ By Lemma 1, this implies that the product of those $E_{j}^{-1}$ is a lower triangular matrix having all ones down the main diagonal.
The above discussion and lemma gives the justification for the multiplier method. The expressions $\frac{-a_{21}}{a_{11}},\frac{-a_{31}}{a_{11}},\cdots, \frac{-a_{m1}}{a_{11}} $ denoted respectively by $M_{21},\cdots ,M_{m1}$ to save notation which were obtained in building $E_{1}$ are the multipliers. Then according to the lemma, to find $E_{1}^{-1}$ you simply write $\left[ \begin{array}{cccc} 1 & 0 & \cdots & 0 \\ -M_{21} & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ -M_{m1} & 0 & \cdots & 1 \end{array} \right] $ Similar considerations apply to the other $E_{j}^{-1}.$ Thus $L$ is a product of the form $\left[ \begin{array}{cccc} 1 & 0 & \cdots & 0 \\ -M_{21} & 1 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ -M_{m1} & 0 & \cdots & 1 \end{array} \right] \cdots \left[ \begin{array}{cccc} 1 & 0 & \cdots & 0 \\ 0 & 1 & \cdots & 0 \\ \vdots & 0 & \ddots & \vdots \\ 0 & \cdots & -M_{m\left[ m-1\right] } & 1 \end{array} \right] $ each factor having at most one nonzero column, the position of which moves from left to right in scanning the above product of matrices from left to right. It follows from what we know about the effect of multiplying on the left by an elementary matrix that the above product is of the form $\left[ \begin{array}{ccccc} 1 & 0 & \cdots & 0 & 0 \\ -M_{21} & 1 & \cdots & 0 & 0 \\ \vdots & -M_{32} & \ddots & \vdots & \vdots \\ -M_{\left[ m-1\right] 1} & \vdots & \cdots & 1 & 0 \\ -M_{m1} & -M_{m2} & \cdots & -M_{m\left[m-1\right]} & 1 \end{array} \right] $
In words, beginning at the left column and moving toward the right, you simply insert, into the corresponding position in the identity matrix, $-1$ times the multiplier which was used to zero out an entry in that position below the main diagonal in $A,$ while retaining the main diagonal which consists entirely of ones. This is $L.$
Exercises 习题
习题 1 Exercise 1
For the following pairs of matrices, determine if the sum $A+B$ is defined. If so, find the sum.
- $A = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right],\ B = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 2 & 1 & 2 \\ 1 & 1 & 0 \end{array} \right],\ B = \left[ \begin{array}{rrr} -1 & 0 & 3 \\ 0 & 1 & 4 \end{array} \right]$
- $A = \left[ \begin{array}{rr} 1 & 0 \\ -2 & 3 \\ 4 & 2 \end{array} \right],\ B = \left[ \begin{array}{rrr} 2 & 7 & -1 \\ 0 & 3 & 4 \end{array} \right]$
- $A = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right],\ B = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 2 & 1 & 2 \\ 1 & 1 & 0 \end{array} \right],\ B = \left[ \begin{array}{rrr} -1 & 0 & 3 \\ 0 & 1 & 4 \end{array} \right]$
- $A = \left[ \begin{array}{rr} 1 & 0 \\ -2 & 3 \\ 4 & 2 \end{array} \right],\ B = \left[ \begin{array}{rrr} 2 & 7 & -1 \\ 0 & 3 & 4 \end{array} \right]$
习题 2 Exercise 2
For each matrix $A$, find the matrix $-A$ such that $A + (-A) = 0$.
- $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
- $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 0 & 1 & 2 \\ 1 & -1 & 3 \\ 4 & 2 & 0 \end{array} \right]$
- $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
- $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 0 & 1 & 2 \\ 1 & -1 & 3 \\ 4 & 2 & 0 \end{array} \right]$
习题 3 Exercise 3
In the context of Proposition 2.1.1, describe $-A$ and $0.$
Answer: To get $-A,$ just replace every entry of $A$ with its additive inverse. The $0$ matrix is the one which has all zeros in it.
2.1.2 矩阵的标量乘法 Scalar Multiplication of Matrices
习题 4 Exercise 4
For each matrix $A$, find the product $(-2)A,\ 0A,$ and $3A.$
- $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
- $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 0 & 1 & 2 \\ 1 & -1 & 3 \\ 4 & 2 & 0 \end{array} \right]$
- $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
- $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 0 & 1 & 2 \\ 1 & -1 & 3 \\ 4 & 2 & 0 \end{array} \right]$
习题 5 Exercise 5
Using only the properties given in Proposition 2.1.1 and Proposition 2.1.2, show $-A$ is unique.
Answer: Suppose $B$ also works. Then $-A=-A+\left( A+B\right) =\left( -A+A\right) +B=0+B=B .$
习题 6 Exercise 6
Using only the properties given in Proposition 2.1.1 and Proposition 2.1.2, show $0$ is unique.
Answer: Suppose $0^{\prime }$ also works. Then $0^{\prime }=0^{\prime }+0=0.$
习题 7 Exercise 7
Using only the properties given in Proposition 2.1.1 and Proposition 2.1.2, show $0A=0.$ Here the $0$ on the left is the scalar $0$ and the $0$ on the right is the zero matrix of appropriate size.
Answer: $0A=\left( 0+0\right) A=0A+0A.$ Now add $-\left( 0A\right)$ to both sides. Then $0=0A.$
习题 8 Exercise 8
Using only the properties given in Proposition 2.1.1 and Proposition 2.1.2, as well as previous problems, show $\left( -1\right) A=-A.$
Answer: $A+\left( -1\right) A=\left( 1+\left( -1\right) \right) A=0A=0.$ Therefore, from the uniqueness of the additive inverse proved in the above Problem 7, it follows that $-A=\left( -1\right) A.$
2.2 矩阵的乘法 Matrix Multiplication
习题 9 Exercise 9
Consider the matrices $A =\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 1 & 7 \end{array} \right],\ B=\left[ \begin{array}{rrr} 3 & -1 & 2 \\ -3 & 2 & 1 \end{array} \right],\ C =\left[ \begin{array}{rr} 1 & 2 \\ 3 & 1 \end{array} \right],\ D=\left[ \begin{array}{rr} -1 & 2 \\ 2 & -3 \end{array} \right],\ E=\left[ \begin{array}{r} 2 \\ 3 \end{array} \right].$
Find the following if possible. If it is not possible, explain why.
- $-3A$
- $3B-A$
- $AC$
- $CB$
- $AE$
- $EA$
- $-3A$
- $3B-A$
- $AC$
- $CB$
- $AE$
- $EA$
Answer:
- $\left[ \begin{array}{rrr} -3 & -6 & -9 \\ -6 & -3 & -21 \end{array} \right]$
- $\left[ \begin{array}{rrr} 8 & -5 & 3 \\ -11 & 5 & -4 \end{array} \right]$
- Not possible
- $\left[ \begin{array}{rrr} -3 & 3 & 4 \\ 6 & -1 & 7 \end{array} \right]$
- Not possible
- Not possible
- $\left[ \begin{array}{rrr} -3 & -6 & -9 \\ -6 & -3 & -21 \end{array} \right]$
- $\left[ \begin{array}{rrr} 8 & -5 & 3 \\ -11 & 5 & -4 \end{array} \right]$
- 不可能。
- $\left[ \begin{array}{rrr} -3 & 3 & 4 \\ 6 & -1 & 7 \end{array} \right]$
- 不可能。
- 不可能。
习题 10 Exercise 10
Consider the matrices $A =\left[ \begin{array}{rr} 1 & 2 \\ 3 & 2 \\ 1 & -1 \end{array} \right],\ B=\left[ \begin{array}{rrr} 2 & -5 & 2 \\ -3 & 2 & 1 \end{array} \right],\ C =\left[ \begin{array}{rr} 1 & 2 \\ 5 & 0 \end{array} \right],\ D=\left[ \begin{array}{rr} -1 & 1 \\ 4 & -3 \end{array} \right],\ E=\left[ \begin{array}{r} 1 \\ 3 \end{array} \right].$
Find the following if possible. If it is not possible, explain why.
- $-3A$
- $3B-A$
- $AC$
- $CA$
- $AE$
- $EA$
- $BE$
- $DE$
- $-3A$
- $3B-A$
- $AC$
- $CA$
- $AE$
- $EA$
- $BE$
- $DE$
Answer:
- $\left[ \begin{array}{rr} -3 & -6 \\ -9 & -6 \\ -3 & 3 \end{array} \right]$
- Not possible.
- $\left[ \begin{array}{rr} 11 & 2 \\ 13 & 6 \\ -4 & 2 \end{array} \right]$
- Not possible.
- $\left[ \begin{array}{r} 7 \\ 9 \\ -2 \end{array} \right]$
- Not possible.
- Not possible.
- $\left[ \begin{array}{r} 2 \\ -5 \end{array} \right]$
- $\left[ \begin{array}{rr} -3 & -6 \\ -9 & -6 \\ -3 & 3 \end{array} \right]$
- 不可能。
- $\left[ \begin{array}{rr} 11 & 2 \\ 13 & 6 \\ -4 & 2 \end{array} \right]$
- 不可能。
- $\left[ \begin{array}{r} 7 \\ 9 \\ -2 \end{array} \right]$
- 不可能。
- 不可能。
- $\left[ \begin{array}{r} 2 \\ -5 \end{array} \right]$
习题 11 Exercise 11
Let $A=\left[ \begin{array}{rr} 1 & 1 \\ -2 & -1 \\ 1 & 2 \end{array} \right],\ B=\left[ \begin{array}{rrr} 1 & -1 & -2 \\ 2 & 1 & -2 \end{array} \right],$ and $C=\left[ \begin{array}{rrr} 1 & 1 & -3 \\ -1 & 2 & 0 \\ -3 & -1 & 0 \end{array} \right].$ Find the following if possible.
- $AB$
- $BA$
- $AC$
- $CA$
- $CB$
- $BC$
- $AB$
- $BA$
- $AC$
- $CA$
- $CB$
- $BC$
Answer:
- $\left[ \begin{array}{rrr} 3 & 0 & -4 \\ -4 & 1 & 6 \\ 5 & 1 & -6 \end{array} \right]$
- $\left[ \begin{array}{rr} 1 & -2 \\ -2 & -3 \end{array} \right]$
- Not possible
- $\left[ \begin{array}{rr} -4 & -6 \\ -5 & -3 \\ -1 & -2 \end{array} \right]$
- $\left[ \begin{array}{rrr} 8 & 1 & -3 \\ 7 & 6 & -6 \end{array} \right]$
- $BC$ is not given.
- $\left[ \begin{array}{rrr} 3 & 0 & -4 \\ -4 & 1 & 6 \\ 5 & 1 & -6 \end{array} \right]$
- $\left[ \begin{array}{rr} 1 & -2 \\ -2 & -3 \end{array} \right]$
- 不可能。
- $\left[ \begin{array}{rr} -4 & -6 \\ -5 & -3 \\ -1 & -2 \end{array} \right]$
- $\left[ \begin{array}{rrr} 8 & 1 & -3 \\ 7 & 6 & -6 \end{array} \right]$
- $BC$ 未给出答案。
习题 12 Exercise 12
Let $A=\left[ \begin{array}{rr} -1 & -1 \\ 3 & 3 \end{array} \right].$ Find all $2\times 2$ matrices $B$ such that $AB=0.$
Answer: $$\begin{aligned} \left[ \begin{array}{rr} -1 & -1 \\ 3 & 3 \end{array} \right] \left[ \begin{array}{cc} x & y \\ z & w \end{array} \right] &=\left[ \begin{array}{cc} -x-z & -w-y \\ 3x+3z & 3w+3y \end{array} \right] \\ &=\left[ \begin{array}{cc} 0 & 0 \\ 0 & 0 \end{array} \right]\end{aligned}$$ Solution is: $w=-y,\ x=-z$ so the matrices are of the form $\left[ \begin{array}{rr} x & y \\ -x & -y \end{array} \right].$
习题 13 Exercise 13
Let $X=\left[ \begin{array}{rrr} -1 & -1 & 1 \end{array} \right]$ and $Y=\left[ \begin{array}{rrr} 0 & 1 & 2 \end{array} \right].$ Find $X^{T}Y$ and $XY^{T}$ if possible.
Answer: $$X^{T}Y = \left[ \begin{array}{rrr} 0 & -1 & -2 \\ 0 & -1 & -2 \\ 0 & 1 & 2 \end{array} \right],\ XY^{T} = 1.$$
习题 14 Exercise 14
Let $A=\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right],\ B=\left[ \begin{array}{rr} 1 & 2 \\ 3 & k \end{array} \right].$ Is it possible to choose $k$ such that $AB=BA?$ If so, what should $k$ equal?
Answer: $$\begin{aligned} \left[ \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array} \right] \left[ \begin{array}{cc} 1 & 2 \\ 3 & k \end{array} \right] &= \left[ \begin{array}{cc} 7 & 2k+2 \\ 15 & 4k+6 \end{array} \right] \\ \left[ \begin{array}{cc} 1 & 2 \\ 3 & k \end{array} \right] \left[ \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array} \right] &= \left[ \begin{array}{cc} 7 & 10 \\ 3k+3 & 4k+6 \end{array} \right]\end{aligned}$$ Thus you must have $\begin{array}{c} 3k+3=15 \\ 2k+2=10 \end{array}$, Solution is: $k=4.$
习题 15 Exercise 15
Let $A=\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right],\ B=\left[ \begin{array}{rr} 1 & 2 \\ 1 & k \end{array} \right].$ Is it possible to choose $k$ such that $AB=BA?$ If so, what should $k$ equal?
Answer: $$\begin{aligned} \left[ \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array} \right] \left[ \begin{array}{cc} 1 & 2 \\ 1 & k \end{array} \right] &= \left[ \begin{array}{cc} 3 & 2k+2 \\ 7 & 4k+6 \end{array} \right],\ \ \left[ \begin{array}{cc} 1 & 2 \\ 1 & k \end{array} \right] \left[ \begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array} \right] &= \left[ \begin{array}{cc} 7 & 10 \\ 3k+1 & 4k+2 \end{array} \right]\end{aligned}$$ However, $7\neq 3$ and so there is no possible choice of $k$ which will make these matrices commute.
习题 16 Exercise 16
Find $2\times 2$ matrices $A$, $B,$ and $C$ such that $A\neq 0,\ C\neq B,$ but $AC=AB.$
Answer: Let $A=\left[\begin{array}{cc}1&-1 \\ -1&1\end{array}\right],\ B=\left[\begin{array}{cc}1&1 \\ 1&1\end{array}\right],\ C=\left[\begin{array}{cc}2&2 \\ 2&2\end{array}\right].$ $$\begin{aligned}\left[\begin{array}{cc}1&-1 \\ -1&1\end{array}\right]\left[\begin{array}{cc}1&1 \\ 1&1\end{array}\right]&=\left[\begin{array}{cc}0&0 \\ 0&0\end{array}\right] \\ \left[\begin{array}{cc}1&-1 \\ -1&1\end{array}\right]\left[\begin{array}{cc}2&2 \\ 2&2\end{array}\right]&=\left[\begin{array}{cc}0&0 \\ 0&0\end{array}\right]\end{aligned}$$
习题 17 Exercise 17
Give an example of matrices (of any size), $A,B,C$ such that $B\neq C$, $A\neq 0,$ and yet $AB=AC.$
习题 18 Exercise 18
Find $2 \times 2$ matrices $A$ and $B$ such that $A \neq 0$ and $B \neq 0$ but $AB = 0$.
Answer: Let $A=\left[\begin{array}{cc}1&-1 \\ -1&1\end{array}\right],\ B=\left[\begin{array}{cc}1&1 \\ 1&1\end{array}\right].$ $\left[\begin{array}{cc}1&-1 \\ -1&1\end{array}\right]\left[\begin{array}{cc}1&1 \\ 1&1\end{array}\right]=\left[\begin{array}{cc}0&0 \\ 0&0\end{array}\right]$
习题 19 Exercise 19
Give an example of matrices (of any size), $A,B$ such that $A \neq 0$ and $B \neq 0$ but $AB=0.$
习题 20 Exercise 20
Find $2 \times 2$ matrices $A$ and $B$ such that $A \neq 0$ and $B \neq 0$ with $AB \neq BA$.
Answer: Let $A=\left[\begin{array}{cc}0&1 \\ 1&0\end{array}\right],\ B=\left[\begin{array}{cc}1&2 \\ 3&4\end{array}\right].$ $$\begin{aligned}\left[\begin{array}{cc}0&1 \\ 1&0\end{array}\right]\left[\begin{array}{cc}1&2 \\ 3&4\end{array}\right]&=\left[\begin{array}{cc}3&4 \\ 1&2\end{array}\right] \\ \left[\begin{array}{cc}1&2 \\ 3&4\end{array}\right]\left[\begin{array}{cc}0&1 \\ 1&0\end{array}\right]&=\left[\begin{array}{cc}2&1 \\ 4&3\end{array}\right]\end{aligned}$$
习题 21 Exercise 21
Write the system $\begin{array}{c} x_{1}-x_{2}+2x_{3} \\ 2x_{3}+x_{1} \\ 3x_{3} \\ 3x_{4}+3x_{2}+x_{1} \end{array}$ in the form $A\left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \\ x_{4} \end{array} \right]$ where $A$ is an appropriate matrix.
Answer: $$A=\left[ \begin{array}{rrrr} 1 & -1 & 2 & 0 \\ 1 & 0 & 2 & 0 \\ 0 & 0 & 3 & 0 \\ 1 & 3 & 0 & 3 \end{array} \right]$$
习题 22 Exercise 22
Write the system $\begin{array}{c} x_{1}+3x_{2}+2x_{3} \\ 2x_{3}+x_{1} \\ 6x_{3} \\ x_{4}+3x_{2}+x_{1} \end{array}$ in the form $A\left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \\ x_{4} \end{array} \right]$ where $A$ is an appropriate matrix.
Answer: $$A=\left[ \begin{array}{rrrr} 1 & 3 & 2 & 0 \\ 1 & 0 & 2 & 0 \\ 0 & 0 & 6 & 0 \\ 1 & 3 & 0 & 1 \end{array} \right]$$
习题 23 Exercise 23
Write the system $\begin{array}{c} x_{1}+x_{2}+x_{3} \\ 2x_{3}+x_{1}+x_{2} \\ x_{3}-x_{1} \\ 3x_{4}+x_{1} \end{array}$ in the form $A\left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \\ x_{4} \end{array} \right]$ where $A$ is an appropriate matrix.
Answer: $$A=\left[ \begin{array}{rrrr} 1 & 1 & 1 & 0 \\ 1 & 1 & 2 & 0 \\ -1 & 0 & 1 & 0 \\ 1 & 0 & 0 & 3 \end{array} \right]$$
习题 24 Exercise 24
A matrix $A$ is called idempotent if $A^{2}=A.$ Let $A= \left[ \begin{array}{rrr} 2 & 0 & 2 \\ 1 & 1 & 2 \\ -1 & 0 & -1 \end{array} \right]$ and show that $A$ is idempotent.
2.3 矩阵乘积的元 The Entries of a Product
习题 25 Exercise 25
For each pair of matrices, find the $(1,2)$-entry and the $(2,3)$-entry of the product $AB$.
- $A = \left[ \begin{array}{rrr} 1 & 2 & -1 \\ 3 & 4 & 0 \\ 2 & 5 & 1 \end{array} \right],\ B = \left[ \begin{array}{rrr} 4 & 6 & -2 \\ 7 & 2 & 1 \\ -1 & 0 & 0 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 1 & 3 & 1 \\ 0 & 2 & 4 \\ 1 & 0 & 5 \end{array} \right],\ B = \left[ \begin{array}{rrr} 2 & 3 & 0 \\ -4 & 16 & 1 \\ 0 & 2 & 2 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 1 & 2 & -1 \\ 3 & 4 & 0 \\ 2 & 5 & 1 \end{array} \right],\ B = \left[ \begin{array}{rrr} 4 & 6 & -2 \\ 7 & 2 & 1 \\ -1 & 0 & 0 \end{array} \right]$
- $A = \left[ \begin{array}{rrr} 1 & 3 & 1 \\ 0 & 2 & 4 \\ 1 & 0 & 5 \end{array} \right],\ B = \left[ \begin{array}{rrr} 2 & 3 & 0 \\ -4 & 16 & 1 \\ 0 & 2 & 2 \end{array} \right]$
2.4 矩阵乘法的性质 Properties of Matrix Multiplication
习题 26 Exercise 26
Suppose $A$ and $B$ are square matrices of the same size. Which of the following are necessarily true?
- $\left( A-B\right) ^{2}=A^{2}-2AB+B^{2}$
- $\left( AB\right) ^{2}=A^{2}B^{2}$
- $\left( A+B\right) ^{2}=A^{2}+2AB+B^{2}$
- $\left( A+B\right) ^{2}=A^{2}+AB+BA+B^{2}$
- $A^{2}B^{2}=A\left( AB\right) B$
- $\left( A+B\right) ^{3}=A^{3}+3A^{2}B+3AB^{2}+B^{3}$
- $\left( A+B\right) \left( A-B\right) =A^{2}-B^{2}$
- $\left( A-B\right) ^{2}=A^{2}-2AB+B^{2}$
- $\left( AB\right) ^{2}=A^{2}B^{2}$
- $\left( A+B\right) ^{2}=A^{2}+2AB+B^{2}$
- $\left( A+B\right) ^{2}=A^{2}+AB+BA+B^{2}$
- $A^{2}B^{2}=A\left( AB\right) B$
- $\left( A+B\right) ^{3}=A^{3}+3A^{2}B+3AB^{2}+B^{3}$
- $\left( A+B\right) \left( A-B\right) =A^{2}-B^{2}$
Answer:
- Not necessarily true.
- Not necessarily true.
- Not necessarily true.
- Necessarily true.
- Necessarily true.
- Not necessarily true.
- Not necessarily true.
- 不一定成立。
- 不一定成立。
- 不一定成立。
- 必然成立。
- 必然成立。
- 不一定成立。
- 不一定成立。
2.5 转置 The Transpose
习题 27 Exercise 27
Consider the matrices $A =\left[ \begin{array}{rr} 1 & 2 \\ 3 & 2 \\ 1 & -1 \end{array} \right],\ B=\left[ \begin{array}{rrr} 2 & -5 & 2 \\ -3 & 2 & 1 \end{array} \right],\ C =\left[ \begin{array}{rr} 1 & 2 \\ 5 & 0 \end{array} \right],\ D=\left[ \begin{array}{rr} -1 & 1 \\ 4 & -3 \end{array} \right],\ E=\left[ \begin{array}{r} 1 \\ 3 \end{array} \right].$
Find the following if possible. If it is not possible, explain why.
- $-3A^{T}$
- $3B - A^{T}$
- $E^{T}B$
- $EE^{T}$
- $B^{T}B$
- $CA^{T}$
- $D^{T}BE$
- $-3A^{T}$
- $3B - A^{T}$
- $E^{T}B$
- $EE^{T}$
- $B^{T}B$
- $CA^{T}$
- $D^{T}BE$
Answer:
- $\left[ \begin{array}{rrr} -3 & -9 & -3 \\ -6 & -6 & 3 \end{array} \right]$
- $\left[ \begin{array}{rrr} 5 & -18 & 5 \\ -11 & 4 & 4 \end{array} \right]$
- $\left[ \begin{array}{rrr} -7 & 1 & 5 \end{array} \right]$
- $\left[ \begin{array}{rr} 1 & 3 \\ 3 & 9 \end{array} \right]$
- $\left[ \begin{array}{rrr} 13 & -16 & 1 \\ -16 & 29 & -8 \\ 1 & -8 & 5 \end{array} \right]$
- $\left[ \begin{array}{rrr} 5 & 7 & -1 \\ 5 & 15 & 5 \end{array} \right]$
- Not possible.
- $\left[ \begin{array}{rrr} -3 & -9 & -3 \\ -6 & -6 & 3 \end{array} \right]$
- $\left[ \begin{array}{rrr} 5 & -18 & 5 \\ -11 & 4 & 4 \end{array} \right]$
- $\left[ \begin{array}{rrr} -7 & 1 & 5 \end{array} \right]$
- $\left[ \begin{array}{rr} 1 & 3 \\ 3 & 9 \end{array} \right]$
- $\left[ \begin{array}{rrr} 13 & -16 & 1 \\ -16 & 29 & -8 \\ 1 & -8 & 5 \end{array} \right]$
- $\left[ \begin{array}{rrr} 5 & 7 & -1 \\ 5 & 15 & 5 \end{array} \right]$
- 不可能。
习题 28 Exercise 28
Let $A$ be an $n\times n$ matrix. Show $A$ equals the sum of a symmetric and a skew symmetric matrix.
Hint: Show that $\frac{1}{2}\left( A^{T}+A\right)$ is symmetric and then consider using this as one of the matrices.
习题 29 Exercise 29
Show that the main diagonal of every skew symmetric matrix consists of only zeros. Recall that the main diagonal consists of every entry of the matrix which is of the form $a_{ii}$.
Answer: If $A$ is skew symmetric then $A=-A^{T}.$ It follows that $a_{ii}=-a_{ii}$ and so each $a_{ii}=0$.
习题 30 Exercise 30
Prove 3 from Lemma 2.5.1. That is, show that for an $m \times n$ matrix $A$, an $m \times n$ matrix $B$, and scalars $r, s$, the following holds: $\left( rA + sB \right) ^{T} = rA^{T} + sB^{T} .$
2.6 单位矩阵与逆 The Identity and the Inverse
习题 31 Exercise 31
Prove that $I_{m}A=A$ where $A$ is an $m\times n$ matrix.
Answer: $$\left( I_{m}A\right) _{ij}\equiv \sum_{j}\delta _{ik}A_{kj}=A_{ij}$$
习题 32 Exercise 32
Suppose $AB=AC$ and $A$ is an invertible $n\times n$ matrix. Does it follow that $B=C?$ Explain why or why not.
Answer: Yes $B=C$. Multiply $AB = AC$ on the left by $A^{-1}$.
习题 33 Exercise 33
Suppose $AB=AC$ and $A$ is a non invertible $n\times n$ matrix. Does it follow that $B=C$? Explain why or why not.
习题 34 Exercise 34
Give an example of a matrix $A$ such that $A^{2}=I$ and yet $A\neq I$ and $A\neq -I.$
Answer: $$A = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 1 \end{array} \right]$$
2.7 求逆 Finding the Inverse
习题 35 Exercise 35
Let $A=\left[ \begin{array}{rr} 2 & 1 \\ -1 & 3 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{rr} 2 & 1 \\ -1 & 3 \end{array} \right]^{-1}= \left[ \begin{array}{rr} \frac{3}{7} & -\frac{1}{7} \\ \frac{1}{7} & \frac{2}{7} \end{array} \right]$$
习题 36 Exercise 36
Let $A=\left[ \begin{array}{rr} 0 & 1 \\ 5 & 3 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{cc} 0 & 1 \\ 5 & 3 \end{array} \right]^{-1}= \left[ \begin{array}{cc} -\frac{3}{5} & \frac{1}{5} \\ 1 & 0 \end{array} \right]$$
习题 37 Exercise 37
Let $A=\left[ \begin{array}{rr} 2 & 1 \\ 3 & 0 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{cc} 2 & 1 \\ 3 & 0 \end{array} \right]^{-1}= \left[ \begin{array}{cc} 0 & \frac{1}{3} \\ 1 & -\frac{2}{3} \end{array} \right]$$
习题 38 Exercise 38
Let $A=\left[ \begin{array}{rr} 2 & 1 \\ 4 & 2 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{cc} 2 & 1 \\ 4 & 2 \end{array} \right]^{-1}$$ does not exist. The reduced row-echelon form of this matrix is $$\left[ \begin{array}{cc} 1 & \frac{1}{2} \\ 0 & 0 \end{array} \right].$$
习题 39 Exercise 39
Let $A$ be a $2\times 2$ invertible matrix, with $A=\left[ \begin{array}{cc} a & b \\ c & d \end{array} \right].$ Find a formula for $A^{-1}$ in terms of $a,b,c,d.$
Answer: $$\left[ \begin{array}{cc} a & b \\ c & d \end{array} \right]^{-1}= \left[ \begin{array}{cc} \frac{d}{ad-bc} & -\frac{b}{ad-bc} \\ -\frac{c}{ad-bc} & \frac{a}{ad-bc} \end{array} \right]$$
习题 40 Exercise 40
Let $A=\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 1 & 4 \\ 1 & 0 & 2 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{ccc} 1 & 2 & 3 \\ 2 & 1 & 4 \\ 1 & 0 & 2 \end{array} \right]^{-1}= \left[ \begin{array}{rrr} -2 & 4 & -5 \\ 0 & 1 & -2 \\ 1 & -2 & 3 \end{array} \right]$$
习题 41 Exercise 41
Let $A=\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{ccc} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right]^{-1}= \left[ \begin{array}{rrr} -2 & 0 & 3 \\ 0 & \frac{1}{3} & -\frac{2}{3} \\ 1 & 0 & -1 \end{array} \right]$$
习题 42 Exercise 42
Let $A=\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 1 & 4 \\ 4 & 5 & 10 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: The reduced row-echelon form is $$\left[ \begin{array}{ccc} 1 & 0 & \frac{5}{3} \\ 0 & 1 & \frac{2}{3} \\ 0 & 0 & 0 \end{array} \right].$$ There is no inverse.
习题 43 Exercise 43
Let $A=\left[ \begin{array}{rrrr} 1 & 2 & 0 & 2 \\ 1 & 1 & 2 & 0 \\ 2 & 1 & -3 & 2 \\ 1 & 2 & 1 & 2 \end{array} \right].$ Find $A^{-1}$ if possible. If $A^{-1}$ does not exist, explain why.
Answer: $$\left[ \begin{array}{rrrr} 1 & 2 & 0 & 2 \\ 1 & 1 & 2 & 0 \\ 2 & 1 & -3 & 2 \\ 1 & 2 & 1 & 2 \end{array} \right]^{-1}= \left[ \begin{array}{rrrr} -1 & \frac{1}{2} & \frac{1}{2} & \frac{1}{2} \\ 3 & \frac{1}{2} & - \frac{1}{2} & - \frac{5}{2} \\ -1 & 0 & 0 & 1 \\ -2 & - \frac{3}{4} & \frac{1}{4} & \frac{9}{4} \end{array} \right]$$
习题 44 Exercise 44
Using the inverse of the matrix, find the solution to the systems:
- $\left[ \begin{array}{rr} 2 & 4 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right] =\left[ \begin{array}{r} 1 \\ 2 \end{array} \right]$
- $\left[ \begin{array}{rr} 2 & 4 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right] =\left[ \begin{array}{r} 2 \\ 0 \end{array} \right]$
- $\left[ \begin{array}{rr} 2 & 4 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right] =\left[ \begin{array}{r} 1 \\ 2 \end{array} \right]$
- $\left[ \begin{array}{rr} 2 & 4 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right] =\left[ \begin{array}{r} 2 \\ 0 \end{array} \right]$
Now give the solution in terms of $a$ and $b$ to $\left[ \begin{array}{rr} 2 & 4 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array}\right] = \left[ \begin{array}{c} a \\ b \end{array} \right].$
习题 45 Exercise 45
Using the inverse of the matrix, find the solution to the systems:
- $\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{r} 1 \\ 0 \\ 1 \end{array} \right]$
- $\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{r} 3 \\ -1 \\ -2 \end{array} \right]$
- $\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{r} 1 \\ 0 \\ 1 \end{array} \right]$
- $\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{r} 3 \\ -1 \\ -2 \end{array} \right]$
Now give the solution in terms of $a,b,$ and $c$ to the following: $\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} a \\ b \\ c \end{array} \right].$
Answer:
- $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 1 \\ -\frac{2}{3} \\ 0 \end{array} \right]$
- $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{r} -12 \\ 1 \\ 5 \end{array} \right]$
- $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 3c-2a \\ \frac{1}{3}b-\frac{2}{3}c \\ a-c \end{array} \right]$
- $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 1 \\ -\frac{2}{3} \\ 0 \end{array} \right]$
- $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{r} -12 \\ 1 \\ 5 \end{array} \right]$
- $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{c} 3c-2a \\ \frac{1}{3}b-\frac{2}{3}c \\ a-c \end{array} \right]$
习题 46 Exercise 46
Show that if $A$ is an $n\times n$ invertible matrix and $X$ is an $n\times 1$ matrix such that $AX=B$ for $B$ an $n\times 1$ matrix, then $X=A^{-1}B$.
Answer: Multiply both sides of $AX=B$ on the left by $A^{-1}$.
习题 47 Exercise 47
Prove that if $A^{-1}$ exists and $AX=0$ then $X=0$.
Answer: Multiply on both sides on the left by $A^{-1}.$ Thus $0=A^{-1}0=A^{-1}\left( AX\right) =\left( A^{-1}A\right) X=IX = X .$
习题 48:逆的乘积 Inverse Product
Show that if $A^{-1}$ exists for an $n\times n$ matrix, then it is unique. That is, if $BA=I$ and $AB=I,$ then $B=A^{-1}.$
Answer: $$A^{-1}=A^{-1}I=A^{-1}\left( AB\right) =\left( A^{-1}A\right) B=IB=B.$$
习题 49 Exercise 49
Show that if $A$ is an invertible $n\times n$ matrix, then so is $A^{T}$ and $\left( A^{T}\right) ^{-1}=\left( A^{-1}\right) ^{T}.$
Answer: You need to show that $\left( A^{-1}\right) ^{T}$ acts like the inverse of $A^{T}$ because from uniqueness in the above problem, this will imply it is the inverse. From properties of the transpose, $$\begin{aligned} A^{T}\left( A^{-1}\right) ^{T} &=\left( A^{-1}A\right) ^{T}=I^{T}=I \\ \left( A^{-1}\right) ^{T}A^{T} &=\left( AA^{-1}\right) ^{T}=I^{T}=I\end{aligned}$$ Hence $\left( A^{-1}\right) ^{T}=\left( A^{T}\right) ^{-1}$ and this last matrix exists.
习题 50 Exercise 50
Show $\left( AB\right) ^{-1}=B^{-1}A^{-1}$ by verifying that $AB\left( B^{-1}A^{-1}\right) =I $ and $B^{-1}A^{-1}\left( AB\right) =I .$ Hint: Use Problem 48.
Answer: $$\left( AB\right) B^{-1}A^{-1}=A\left( BB^{-1}\right) A^{-1}=AA^{-1}=I\\ \\B^{-1}A^{-1}\left( AB\right) =B^{-1}\left( A^{-1}A\right) B=B^{-1}IB=B^{-1}B=I$$
习题 51 Exercise 51
Show that $\left( ABC\right) ^{-1}=C^{-1}B^{-1}A^{-1}$ by verifying that $\left( ABC\right) \left( C^{-1}B^{-1}A^{-1}\right) =I $ and $\left( C^{-1}B^{-1}A^{-1}\right)\left( ABC\right) =I .$ Hint: Use Problem 48.
Answer: The proof of this exercise follows from the previous one.
习题 52 Exercise 52
If $A$ is invertible, show $\left( A^{2}\right) ^{-1}=\left( A^{-1}\right) ^{2}.$ Hint: Use Problem 48.
Answer: $$A^{2}\left( A^{-1}\right) ^{2}=AAA^{-1}A^{-1}=AIA^{-1}=AA^{-1}=I\\ \\\left( A^{-1}\right) ^{2}A^{2}=A^{-1}A^{-1}AA=A^{-1}IA=A^{-1}A=I$$
习题 53 Exercise 53
If $A$ is invertible, show $\left( A^{-1}\right) ^{-1}=A.$ Hint: Use Problem 48.
Answer: $A^{-1}A=AA^{-1}=I$ and so by uniqueness, $\left( A^{-1}\right) ^{-1}=A$.
2.8 初等矩阵 Elementary Matrices
习题 54 Exercise 54
Let $A = \left[ \begin{array}{rr} 2 & 3 \\ 1 & 2 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 3 \end{array}\right].$ Find the elementary matrix $E$ that represents this row operation.
习题 55 Exercise 55
Let $A = \left[ \begin{array}{rr} 4 & 0 \\ 2 & 1 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rr} 8 & 0 \\ 2 & 1 \end{array}\right].$ Find the elementary matrix $E$ that represents this row operation.
习题 56 Exercise 56
Let $A = \left[ \begin{array}{rr} 1 & -3 \\ 0 & 5 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rr} 1 & -3 \\ 2 & -1 \end{array}\right].$ Find the elementary matrix $E$ that represents this row operation.
习题 57 Exercise 57
Let $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 2 & -1 & 4 \\ 0 & 5 & 1 \end{array}\right].$
- Find the elementary matrix $E$ such that $EA = B$.
- Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
- 求初等矩阵 $E$,使得 $EA = B$。
- 求 $E$ 的逆 $E^{-1}$,使得 $E^{-1}B = A$。
习题 58 Exercise 58
Let $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 10 & 2 \\ 2 & -1 & 4 \end{array}\right].$
- Find the elementary matrix $E$ such that $EA = B$.
- Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
- 求初等矩阵 $E$,使得 $EA = B$。
- 求 $E$ 的逆 $E^{-1}$,使得 $E^{-1}B = A$。
习题 59 Exercise 59
Let $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 1 & -\frac{1}{2} & 2 \end{array}\right].$
- Find the elementary matrix $E$ such that $EA = B$.
- Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
- 求初等矩阵 $E$,使得 $EA = B$。
- 求 $E$ 的逆 $E^{-1}$,使得 $E^{-1}B = A$。
习题 60 Exercise 60
Let $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ Suppose a row operation is applied to $A$ and the result is $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 2 & 4 & 5 \\ 2 & -1 & 4 \end{array}\right].$
- Find the elementary matrix $E$ such that $EA = B$.
- Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
- 求初等矩阵 $E$,使得 $EA = B$。
- 求 $E$ 的逆 $E^{-1}$,使得 $E^{-1}B = A$。
2.10 LU 分解 LU Factorization
习题 61 Exercise 61
Find an $LU$ factorization of $\left[ \begin{array}{rrr} 1 & 2 & 0 \\ 2 & 1 & 3 \\ 1 & 2 & 3 \end{array} \right].$
Answer: $$\left[ \begin{array}{ccc} 1 & 2 & 0 \\ 2 & 1 & 3 \\ 1 & 2 & 3 \end{array} \right] = \left[ \begin{array}{ccc} 1 & 0 & 0 \\ 2 & 1 & 0 \\ 1 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 0 \\ 0 & -3 & 3 \\ 0 & 0 & 3 \end{array} \right]$$
习题 62 Exercise 62
Find an $LU$ factorization of $\left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 1 & 3 & 2 & 1 \\ 5 & 0 & 1 & 3 \end{array} \right].$
Answer: $$\left[ \begin{array}{cccc} 1 & 2 & 3 & 2 \\ 1 & 3 & 2 & 1 \\ 5 & 0 & 1 & 3 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 1 & 1 & 0 \\ 5 & -10 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 0 & 1 & -1 & -1 \\ 0 & 0 & -24 & -17 \end{array} \right]$$
习题 63 Exercise 63
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrrr} 1 & -2 & -5 & 0 \\ -2 & 5 & 11 & 3 \\ 3 & -6 & -15 & 1 \end{array} \right].$
Answer: $$\left[ \begin{array}{rrrr} 1 & -2 & -5 & 0 \\ -2 & 5 & 11 & 3 \\ 3 & -6 & -15 & 1 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ -2 & 1 & 0 \\ 3 & 0 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & -2 & -5 & 0 \\ 0 & 1 & 1 & 3 \\ 0 & 0 & 0 & 1 \end{array} \right]$$
习题 64 Exercise 64
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrrr} 1 & -1 & -3 & -1 \\ -1 & 2 & 4 & 3 \\ 2 & -3 & -7 & -3 \end{array} \right].$
Answer: $$\left[ \begin{array}{rrrr} 1 & -1 & -3 & -1 \\ -1 & 2 & 4 & 3 \\ 2 & -3 & -7 & -3 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ -1 & 1 & 0 \\ 2 & -1 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & -1 & -3 & -1 \\ 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 1 \end{array} \right]$$
习题 65 Exercise 65
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrrr} 1 & -3 & -4 & -3 \\ -3 & 10 & 10 & 10 \\ 1 & -6 & 2 & -5 \end{array} \right].$
Answer: $$\left[ \begin{array}{rrrr} 1 & -3 & -4 & -3 \\ -3 & 10 & 10 & 10 \\ 1 & -6 & 2 & -5 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ -3 & 1 & 0 \\ 1 & -3 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & -3 & -4 & -3 \\ 0 & 1 & -2 & 1 \\ 0 & 0 & 0 & 1 \end{array} \right]$$
习题 66 Exercise 66
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrrr} 1 & 3 & 1 & -1 \\ 3 & 10 & 8 & -1 \\ 2 & 5 & -3 & -3 \end{array} \right].$
Answer: $$\left[ \begin{array}{rrrr} 1 & 3 & 1 & -1 \\ 3 & 10 & 8 & -1 \\ 2 & 5 & -3 & -3 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 3 & 1 & 0 \\ 2 & -1 & 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & 3 & 1 & -1 \\ 0 & 1 & 5 & 2 \\ 0 & 0 & 0 & 1 \end{array} \right]$$
习题 67 Exercise 67
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrr} 3 & -2 & 1 \\ 9 & -8 & 6 \\ -6 & 2 & 2 \\ 3 & 2 & -7 \end{array} \right].$
Answer: $$\left[ \begin{array}{rrr} 3 & -2 & 1 \\ 9 & -8 & 6 \\ -6 & 2 & 2 \\ 3 & 2 & -7 \end{array} \right] = \left[ \begin{array}{rrrr} 1 & 0 & 0 & 0 \\ 3 & 1 & 0 & 0 \\ -2 & 1 & 1 & 0 \\ 1 & -2 & -2 & 1 \end{array} \right] \left[ \begin{array}{rrr} 3 & -2 & 1 \\ 0 & -2 & 3 \\ 0 & 0 & 1 \\ 0 & 0 & 0 \end{array} \right]$$
习题 68 Exercise 68
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrr} -3 & -1 & 3 \\ 9 & 9 & -12 \\ 3 & 19 & -16 \\ 12 & 40 & -26 \end{array} \right].$
习题 69 Exercise 69
Find an $LU$ factorization of the matrix $\left[ \begin{array}{rrr} -1 & -3 & -1 \\ 1 & 3 & 0 \\ 3 & 9 & 0 \\ 4 & 12 & 16 \end{array} \right].$
Answer: $$\left[ \begin{array}{rrr} -1 & -3 & -1 \\ 1 & 3 & 0 \\ 3 & 9 & 0 \\ 4 & 12 & 16 \end{array} \right] = \left[ \begin{array}{rrrr} 1 & 0 & 0 & 0 \\ -1 & 1 & 0 & 0 \\ -3 & 0 & 1 & 0 \\ -4 & 0 & -4 & 1 \end{array} \right] \left[ \begin{array}{rrr} -1 & -3 & -1 \\ 0 & 0 & -1 \\ 0 & 0 & -3 \\ 0 & 0 & 0 \end{array} \right]$$
习题 70 Exercise 70
Find the $LU$ factorization of the coefficient matrix using Doolittle's method and use it to solve the system of equations. $\begin{array}{c} x+2y=5 \\ 2x+3y=6 \end{array}$
Answer: An $LU$ factorization of the coefficient matrix is $$\left[ \begin{array}{cc} 1 & 2 \\ 2 & 3 \end{array} \right] = \left[ \begin{array}{cc} 1 & 0 \\ 2 & 1 \end{array} \right] \left[ \begin{array}{cc} 1 & 2 \\ 0 & -1 \end{array} \right].$$ First solve $\left[ \begin{array}{cc} 1 & 0 \\ 2 & 1 \end{array} \right] \left[ \begin{array}{c} u \\ v \end{array} \right] =\left[ \begin{array}{c} 5 \\ 6 \end{array} \right],$ which gives $\left[ \begin{array}{c} u \\ v \end{array} \right] =\left[ \begin{array}{r} 5 \\ -4 \end{array} \right].$ Then solve $\left[ \begin{array}{rr} 1 & 2 \\ 0 & -1 \end{array} \right] \left[ \begin{array}{c} x \\ y \end{array} \right] =\left[ \begin{array}{r} 5 \\ -4 \end{array} \right],$ which says that $y=4$ and $x=-3.$
习题 71 Exercise 71
Find the $LU$ factorization of the coefficient matrix using Doolittle's method and use it to solve the system of equations. $\begin{array}{c} x+2y+z=1 \\ y+3z=2 \\ 2x+3y=6 \end{array}$
Answer: An $LU$ factorization of the coefficient matrix is $$\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 1 & 3 \\ 2 & 3 & 0 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 2 & -1 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 1 & 3 \\ 0 & 0 & 1 \end{array} \right].$$ First solve $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 2 & -1 & 1 \end{array} \right] \left[ \begin{array}{c} u \\ v \\ w \end{array} \right] =\left[ \begin{array}{c} 1 \\ 2 \\ 6 \end{array} \right],$ which yields $u=1,\ v=2,\ w=6$. Next solve $\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 1 & 3 \\ 0 & 0 & 1 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 1 \\ 2 \\ 6 \end{array} \right].$ This yields $z=6,\ y=-16,\ x=27.$
习题 72 Exercise 72
Find the $LU$ factorization of the coefficient matrix using Doolittle's method and use it to solve the system of equations. $\begin{array}{c} x+2y+3z=5 \\ 2x+3y+z=6 \\ x-y+z=2 \end{array}$
习题 73 Exercise 73
Find the $LU$ factorization of the coefficient matrix using Doolittle's method and use it to solve the system of equations. $\begin{array}{c} x+2y+3z=5 \\ 2x+3y+z=6 \\ 3x+5y+4z=11 \end{array}$
Answer: An $LU$ factorization of the coefficient matrix is $$\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 3 & 1 \\ 3 & 5 & 4 \end{array} \right] = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 2 & 1 & 0 \\ 3 & 1 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 3 \\ 0 & -1 & -5 \\ 0 & 0 & 0 \end{array} \right].$$ First solve $\left[ \begin{array}{rrr} 1 & 0 & 0 \\ 2 & 1 & 0 \\ 3 & 1 & 1 \end{array} \right] \left[ \begin{array}{c} u \\ v \\ w \end{array} \right] =\left[ \begin{array}{c} 5 \\ 6 \\ 11 \end{array} \right],$ Solution is: $\left[ \begin{array}{c} u \\ v \\ w \end{array} \right] =\left[ \begin{array}{c} 5 \\ -4 \\ 0 \end{array} \right].$ Next solve $\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 0 & -1 & -5 \\ 0 & 0 & 0 \end{array} \right] \left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 5 \\ -4 \\ 0 \end{array} \right],$ Solution is: $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 7t-3 \\ 4-5t \\ t \end{array} \right],\ t\in \mathbb{R}.$
习题 74 Exercise 74
Is there only one $LU$ factorization for a given matrix? Hint: Consider the equation $\left[ \begin{array}{rr} 0 & 1 \\ 0 & 1 \end{array} \right] =\left[ \begin{array}{rr} 1 & 0 \\ 1 & 1 \end{array} \right] \left[ \begin{array}{rr} 0 & 1 \\ 0 & 0 \end{array} \right].$ Look for all possible $LU$ factorizations.
Answer: Sometimes there is more than one $LU$ factorization, as is the case in this example. The given equation clearly gives an $LU$ factorization. However, it appears that the following equation gives another $LU$ factorization. $$\left[ \begin{array}{cc} 0 & 1 \\ 0 & 1 \end{array} \right] =\left[ \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right] \left[ \begin{array}{cc} 0 & 1 \\ 0 & 1 \end{array} \right]$$