← 学习库 A First Course in Linear Algebra (Kuttler) · 中英对照 目录

Matrix Arithmetic 矩阵运算 矩阵运算

本页译自 LibreTexts · A First Course in Linear Algebra (Kuttler)「Matrices(矩阵)」第 2 章的 2.1–2.10 节及习题。公式经 MathJax 渲染,自定义宏已注入;正文与译文段段对照。

学习目标 Outcomes

  1. 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.
  2. Prove algebraic properties for matrix addition, scalar multiplication, transposition, and matrix multiplication. Apply these properties to manipulate an algebraic expression involving matrices.
  3. Compute the inverse of a matrix using row operations, and prove identities involving matrix inverses.
  4. Solve a linear system using matrix algebra.
  5. Use multiplication by an elementary matrix to apply row operations.
  6. Write a matrix as a product of elementary matrices.
  1. 执行矩阵加法、标量乘法、转置与矩阵乘法等矩阵运算,并判断这些运算在何时无定义,还能用矩阵的各个元来表示这些运算。
  2. 证明矩阵加法、标量乘法、转置与矩阵乘法的代数性质,并运用这些性质化简要(涉及矩阵的)代数表达式。
  3. 用初等行运算计算矩阵的逆,并证明涉及矩阵逆的恒等式。
  4. 利用矩阵代数求解线性方程组。
  5. 通过乘以初等矩阵来执行初等行运算。
  6. 把一个矩阵写成若干个初等矩阵的乘积。

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.

回想一下:矩阵(matrix)是一个由数排成的矩形数组;多个这样的数组合称为矩阵(matrices)。例如,下面就是一个矩阵。
$$\left[ \begin{array}{rrrr} 1 & 2 & 3 & 4 \\ 5 & 2 & 8 & 7 \\ 6 & -9 & 1 & 2 \end{array} \right] $$

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.

回想一下:矩阵的大小或维数定义为 $m\times n$,其中 $m$ 是行数,$n$ 是列数。上面的矩阵是一个 $3\times 4$ 矩阵,因为它有 3 行 4 列。你可以这样记忆:列(columns)就像希腊神庙里的石柱一样,笔直地直立着;而行(rows)则像拖拉机耕过的田地里那一道道平躺的垄沟。

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.

在说明矩阵的大小时,总是先写行数再写列数。你可以借助短语「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.

大小为 $n \times n$ 的矩阵 $A$ 称为方阵。换句话说,若 $A$ 的行数与列数相同,则 $A$ 是方阵。

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.

下面我们引入一些矩阵特有的记号。我们用 $A_{j}$ 表示矩阵 $A$ 的各列,如下所示 $$A = \left[ \begin{array}{rrrr} A_{1} & A_{2} & \cdots & A_{n} \end{array} \right] $$ 因此,从左到右计数时,$A_{j}$ 是 $A$ 的第 $j$ 列。

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.

矩阵中的各个元素称为 $A$ 的(entries)或分量(components)。矩阵的元素按其所处位置来标识。矩阵的 $\mathbf{\left( i, j \right)}$-元是指第 $i$ 行、第 $j$ 列处的那个元。例如,在前一矩阵中,$8$ 位于 $\left(2,3 \right)$ 位置(故称为 $\left(2,3 \right)$-元),因为它处于第二行第三列。

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.

为便于记忆我们到底在讨论哪个矩阵,我们把矩阵 $A$ 中第 $i$ 行、第 $j$ 列处的元记为 $a_{ij}$。于是可以用各元把 $A$ 写成 $A= \left[ a_{ij} \right]$。对上述矩阵使用这一记号,就有 $a_{23}=8, a_{32}=-9, a_{12}=2$ 等等。

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.$

$m\times n$ 零矩阵是每个元都等于零的 $m\times n$ 矩阵,记为 $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]$.

$2\times 3$ 零矩阵为 $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!

注意:存在 $2\times 3$ 零矩阵、$3\times 4$ 零矩阵等。事实上,对于每一种大小都存在相应的零矩阵!

定义 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$.

设 $A$ 与 $B$ 是两个 $m\times n$ 矩阵。那么 $A=B$ 意指:对 $A=\left[ a_{ij}\right]$、$B=\left[ b_{ij}\right]$,当所有 $1\leq i\leq m$、$1\leq j\leq n$ 时都有 $a_{ij}=b_{ij}$。

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.

换句话说,两个矩阵相等,当且仅当它们大小相同且对应元完全相同。因此 $\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]$,因为两者大小不同;又 $\left[ \begin{array}{rr} 0 & 1 \\ 3 & 2 \end{array} \right] \neq \left[ \begin{array}{rr} 1 & 0 \\ 2 & 3 \end{array} \right]$,因为尽管它们大小相同,对应元却不相同。

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$.

做矩阵加法时,和式中所有矩阵都必须大小相同。例如,$\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \\ 5 & 2 \end{array} \right]$ 与 $\left[ \begin{array}{rrr} -1 & 4 & 8 \\ 2 & 8 & 5 \end{array} \right]$ 不能相加,因为一个大小为 $3 \times 2$,另一个大小为 $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.

不过,加法 $\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]$ 却是可行的。

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} $

设 $A=\left[ a_{ij}\right]$ 与 $B=\left[ b_{ij}\right]$ 是两个 $m\times n$ 矩阵。则 $A+B=C$,其中 $C$ 是由 $c_{ij}=a_{ij}+b_{ij} $ 定义的 $m \times n$ 矩阵 $C=\left[ c_{ij}\right]$。

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] $

若可行,求下面两矩阵之和。$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] $

注意 $A$ 与 $B$ 都是 $2 \times 3$ 矩阵。由于 $A$、$B$ 大小相同,加法可行。由定义 4,加法如下进行。$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.

矩阵加法所满足的性质与普通数的加法非常相似。注意,当我们写出例如 $A+B$ 时,隐含假设两个矩阵大小相等,从而该运算确实可行。

命题 1:矩阵加法的性质 Properties of Matrix Addition

Let $A,B$ and $C$ be matrices. Then, the following properties hold.

设 $A$、$B$、$C$ 是矩阵,则下面这些性质成立。

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.

先考虑上述等式所给出的加法交换律。设 $A,B,C,D$ 是矩阵,且 $A+B=C$、$B+A=D$。我们要证明 $D=C$。为此,将采用定义 4 中给出的矩阵加法定义。现在 $c_{ij}=a_{ij}+b_{ij}=b_{ij}+a_{ij}=d_{ij} $,因此 $C=D$,因为对所有 $i$、$j$,两者的 $ij^{th}$ 元都相同。注意,这个结论由数的加法交换律推出——它说:若 $a$、$b$ 是两个数,则 $a+b = b+a$。其余性质的证明类似,留作练习。

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$.

我们把上述等式中的零矩阵称为加法单位元(additive identity);类似地,把上述等式中的矩阵 $-A$ 称为加法逆元(additive inverse)。$-A$ 定义为 $\left( -1\right) A = \left[ -a_{ij}\right]$,即把 $A$ 的每个元都乘以 $-1$。

In the next section we will study scalar multiplication in more depth to understand what is meant by $\left( -1\right) A.$

下一节我们将更深入地研究标量乘法,以理解 $\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] $

回想一下,当指称数(number)时,我们使用标量(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] .$

若 $A=\left[ a_{ij}\right]$,$k$ 是一个标量,则 $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] $

求把下列矩阵 $A$ 乘以 $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] $

由定义 5,把 $A$ 的每个元都乘以 $7$。因此 $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.

设 $A,\ B$ 是矩阵,$k,\ p$ 是标量,则下面这些性质成立。

Proof

证明

The proof of this proposition is similar to the proof of Proposition 1 and is left an exercise to the reader.

本命题的证明与命题 1 的证明类似,留给读者作为练习。

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.

大小为 $n\times 1$ 或 $1\times n$ 的矩阵称为向量。若 $X$ 是这样一个矩阵,则我们用 $x_{i}$ 表示 $X$ 中位于列矩阵第 $i$ 行、或行矩阵第 $i$ 列处的元。

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.

$n\times 1$ 矩阵 $X=\left[ \begin{array}{c} x_{1} \\ \vdots \\ x_{n} \end{array} \right] $ 称为列向量;$1\times n$ 矩阵 $X = \left[ \begin{array}{ccc} x_{1} & \cdots & x_{n} \end{array} \right] $ 称为行向量

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.

在本章中,我们将沿用定义 9.2.2 中向量的线性组合这一概念。在这个语境下,线性组合是由各向量乘以标量后求和得到的和式。例如,$\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] $ 就是三个向量的线性组合。

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] $

设我们有一个由如下方程组成的方程组:$a_{11}x_{1}+\cdots +a_{1n}x_{n}=b_{1}$,…,$a_{m1}x_{1}+\cdots +a_{mn}x_{n}=b_{m}$。我们把这个方程组写成如下的向量形式:$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] $

矩阵乘法的第一种重要形式是用一个向量去乘一个矩阵。考虑乘积 $\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 4 & 5 & 6 \end{array} \right] \left[ \begin{array}{r} 7 \\ 8 \\ 9 \end{array} \right] $。我们很快会看到它等于 $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.

一般地,$\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}$ 于是你先取 $x_{1}$ 倍第一列,加上 $x_{2}$ 倍第二列,最后加上 $x_{3}$ 倍第三列。上面的和式是矩阵各列的一个线性组合。当你用左边的矩阵乘右边的向量时,构成向量的那些数正是上面所演示的、线性组合中各列所用的标量。

Here is the formal definition of how to multiply an $m\times n$ matrix by an $n\times 1$ column vector.

下面是用一个 $n\times 1$ 列向量去乘一个 $m\times n$ 矩阵的严格定义。

定义 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] $

设 $A=\left[ a_{ij} \right]$ 是一个 $m\times n$ 矩阵,$X$ 是由 $A=\left[ A_{1} \cdots A_{n}\right], X = \left[ \begin{array}{r} x_{1} \\ \vdots \\ x_{n} \end{array} \right] $ 给出的 $n\times 1$ 矩阵。

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} $

则乘积 $AX$ 是如下的 $m\times 1$ 列向量,它等于 $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] $

若把 $A$ 的各列按元写出来,它们形如 $A_{j} = \left[ \begin{array}{c} a_{1j} \\ a_{2j} \\ \vdots \\ a_{mj} \end{array} \right] $。于是可以把乘积 $AX$ 写成 $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.

注意:一个 $m \times n$ 矩阵与一个 $n \times 1$ 向量相乘,得到一个 $m \times 1$ 向量。

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] $

对 $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] $ 计算乘积 $AX$。

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}$

我们将用定义 3 来计算该乘积。于是按如下方式计算乘积 $AX$:$\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] $

设我们有一个由 $a_{11}x_{1}+\cdots +a_{1n}x_{n}=b_{1}$,$a_{21}x_{1}+\cdots +a_{2n}x_{n}=b_{2}$,…,$a_{m1}x_{1}+\cdots +a_{mn}x_{n}=b_{m}$ 组成的方程组。则可把这个方程组写成如下的矩阵形式:$\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.

表达式 $AX=B$ 也称为相应线性方程组的矩阵形式。矩阵 $A$ 就是方程组的系数矩阵,向量 $X$ 是由方程组的各个变量构成的列向量,而向量 $B$ 则是由方程组的各个常数构成的列向量。务必注意:任何线性方程组都可以写成这种形式。

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$.

注意,若把齐次方程组写成矩阵形式,则其形式为 $AX=0$,其中 $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.

由这一定义可以看出,向量 $X = \left[ \begin{array}{c} x_{1} \\ x_{2} \\ \vdots \\ x_{n} \end{array} \right] $ 仅在向量 $X$ 的各元 $x_{1}, x_{2}, \cdots, x_{n}$ 都是原方程组的解时,才满足方程 $AX=B$。

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.

