- 字母表示:大写字母表示矩阵,小写字母矢量表示列向量
一、方程组的几何解法
- 使用矩阵和列向量表示一个方程组
{ 2 x + y = 1 3 x − 4 y = 5 ⟹ [ 2 1 3 − 4 ] [ x y ] = [ 1 5 ] ⟹ A x ⃗ = b \left\{ \begin{array}{rcl} & 2x + y = 1 \\ & 3x - 4y = 5 \end{array} \right. {~\Longrightarrow~} \left[ \begin{matrix} 2 & 1 \\ 3 & -4 \end{matrix} \right] \left[ \begin{matrix} x \\ y \end{matrix} \right] = \left[ \begin{matrix} 1 \\ 5 \end{matrix} \right] {~\Longrightarrow~} A\vec{x} = b {2x+y=13x−4y=5 ⟹ [231−4][xy]=[15] ⟹ Ax=b
1、用行向量画图
{ 直 线 l 1 : 2 x + y = 1 直 线 l 2 : 3 x − 4 y = 5 ⟹ 两 条 直 线 若 有 交 点 , 则 交 点 的 坐 标 ( x 0 , y 0 ) 为 解 \left\{ \begin{array}{rcl} &直线l_1: 2x + y = 1 \\ &直线l_2: 3x - 4y = 5 \end{array} \right. {~\Longrightarrow~} 两条直线若有交点,则交点的坐标(x_0, y_0)为解 {直线l1:2x+y=1直线l2:3x−4y=5 ⟹ 两条直线若有交点,则交点的坐标(x0,y0)为解
2、用列向量画图
[ 2 1 3 − 4 ] [ x y ] = x [ 2 3 ] + y [ 1 − 4 ] ⟹ 线 性 组 合 ( L i n e a r C o m b i n a t i o n ) \left[ \begin{matrix} 2 & 1 \\ 3 & -4 \end{matrix} \right] \left[ \begin{matrix} x \\ y \end{matrix} \right] =x \left[ \begin{matrix} 2 \\ 3 \end{matrix} \right] + y \left[ \begin{matrix} 1 \\ -4 \end{matrix} \right] {~\Longrightarrow~} 线性组合(Linear \ Combination) [231−4][xy]=x[23]+y[1−4] ⟹ 线性组合(Linear Combination)
- 即找到合适的 x , y x, y x,y 让向量 [ 2 3 ] \left[\begin{matrix} 2 \\ 3 \end{matrix}\right] [23] 和 [ 1 − 4 ] \left[\begin{matrix} 1 \\ -4 \end{matrix}\right] [1−4] 线性组合后结果为 [ 1 5 ] \left[\begin{matrix} 1 \\ 5 \end{matrix}\right] [15]
- 假设有一个n元一次方程组,该方程组有n个方程
- 那么这个问题可以看成是n个n维列向量的线性组合问题
- 若这n个列向量中,有一个列向量可以由其它任意几个列向量的线性组合表示,则该n个列向量的线性组合只能构成(n-1)维空间里的列向量
二、矩阵乘法计算
-
一个计算矩阵乘法的例子如下
[ 3 4 5 1 6 2 2 7 6 ] [ x a y b z c ] \left[\begin{matrix} 3 & 4 & 5 \\ 1 & 6 & 2 \\ 2 & 7 & 6 \end{matrix}\right] \left[\begin{matrix} x & a \\ y & b \\ z & c \end{matrix}\right] ⎣⎡312467526⎦⎤⎣⎡xyzabc⎦⎤ -
矩阵相乘的结果可以从两个角度计算:行向量或者列向量
-
行向量角度计算
上 式 = [ ( 3 , 4 , 5 ) ⋅ [ ( x , y , z ) + ( a , b , c ) ] ( 1 , 6 , 2 ) ⋅ [ ( x , y , z ) + ( a , b , c ) ] ( 2 , 7 , 6 ) ⋅ [ ( x , y , z ) + ( a , b , c ) ] ] = [ 3 x + 3 a 4 y + 4 b 5 z + 5 c x + a 6 y + 6 b 2 z + 2 c 2 x + 2 a 7 y + 7 b 6 z + 6 c ] 上式 = \left[\begin{matrix} (3, 4, 5) \cdot [(x, y, z) + (a, b, c)] \\ (1, 6, 2) \cdot [(x, y, z) + (a, b, c)] \\ (2, 7, 6) \cdot [(x, y, z) + (a, b, c)] \end{matrix}\right] = \left[\begin{matrix} 3x+3a & 4y+4b & 5z+5c \\ x+a & 6y+6b & 2z+2c \\ 2x+2a & 7y+7b & 6z+6c \end{matrix}\right] 上式=⎣⎡(3,4,5)⋅[(x,y,z)+(a,b,c)](1,6,2)⋅[(x,y,z)+(a,b,c)](2,7,6)⋅[(x,y,z)+(a,b,c)]⎦⎤=⎣⎡3x+3ax+a2x+2a4y+4b6y+6b7y+7b5z+5c2z+2c6z+6c⎦⎤ -
列向量角度计算(推荐)
上 式 = [ x [ 3 1 2 ] + y [ 4 6 7 ] + z [ 5 2 6 ] a [ 3 1 2 ] + b [ 4 6 7 ] + c [ 5 2 6 ] ] 上式 = \left[\begin{matrix} x \left[\begin{matrix} 3 \\ 1 \\ 2 \end{matrix}\right] + y \left[\begin{matrix} 4 \\ 6 \\ 7 \end{matrix}\right] + z \left[\begin{matrix} 5 \\ 2 \\ 6 \end{matrix}\right] & \quad a \left[\begin{matrix} 3 \\ 1 \\ 2 \end{matrix}\right] + b \left[\begin{matrix} 4 \\ 6 \\ 7 \end{matrix}\right] + c \left[\begin{matrix} 5 \\ 2 \\ 6 \end{matrix}\right] \end{matrix}\right] 上式=⎣⎡x⎣⎡312⎦⎤+y⎣⎡467⎦⎤+z⎣⎡526⎦⎤a⎣⎡312⎦⎤+b⎣⎡467⎦⎤+c⎣⎡526⎦⎤⎦⎤- 列向量角度计算的解释
- 第一个列向量是左边的矩阵的列向量 [ 3 1 2 ] , [ 4 6 7 ] , [ 5 2 6 ] \left[\begin{matrix} 3\\1\\2 \end{matrix}\right] ,\left[\begin{matrix} 4\\6\\7 \end{matrix}\right] ,\left[\begin{matrix} 5\\2\\6 \end{matrix}\right] ⎣⎡312⎦⎤,⎣⎡467⎦⎤,⎣⎡526⎦⎤ 以右边的矩阵第一列 [ x y z ] \left[\begin{matrix} x\\y\\z \end{matrix}\right] ⎣⎡xyz⎦⎤ 作为系数的线性组合结果
- 第二个列向量是左边的矩阵的列向量 [ 3 1 2 ] , [ 4 6 7 ] , [ 5 2 6 ] \left[\begin{matrix} 3\\1\\2 \end{matrix}\right] ,\left[\begin{matrix} 4\\6\\7 \end{matrix}\right] ,\left[\begin{matrix} 5\\2\\6 \end{matrix}\right] ⎣⎡312⎦⎤,⎣⎡467⎦⎤,⎣⎡526⎦⎤ 以右边的矩阵第二列 [ a b c ] \left[\begin{matrix} a\\b\\c \end{matrix}\right] ⎣⎡abc⎦⎤ 作为系数的线性组合结果
- 列向量角度计算的解释
-
-
为什么推荐从列向量的角度思考矩阵乘法:(个人认为)这种角度更能体现线性代数中的“线性”