# 线性函数

线性函数，在线性代数中，是两个向量空间之间保持向量加法与标量乘法的函数；它也称为线性映射、线性变换，在某些语境下还称为向量空间的同态。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup><sup> • </sup><sup>[2](https://math.ucdavis.edu/~linear/linear-guest.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义条件 | 可加性：\( f(\mathbf{x}+\mathbf{y}) = f(\mathbf{x})+f(\mathbf{y}) \)；齐性：\( f(\lambda \mathbf{x}) = \lambda f(\mathbf{x}) \)，对所有向量及域中所有标量 \( \lambda \) 成立。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> |
| 推论 | 每个线性映射都把零向量映为零向量，且 \( f(\lambda_1 \mathbf{x}_1 + \cdots + \lambda_n \mathbf{x}_n) = \lambda_1 f(\mathbf{x}_1) + \cdots + \lambda_n f(\mathbf{x}_n) \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> |
| 矩阵表示 | 有限维空间之间的线性映射完全由其在基上的取值决定；这些取值构成一个 \( m \times n \) 矩阵，具体形式取决于所选的基。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> |
| 秩-零化度 | 对于线性函数 \( f : V \to W \)，有 \( \operatorname{rank}(f) + \operatorname{nullity}(f) = \dim V \)。<sup>[4](https://www3.nd.edu/~math/restricted/CourseArchive/400Level/468/4681998S/Misc/linalg.pdf)</sup> |
| 单射性判别 | 线性映射是一一映射当且仅当其核为 \( \{\mathbf{0}\} \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> |
| 维数约束 | 从 \( X \) 到 \( Y \) 的满射线性映射蕴含 \( \dim X \geq \dim Y \)。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup> |
| 历史 | 皮亚诺（Peano）于1888年给出了实向量空间的公理化定义，并定义了线性变换的概念。<sup>[5](https://math.hawaii.edu/~lee/algebra/history.html)</sup> |

## 定义

设 \( V \) 与 \( W \) 是同一域 \( \mathbb{F} \) 上的向量空间。函数 \( f : V \to W \) 是线性的，如果它满足两个条件：<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>

1. **可加性**：对所有 \( \mathbf{x}, \mathbf{y} \in V \)，有 \( f(\mathbf{x}+\mathbf{y}) = f(\mathbf{x})+f(\mathbf{y}) \)。
2. **齐性**：对所有 \( \mathbf{x} \in V \) 及所有 \( \lambda \in \mathbb{F} \)，有 \( f(\lambda \mathbf{x}) = \lambda f(\mathbf{x}) \)。

等价的单条件表述是：对所有 \( \mathbf{u}, \mathbf{v} \) 及标量 \( r, s \)，有 \( L(r\mathbf{u} + s\mathbf{v}) = rL(\mathbf{u}) + sL(\mathbf{v}) \)；取 \( r = 1, s = 1 \) 得到可加性，取 \( s = 0 \) 得到齐性。<sup>[2](https://math.ucdavis.edu/~linear/linear-guest.pdf)</sup> 这两个条件合在一起意味着该映射尊重向量空间的结构，即标量乘法与向量加法。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup>

**名称。** 这一概念如此常见，以至于拥有许多名称：线性映射、线性函数、线性变换，以及简简单单的“线性”，都指的是同一回事。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup> “同态”一词通常用于从一类集合到同类集合、且尊重这些集合上结构的函数；线性映射就是向量空间的同态。<sup>[2](https://math.ucdavis.edu/~linear/linear-guest.pdf)</sup> 从向量空间到自身的映射常称为线性算子。<sup>[6](https://studyres.com/doc/1282605/linear-maps---people-pages---university-of-wisconsin?page=18)</sup> 通常用大写字母 \( L \) 来表示线性函数，以提醒其线性性。<sup>[2](https://math.ucdavis.edu/~linear/linear-guest.pdf)</sup>

## 直接推论

由于两个定义条件可以反复应用，线性映射保持任意线性组合：对任意 \( n \)、标量 \( \lambda_i \) 及向量 \( \mathbf{x}_i \)，有 \( f(\lambda_1 \mathbf{x}_1 + \cdots + \lambda_n \mathbf{x}_n) = \lambda_1 f(\mathbf{x}_1) + \cdots + \lambda_n f(\mathbf{x}_n) \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 用文字来说，和的像是像的和，标量倍的像是像的标量倍，线性组合的像是像的线性组合。<sup>[7](https://people.math.binghamton.edu/mfochler/bu-mfx/bu-math-arv/math-330-arv/math-330-2022-08/html/lec-notes/bu-ln-330-m330-solns-2022-09-07.pdf)</sup>

每个线性映射都把 \( \mathbf{0}_U \) 映为 \( \mathbf{0}_V \)：由 \( f(\mathbf{0}_U) = f(\mathbf{0}_U + \mathbf{0}_U) = f(\mathbf{0}_U) + f(\mathbf{0}_U) \)，在两边加上 \( f(\mathbf{0}_U) \) 的加法逆元，即得 \( \mathbf{0}_V = f(\mathbf{0}_U) \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 这就是为什么形如 \( \mathbf{x} \mapsto \mathbf{x} + \mathbf{b} \)（其中 \( \mathbf{b} \neq \mathbf{0} \)）的平移不是线性的：它移动了原点。<sup>[8](https://locusmath.org/books/lay-linear-algebra/2-7)</sup>

**刻画的简约性。** 一般的单变量实函数需要为每个输入指定一个输出，这是无穷多的信息。而线性函数，即使在无限的定义域上，也只需少量信息即可确定：知道 \( L \) 在单个向量上的取值，就确定了它在所有标量倍上的取值；知道 \( L \) 在一个基上的取值，就确定了它在各处的取值。<sup>[2](https://math.ucdavis.edu/~linear/linear-guest.pdf)</sup>

## 例子

- 恒等映射 \( \mathrm{id}_U : U \to U \) 以及把 \( U \) 的每个元素都映为 \( \mathbf{0}_V \) 的零映射，对任意向量空间 \( U, V \) 都是线性的。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>
- 对于 \( \mathbb{F} \) 上的 \( m \times n \) 矩阵 \( A \)，由 \( T_A(\mathbf{x}) = A\mathbf{x} \) 定义的映射 \( T_A : \mathbb{F}^n \to \mathbb{F}^m \) 是线性的；两个定义条件都可由矩阵乘法与加法的性质推出。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup>
- 把 \( (x_1, \ldots, x_n) \) 映为 \( \sum_{i=1}^{n} x_i \) 的映射 \( T : \mathbb{R}^n \to \mathbb{R} \) 是线性的，\( f(a,b,c) = a + b - 2c \) 也是线性的。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup><sup> • </sup><sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>
- 微分是线性的：\( D(f) = \frac{df}{dx} \) 是单变量多项式向量空间上的线性映射。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup><sup> • </sup><sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>
- 反例：\( n \times n \) 实矩阵上的 \( T(A) = A^2 \) 不是线性的，\( f(a,b,c) = \sqrt{a^2+b^2+c^2} \) 也不是线性的，因为对任意非零的 \( \mathbf{x} \)，都有 \( f(-\mathbf{x}) \neq -f(\mathbf{x}) \)。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup><sup> • </sup><sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>

线性泛函，或称线性型，是陪域为域 \( F \) 本身（视作其自身之上的一维向量空间）的线性映射。<sup>[9](https://algebrica.org/linear-maps/)</sup>

## 核、像与秩-零化度定理

对于线性映射 \( f : U \to V \)，核（或称零空间）为 \( \ker f = \{ \mathbf{u} \in U : f(\mathbf{u}) = \mathbf{0}_V \} \)，像为 \( \operatorname{im} f = \{ f(\mathbf{u}) : \mathbf{u} \in U \} \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 两者都是子空间：核是 \( U \) 的子空间，像是 \( V \) 的子空间，各自对加法与标量乘法封闭。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>

核判别单射性：\( f \) 是一一映射当且仅当 \( \ker f = \{\mathbf{0}_U\} \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 像判别满射性：\( f \) 是满射，当且仅当其像等于 \( W \)。<sup>[4](https://www3.nd.edu/~math/restricted/CourseArchive/400Level/468/4681998S/Misc/linalg.pdf)</sup> 这两个维数由秩-零化度定理联系在一起：\( \operatorname{rank}(f) + \operatorname{nullity}(f) = \dim V \)。<sup>[4](https://www3.nd.edu/~math/restricted/CourseArchive/400Level/468/4681998S/Misc/linalg.pdf)</sup> 维数也约束映射的存在性：从 \( X \) 到 \( Y \) 的满射线性映射迫使 \( \dim X \geq \dim Y \)，这是有限集合之间满射函数要求定义域至少与陪域一样大这一事实在向量空间中的类比。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup>

是双射的线性映射称为向量空间的同构；如果存在从 \( U \) 到 \( V \) 的这样的映射，则称这两个空间同构，记作 \( U \cong V \)。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 每个有限维向量空间 \( V \) 都同构于 \( \mathbb{R}^n \)，其中 \( n \) 是 \( V \) 的维数。<sup>[10](https://math.hws.edu/eck/math204/guide2020/12-linear-maps.html)</sup>

## 线性映射的代数

线性映射可以组合，且组合后仍是线性的。如果 \( f, g : U \to V \) 是线性的，\( \lambda \) 是标量，则逐点定义的映射 \( \lambda f \) 与 \( f + g \) 是线性的；更一般地，对任意标量 \( \lambda, \mu \)，\( \lambda f + \mu g \) 是线性的。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 复合也保持线性：如果 \( f : U \to V \) 与 \( g : V \to W \) 是线性的，那么 \( g \circ f : U \to W \) 也是线性的。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 这些运算使得从 \( U \) 到 \( V \) 的线性映射集合本身成为一个向量空间。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>

## 矩阵与线性映射

对于有限维空间，线性映射与矩阵是同一对象的两种视角。线性映射 \( f : U \to V \) 完全由 \( U \) 的一个基 \( \mathcal{B} = \mathbf{b}_1, \ldots, \mathbf{b}_n \)、\( V \) 的一个基 \( \mathcal{C} = \mathbf{c}_1, \ldots, \mathbf{c}_m \)，以及把每个 \( f(\mathbf{b}_j) \) 用 \( \mathbf{c}_i \) 表示出来的标量所确定；把这 \( mn \) 个标量排成一个矩形阵列，就得到矩阵 \( [f]_{\mathcal{C}}^{\mathcal{B}} \)，这是一个依赖于基的选择的 \( m \times n \) 矩阵。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup> 反过来，每个矩阵 \( A \) 都定义了一个线性映射 \( \mathbf{x} \mapsto A\mathbf{x} \)。<sup>[1](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)</sup> 映射的复合对应于矩阵乘法，因此一连串变换可以在应用之前合并为单个矩阵。<sup>[11](https://www.cs.bu.edu/fac/snyder/cs132-book/L13ComputerGraphics-Spring2021.html)</sup>

对于线性映射 \( f : V \to V \)，特征向量是一个非零向量 \( \mathbf{v} \)，满足对某个标量 \( \lambda \) 有 \( f(\mathbf{v}) = \lambda \mathbf{v} \)，这个 \( \lambda \) 就是特征值。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)</sup>

## 线性与仿射

在初等语境中，“线性函数”常指形如 \( f(x) = mx + b \) 的函数，其图像是一条直线。计算机图形学依赖于这一区分：旋转、缩放、反射与错切是可用矩阵表示的线性变换，但平移移动了原点，因此不是线性的。标准的解决办法是齐次坐标，其中点 \( (x, y) \) 存储为 \( (x, y, 1) \)；在更大的空间中，平移变成了一种错切，而错切是线性的，因此一个 \( 3 \times 3 \) 矩阵（三维情形下为 \( 4 \times 4 \)）可以同时完成平移、旋转、缩放与反射。<sup>[8](https://locusmath.org/books/lay-linear-algebra/2-7)</sup><sup> • </sup><sup>[12](https://math.hws.edu/eck/cs424/graphicsbook-1.0/c3/s5.html)</sup> 于是，组合这些操作就归结为乘它们的矩阵，这简化了高速图形硬件。<sup>[11](https://www.cs.bu.edu/fac/snyder/cs132-book/L13ComputerGraphics-Spring2021.html)</sup>

## 历史

线性映射的公理化框架相对晚近。1888年，皮亚诺（Peano）给出了实向量空间的公理，并引入了一个向量空间到另一个向量空间的线性映射的概念。<sup>[5](https://math.hawaii.edu/~lee/algebra/history.html)</sup> 1965年，美国数学协会（Mathematical Association of America）的大学数学课程委员会（Committee on the Undergraduate Program in Mathematics）将线性变换列为独立线性代数课程的核心主题之一，与线性方程组、矩阵、向量以及带有特征值的酉几何并列。<sup>[13](https://linear.sdsu.edu/Preface.html)</sup>

## References

1. [4.14 Linear maps, MATH0005 Algebra 1, UCL](https://www.homepages.ucl.ac.uk/~ucahmto/0005_2021/Ch4.S14.html)
2. [Linear Algebra, UC Davis (linear-guest.pdf)](https://math.ucdavis.edu/~linear/linear-guest.pdf)
3. [3.3 Linear maps, MATH0007: Algebra for Joint Honours Students, UCL](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/3-3-linear-maps.html)
4. [Mathematics 468, University of Notre Dame](https://www3.nd.edu/~math/restricted/CourseArchive/400Level/468/4681998S/Misc/linalg.pdf)
5. [The Origins of Modern Algebra, University of Hawaii](https://math.hawaii.edu/~lee/algebra/history.html)
6. [Linear Maps, University of Wisconsin (studyres copy)](https://studyres.com/doc/1282605/linear-maps---people-pages---university-of-wisconsin?page=18)
7. [Math 330 Lecture Notes, Binghamton University](https://people.math.binghamton.edu/mfochler/bu-mfx/bu-math-arv/math-330-arv/math-330-2022-08/html/lec-notes/bu-ln-330-m330-solns-2022-09-07.pdf)
8. [Lay 2.7 Applications to computer graphics, Locus study guide](https://locusmath.org/books/lay-linear-algebra/2-7)
9. [Linear Maps, Algebrica](https://algebrica.org/linear-maps/)
10. [Isomorphisms and Homomorphisms, Hobart and William Smith](https://math.hws.edu/eck/math204/guide2020/12-linear-maps.html)
11. [Computer Graphics: Linear Algebra, Geometry, and Computation, Boston University](https://www.cs.bu.edu/fac/snyder/cs132-book/L13ComputerGraphics-Spring2021.html)
12. [Introduction to Computer Graphics, Section 3.5, Hobart and William Smith](https://math.hws.edu/eck/cs424/graphicsbook-1.0/c3/s5.html)
13. [Interactive Linear Algebra, San Diego State University](https://linear.sdsu.edu/Preface.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Vector spaces and linear maps

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/linear-function

English original: https://www.edgepedia.org/linear-function