在考察了用一个向量去乘矩阵之后,我们想考虑两个更一般尺寸的矩阵相乘的情况——尽管这些尺寸仍需合适(我们马上会看到)。例如在示例 1 中,我们用一个 $4 \times 1$ 向量乘了一个 $3 \times 4$ 矩阵。现在我们要研究如何相乘其他尺寸的矩阵。

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$

关于矩阵乘法何时可行,我们还没有给出任何条件!对于矩阵 $A$、$B$,要为成乘积 $AB$,$A$ 的列数必须等于 $B.$ 的行数。考虑乘积 $AB$,其中 $A$ 大小为 $m\times n$、$B$ 大小为 $n \times p$。则按矩阵大小来看,乘积由 $(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.

当 $A$ 的列数等于 $B$ 的行数时,称这两个矩阵可相乘(conformable),乘积 $AB$ 按下述方式求出。

定义 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$.

设 $A$ 是一个 $m\times n$ 矩阵,$B$ 是形如 $B=\left[ B_{1} \cdots B_{p}\right] $ 的 $n\times p$ 矩阵,其中 $B_{1},...,B_{p}$ 是 $B$ 的 $n\times 1$ 各列。则 $m\times p$ 矩阵 $AB$ 定义如下:$AB = A \left[ B_{1} \cdots B_{p}\right] = \left[ (A B)_{1} \cdots (AB)_{p}\right] $,其中 $(AB)_{k}$ 是给出 $AB$ 第 $k$ 列的 $m\times 1$ 矩阵或列向量。

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] $

若可行,求 $AB$。$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.

计算乘积时首先要验证乘法是否可行。第一个矩阵大小为 $2\times 3$,第二个矩阵大小为 $3\times 3$。中间两个数相等,所以 $A$、$B$ 是可相乘的矩阵。按照上面的讨论,$AB$ 将是一个 $2\times 3$ 矩阵。定义 5 给出了计算 $AB$ 每一列的方法,如下所示。
$$\left[ \overset{\text{First column}}{\overbrace{\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 2 & 1 \end{array} \right] \left[ \begin{array}{r} 1 \\ 0 \\ -2 \end{array} \right] }},\overset{\text{Second column}}{\overbrace{\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 2 & 1 \end{array} \right] \left[ \begin{array}{r} 2 \\ 3 \\ 1 \end{array} \right] }},\overset{\text{Third column}}{\overbrace{\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 2 & 1 \end{array} \right] \left[ \begin{array}{r} 0 \\ 1 \\ 1 \end{array} \right] }}\right] $$

You know how to multiply a matrix times a vector, using Definition 3 for each of the three columns. Thus

你已经知道如何用一个向量去乘矩阵,只需对这三列分别使用定义 3 即可。于是
$$\left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 2 & 1 \end{array} \right] \left[ \begin{array}{rrr} 1 & 2 & 0 \\ 0 & 3 & 1 \\ -2 & 1 & 1 \end{array} \right] = \left[ \begin{array}{rrr} -1 & 9 & 3 \\ -2 & 7 & 3 \end{array} \right]$$

Since vectors are simply $n \times 1$ or $1 \times m$ matrices, we can also multiply a vector by another vector.

由于向量不过是 $n \times 1$ 或 $1 \times m$ 矩阵,因此我们也可以用一个向量去乘另一个向量。

示例 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] .$

若可行,求乘积 $\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

本例中,我们用大小为 $1 \times 4.$ 的矩阵去乘一个大小为 $3 \times 1$ 的矩阵。中间两数匹配,所以乘积有定义。注意乘积将是一个 $3 \times 4$ 矩阵。利用定义 5,可按如下方式计算该乘积
$$\left[ \begin{array}{r} 1 \\ 2 \\ 1 \end{array} \right] \left[ \begin{array}{rrrr} 1 & 2 & 1 & 0 \end{array} \right] = \left[ \overset{\text{First column}}{\overbrace{\left[ \begin{array}{r} 1 \\ 2 \\ 1 \end{array} \right] \left[ \begin{array}{r} 1 \end{array} \right] }},\overset{\text{Second column}}{\overbrace{\left[ \begin{array}{r} 1 \\ 2 \\ 1 \end{array} \right] \left[ \begin{array}{r} 2 \end{array} \right] }},\overset{\text{Third column}}{\overbrace{\left[ \begin{array}{r} 1 \\ 2 \\ 1 \end{array} \right] \left[ \begin{array}{r} 1 \end{array} \right] }}, \overset{\text{Fourth column}}{\overbrace{\left[ \begin{array}{r} 1 \\ 2 \\ 1 \end{array} \right] \left[ \begin{array}{r} 0 \end{array} \right]}} \right] $$

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] $

你可以用定义 3 验证该乘积就是 $\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] $

若可行,求 $BA$。$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.

先检查是否可行。这个乘积形如 $\left( 3\times 3\right) \left( 2\times 3\right) $。中间两个数不匹配,所以不能做这个乘法。

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.

此时我们说该乘法未定义。注意,这些正是我们在示例 2 中用过的矩阵;本例中我们尝试计算的是 $BA$ 而不是 $AB$。这说明矩阵乘法的另一个性质:即使乘积 $AB$ 可能有定义,我们也不能假设乘积 $BA$ 一定可行。因此,在任何计算之前,务必先检查乘积是否有定义。

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.

前面我们把零矩阵 $0$ 定义为(大小合适、)所有元都为 $0$ 的矩阵。考虑下列关于零矩阵相乘的例子。

示例 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] $

对矩阵 $A= \left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right] $ 与 $2 \times 2$ 零矩阵 $0= \left[ \begin{array}{rr} 0 & 0 \\ 0 & 0 \end{array} \right] $,计算乘积 $A0$。

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] $

在这个乘积中,我们计算 $\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$.

因此 $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.

注意,我们也可以把 $A$ 乘以 $2 \times 1$ 零向量 $\left[ \begin{array}{r} 0 \\ 0 \end{array} \right]$,结果将是 $2 \times 1$ 零向量。因此,只要零矩阵或零向量的大小合适,恒有 $A0=0$。

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$.

$AB$ 的 $ij^{th}$ 元是什么?它就是乘积 $AB$ 中位于第 $i$ 行、第 $j$ 列处的元。

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] $

若 $A$ 是 $m \times n$、$B$ 是 $n \times p$,则我们知道乘积 $AB$ 具有形式 $\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] $

$AB$ 的第 $j$ 列为 $-\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] $,它是一个 $m\times 1$ 列向量,其计算方法为 $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} $

因此,$ij^{th}$ 元就是这个向量第 $i$ 行处的元,它按 $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.

下面给出矩阵乘积的 $ij^{th}$ 元的严格定义。

定义 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} $

设 $A=\left[ a_{ij}\right]$ 是一个 $m\times n$ 矩阵,$B=\left[ b_{ij}\right]$ 是一个 $n\times p$ 矩阵。则 $AB$ 是一个 $m\times p$ 矩阵,$AB$ 的 $\left( i, j \right)$-元定义为 $(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj} $。它的另一种写法是 $(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]$

换句话说,要求乘积 $AB$ 的 $\left( i, j \right)$-元(即 $(AB)_{ij}$),就把 $A$ 的第 $i$ 行在左边乘上 $B$ 的第 $j$ 列。为用各元表示 $AB$,我们写 $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] $

若可行,计算 $AB$;若可行,则利用定义 1 求 $AB$ 的 $\left( 3,2 \right)$-元。$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.

首先检查乘积是否可行。它形如 $\left( 3\times 2\right) \left( 2\times 3\right)$,由于中间两数匹配,可以进行乘法。结果应是 $3\times 3$ 矩阵。我们可先计算 $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] $,其中逗号分隔所得乘积的各个列。于是上面的乘积等于 $\left[ \begin{array}{rrr} 16 & 15 & 5 \\ 13 & 15 & 5 \\ 46 & 42 & 14 \end{array} \right] $,是一个符合要求的 $3\times 3$ 矩阵。因此,$\left( 3,2 \right)$-元等于 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!

接下来利用定义 1,可求得 $\left( 3,2 \right)$-元等于 $\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}$。对照上面 $AB$ 的结果,这显然是正确的!

You may wish to use this method to verify that the rest of the entries in $AB$ are correct.

你可以用这个方法验证 $AB$ 中其余各元是否正确。

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] $

判断乘积 $AB$ 是否有定义。若有定义,求该乘积的 $\left( 2, 1 \right)$-元。$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.

该乘积形如 $\left( 3\times 3\right) \left( 3\times 2\right)$。中间两数匹配,所以矩阵可相乘,可以计算该乘积。

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 $

我们想求 $AB$ 的 $\left( 2, 1 \right)$-元,即乘积中位于第二行第一列的元。我们将采用定义 1,它指出 $(AB)_{ij}=\sum_{k=1}^{n}a_{ik}b_{kj} $。本例中 $n=3$,$i=2$,$j=1$。因此 $\left( 2, 1 \right)$-元由计算 $(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] $ 求出。代入相应值,这个乘积变为 $\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$.

因此 $(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] $

你应该花点时间求 $AB$ 的其他几个元。你可以把矩阵相乘,以检验你的答案是否正确。乘积 $AB$ 由 $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.

如上所述,有时一个方向可以相乘而另一个方向不能。不过,即使 $AB$ 与 $BA$ 都有定义,它们也可能不相等。

示例 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]$

对矩阵 $A = \left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right], B= \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$ 比较乘积 $AB$ 与 $BA$。

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

首先注意到 $A$、$B$ 都是 $2 \times 2$ 矩阵,所以乘积 $AB$、$BA$ 都有定义。第一个乘积 $AB$ 为
$$AB = \left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right] \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right] = \left[ \begin{array}{rr} 2 & 1 \\ 4 & 3 \end{array} \right]$$

The second product, $BA$ is

第二个乘积 $BA$ 为
$$\left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right] \left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right] = \left[ \begin{array}{rr} 3 & 4 \\ 1 & 2 \end{array} \right]$$

Therefore, $AB \neq BA$.

因此 $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.

这个例子说明:即使两个方向的乘法都有定义,你也不能假定 $AB=BA$。若对某些矩阵 $A$、$B$ 有 $AB=BA$,则称 $A$ 与 $B$ 可交换。这是矩阵乘法的一个重要性质。

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$,

对矩阵 $A,B,C$ 和标量 $r,s$,以下各式成立:
$$\begin{align} A\left( rB+sC\right) &= r\left( AB\right) +s\left( AC\right) \\ \left( B+C\right) A &=BA+CA \\ A\left( BC\right) &=\left( AB\right) C \end{align}$$

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,

首先我们证明第一式(矩阵性质 1)。我们将采用定义 2.3.1,并利用矩阵的 $ij^{th}$ 元的定义来证明这一论断。于是
$$\begin{aligned} \left( A\left( rB+sC\right) \right) _{ij} &=\sum_{k}a_{ik}\left( rB+sC\right) _{kj} \\ &= \sum_{k}a_{ik}\left( rb_{kj}+sc_{kj}\right) \\ &=r\sum_{k}a_{ik}b_{kj}+s\sum_{k}a_{ik}c_{kj} \\ &=r\left( AB\right) _{ij}+s\left( AC\right) _{ij} \\ &=\left( r\left( AB\right) +s\left( AC\right) \right) _{ij} \end{aligned}$$

Thus $A\left( rB+sC\right) =r(AB)+s(AC) $ as claimed.

于是 $A\left( rB+sC\right) =r(AB)+s(AC) $,正如所断言的那样。

The proof of Equation (matrix properties 2) follows the same pattern and is left as an exercise.

