1. 消元的思想

针对下面的方程,我们无法直接得到方程的解。

<mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 11 </mstyle> \begin{alignedat}{2} &amp;x \space- \space&amp;2&amp;y \space=\space 1 \\ 3&amp;x\space+\space&amp;2&amp;y \space=\space 11 \end{alignedat} 3x  x + 22y = 1y = 11

但如果我们将第二个方程减去第一个方程的 3 倍,上面的方程组就变成了下面这样。

<mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 8 </mstyle> \begin{alignedat}{2} &amp;x \space- \space&amp;2&amp;y \space=\space 1 \\ &amp;\space\space&amp;8&amp;y \space=\space 8 \end{alignedat} x    28y = 1y = 8

这时候,我们就可以直接得到 y = 1 y=1 y=1,进而从第一个方程得到 x = 3 x=3 x=3

可以看到,消元之后,方程组变成了一个下三角(upper triangular)的形式,然后我们就可以用回带法(back substitution)来快速地解出方程组的解。

进行消元的那一行的第一个非零值称为主元(pivot),消元时候的乘数就等于待消项的系数除以主元,在上面的例子中,乘数 3 = 3 / 1 3 = 3 / 1 3=3/1。一般地,乘数可以表示为
l i j = <mtext>   </mtext> i <mtext>   </mtext> <mtext>   </mtext> j <mtext>   </mtext> l_{ij} = \frac{第\space i\space 行待消去项的系数}{第 \space j \space行的主元} lij= j  i 

<mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 11 </mstyle> \begin{alignedat}{2} 4&amp;x \space- \space&amp;8&amp;y \space=\space 4 \\ 3&amp;x\space+\space&amp;2&amp;y \space=\space 11 \end{alignedat} 43x  x + 82y = 4y = 11

如果我们改变了第一个方程,那么乘数就等于 3 / 4 3 / 4 3/4。消元之后,所有的主元都位于下三角的对角线上,并且主元不能是 0

<mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 8 </mstyle> \begin{alignedat}{2} 4&amp;x \space- \space&amp;8&amp;y \space=\space 4 \\ &amp;\space\space&amp;8&amp;y \space=\space 8 \end{alignedat} 4x    88y = 4y = 8

2. 消元的失效

  • 无解
    <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 6 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 11 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 8 </mstyle> \begin{alignedat}{2} &amp;x \space- \space&amp;2&amp;y \space=\space 1 \\ 3&amp;x\space-\space&amp;6&amp;y \space=\space 11 \end{alignedat} \quad{消元后}\quad \begin{alignedat}{2} &amp;x \space- \space&amp;2&amp;y \space=\space 1 \\ &amp;\space\space&amp;0&amp;y \space=\space 8 \end{alignedat} 3x  x  26y = 1y = 11x    20y = 1y = 8

这种情况下,我们遇到了 0 y = 8 0y = 8 0y=8,说明原方程组无解。从行图像中,我们也可以看到,两条平行的直线无法相交于一点。而在列图像中,两个在同一方向上的向量不可能线性组合出不在这个方向上的向量。

  • 无穷解
    <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 6 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 0 </mstyle> \begin{alignedat}{2} &amp;x \space- \space&amp;2&amp;y \space=\space 1 \\ 3&amp;x\space-\space&amp;6&amp;y \space=\space 3 \end{alignedat} \quad{消元后}\quad \begin{alignedat}{2} &amp;x \space- \space&amp;2&amp;y \space=\space 1 \\ &amp;\space\space&amp;0&amp;y \space=\space 0 \end{alignedat} 3x  x  26y = 1y = 3x    20y = 1y = 0

这种情况下,我们遇到了 0 y = 0 0y = 0 0y=0,任何的 y y y 值都满足要求,此时 y y y 是“自由”的,确定了 y y y 之后 x x x 则由第一个方程确定。

从行图像中,我们也可以看到,两条直线相同,因此整条直线都是交点。而在列图像中,左边的两个向量和右边的向量方向都相同,有无穷多个线性组合都可以产生右边的向量。

对于有 n n n 个方程的方程组,如果我们得不到 n n n 个主元,那么消元就会导致 0 <mpadded width="0px"> ̸ </mpadded> = 0 0\not = 0,无解 0̸=0 或者 0 = 0 0=0,无穷解 0=0 ,只有正好有 n n n 个主元的时候,方程组才有解,但我们可能需要进行方程的交换。

  • 需要行交换

<mstyle displaystyle="true" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 5 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 5 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> = <mtext>   </mtext> 4 </mstyle> \begin{alignedat}{2} 0&amp;x \space+ \space&amp;2&amp;y \space=\space 4 \\ 3&amp;x\space-\space&amp;2&amp;y \space=\space 5 \end{alignedat} \quad{消元后}\quad \begin{alignedat}{2} 3&amp;x\space-\space&amp;2&amp;y \space=\space 5 \\ &amp;\space\space&amp;2&amp;y \space=\space 4 \end{alignedat} 03x + x  22y = 4y = 53x    22y = 5y = 4

一开始,第一行的主元为 0,行交换后,我们得到了两个主元 3 和 2,然后,方程就有了正常的解。

3. 三个未知数

<mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> z = <mtext>   </mtext> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 9 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> z = <mtext>   </mtext> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 7 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> z = <mtext>   </mtext> 10 </mstyle> \begin{alignedat}{3} 2&amp;x \space+\space&amp;4&amp;y \space-\space&amp;2&amp;z=\space 2 \\ 4&amp;x \space+\space&amp;9&amp;y \space-\space&amp;3&amp;z=\space 8\\ -2&amp;x \space-\space&amp;3&amp;y \space+\space&amp;7&amp;z=\space 10 \end{alignedat} 242x + x + x  493y  y  y + 237z= 2z= 8z= 10

