MATH ML Learning Lab
A01
A01 · 20–30 min

基、线性方程与秩Bases, Linear Systems & Rank

几列向量提供了多少个独立方向,足以表示哪些目标?How many independent directions do matrix columns provide, and which targets can they represent?

前置知识:Prerequisites: B04:点积;B05:矩阵;B06:线性变换。B04: dot products; B05: matrices; B06: linear transformations.

复习前置:Review prerequisites: B04 · 点积、夹角与投影Dot Products, Angles & Projections · B05 · 矩阵与批量计算Matrices & Batch Computation · B06 · 线性变换与变换复合Linear Transformations & Composition

学完后你能:After this lesson you can: 判断列向量的独立性、可达区域与解的情况。Determine column independence, reachable regions and solution cases.

动手观察Explore

调整两列向量与目标点,比较满秩、共线和零矩阵时的可达区域与方程解。Adjust the two column vectors and target; compare reachable regions and solutions for full rank, collinear columns and the zero matrix.

从观察到解释From observation to explanation

从列的组合出发Start with column combinations

Ac=b 意味着用 A 的列向量乘以系数后相加,得到目标 b。两根不共线的二维向量能表示平面中任意目标;它们构成该平面的一组基。Ac=b means multiplying the columns of A by coefficients and adding them to reach b. Two non-collinear vectors in two dimensions represent any target in the plane; they form a basis of that plane.

退化会丢失方向Degeneracy loses a direction

若两列共线且至少一列非零,只能到达一条直线,秩为 1。目标在线上时通常有多组系数;目标在线外时无解。零矩阵秩为 0,只能到达原点。If the columns are collinear and at least one is nonzero, they reach only a line and have rank 1. A target on that line typically has multiple coefficient solutions; one off the line has none. The zero matrix has rank 0 and reaches only the origin.

解与秩Solutions and rank

二维方阵的两列线性无关时,任意目标有唯一解。更一般的非方阵中,满列秩只能保证“若有解则唯一”,不能保证所有目标都有解。For a two-dimensional square matrix with independent columns, every target has a unique solution. For a general rectangular matrix, full column rank guarantees only that a solution, if one exists, is unique; not every target must be reachable.

公式与符号Formula and symbols

A 的列是可组合的向量,c 是组合系数,b 是目标;rank(A) 是线性无关的列方向数。线性无关表示只有所有系数为零时才能组合出零向量。The columns of A are vectors to combine, c contains coefficients, and b is the target. rank(A) is the number of independent column directions. Independent means only all-zero coefficients combine to the zero vector.

留意这个区别Watch for this

列数不等于秩;未知数更多也不保证有解。必须同时检查目标是否在列向量可达的区域中。Column count is not rank, and more unknowns do not guarantee a solution. Also check whether the target lies in the reachable column space.

继续探索Explore further

课后练习

检验你的理解