(矩阵性质 2)所对应等式的证明与此类似,留作练习。

Statement (matrix properties 3) is the associative law of multiplication. Using Definition 2.3.1,

论断(矩阵性质 3)就是乘法结合律。利用定义 2.3.1,
$$\begin{align*}\left( A\left( BC\right) \right) _{ij} &=\sum_{k}a_{ik}\left( BC\right) _{kj} \\ &=\sum_{k}a_{ik}\sum_{l}b_{kl}c_{lj} \\ &=\sum_{l}\left( AB\right) _{il}c_{lj}=\left( \left( AB\right) C\right) _{ij}. \end{align*}$$

This proves matrix properties 3.

这就证明了矩阵性质 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.

矩阵的另一项重要运算是取转置。对矩阵 $A$,我们以 $A^T$ 表示 $A$ 的转置。在正式定义转置之前,我们先在下列矩阵上考察这一运算。
$$\left[ \begin{array}{cc} 1 & 4 \\ 3 & 1 \\ 2 & 6 \end{array} \right] ^{T}= \left[ \begin{array}{ccc} 1 & 3 & 2 \\ 4 & 1 & 6 \end{array} \right]$$

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.

发生了什么?第一列变成了第一行,第二列变成了第二行。于是 $3\times 2$ 矩阵变成了 $2\times 3$ 矩阵。数字 $4$ 原本在第一行第二列,转置后到了第二行第一列。

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

设 $A$ 是一个 $m\times n$ 矩阵。则 $A^{T}$(即 $A$ 的转置)表示下面给出的 $n\times m$ 矩阵
$$A^{T} = \left[ a _{ij}\right] ^{T}= \left[ a_{ji} \right]$$

The $\left( i, j \right)$-entry of $A$ becomes the $\left( j,i \right)$-entry of $A^T$.

$A$ 的 $\left( i, j \right)$-元变成了 $A^T$ 的 $\left( j,i \right)$-元。

Consider the following example.

请看下面的例子。

示例 1:矩阵的转置 The Transpose of a Matrix

Calculate $A^T$ for the following matrix

求下列矩阵的 $A^T$
$$A = \left[ \begin{array}{rrr} 1 & 2 & -6 \\ 3 & 5 & 4 \end{array} \right]$$

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.

由定义 1,我们知道对 $A = \left[ a_{ij} \right]$ 有 $A^T = \left[ a_{ji} \right]$。换句话说,我们把每个元的行列位置互换。$\left( 1, 2 \right)$-元变成了 $\left( 2,1 \right)$-元。

Thus, $A^T = \left[ \begin{array}{rr} 1 & 3 \\ 2 & 5 \\ -6 & 4 \end{array} \right]$

因此 $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.

注意,$A$ 是 $2 \times 3$ 矩阵,而 $A^T$ 是 $3 \times 2$ 矩阵。

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

设 $A$ 是 $m\times n$ 矩阵,$B$ 是 $n\times p$ 矩阵,$r$、$s$ 是标量。则
  1. $\left(A^{T}\right)^{T} = A $
  2. $\left( AB\right) ^{T}=B^{T}A^{T}$
  3. $\left( rA+ sB\right) ^{T}=rA^{T}+ sB^{T}$
  1. $\left(A^{T}\right)^{T} = A $
  2. $\left( AB\right) ^{T}=B^{T}A^{T}$
  3. $\left( rA+ sB\right) ^{T}=rA^{T}+ sB^{T}$

Proof

证明

First we prove 2. From Definition 1,

首先证明第 2 式。由定义 1,
$$\begin{aligned} \left(AB\right)^{T} &= \left[ (AB) _{ij} \right] ^{T}=\left[ (AB)_{ji} \right]=\sum_{k}a_{jk}b_{ki}= \sum_{k}b_{ki}a_{jk} \\ &= \sum_{k}\left[ b_{ik}\right]^{T}\left[ a_{kj}\right]^{T}=\left[ b_{ij}\right] ^{T} \left[ a_{ij}\right]^{T} = B^{T}A^{T} \end{aligned}$$

The proof of Formula 3 is left as an exercise.

第 3 式的证明留作练习。

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}.$

$n\times n$ 矩阵 $A$ 若满足 $A=A^{T}$,则称为对称矩阵;若满足 $A=-A^{T}$,则称为反对称矩阵

We will explore these definitions in the following examples.

我们将在下面的例子中考察这些定义。

示例 2:对称矩阵 Symmetric Matrices

Let

$$A=\left[ \begin{array}{rrr} 2 & 1 & 3 \\ 1 & 5 & -3 \\ 3 & -3 & 7 \end{array} \right]$$

Use Definition 2 to show that $A$ is symmetric.

利用定义 2 证明 $A$ 是对称矩阵。

Solution

By Definition 2, we need to show that $A = A^T$. Now, using Definition 1,

由定义 2,我们需要证明 $A = A^T$。现在利用定义 1,
$$A^{T} = \left[ \begin{array}{rrr} 2 & 1 & 3 \\ 1 & 5 & -3 \\ 3 & -3 & 7 \end{array} \right]$$

Hence, $A = A^{T}$, so $A$ is symmetric.

因此 $A = A^{T}$,所以 $A$ 是对称矩阵。

示例 3:一个反对称矩阵 A Skew Symmetric Matrix

Let

$$A=\left[ \begin{array}{rrr} 0 & 1 & 3 \\ -1 & 0 & 2 \\ -3 & -2 & 0 \end{array} \right]$$

Show that $A$ is skew symmetric.

证明 $A$ 是反对称矩阵。

Solution

By Definition 2,

由定义 2,
$$A^{T} = \left[ \begin{array}{rrr} 0 & -1 & -3\\ 1 & 0 & -2\\ 3 & 2 & 0 \end{array} \right]$$

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.

你可以看到,$A^T$ 的每个元都等于 $A$ 中相应元的 $-1$ 倍。因此 $A^{T} = - A$,从而由定义 2,$A$ 是反对称矩阵。

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.

有一个特殊的矩阵 $I$,被称为单位矩阵。单位矩阵总是方阵,其特点是对角线上全为 1,其余位置全为 0。下面是几个不同大小的单位矩阵。
$$\left[ 1\right] ,\left[ \begin{array}{cc} 1 & 0 \\ 0 & 1 \end{array} \right] ,\left[ \begin{array}{ccc} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{array} \right] ,\left[ \begin{array}{cccc} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \end{array} \right]$$

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.

第一个是 $1\times 1$ 单位矩阵,第二个是 $2\times 2$ 单位矩阵,依此类推。由此你大概能看出 $n\times n$ 单位矩阵长什么样。当需要区分所讨论的单位矩阵是哪种大小时,我们用记号 $I_n$ 表示 $n \times n$ 单位矩阵。

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. $

单位矩阵至关重要,为此有一个专门符号来表示单位矩阵的 $ij^{th}$ 元,即 $I_{ij}=\delta _{ij}$,其中 $\delta _{ij}$ 是Kronecker 符号,定义为 $\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.

$I_n$ 之所以称为单位矩阵,是因为在下面这个意义下它是一个乘法单位元

引理 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.$

设 $A$ 是 $m\times n$ 矩阵,$I_{n}$ 是 $n\times n$ 单位矩阵,则 $AI_{n}=A$。若 $I_{m}$ 是 $m\times m$ 单位矩阵,则同样有 $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.

$AI_n$ 的 $(i,j)$-元为 $\sum_{k}a_{ik}\delta _{kj}=a_{ij} $,从而 $AI_{n}=A$。另一种情形($I_{m}A=A$)留作你的练习。

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

一个 $n\times n$ 方阵 $A$ 具有 $A^{-1}$,当且仅当
$$AA^{-1}=A^{-1}A=I_n$$

In this case, the matrix $A$ is called invertible.

此时称矩阵 $A$ 可逆(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.

这样的矩阵 $A^{-1}$ 与矩阵 $A$ 大小相同。必须着重指出:矩阵的逆若存在,则唯一。换一种说法:如果某个矩阵的行为表现得像逆,那它就就是逆。

定理 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}$.

设 $A$ 是 $n \times n$ 矩阵且其逆 $A^{-1}$ 存在。则这样的逆矩阵只有一个。即对任何满足 $AB=BA=I$ 的矩阵 $B$,都有 $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:

在本证明中,假定 $I$ 是 $n \times n$ 单位矩阵。设 $A,B$ 是 $n \times n$ 矩阵,$A^{-1}$ 存在且 $AB=BA=I$。我们要证明 $A^{-1} = B$。利用我们已经见过的性质,可得:
$$A^{-1}=A^{-1}I=A^{-1}\left( AB\right) =\left( A^{-1}A\right) B=IB=B$$

Hence, $A^{-1} = B$ which tells us that the inverse is unique.

因此 $A^{-1} = B$,这就告诉我们逆是唯一的。

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.$

设 $A=\left[ \begin{array}{rr} 1 & 1 \\ 1 & 2 \end{array} \right] $。证明 $\left[ \begin{array}{rr} 2 & -1 \\ -1 & 1 \end{array} \right]$ 是 $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.$

为检验这一点,计算 $\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 $ 以及 $\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 $,这表明该矩阵确实是 $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.

与普通的数相乘不同,可能出现 $A\neq 0$ 但 $A$ 却没有逆的情形。下面的例子说明了这一点。

示例 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.

设 $A=\left[ \begin{array}{rr} 1 & 1 \\ 1 & 1 \end{array} \right] $。证明 $A$ 没有逆。

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.

有人可能会认为,因为 $A$ 不等于零,所以它应当有逆。然而注意 $\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] $。若 $A^{-1}$ 存在,则应有 $\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}$,这也就是说 $\left[ \begin{array}{r} 0 \\ 0 \end{array} \right] = \left[ \begin{array}{r} -1 \\ 1 \end{array} \right] $,而这是不可能的!因此,$A$ 没有逆。

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.

设 $A$ 是 $n\times n$ 矩阵。若 $A^{-1}$ 存在,就先构造增广的 $n\times 2n$ 矩阵 $\left[ A\ \middle|\ I \right] $。若可能,就进行行运算,直到得到形如 $\left[ I\ \middle|\ B \right] $ 的 $n\times 2n$ 矩阵。完成后,$B=A^{-1}$。此时我们称 $A$ 是可逆的(invertible)。若无法行化简为形如 $\left[ I\ \middle|\ B \right] ,$ 的矩阵,则 $A$ 没有逆。

This algorithm shows how to find the inverse if it exists. It will also tell you if $A$ does not have an inverse.

这个算法告诉我们如何求逆(若它存在的话),它也会告诉你 $A$ 是否没有逆。

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.

设 $A=\left[ \begin{array}{rrr} 1 & 2 & 2 \\ 1 & 0 & 2 \\ 3 & 1 & -1 \end{array} \right]$。求 $A^{-1}$(若存在的话)。

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].$

构造增广矩阵 $\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].$$

现在我们进行行化简,目标是让左边得到 $3 \times 3$ 单位矩阵。首先,把第一行的 $-1$ 倍加到第二行,接着把第一行的 $-3$ 倍加到第三行。得到 $$\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]$$ 然后把第二行的 $5$ 倍加到第三行的 $-2$ 倍上。 $$\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]$$ 再把第三行加到第一行的 $-7$ 倍上。得到 $$\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]$$ 现在把第二行的 $-\frac{7}{5}$ 倍加到第一行。 $$\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]$$ 最后,用第一行除以 $-7$、第二行除以 $-10$、第三行除以 $14$,得到 $$\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]$$ 注意这个矩阵的左边现在已经是 $3 \times 3$ 单位矩阵 $I_3$。因此,逆就是右边的 $3 \times 3$ 矩阵,即 $$\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.