第一步,方程 2 减去 2 倍的方程 1,得到 y + z = 4 y+z=4 y+z=4
第二步,方程 3 减去 -1 倍的方程 1,得到 y + 5 z = 12 y+5z=12 y+5z=12
第一步,方程 3 减去 1 倍的方程 2,得到 4 z = 8 4z=8 4z=8

<mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> z = <mtext>   </mtext> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> y <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> z = <mtext>   </mtext> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> <mtext>    </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> z = <mtext>   </mtext> 8 </mstyle> \begin{alignedat}{3} \boldsymbol 2&amp;x \space+\space&amp;4&amp;y \space-\space&amp;2&amp;z=\space 2 \\ &amp; \space\space&amp;\boldsymbol 1&amp;y \space+\space&amp;1&amp;z=\space 8\\ &amp; \space\space&amp;&amp; \space\space&amp;\boldsymbol 4&amp;z=\space 8 \end{alignedat} 2x +     41y  y +   214z= 2z= 8z= 8

三个主元分别为 2, 1, 4,然后我们就可以用回带法求出方程组的解。

4. 用矩阵的形式来消元

<mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 1 <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 2 <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 3 = <mtext>   </mtext> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 1 <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 9 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 2 <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 3 = <mtext>   </mtext> 8 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 1 <mtext>   </mtext> <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 2 <mtext>   </mtext> + <mtext>   </mtext> </mstyle> <mstyle displaystyle="true" scriptlevel="0"> 7 </mstyle> <mstyle displaystyle="true" scriptlevel="0"> x 3 = <mtext>   </mtext> 10 </mstyle> [ <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 9 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 7 </mstyle> ] [ <mstyle displaystyle="false" scriptlevel="0"> x 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> x 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> x 3 </mstyle> ] = [ <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 8 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 10 </mstyle> ] \begin{alignedat}{3} 2&amp;x_1 \space+\space&amp;4&amp;x_2 \space-\space&amp;2&amp;x_3=\space 2 \\ 4&amp;x_1\space+\space&amp;9&amp;x_2 \space-\space&amp;3&amp;x_3=\space 8\\ -2&amp;x_1 \space-\space&amp;3&amp;x_2 \space+\space&amp;7&amp;x_3=\space 10 \end{alignedat} \leftrightarrow \begin{bmatrix} 2&amp;4&amp;-2 \\ 4&amp;9&amp;-3\\-2&amp;-3&amp;7\end{bmatrix} \begin{bmatrix} x_1 \\ x_2\\x_3 \end{bmatrix} = \begin{bmatrix} 2 \\ 8\\10 \end{bmatrix} 242x1 + x1 + x1  493x2  x2  x2 + 237x3= 2x3= 8x3= 10242493237x1x2x3=2810

对方程的两边同时进行一步消元,第 2 个方程减去第 1 个方程的 2 倍,我们可以得到:

[ <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 3 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 7 </mstyle> ] [ <mstyle displaystyle="false" scriptlevel="0"> x 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> x 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> x 3 </mstyle> ] = [ <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 4 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 10 </mstyle> ] \begin{bmatrix} 2&amp;4&amp;-2 \\ 0&amp;1&amp;1\\-2&amp;-3&amp;7\end{bmatrix} \begin{bmatrix} x_1 \\ x_2\\x_3 \end{bmatrix} = \begin{bmatrix} 2 \\ 4\\10 \end{bmatrix} 202413217x1x2x3=2410

相当于左右两边都乘以了一个矩阵 E 21 E_{21} E21

E 21 = [ <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> ] E_{21} = \begin{bmatrix} 1&amp;0&amp;0 \\ -2&amp;1&amp;0\\0&amp;0&amp;1\end{bmatrix} E21=120010001

E 21 = [ <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> ] [ <mstyle displaystyle="false" scriptlevel="0"> r o w 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> r o w 2 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> r o w 3 </mstyle> ] = [ <mstyle displaystyle="false" scriptlevel="0"> r o w 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> r o w 2 2 r o w 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> r o w 3 </mstyle> ] E_{21} = \begin{bmatrix} 1&amp;0&amp;0 \\ -2&amp;1&amp;0\\0&amp;0&amp;1\end{bmatrix} * \begin{bmatrix} row1 \\ row2\\row3\end{bmatrix} = \begin{bmatrix} row1 \\ row2-2row1\\row3\end{bmatrix} E21=120010001row1row2row3=row1row22row1row3

E 21 E_{21} E21 称为初等矩阵(elementary matrix)或者消元矩阵(elimination matrix),它可以很简单地从单位矩阵演化而来, E i j E_{ij} Eij 就是将单位矩阵 ( i , j ) (i, j) (i,j) 位置的 0 换成消元过程的乘数 l i j -l_{ij} lij

I = [ <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> ] E 21 = [ <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> <menclose notation="box"> <mstyle displaystyle="false" scriptlevel="0"> <mstyle displaystyle="true" scriptlevel="0"> 2 </mstyle> </mstyle> </menclose> </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 0 </mstyle> <mstyle displaystyle="false" scriptlevel="0"> 1 </mstyle> ] I = \begin{bmatrix} 1&amp;0&amp;0 \\ 0&amp;1&amp;0\\0&amp;0&amp;1\end{bmatrix} \to E_{21} = \begin{bmatrix} 1&amp;0&amp;0 \\ \boxed{-2}&amp;1&amp;0\\0&amp;0&amp;1\end{bmatrix} I=100010001E21=120010001

获取更多精彩,请关注「seniusen」!