设 $A=\left[ \begin{array}{rrr} 1 & 2 & 2 \\ 1 & 0 & 2 \\ 2 & 2 & 4 \end{array} \right]$。求 $A^{-1}$(若存在的话)。

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.

写出增广矩阵 $\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] $,并开始做行运算,试图得到 $\left[ I\ \middle|\ A^{-1} \right] .$ 把第一行的 $-1$ 倍加到第二行,再把第一行的 $-2$ 倍加到第三行。 $$\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]$$ 接下来把第二行的 $-1$ 倍加到第三行。 $$\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]$$ 此时你可以看到,这个增广矩阵的左边无论如何也无法得到 $I$。因此,这个算法无法完成,所以 $A$ 的逆不存在。此时我们说 $A$ 不可逆。

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!

如果该算法为原矩阵给出了逆,那么你总可以检查答案。做法是使用示例 2.6.1 演示的方法:检验乘积 $AA^{-1}$ 和 $A^{-1}A$ 都等于单位矩阵。通过这种方法,你总能确信自己正确地算出了 $A^{-1}$!

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$.

矩阵的逆的一个用途是求线性方程组的解。回顾定义 2.2.4,我们可以把方程组写成矩阵形式,即 $AX=B$ 的形式。假设你求出了矩阵的逆 $A^{-1}$,就可以在这个方程两边左乘 $A^{-1}$,化简得到 $$\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}$$ 因此,我们可以通过计算 $X=A^{-1}B$ 来求得方程组的解 $X$。注意,一旦求出了 $A^{-1}$,对于不同的右边(不同的 $B$)都能轻易得到解,解总是 $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}$$

考虑下面的方程组。利用某个合适的矩阵的逆来给出这个方程组的解。 $$\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.$

首先,我们可以把方程组写成矩阵形式 $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].$

矩阵 $A = \left[ \begin{array}{rrr} 1 & 0 & 1 \\ 1 & -1 & 1 \\ 1 & 1 & -1 \end{array} \right] $ 的逆为 $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].$

接下来,给定方程组的解由 $\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.

如果右边 $B$ 是 $\left[ \begin{array}{r} 0 \\ 1 \\ 3 \end{array} \right]$ 呢?也就是说,方程 $\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]$ 的解是什么?由上述讨论,解由 $\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]$ 给出。这说明,对于存在 $A^{-1}$ 的方程组 $AX=B$,当向量 $B$ 改变时很容易求出解。

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.

设对 $i=1,\ldots,k$,$A, B$ 和 $A_i$ 都是 $n \times n$ 矩阵。
  1. If $A$ is an invertible matrix, then $(A^{T})^{-1} = (A^{-1})^{T}$.
  2. If $A$ and $B$ are invertible matrices, then $AB$ is invertible and $(AB)^{-1} = B^{-1}A^{-1}$.
  3. 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}$.
  1. 若 $A$ 是可逆矩阵,则 $(A^{T})^{-1} = (A^{-1})^{T}$。
  2. 若 $A$ 和 $B$ 都是可逆矩阵,则 $AB$ 可逆,且 $(AB)^{-1} = B^{-1}A^{-1}$。
  3. 若 $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.

设 $A$ 是 $n \times n$ 矩阵,$I$ 是通常的单位矩阵。
  1. $I$ is invertible and $I^{-1} = I$.
  2. If $A$ is invertible then so is $A^{-1}$, and $(A^{-1})^{-1} = A$.
  3. If $A$ is invertible then so is $A^k$, and $(A^k)^{-1} = (A^{-1})^k$.
  4. If $A$ is invertible and $p$ is a nonzero real number, then $pA$ is invertible and $(pA)^{-1} = \frac{1}{p}A^{-1}$.
  1. $I$ 可逆,且 $I^{-1} = I$。
  2. 若 $A$ 可逆,则 $A^{-1}$ 也可逆,且 $(A^{-1})^{-1} = A$。
  3. 若 $A$ 可逆,则 $A^k$ 也可逆,且 $(A^k)^{-1} = (A^{-1})^k$。
  4. 若 $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.

现在我们把注意力转向一种特殊的矩阵,称为初等矩阵(elementary matrix)。初等矩阵总是方阵。回忆定义 1.3.2 给出的行运算。任何初等矩阵(我们常用 $E$ 表示)都是对同阶单位矩阵施行一次行运算得到的。

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.

例如,矩阵 $E = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right] $ 是通过交换两行得到的初等矩阵。矩阵 $E = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 3 & 0 \\ 0 & 0 & 1 \end{array} \right] $ 是把 $3 \times 3$ 单位矩阵的第二行乘以 $3$ 得到的初等矩阵。矩阵 $E = \left[ \begin{array}{rr} 1 & 0 \\ -3 & 1 \end{array} \right] $ 是把第一行的 $-3$ 倍加到第三行得到的初等矩阵。

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$.

设 $E$ 是 $n \times n$ 矩阵。若 $E$ 是对 $n \times n$ 单位矩阵 $I_n$ 施行一次行运算得到的结果,则称 $E$ 为初等矩阵

Those which involve switching rows of the identity matrix are called permutation matrices.

涉及交换单位矩阵各行的初等矩阵称为置换矩阵(permutation matrices)。

Therefore, $E$ constructed above by switching the two rows of $I_2$ is called a permutation matrix.

因此,上面通过交换 $I_2$ 的两行构造出的 $E$ 称为置换矩阵。

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$.

初等矩阵可以代替行运算来使用,因此非常有用。事实证明,在左边乘以一个初等矩阵 $E$,其效果与施行用来得到 $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.

要对矩阵 $A$ 施行三种行运算中的任意一种,只需取乘积 $EA$ 即可,其中 $E$ 是用想要的行运算作用在单位矩阵上得到的初等矩阵。

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.

因此,无需对矩阵 $A$ 逐次施行行运算,我们可以通过与适当的初等矩阵做矩阵乘法来完成行化简。我们将针对定义 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.

设 $P^{ij}$ 表示交换第 $i$ 行与第 $j$ 行所对应的初等矩阵。则 $P^{ij}$ 是置换矩阵,且 $P^{ij}A=B$,其中 $B$ 是由 $A$ 交换第 $i$ 行与第 $j$ 行得到的。

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].$

设 $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$.

求 $B$,其中 $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$.

你可以看到,矩阵 $P^{12}$ 是通过交换 $3 \times 3$ 单位矩阵 $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].$$

按照通常的方法计算乘积 $P^{12}A = B$。结果为 $$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$.

注意,$B$ 是交换 $A$ 的第 $1$ 行与第 $2$ 行得到的矩阵。因此,用 $P^{12}$ 乘 $A$,就把为得到 $P^{12}$ 而对 $I$ 施行的那个行运算施加到了 $A$ 上,从而得到 $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.

定理 1 适用于全部三种行运算,现在我们来看把某行乘以一个标量这一行运算。考虑下面的引理。

引理 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$.

设 $E\left( k,i\right)$ 表示把第 $i$ 行乘以非零标量 $k$ 的行运算所对应的初等矩阵。则 $$E\left( k,i\right) A=B,$$ 其中 $B$ 是把 $A$ 的第 $i$ 行乘以 $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.$

设 $$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].$$ 求矩阵 $B$,其中 $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$.

你可以看到,$E \left(5, 2\right)$ 是把单位矩阵的第二行乘以 $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].$$

按照矩阵乘法的通常方法,我们可以计算乘积 $E \left(5, 2\right)A$。结果矩阵由下式给出 $$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$.

注意,$B$ 是把 $A$ 的第二行乘以标量 $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.$

设 $E\left( k \times i+j\right)$ 表示由 $I$ 把第 $i$ 行的 $k$ 倍加到第 $j$ 行得到的初等矩阵。则 $$E\left( k \times i+j\right) A=B,$$ 其中 $B$ 是 $A$ 的第 $i$ 行的 $k$ 倍加到 $A$ 的第 $j$ 行得到的。

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.$

设 $$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].$$ 求 $B$,其中 $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$.

你可以看到,矩阵 $E\left( 2 \times 1+3\right)$ 是把 $I$ 的第一行的 $2$ 倍加到 $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].$

按照通常的方法,我们可以计算乘积 $E\left( 2 \times 1+3\right)A$。结果矩阵 $B$ 由 $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.

你可以看到,$B$ 是把 $A$ 的第一行的 $2$ 倍加到第三行得到的矩阵。

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$.

假设我们对矩阵 $A$ 施行了一次行运算。考虑把 $A$ 恢复到原来形式所需的行运算,即撤销那次行运算。事实证明,这一操作就是我们求初等矩阵 $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$.

事实上,初等矩阵的逆是通过对 $I$ 施行相反的行运算构造出来的。$E^{-1}$ 将通过施行能把 $E$ 变回 $I$ 的那一行运算来得到。

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}$.

设 $E = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 2 \end{array} \right]$。求 $E^{-1}$。

Solution

Consider the elementary matrix $E$ given by $$E = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 2 \end{array} \right].$$

考虑给出的初等矩阵 $$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].$$

这里,$E$ 是通过把 $2 \times 2$ 单位矩阵的第二行乘以 $2$ 得到的。为了把 $E$ 变回单位矩阵,我们需要把 $E$ 的第二行乘以 $\frac{1}{2}$。因此,$E^{-1}$ 为 $$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].$$

我们可以验证 $EE^{-1}=I$。计算乘积 $EE^{-1}$: $$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.

这个结果等于 $I$,所以我们知道自己正确算出了 $E^{-1}$。

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.

假设一个 $m \times n$ 矩阵 $A$ 经行化简化为它的简化行阶梯形。通过记录完成的每一次行运算,这种行化简可以通过乘以初等矩阵来完成。

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$.

设 $A$ 是 $m \times n$ 矩阵,$B$ 是 $A$ 的简化行阶梯形。则我们可以写 $B = UA$,其中 $U$ 是表示把 $A$ 化为 $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$.

设 $A = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \\ 2 & 0 \end{array} \right]$。求 $B$,即 $A$ 的简化行阶梯形,并把 $B$ 写成 $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]$$

为求 $B$,对 $A$ 做行化简。对每一步,我们都记录相应的初等矩阵。首先交换第 $1$ 行与第 $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$.

得到的矩阵等价于求 $P^{12} =\left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 0 & 0 \\ 0 & 0 & 1 \end{array} \right]$ 与 $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]$$

接下来,把第 $1$ 行的 $-2$ 倍加到第 $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$.

这等价于乘以矩阵 $E(-2 \times 1 + 3) = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & 1 & 0 \\ -2 & 0 & 1 \end{array} \right]$。注意结果矩阵就是 $B$,即 $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}$$

于是我们可以写 $$\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}$$

剩下的就是求矩阵 $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}$$

我们可以验证对这个矩阵 $U$ 确有 $B = UA$: $$\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$.

在上面的例子中使用的过程在只需少数几次行运算时是可靠而简便的,但当把 $A$ 化为 $B$ 需要很多次行运算时就变得繁琐。下面的定理提供了求矩阵 $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]$.

设 $A$ 是 $m \times n$ 矩阵,$B$ 是它的简化行阶梯形。则 $B = UA$,其中 $U$ 是通过构造矩阵 $\left[ A \ \middle| \ I_m \right]$ 并把它行化简为 $\left[ B \ \middle| \ U \right]$ 找到的可逆 $m \times m$ 矩阵。

Let's revisit the above example using the process outlined in Theorem 3.

让我们用定理 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$.

设 $A = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \\ 2 & 0 \end{array}\right]$。用定理 3 概述的过程,求 $U$ 使得 $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$.

首先构造矩阵 $\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] $ 现在对这个矩阵做行化简,直到左边等于 $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}$$

$$\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.

这个矩阵的左边是 $B$,右边是 $U$。把它与上面示例 5 中找到的矩阵 $U$ 相比较,你会发现无论使用哪个过程都得到同一个矩阵。

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.

从算法 2.7.1 可知,$n \times n$ 矩阵 $A$ 可逆当且仅当 $A$ 能用通常的行运算化为 $n \times n$ 单位矩阵。这引出一个与上述讨论相关的重要结论。

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}$$

设 $A$ 是 $n \times n$ 可逆矩阵。照上面那样构造矩阵 $\left[ A \ \middle| \ I_n \right]$,并做行化简直到它成为 $\left[ B \ \middle| \ U \right]$ 的形式。此时 $B = I_n$,因为 $A$ 可逆。 $$\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}.$$

现在假设 $U = E_1 E_2 \cdots E_k$,其中每个 $E_i$ 都是代表把 $A$ 化为 $I$ 所用行运算的初等矩阵。则 $$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.

记住,若 $E_i$ 是初等矩阵,则 $E_i^{-1}$ 也是初等矩阵。由此 $$\begin{aligned} A&= U^{-1} \\ &= E_k^{-1} \cdots E_2^{-1} E_1^{-1}\end{aligned}$$ 于是 $A$ 可以写成初等矩阵的乘积。

定理 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.

设 $A$ 是 $n \times n$ 矩阵。则 $A$ 可逆当且仅当它可以写成初等矩阵的乘积。

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.

设 $A = \left[ \begin{array}{rrr} 0 & 1 & 0 \\ 1 & 1 & 0 \\ 0 & -2 & 1 \end{array} \right]$。把 $A$ 写成初等矩阵的乘积。

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.

我们将用定理 3 概述的过程把 $A$ 写成初等矩阵的乘积。我们构造矩阵 $\left[ A \ \middle| \ I \right]$ 并做行化简,把每一步行运算记录为一个初等矩阵。

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]$.

第一步: $$\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]$$ 用初等矩阵 $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]$.

第二步: $$\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]$$ 用初等矩阵 $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]$.

最后一步: $$\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]$$ 用初等矩阵 $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}$$

注意 $A$ 的简化行阶梯形是 $I$。因此 $I = UA$,其中 $U$ 是上述初等矩阵的乘积。由此 $A = U^{-1}$。既然我们想把 $A$ 写成初等矩阵的乘积,我们就要把 $U^{-1}$ 表示成初等矩阵的乘积。 $$\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.

这给出了把 $A$ 写成初等矩阵乘积的形式。由定理 4 可知 $A$ 是可逆的。

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$.

回忆:初等矩阵是对一个单位矩阵施行一次初等运算得到的方阵。每个初等矩阵都可逆,且它的逆也是初等矩阵。若 $E$ 是 $m \times m$ 初等矩阵,$A$ 是 $m \times n$ 矩阵,则乘积 $EA$ 就是把为得到 $E$ 而施加于 $m \times m$ 单位矩阵的那个初等行运算施加到 $A$ 上的结果。

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}$.

设 $R$ 是 $m \times n$ 矩阵 $A$ 的简化行阶梯形。$R$ 是对 $A$ 反复施加一串初等行运算得到的。用 $E_1, E_2, \cdots, E_k$ 表示为了得到结果 $R$ 而按先后顺序施加到矩阵 $A$ 上的各个初等行运算所对应的初等矩阵。于是 $R = \left( E_k \cdots \left( E_2 \left( E_1A \right) \right)\right) = E_k \cdots E_2E_1A$。设 $E$ 表示乘积矩阵 $E_k \cdots E_2E_1$,于是 $R=EA$,其中 $E$ 是可逆矩阵,其逆为乘积 $(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.

假设 $A$ 和 $B$ 是矩阵,且乘积 $AB$ 是单位矩阵。则 $A$ 的简化行阶梯形没有零行。

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.

设 $R$ 是 $A$ 的简化行阶梯形。则 $R=EA$,其中 $E$ 是上述那样的某个可逆方阵。由假设 $AB=I$($I$ 是单位矩阵),于是有一串等式 $R(BE^{-1}) = (EA)(BE^{-1}) = E(AB)E^{-1} = EIE^{-1} = EE^{-1} = I.$ 若 $R$ 有零行,则乘积 $R(BE^{-1})$ 也会有零行。但由于单位矩阵 $I$ 没有零行,$R$ 也不能有零行。

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.

假设 $A$ 和 $B$ 是矩阵,且乘积 $AB$ 是单位矩阵。则 $A$ 的列数至少与它的行数一样多。

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.

设 $R$ 是 $A$ 的简化行阶梯形。由引理 1 可知 $R$ 没有零行,因此 $R$ 的每一行都有一个首元 $1$。由于 $R$ 的每一列最多含有一个这样的首元 $1$,所以 $R$ 的列数至少与行数一样多。

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$.

假设 $A$ 和 $B$ 是矩阵,且乘积 $AB$ 和 $BA$ 都是单位矩阵。我们将证明 $A$ 和 $B$ 必是同阶方阵。设矩阵 $A$ 有 $m$ 行、$n$ 列,即 $A$ 是 $m \times n$ 矩阵。由于乘积 $AB$ 存在,$B$ 必须有 $n$ 行;又由于乘积 $BA$ 存在,$B$ 必须有 $m$ 列,故 $B$ 是 $n \times m$ 矩阵。要完成证明,我们只需验证 $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.

我们先用引理 2(作用于 $A$ 和 $B$)得到不等式 $m \leq n$。然后再次应用引理 2(交换两矩阵的顺序)得到不等式 $n \leq m$。于是 $m=n$,这正是我们想要的。

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.

若 $R$ 是一个方阵的简化行阶梯形,则 $R$ 要么有零行,要么是单位矩阵。

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}$.

设 $A$ 和 $B$ 是方阵,且 $AB=I$,其中 $I$ 是单位矩阵。则由此可知 $BA=I$。进而 $A$ 和 $B$ 都可逆,且 $B=A^{-1}$、$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$.

设 $R$ 是方阵 $A$ 的简化行阶梯形。则 $R=EA$,其中 $E$ 是可逆矩阵。由于 $AB=I$,引理 1 告诉我们 $R$ 没有零行。注意到 $R$ 是方阵并应用命题 1,我们看到 $R=I$。因此 $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}$.

同时利用 $EA=I$ 和 $AB=I$,我们可以用一串等式完成证明: $$\begin{aligned} BA = IBIA &= (EA)B(E^{-1}E)A \\ &= E(AB)E^{-1}(EA) \\ &= EIE^{-1}I \\ &= EE^{-1} = I\end{aligned}$$ 由矩阵逆的定义可知 $B=A^{-1}$、$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.

这个定理非常有用,因为有了它,我们只需检验 $AB$ 和 $BA$ 中的一个乘积,就可以检查 $B$ 是否为 $A$ 的逆。$A$ 和 $B$ 都是方阵这一假设非常重要,没有它这个定理不成立。

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$.

设 $A = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{array} \right]$,证明 $A^{T}A = I$ 但 $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.

考虑乘积 $A^{T}A$:$\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].$ 因此,$A^{T}A = I_2$,其中 $I_2$ 是 $2 \times 2$ 单位矩阵。然而,乘积 $AA^{T}$ 为 $\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].$ 因此 $AA^{T}$ 不是 $3 \times 3$ 单位矩阵。这说明对定理 2 来说,两个矩阵都是同阶方阵是至关重要的。

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.

是否可能找到矩阵 $A$ 和 $B$,使得 $AB=I$ 而 $BA=0$?这个问题留给读者回答,你应当花点时间思考答案。

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$,下列条件等价:

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.

为证明这一点,我们证明对任何给定的矩阵 $A$,每个条件都蕴含另一个。先证明若 $A$ 可逆,则它的简化行阶梯形是单位矩阵;再证明若 $A$ 的简化行阶梯形是单位矩阵,则 $A$ 可逆。

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.

若 $A$ 可逆,则存在矩阵 $B$ 使得 $AB = I$。由引理 1,得到 $A$ 的简化行阶梯形没有零行。再由定理 1,可知 $A$ 及 $A$ 的简化行阶梯形都是方阵。最后由命题 1,$A$ 的这个简化行阶梯形必是单位矩阵。这证明了第一个蕴含。

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.

现在假设 $A$ 的简化行阶梯形是单位矩阵 $I$。则 $I=EA$,其中 $E$ 是某个初等矩阵的乘积。由定理 2,我们可以得出结论 $A$ 可逆。

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]$.

定理 3 对应于算法 2.7.1,该算法声称 $A^{-1}$ 是通过把增广矩阵 $\left[ A\ \middle|\ I \right]$ 行化简为 $\left[ I\ \middle|\ A^{-1} \right]$ 求得的。这将是一个矩阵乘积 $E\left[ A\ \middle|\ I \right]$,其中 $E$ 是初等矩阵的乘积。由矩阵乘法的规则,我们有 $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}$.

由此可知 $\left[ A\ \middle|\ I \right]$ 的简化行阶梯形是 $\left[ EA\ \middle|\ E \right]$,其中 $EA$ 给出 $A$ 的简化行阶梯形。由定理 3,若 $EA \neq I$,则 $A$ 不可逆;若 $EA=I$,则 $A$ 可逆。若 $EA=I$,则由定理 2,$E=A^{-1}$。这证明了算法 2.7.1 确实能求出 $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".

矩阵的 $LU$ 分解是指把给定矩阵写成两个矩阵的乘积:一个主对角线全为 1 的下三角矩阵 $L$,以及一个上三角矩阵 $U$,按所指示的顺序相乘。这里讨论的是这一版本,但有时 $L$ 的主对角线上也会有 1 以外的数。这仍然是一个有用的概念。$L$ 对应"下"(lower),$U$ 对应"上"(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.

事实证明许多矩阵都可以写成这种形式,而当这成为可能时,人们会为求解方程组 $AX=B$ 的巧妙方法而兴奋。正是出于这个原因,你会想要学习 $LU$ 分解。它让你只需要处理三角矩阵。事实证明,求 $LU$ 分解所需的运算量大约是求简化行阶梯形所需的一半。

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.

首先应当指出,并非所有矩阵都有 $LU$ 分解,因此我们将着重讲解达成它的技巧,而不是形式化的证明。

示例 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?

你能把矩阵 $\left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$ 写成刚才所描述的形式 $LU$ 吗?

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] .$

要做到这一点,你需要 $\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.

因此,$b=1$、$a=0.$ 同时,由下面各行得 $xa=1$,而在 $a=0$ 的情况下这是不可能的。因此,你不能把这个矩阵写成 $LU$ 的形式。它没有 $LU$ 分解。这就是我们上面说该方法缺乏一般性时所指的意思。

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$ 分解的众多方法中的一种。

目测求 $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.

哪些矩阵有 $LU$ 分解?事实证明,是那些无需交换行就能得到行阶梯形的矩阵。换句话说,是只需用第 2 类或第 3 类行运算就能得到行阶梯形的矩阵。

示例 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] .$

求 $A=\left[ \begin{array}{cccc} 1 & 2 & 0 & 2 \\ 1 & 3 & 2 & 1 \\ 2 & 3 & 4 & 0 \end{array} \right]$ 的一个 $LU$ 分解。

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].$$

求 $LU$ 分解的一种方法是直接去寻找它。你需要 $$\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.

将两者相乘得到 $\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] $,于是你现在就可以知道各个量分别等于什么了。由第一列,你需要 $a=1,x=1,y=2.$ 现在看第二列,你需要 $d=2,xd+b=3$ 于是 $b=1,yd+zb=3$ 于是 $z=-1.$ 由第三列得 $h=0,e=2,c=6.$ 再由第四列得 $j=2,i=-1,f=-5.$ 因此,一个 $LU$ 分解是 $\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] .$ 你可以通过直接把两者相乘来检验是否算对了。

$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$.

记住,要把矩阵 $A$ 写成 $A=LU$ 的形式,你必须能够在不交换行的前提下把它化简为行阶梯形。下面的方法给出了计算这样的矩阵 $A$ 的 $LU$ 分解的一个过程。

示例 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].$

求 $\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 3 & 1 \\ -2 & 3 & -2 \end{array} \right]$ 的一个 $LU$ 分解。

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]$

把矩阵写成如下的乘积。$\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.

对右边的矩阵,从第一行开始,用以"把某行的倍数加到另一行"的行运算把顶部以下的各元清零。你同时更新左边的矩阵,使得乘积保持不变。这是第一步:把顶行的 $-2$ 倍加到第二行,然后在左边矩阵中把顶行的 $2$ 倍加到第二行。$\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] $ 下一步是把右边矩阵中顶行的 $2$ 倍加到底行。为保证乘积不变,你在左边矩阵的左下角放一个 $-2$。于是这一步得到 $\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] $ 接下来把右边中间一行的 $7$ 倍加到底行。像刚才那样类似地更新左边的矩阵,得到 $\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] $ 此时停下,你就完成了。

The method just described is called the multiplier method.

刚才描述的方法称为乘数法(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.

人们关心 $LU$ 分解的一个原因是,它允许快速求解方程组。下面是一个例子。

示例 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] .$

假设你想求 $\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] .$

当然,一种方法是写出增广矩阵然后硬着头皮算。然而,这比计算 $LU$ 分解要做更多行运算,而事实证明 $LU$ 分解可以快速给出解。做法如下。下面就是这个矩阵的一个 $LU$ 分解。$\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] .$

令 $UX=Y$ 并考虑 $LY=B$,此处 $B=\left[ 1,2,3\right] ^{T}$。于是 $\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] $,很快得到 $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{.}$

现在你可以通过解 $UX=Y$ 来求 $X$。于是在本例中,$\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] $ 得 $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.

为什么乘数法能用来求 $LU$ 分解呢?假设 $A$ 是具有"其行阶梯形无需交换行即可得到"这一性质的矩阵。于是,在求行阶梯形的过程中,凡是借这一行运算被替换的行,都可以用位于其上方的一行来修改。

引理 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.

设 $L$ 是主对角线全为 1 的 $m\times m$ 下(上)三角矩阵。则 $L^{-1}$ 也是主对角线全为 1 的下(上)三角矩阵。当 $L$ 具有如下形式时 $$L=\left[ \begin{array}{cccc} 1 & & & \\ a_{1} & 1 & & \\ \vdots & & \ddots & \\ a_{n} & & & 1 \end{array} \right]$$ (除第一列和主对角线外所有元都是零),也有这样的结论:$L^{-1}$ 是把 $L$ 中主对角线以下的每个元都乘以 $-1$ 得到的。若这唯一的非零列位于其他位置,结论同样成立。

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}$.

考虑求逆的通常设置 $\left[ \begin{array}{cc} L & I \end{array} \right] .$ 那么,为了化简到简化行阶梯形而施加于 $L$ 的每一步行运算,都只会改变 $I$ 中主对角线以下的元。在 $L$ 由上式计算给出的特殊情形,或唯一的非零列位于其他位置时,按引理中描述的那样乘以 $-1$,清楚地得出 $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].$

对最后这个论断作一个简单的说明:$\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.

现在设 $A$ 是 $m\times n$ 矩阵,比如 $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] $,并假设 $A$ 只用行运算 3 就可以行化简为上三角形式。于是特别地,$a_{11}\neq 0$。左边乘以 $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] $,这是仅在第一列作出修改的初等矩阵的乘积。它等价于把第一行的 $-a_{21}/a_{11}$ 倍加到第二行,再把第一行的 $-a_{31}/a_{11}$ 倍加到第三行,依此类推。上面矩阵第一列中的那些商就是乘数。于是结果具有形式 $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] $。由假设 $a_{22}^{\prime }\neq 0$,于是可以借这个元,通过乘以形如 $E_{2}=\left[ \begin{array}{cc} 1 & \mathbf{0} \\ \mathbf{0} & E \end{array} \right]$ 的矩阵来清除右边矩阵中它以下的全部元,其中 $E$ 是 $(m-1)\times (m-1)$ 矩阵,形如 $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] $。同样地,第一列中 1 以下的那些元就是乘数。这样继续下去,清除对角元以下的各个元,最终导出 $E_{m-1}E_{m-2}\cdots E_{1}A=U $,其中 $U$ 是上三角矩阵。每个 $E_{j}$ 的主对角线全为 1 且是下三角矩阵。现在把两边按相反顺序乘以各 $E_{j}$ 的逆,得到 $A=E_{1}^{-1}E_{2}^{-1}\cdots E_{m-1}^{-1}U $。由引理 1,这意味着那些 $E_{j}^{-1}$ 的乘积是主对角线全为 1 的下三角矩阵。

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] $

上面的讨论和引理给出了乘数法的依据。在构造 $E_{1}$ 时得到的表达式 $\frac{-a_{21}}{a_{11}},\frac{-a_{31}}{a_{11}},\cdots, \frac{-a_{m1}}{a_{11}} $(为简记分别记为 $M_{21},\cdots ,M_{m1}$)就是乘数。于是根据引理,为求 $E_{1}^{-1}$,你只需写出 $\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] $。对其他的 $E_{j}^{-1}$ 也有类似的处理。于是 $L$ 是如下形式的乘积 $\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] $,每个因子至多有一个非零列,从左到右扫描上述矩阵乘积时,该非零列的位置从左向右移动。由我们对左边乘以初等矩阵之效果已知的知识可知,上述乘积具有形式 $\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.$

用语言来说,从最左边一列开始向右移动,你只需在单位矩阵的相应位置插入"负 1 倍于用来清除 $A$ 中该位置(主对角线以下)那个元的乘数",同时保持主对角线全为 1。这就是 $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+B$ 是否有定义。若有定义,求出这个和。
  1. $A = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right],\ B = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$
  2. $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]$
  3. $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]$
  1. $A = \left[ \begin{array}{rr} 1 & 0 \\ 0 & 1 \end{array} \right],\ B = \left[ \begin{array}{rr} 0 & 1 \\ 1 & 0 \end{array} \right]$
  2. $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]$
  3. $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$,求出满足 $A + (-A) = 0$ 的矩阵 $-A$。
  1. $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
  2. $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
  3. $A = \left[ \begin{array}{rrr} 0 & 1 & 2 \\ 1 & -1 & 3 \\ 4 & 2 & 0 \end{array} \right]$
  1. $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
  2. $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
  3. $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.$

在命题 2.1.1 的语境下,描述 $-A$ 和 $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.

答案:为得到 $-A,$ 只需把 $A$ 的每个元都换成它的加法逆元。零矩阵 $0$ 就是所有元都是零的矩阵。

2.1.2 矩阵的标量乘法 Scalar Multiplication of Matrices

习题 4 Exercise 4

For each matrix $A$, find the product $(-2)A,\ 0A,$ and $3A.$

对每个矩阵 $A$,求出乘积 $(-2)A,\ 0A$ 和 $3A.$
  1. $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
  2. $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
  3. $A = \left[ \begin{array}{rrr} 0 & 1 & 2 \\ 1 & -1 & 3 \\ 4 & 2 & 0 \end{array} \right]$
  1. $A = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 1 \end{array} \right]$
  2. $A = \left[ \begin{array}{rr} -2 & 3 \\ 0 & 2 \end{array} \right]$
  3. $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.

只使用命题 2.1.1 和命题 2.1.2 所给的性质,证明 $-A$ 是唯一的。

Answer: Suppose $B$ also works. Then $-A=-A+\left( A+B\right) =\left( -A+A\right) +B=0+B=B .$

答案:设 $B$ 也满足条件,则 $-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.

只使用命题 2.1.1 和命题 2.1.2 所给的性质,证明 $0$ 是唯一的。

Answer: Suppose $0^{\prime }$ also works. Then $0^{\prime }=0^{\prime }+0=0.$

答案:设 $0^{\prime }$ 也满足条件,则 $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.

只使用命题 2.1.1 和命题 2.1.2 所给的性质,证明 $0A=0.$ 这里左边的 $0$ 是标量 $0$,右边的 $0$ 是适当大小的零矩阵。

Answer: $0A=\left( 0+0\right) A=0A+0A.$ Now add $-\left( 0A\right)$ to both sides. Then $0=0A.$

答案:$0A=\left( 0+0\right) A=0A+0A.$ 现在两边同时加上 $-\left( 0A\right)$,于是 $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.$

只使用命题 2.1.1 和命题 2.1.2 所给的性质,以及前面各题,证明 $\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.$

答案:$A+\left( -1\right) A=\left( 1+\left( -1\right) \right) A=0A=0.$ 因此,由上面第 7 题所证加法逆元的唯一性可知,$-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].$

考虑矩阵 $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.

求下列各式(若可能)。若不可能,说明原因。
  1. $-3A$
  2. $3B-A$
  3. $AC$
  4. $CB$
  5. $AE$
  6. $EA$
  1. $-3A$
  2. $3B-A$
  3. $AC$
  4. $CB$
  5. $AE$
  6. $EA$

Answer:

答案:
  1. $\left[ \begin{array}{rrr} -3 & -6 & -9 \\ -6 & -3 & -21 \end{array} \right]$
  2. $\left[ \begin{array}{rrr} 8 & -5 & 3 \\ -11 & 5 & -4 \end{array} \right]$
  3. Not possible
  4. $\left[ \begin{array}{rrr} -3 & 3 & 4 \\ 6 & -1 & 7 \end{array} \right]$
  5. Not possible
  6. Not possible
  1. $\left[ \begin{array}{rrr} -3 & -6 & -9 \\ -6 & -3 & -21 \end{array} \right]$
  2. $\left[ \begin{array}{rrr} 8 & -5 & 3 \\ -11 & 5 & -4 \end{array} \right]$
  3. 不可能。
  4. $\left[ \begin{array}{rrr} -3 & 3 & 4 \\ 6 & -1 & 7 \end{array} \right]$
  5. 不可能。
  6. 不可能。

习题 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].$

考虑矩阵 $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.

求下列各式(若可能)。若不可能,说明原因。
  1. $-3A$
  2. $3B-A$
  3. $AC$
  4. $CA$
  5. $AE$
  6. $EA$
  7. $BE$
  8. $DE$
  1. $-3A$
  2. $3B-A$
  3. $AC$
  4. $CA$
  5. $AE$
  6. $EA$
  7. $BE$
  8. $DE$

Answer:

答案:
  1. $\left[ \begin{array}{rr} -3 & -6 \\ -9 & -6 \\ -3 & 3 \end{array} \right]$
  2. Not possible.
  3. $\left[ \begin{array}{rr} 11 & 2 \\ 13 & 6 \\ -4 & 2 \end{array} \right]$
  4. Not possible.
  5. $\left[ \begin{array}{r} 7 \\ 9 \\ -2 \end{array} \right]$
  6. Not possible.
  7. Not possible.
  8. $\left[ \begin{array}{r} 2 \\ -5 \end{array} \right]$
  1. $\left[ \begin{array}{rr} -3 & -6 \\ -9 & -6 \\ -3 & 3 \end{array} \right]$
  2. 不可能。
  3. $\left[ \begin{array}{rr} 11 & 2 \\ 13 & 6 \\ -4 & 2 \end{array} \right]$
  4. 不可能。
  5. $\left[ \begin{array}{r} 7 \\ 9 \\ -2 \end{array} \right]$
  6. 不可能。
  7. 不可能。
  8. $\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.

设 $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],$ 且 $C=\left[ \begin{array}{rrr} 1 & 1 & -3 \\ -1 & 2 & 0 \\ -3 & -1 & 0 \end{array} \right].$ 求下列各式(若可能)。
  1. $AB$
  2. $BA$
  3. $AC$
  4. $CA$
  5. $CB$
  6. $BC$
  1. $AB$
  2. $BA$
  3. $AC$
  4. $CA$
  5. $CB$
  6. $BC$

Answer:

答案:
  1. $\left[ \begin{array}{rrr} 3 & 0 & -4 \\ -4 & 1 & 6 \\ 5 & 1 & -6 \end{array} \right]$
  2. $\left[ \begin{array}{rr} 1 & -2 \\ -2 & -3 \end{array} \right]$
  3. Not possible
  4. $\left[ \begin{array}{rr} -4 & -6 \\ -5 & -3 \\ -1 & -2 \end{array} \right]$
  5. $\left[ \begin{array}{rrr} 8 & 1 & -3 \\ 7 & 6 & -6 \end{array} \right]$
  6. $BC$ is not given.
  1. $\left[ \begin{array}{rrr} 3 & 0 & -4 \\ -4 & 1 & 6 \\ 5 & 1 & -6 \end{array} \right]$
  2. $\left[ \begin{array}{rr} 1 & -2 \\ -2 & -3 \end{array} \right]$
  3. 不可能。
  4. $\left[ \begin{array}{rr} -4 & -6 \\ -5 & -3 \\ -1 & -2 \end{array} \right]$
  5. $\left[ \begin{array}{rrr} 8 & 1 & -3 \\ 7 & 6 & -6 \end{array} \right]$
  6. $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.$

设 $A=\left[ \begin{array}{rr} -1 & -1 \\ 3 & 3 \end{array} \right].$ 求所有满足 $AB=0$ 的 $2\times 2$ 矩阵 $B.$

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].$

答案: $$\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}$$ 解得 $w=-y,\ x=-z$,因此这些矩阵具有形式 $\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.

设 $X=\left[ \begin{array}{rrr} -1 & -1 & 1 \end{array} \right]$ 且 $Y=\left[ \begin{array}{rrr} 0 & 1 & 2 \end{array} \right].$ 求 $X^{T}Y$ 和 $XY^{T}$(若可能)。

Answer: $$X^{T}Y = \left[ \begin{array}{rrr} 0 & -1 & -2 \\ 0 & -1 & -2 \\ 0 & 1 & 2 \end{array} \right],\ XY^{T} = 1.$$

答案: $$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?

设 $A=\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right],\ B=\left[ \begin{array}{rr} 1 & 2 \\ 3 & k \end{array} \right].$ 能否选取 $k$ 使得 $AB=BA?$ 若能,$k$ 应等于多少?

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.$

答案: $$\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}$$ 因此必须有 $\begin{array}{c} 3k+3=15 \\ 2k+2=10 \end{array}$,解得 $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?

设 $A=\left[ \begin{array}{rr} 1 & 2 \\ 3 & 4 \end{array} \right],\ B=\left[ \begin{array}{rr} 1 & 2 \\ 1 & k \end{array} \right].$ 能否选取 $k$ 使得 $AB=BA?$ 若能,$k$ 应等于多少?

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.

答案: $$\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}$$ 然而 $7\neq 3$,因此不存在能使这两个矩阵可交换的 $k$ 的取值。

习题 16 Exercise 16

Find $2\times 2$ matrices $A$, $B,$ and $C$ such that $A\neq 0,\ C\neq B,$ but $AC=AB.$

求 $2\times 2$ 矩阵 $A,\ B,$ 和 $C$,使得 $A\neq 0,\ C\neq B,$ 但 $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}$$

答案:取 $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.$

举出满足 $B\neq C$,$A\neq 0,$ 但 $AB=AC$ 的矩阵(任意大小)$A,B,C$ 的例子。

习题 18 Exercise 18

Find $2 \times 2$ matrices $A$ and $B$ such that $A \neq 0$ and $B \neq 0$ but $AB = 0$.

求 $2 \times 2$ 矩阵 $A$ 和 $B$,使得 $A \neq 0$、$B \neq 0$ 但 $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]$

答案:取 $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.$

举出满足 $A \neq 0$、$B \neq 0$ 但 $AB=0$ 的矩阵(任意大小)$A,B$ 的例子。

习题 20 Exercise 20

Find $2 \times 2$ matrices $A$ and $B$ such that $A \neq 0$ and $B \neq 0$ with $AB \neq BA$.

求 $2 \times 2$ 矩阵 $A$ 和 $B$,使得 $A \neq 0$、$B \neq 0$ 且 $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}$$

答案:取 $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.

把方程组 $\begin{array}{c} x_{1}-x_{2}+2x_{3} \\ 2x_{3}+x_{1} \\ 3x_{3} \\ 3x_{4}+3x_{2}+x_{1} \end{array}$ 写成形式 $A\left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \\ x_{4} \end{array} \right]$,其中 $A$ 是一个适当的矩阵。

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]$$

答案: $$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.

把方程组 $\begin{array}{c} x_{1}+3x_{2}+2x_{3} \\ 2x_{3}+x_{1} \\ 6x_{3} \\ x_{4}+3x_{2}+x_{1} \end{array}$ 写成形式 $A\left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \\ x_{4} \end{array} \right]$,其中 $A$ 是一个适当的矩阵。

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]$$

答案: $$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.

把方程组 $\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}$ 写成形式 $A\left[ \begin{array}{c} x_{1} \\ x_{2} \\ x_{3} \\ x_{4} \end{array} \right]$,其中 $A$ 是一个适当的矩阵。

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]$$

答案: $$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.

若 $A^{2}=A$,则称矩阵 $A$ 是幂等的(idempotent)。设 $A= \left[ \begin{array}{rrr} 2 & 0 & 2 \\ 1 & 1 & 2 \\ -1 & 0 & -1 \end{array} \right]$,证明 $A$ 是幂等的。

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$.

对下面每对矩阵,求出乘积 $AB$ 的 $(1,2)$ 元和 $(2,3)$ 元。
  1. $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]$
  2. $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]$
  1. $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]$
  2. $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?

设 $A$ 和 $B$ 是同大小的方阵。下列各式哪些必然成立?
  1. $\left( A-B\right) ^{2}=A^{2}-2AB+B^{2}$
  2. $\left( AB\right) ^{2}=A^{2}B^{2}$
  3. $\left( A+B\right) ^{2}=A^{2}+2AB+B^{2}$
  4. $\left( A+B\right) ^{2}=A^{2}+AB+BA+B^{2}$
  5. $A^{2}B^{2}=A\left( AB\right) B$
  6. $\left( A+B\right) ^{3}=A^{3}+3A^{2}B+3AB^{2}+B^{3}$
  7. $\left( A+B\right) \left( A-B\right) =A^{2}-B^{2}$
  1. $\left( A-B\right) ^{2}=A^{2}-2AB+B^{2}$
  2. $\left( AB\right) ^{2}=A^{2}B^{2}$
  3. $\left( A+B\right) ^{2}=A^{2}+2AB+B^{2}$
  4. $\left( A+B\right) ^{2}=A^{2}+AB+BA+B^{2}$
  5. $A^{2}B^{2}=A\left( AB\right) B$
  6. $\left( A+B\right) ^{3}=A^{3}+3A^{2}B+3AB^{2}+B^{3}$
  7. $\left( A+B\right) \left( A-B\right) =A^{2}-B^{2}$

Answer:

答案:
  1. Not necessarily true.
  2. Not necessarily true.
  3. Not necessarily true.
  4. Necessarily true.
  5. Necessarily true.
  6. Not necessarily true.
  7. Not necessarily true.
  1. 不一定成立。
  2. 不一定成立。
  3. 不一定成立。
  4. 必然成立。
  5. 必然成立。
  6. 不一定成立。
  7. 不一定成立。

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].$

考虑矩阵 $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.

求下列各式(若可能)。若不可能,说明原因。
  1. $-3A^{T}$
  2. $3B - A^{T}$
  3. $E^{T}B$
  4. $EE^{T}$
  5. $B^{T}B$
  6. $CA^{T}$
  7. $D^{T}BE$
  1. $-3A^{T}$
  2. $3B - A^{T}$
  3. $E^{T}B$
  4. $EE^{T}$
  5. $B^{T}B$
  6. $CA^{T}$
  7. $D^{T}BE$

Answer:

答案:
  1. $\left[ \begin{array}{rrr} -3 & -9 & -3 \\ -6 & -6 & 3 \end{array} \right]$
  2. $\left[ \begin{array}{rrr} 5 & -18 & 5 \\ -11 & 4 & 4 \end{array} \right]$
  3. $\left[ \begin{array}{rrr} -7 & 1 & 5 \end{array} \right]$
  4. $\left[ \begin{array}{rr} 1 & 3 \\ 3 & 9 \end{array} \right]$
  5. $\left[ \begin{array}{rrr} 13 & -16 & 1 \\ -16 & 29 & -8 \\ 1 & -8 & 5 \end{array} \right]$
  6. $\left[ \begin{array}{rrr} 5 & 7 & -1 \\ 5 & 15 & 5 \end{array} \right]$
  7. Not possible.
  1. $\left[ \begin{array}{rrr} -3 & -9 & -3 \\ -6 & -6 & 3 \end{array} \right]$
  2. $\left[ \begin{array}{rrr} 5 & -18 & 5 \\ -11 & 4 & 4 \end{array} \right]$
  3. $\left[ \begin{array}{rrr} -7 & 1 & 5 \end{array} \right]$
  4. $\left[ \begin{array}{rr} 1 & 3 \\ 3 & 9 \end{array} \right]$
  5. $\left[ \begin{array}{rrr} 13 & -16 & 1 \\ -16 & 29 & -8 \\ 1 & -8 & 5 \end{array} \right]$
  6. $\left[ \begin{array}{rrr} 5 & 7 & -1 \\ 5 & 15 & 5 \end{array} \right]$
  7. 不可能。

习题 28 Exercise 28

Let $A$ be an $n\times n$ matrix. Show $A$ equals the sum of a symmetric and a skew symmetric matrix.

设 $A$ 是 $n\times n$ 矩阵。证明 $A$ 等于一个对称矩阵与一个反对称矩阵之和。

Hint: Show that $\frac{1}{2}\left( A^{T}+A\right)$ is symmetric and then consider using this as one of the matrices.

提示:证明 $\frac{1}{2}\left( A^{T}+A\right)$ 是对称的,然后考虑把它用作其中一个矩阵。

习题 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}$.

证明每个反对称矩阵的主对角线都由零组成。回顾:主对角线由矩阵中所有形如 $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$.

答案:若 $A$ 是反对称的,则 $A=-A^{T}.$ 由此可知 $a_{ii}=-a_{ii}$,于是每个 $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.5.1 中的第 3 条。即证明:对 $m\times n$ 矩阵 $A$、$m\times n$ 矩阵 $B$ 以及标量 $r,s$,下式成立:$\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.

证明 $I_{m}A=A$,其中 $A$ 是 $m\times n$ 矩阵。

Answer: $$\left( I_{m}A\right) _{ij}\equiv \sum_{j}\delta _{ik}A_{kj}=A_{ij}$$

答案: $$\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.

设 $AB=AC$ 且 $A$ 是可逆的 $n\times n$ 矩阵。能否由此推出 $B=C?$ 解释其原因或理由。

Answer: Yes $B=C$. Multiply $AB = AC$ on the left by $A^{-1}$.

答案:是的,$B=C$。把 $AB = AC$ 两边同时左乘 $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.

设 $AB=AC$ 且 $A$ 是(不可逆的)$n\times n$ 非可逆矩阵。能否由此推出 $B=C$?解释其原因或理由。

习题 34 Exercise 34

Give an example of a matrix $A$ such that $A^{2}=I$ and yet $A\neq I$ and $A\neq -I.$

举出满足 $A^{2}=I$ 但 $A\neq I$ 且 $A\neq -I$ 的矩阵 $A$ 的例子。

Answer: $$A = \left[ \begin{array}{rrr} 1 & 0 & 0 \\ 0 & -1 & 0 \\ 0 & 0 & 1 \end{array} \right]$$

答案: $$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.

设 $A=\left[ \begin{array}{rr} 2 & 1 \\ -1 & 3 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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]$$

答案: $$\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.

设 $A=\left[ \begin{array}{rr} 0 & 1 \\ 5 & 3 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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]$$

答案: $$\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.

设 $A=\left[ \begin{array}{rr} 2 & 1 \\ 3 & 0 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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]$$

答案: $$\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.

设 $A=\left[ \begin{array}{rr} 2 & 1 \\ 4 & 2 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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].$$

答案: $$\left[ \begin{array}{cc} 2 & 1 \\ 4 & 2 \end{array} \right]^{-1}$$ 不存在。该矩阵的简化行阶梯形为 $$\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.$

设 $A$ 是 $2\times 2$ 可逆矩阵,$A=\left[ \begin{array}{cc} a & b \\ c & d \end{array} \right].$ 用 $a,b,c,d$ 表示求 $A^{-1}$ 的公式。

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]$$

答案: $$\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.

设 $A=\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 1 & 4 \\ 1 & 0 & 2 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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]$$

答案: $$\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.

设 $A=\left[ \begin{array}{rrr} 1 & 0 & 3 \\ 2 & 3 & 4 \\ 1 & 0 & 2 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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]$$

答案: $$\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.

设 $A=\left[ \begin{array}{rrr} 1 & 2 & 3 \\ 2 & 1 & 4 \\ 4 & 5 & 10 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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.

答案:简化行阶梯形为 $$\left[ \begin{array}{ccc} 1 & 0 & \frac{5}{3} \\ 0 & 1 & \frac{2}{3} \\ 0 & 0 & 0 \end{array} \right].$$ 没有逆矩阵。

习题 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.

设 $A=\left[ \begin{array}{rrrr} 1 & 2 & 0 & 2 \\ 1 & 1 & 2 & 0 \\ 2 & 1 & -3 & 2 \\ 1 & 2 & 1 & 2 \end{array} \right].$ 求 $A^{-1}$(若可能)。若 $A^{-1}$ 不存在,说明原因。

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]$$

答案: $$\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:

利用矩阵的逆,求下列方程组的解:
  1. $\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]$
  2. $\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]$
  1. $\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]$
  2. $\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].$

现在用 $a$ 和 $b$ 表示 $\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:

利用矩阵的逆,求下列方程组的解:
  1. $\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]$
  2. $\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]$
  1. $\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]$
  2. $\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].$

现在用 $a,b$ 和 $c$ 表示下面方程组的解:$\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:

答案:
  1. $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 1 \\ -\frac{2}{3} \\ 0 \end{array} \right]$
  2. $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{r} -12 \\ 1 \\ 5 \end{array} \right]$
  3. $\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]$
  1. $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] =\left[ \begin{array}{c} 1 \\ -\frac{2}{3} \\ 0 \end{array} \right]$
  2. $\left[ \begin{array}{c} x \\ y \\ z \end{array} \right] = \left[ \begin{array}{r} -12 \\ 1 \\ 5 \end{array} \right]$
  3. $\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$.

证明:若 $A$ 是 $n\times n$ 可逆矩阵,$X$ 是 $n\times 1$ 矩阵且对某个 $n\times 1$ 矩阵 $B$ 有 $AX=B$,则 $X=A^{-1}B$。

Answer: Multiply both sides of $AX=B$ on the left by $A^{-1}$.

答案:把 $AX=B$ 两边同时左乘 $A^{-1}$。

习题 47 Exercise 47

Prove that if $A^{-1}$ exists and $AX=0$ then $X=0$.

证明:若 $A^{-1}$ 存在且 $AX=0$,则 $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 .$

答案:两边同时左乘 $A^{-1}.$ 于是 $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}.$

证明:若对 $n\times n$ 矩阵 $A$ 而言 $A^{-1}$ 存在,则它是唯一的。即若 $BA=I$ 且 $AB=I,$ 则 $B=A^{-1}.$

Answer: $$A^{-1}=A^{-1}I=A^{-1}\left( AB\right) =\left( A^{-1}A\right) B=IB=B.$$

答案: $$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}.$

证明:若 $A$ 是 $n\times n$ 可逆矩阵,则 $A^{T}$ 也是可逆的,且 $\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.

答案:你需要证明 $\left( A^{-1}\right) ^{T}$ 起 $A^{T}$ 的逆的作用,因为由上面一题的唯一性,这就能推出它确实是逆。由转置的性质,$$\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}$$ 因此 $\left( A^{-1}\right) ^{T}=\left( A^{T}\right) ^{-1}$,且这最后一个矩阵存在。

习题 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.

通过验证 $AB\left( B^{-1}A^{-1}\right) =I $ 和 $B^{-1}A^{-1}\left( AB\right) =I $ 来证明 $\left( AB\right) ^{-1}=B^{-1}A^{-1}.$ 提示:使用第 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$$

答案: $$\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.

通过验证 $\left( ABC\right) \left( C^{-1}B^{-1}A^{-1}\right) =I $ 和 $\left( C^{-1}B^{-1}A^{-1}\right)\left( ABC\right) =I $ 来证明 $\left( ABC\right) ^{-1}=C^{-1}B^{-1}A^{-1}.$ 提示:使用第 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.

若 $A$ 可逆,证明 $\left( A^{2}\right) ^{-1}=\left( A^{-1}\right) ^{2}.$ 提示:使用第 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$$

答案: $$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.

若 $A$ 可逆,证明 $\left( A^{-1}\right) ^{-1}=A.$ 提示:使用第 48 题。

Answer: $A^{-1}A=AA^{-1}=I$ and so by uniqueness, $\left( A^{-1}\right) ^{-1}=A$.

答案: $A^{-1}A=AA^{-1}=I$,于是由唯一性,$\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.

设 $A = \left[ \begin{array}{rr} 2 & 3 \\ 1 & 2 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rr} 1 & 2 \\ 2 & 3 \end{array}\right].$ 求表示该行运算的初等矩阵 $E$。

习题 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.

设 $A = \left[ \begin{array}{rr} 4 & 0 \\ 2 & 1 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rr} 8 & 0 \\ 2 & 1 \end{array}\right].$ 求表示该行运算的初等矩阵 $E$。

习题 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.

设 $A = \left[ \begin{array}{rr} 1 & -3 \\ 0 & 5 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rr} 1 & -3 \\ 2 & -1 \end{array}\right].$ 求表示该行运算的初等矩阵 $E$。

习题 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].$

设 $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 2 & -1 & 4 \\ 0 & 5 & 1 \end{array}\right].$
  1. Find the elementary matrix $E$ such that $EA = B$.
  2. Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
  1. 求初等矩阵 $E$,使得 $EA = B$。
  2. 求 $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].$

设 $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 10 & 2 \\ 2 & -1 & 4 \end{array}\right].$
  1. Find the elementary matrix $E$ such that $EA = B$.
  2. Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
  1. 求初等矩阵 $E$,使得 $EA = B$。
  2. 求 $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].$

设 $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 1 & -\frac{1}{2} & 2 \end{array}\right].$
  1. Find the elementary matrix $E$ such that $EA = B$.
  2. Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
  1. 求初等矩阵 $E$,使得 $EA = B$。
  2. 求 $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].$

设 $A = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 0 & 5 & 1 \\ 2 & -1 & 4 \end{array}\right].$ 对 $A$ 施行某一初等行运算后得到 $B = \left[ \begin{array}{rrr} 1 & 2 & 1 \\ 2 & 4 & 5 \\ 2 & -1 & 4 \end{array}\right].$
  1. Find the elementary matrix $E$ such that $EA = B$.
  2. Find the inverse of $E$, $E^{-1}$, such that $E^{-1}B = A$.
  1. 求初等矩阵 $E$,使得 $EA = B$。
  2. 求 $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].$

求 $\left[ \begin{array}{rrr} 1 & 2 & 0 \\ 2 & 1 & 3 \\ 1 & 2 & 3 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求 $\left[ \begin{array}{rrrr} 1 & 2 & 3 & 2 \\ 1 & 3 & 2 & 1 \\ 5 & 0 & 1 & 3 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求矩阵 $\left[ \begin{array}{rrrr} 1 & -2 & -5 & 0 \\ -2 & 5 & 11 & 3 \\ 3 & -6 & -15 & 1 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求矩阵 $\left[ \begin{array}{rrrr} 1 & -1 & -3 & -1 \\ -1 & 2 & 4 & 3 \\ 2 & -3 & -7 & -3 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求矩阵 $\left[ \begin{array}{rrrr} 1 & -3 & -4 & -3 \\ -3 & 10 & 10 & 10 \\ 1 & -6 & 2 & -5 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求矩阵 $\left[ \begin{array}{rrrr} 1 & 3 & 1 & -1 \\ 3 & 10 & 8 & -1 \\ 2 & 5 & -3 & -3 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求矩阵 $\left[ \begin{array}{rrr} 3 & -2 & 1 \\ 9 & -8 & 6 \\ -6 & 2 & 2 \\ 3 & 2 & -7 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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].$

求矩阵 $\left[ \begin{array}{rrr} -3 & -1 & 3 \\ 9 & 9 & -12 \\ 3 & 19 & -16 \\ 12 & 40 & -26 \end{array} \right]$ 的一个 $LU$ 分解。

习题 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].$

求矩阵 $\left[ \begin{array}{rrr} -1 & -3 & -1 \\ 1 & 3 & 0 \\ 3 & 9 & 0 \\ 4 & 12 & 16 \end{array} \right]$ 的一个 $LU$ 分解。

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]$$

答案: $$\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}$

用杜利特(Doolittle)法求系数矩阵的 $LU$ 分解,并利用它解方程组。$\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.$

答案:系数矩阵的 $LU$ 分解是 $$\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].$$ 先解 $\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],$ 得 $\left[ \begin{array}{c} u \\ v \end{array} \right] =\left[ \begin{array}{r} 5 \\ -4 \end{array} \right].$ 再解 $\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],$ 于是 $y=4,\ 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}$

用杜利特(Doolittle)法求系数矩阵的 $LU$ 分解,并利用它解方程组。$\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.$

答案:系数矩阵的 $LU$ 分解是 $$\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].$$ 先解 $\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],$ 得 $u=1,\ v=2,\ w=6$。接着解 $\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].$ 于是 $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}$

用杜利特(Doolittle)法求系数矩阵的 $LU$ 分解,并利用它解方程组。$\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}$

用杜利特(Doolittle)法求系数矩阵的 $LU$ 分解,并利用它解方程组。$\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}.$

答案:系数矩阵的 $LU$ 分解是 $$\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].$$ 先解 $\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],$ 解为 $\left[ \begin{array}{c} u \\ v \\ w \end{array} \right] =\left[ \begin{array}{c} 5 \\ -4 \\ 0 \end{array} \right].$ 再解 $\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],$ 解为 $\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.

给定矩阵的 $LU$ 分解是否唯一?提示:考虑等式 $\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].$ 找出所有可能的 $LU$ 分解。

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]$$

答案:有时不止一个 $LU$ 分解,如本例所示。所给的等式显然给出了一个 $LU$ 分解。不过,下面的等式似乎给出了另一个 $LU$ 分解。$$\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]$$