# 反函数

反函数是逆转另一个函数映射的映射：如果 \( f: X \to Y \) 为每个 \( x \in X \) 指定唯一的值 \( f(x) \)，那么它的反函数 \( f^{-1}: Y \to X \) 将每个 \( y \in Y \) 送回唯一满足 \( f(x) = y \) 的 \( x \)。其定义性质是两次复合分别得到两个集合上的恒等映射：\( f^{-1} \circ f = \mathrm{id}_X \) 且 \( f \circ f^{-1} = \mathrm{id}_Y \)。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> 用一句话说，反函数就是把原函数做过的事撤销掉。<sup>[2](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/functions.html)</sup>

| 要点 | 说明 |
|---|---|
| 定义性质 | 对所有 \( x \in X \) 有 \( f^{-1}(f(x)) = x \)，对所有 \( y \in Y \) 有 \( f(f^{-1}(y)) = y \)<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> |
| 存在性 | 一个函数有反函数，当且仅当它是双射，即既是单射（一对一）又是满射（映满）<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup> |
| 唯一性 | 反函数若存在则唯一，这正是记号 \( f^{-1} \) 的合理之处<sup>[4](https://personal.math.ubc.ca/~PLP/book/sec_inv_func.html)</sup> |
| 复合规则 | 若 \( f \) 与 \( g \) 均可逆，则 \( g \circ f \) 也可逆，且 \( (g \circ f)^{-1} = f^{-1} \circ g^{-1} \)<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup> |
| 图像事实 | \( f \) 的定义域等于 \( f^{-1} \) 的值域，反之亦然；两条图像关于直线 \( y = x \) 对称<sup>[5](https://math.umd.edu/~tjp/115%2002.8a%20handout%20fcn%20inverses.pdf)</sup> |
| 图像检验 | 一个函数有反函数，仅当每条水平线与它的图像至多相交一次（水平线检验）<sup>[5](https://math.umd.edu/~tjp/115%2002.8a%20handout%20fcn%20inverses.pdf)</sup> |
| 导数公式 | 若 \( f \) 可逆、可微且导数非零，则 \( (f^{-1})'(y) = 1/f'(f^{-1}(y)) \)<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> |
| 记号起源 | 据卡约里（Cajori）记载，反三角函数所用的指数 \( -1 \) 记号由约翰·弗雷德里克·威廉·赫歇尔（John Frederick William Herschel）于1813年在伦敦《哲学汇刊》上引入<sup>[6](https://math.stackexchange.com/questions/3396248/where-did-the-inverse-function-notation-f-1-come-from)</sup> |

## 存在性与唯一性

并非每个函数都能逆转。函数 \( f: X \to Y \) 称为单射（或一对一），如果 \( f(a) = f(b) \) 蕴含 \( a = b \)；称为满射（或映满），如果 \( Y \) 的每个元素都是 \( f \) 的某个取值。既单又满的函数称为双射，而本主题的核心定理指出：\( f \) 有反函数当且仅当它是双射。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup> 理由从定义中即可看出：逆转一个映射要求每个像都有唯一原像，这恰是单射性；并要求每个目标值都被取到，这恰是满射性。<sup>[2](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/functions.html)</sup>

**左逆与右逆。** 双射性的两半分别对应两个单侧概念。\( f \) 的左逆是满足 \( g \circ f = \mathrm{id}_X \) 的函数 \( g: Y \to X \)；右逆是满足 \( f \circ h = \mathrm{id}_Y \) 的函数 \( h: Y \to X \)。一个函数有左逆当且仅当它是单射，有右逆当且仅当它是满射。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup> 当两者都存在时，它们必然重合：对任意 \( y \in Y \)，\( g(y) = g(f(h(y))) = h(y) \)，所以双侧反函数只要存在就是唯一的。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup> 同样的唯一性论证也可以这样进行：将一个候选反函数先与恒等映射复合，再与另一个候选复合，得到 \( g = g \circ (f \circ h) = (g \circ f) \circ h = h \)。<sup>[4](https://personal.math.ubc.ca/~PLP/book/sec_inv_func.html)</sup>

## 复合与代数结构

复合是求逆所针对的运算。若 \( f: X \to Y \) 且 \( g: Y \to Z \)，复合 \( g \circ f: X \to Z \) 由 \( (g \circ f)(x) = g(f(x)) \) 定义，读作“先做 \( f \)，再做 \( g \)”；顺序要紧，而且只有当 \( f \) 的陪域与 \( g \) 的定义域一致时复合才有意义。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup>

**逆转规则。** 若 \( f \) 与 \( g \) 均可逆，则 \( g \circ f \) 也可逆，其反函数为 \( f^{-1} \circ g^{-1} \)，即原顺序反过来。证明是一次简短结合律计算：\( (f^{-1} \circ g^{-1}) \circ (g \circ f) = f^{-1} \circ \mathrm{id}_Y \circ f = \mathrm{id}_X \)，另一顺序同理。<sup>[3](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)</sup>

从集合 \( X \) 到自身的可逆映射在复合下构成一个群，恒等映射 \( x \mapsto x \) 是单位元，每个元素的反函数就是它在群中的逆元。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> 等于自身反函数的映射，即满足 \( f \circ f = \mathrm{id} \) 的映射，称为对合；复平面上的复共轭 \( z = x + iy \mapsto x - iy \) 是一个标准例子。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup>

## 计算与作图

当有公式可用时，求反函数就是解方程 \( y = f(x) \)，把 \( x \) 用 \( y \) 表示出来。对于实轴上的 \( f(x) = 7x - 3 \)，得到 \( f^{-1}(y) = (y+3)/7 \)，用 \( f^{-1}(f(x)) = x \) 验证即可确认。<sup>[4](https://personal.math.ubc.ca/~PLP/book/sec_inv_func.html)</sup> 对于莫比乌斯变换 \( h(x) = (ax-b)/(cx-d) \)，反函数为 \( h^{-1}(y) = (dy-b)/(cy-a) \)，两个被排除的点 \( d/c \) 与 \( a/c \) 互换角色，分别成为定义域与陪域的排除值。<sup>[4](https://personal.math.ubc.ca/~PLP/book/sec_inv_func.html)</sup>

**图像判据。** 在图像上，可逆性的检验是水平线检验：如果某条水平线与图像相交多于一次，函数就不是一对一的，因而没有反函数。<sup>[5](https://math.umd.edu/~tjp/115%2002.8a%20handout%20fcn%20inverses.pdf)</sup> 当反函数存在时，\( f \) 图像上的点 \( (a, b) \) 对应于 \( f^{-1} \) 图像上的 \( (b, a) \)，所以两条图像关于直线 \( y = x \) 互为镜像，且一个的定义域等于另一个的值域。<sup>[5](https://math.umd.edu/~tjp/115%2002.8a%20handout%20fcn%20inverses.pdf)</sup>

**定义域限制。** 未能通过水平线检验的函数，常常可以通过裁剪定义域使其变得可逆。平方函数 \( f(x) = x^2 \) 的定义域为全体实数，值域为 \( [0, \infty) \)，因此不是一对一的；将定义域限制为 \( [0, \infty) \) 得到反函数 \( f^{-1}(y) = \sqrt{y} \)，而限制为 \( (-\infty, 0] \) 则得到 \( f^{-1}(y) = -\sqrt{y} \)。两种选择产生两个不同的反函数，而在每种情形下，\( f \) 被限制后的定义域都等于所选反函数的值域。<sup>[7](https://math.utoledo.edu/~janders/1850/PreClassProblems/Problems26.pdf)</sup> 这正是通向反三角函数的通常路径：正弦或余弦的每个分支限制都在选定的区间上给出各自的反函数。

## 微积分中的反函数

对于单实变量的实函数，单调性取代了抽象的双射条件。区间之间的连续满射是单射，当且仅当它严格单调，而在此情形下其反函数也连续。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> 若 \( f \) 可微且处处 \( f'(y) \neq 0 \)，则它必然严格单调，其反函数也可微。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup>

**导数公式。** 对恒等式 \( x = f(f^{-1}(x)) \) 用链式法则求导，得 \( 1 = f'(f^{-1}(x)) \cdot (f^{-1})'(x) \)，故

\[ (f^{-1})'(x) = \frac{1}{f'(f^{-1}(x))} \]

只要 \( f'(f^{-1}(x)) \neq 0 \)。<sup>[8](https://math.libretexts.org/Courses/College_of_Southern_Nevada/Calculus_%28Hutchinson%29/03%3A_Differentiation/3.08%3A_Derivatives_of_Inverse_and_Logarithmic_Functions)</sup> 几何上，两条图像在对应反射点处的切线斜率互为倒数，因为关于 \( y = x \) 的反射把斜率 \( p/q \) 变成 \( q/p \)。<sup>[8](https://math.libretexts.org/Courses/College_of_Southern_Nevada/Calculus_%28Hutchinson%29/03%3A_Differentiation/3.08%3A_Derivatives_of_Inverse_and_Logarithmic_Functions)</sup> 该公式给出熟悉的导数：应用于 \( f(x) = x^3 \) 得到立方根的导数 \( \frac{d}{dx}\sqrt[3]{x} = 1/(3x^{2/3}) \)，应用于 \( f(x) = e^x \) 得到 \( \frac{d}{dx}\ln x = 1/x \)。<sup>[8](https://math.libretexts.org/Courses/College_of_Southern_Nevada/Calculus_%28Hutchinson%29/03%3A_Differentiation/3.08%3A_Derivatives_of_Inverse_and_Logarithmic_Functions)</sup>

**多变量。** 单变量的图景通过反函数定理推广：若 \( f \) 是 \( \mathbb{R}^n \) 某开子集上的连续可微映射，且在一点处的微分（雅可比矩阵）可逆，则 \( f \) 在该点附近是局部微分同胚，即它有连续可微的局部反函数。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> 反函数的微分是微分的逆矩阵，\( d(f^{-1})|_y = [df|_{f^{-1}(y)}]^{-1} \)。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> 与一维情形不同，处处可逆的微分并不保证整体可逆：复指数映射 \( (x, y) \mapsto (e^x \cos y, e^x \sin y) \) 在每一点处微分都可逆，却不是单射，因为每个非零目标值都有无穷多个原像。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup>

## 记号与历史

函数符号 \( f(x) \) 本身最早由莱昂哈德·欧拉（Leonhard Euler）于1734年在《彼得堡科学院评论》上使用。<sup>[9](https://math.hawaii.edu/~tom/history/functions.html)</sup> 反函数记号 \( f^{-1} \) 则出现得晚得多。据历史学家弗洛里安·卡约里（Florian Cajori）记载，反三角函数所用的指数 \( -1 \) 记号由天文学家约翰·弗雷德里克·威廉·赫歇尔于1813年在伦敦《哲学汇刊》上引入，并附有一整页脚注解释他为何选择 \( \cos.^{-1} e \) 这样的形式。<sup>[6](https://math.stackexchange.com/questions/3396248/where-did-the-inverse-function-notation-f-1-come-from)</sup> 丹尼尔·A. 默里（Daniel A. Murray）1908年的微积分教材补充说，该记号此前已由一位名叫布尔曼（Burmann）的分析学家在德国作过解释，并引用赫歇尔本人1820年的例集作为参考。<sup>[6](https://math.stackexchange.com/questions/3396248/where-did-the-inverse-function-notation-f-1-come-from)</sup>

这一记号带有已知的歧义。同一个符号 \( f^{-1} \) 也广泛用于原像，即集合 \( f^{-1}(\{y\}) = \{ x : f(x) = y \} \)，它对每个函数都有定义，无论反函数是否存在；有些作者甚至就用 \( f^{-1}(y) \) 表示这个集合。<sup>[1](https://encyclopediaofmath.org/wiki/Inverse_function)</sup> 语境以及自变量是点还是集合，可以区分这两种用法。

## References

1. [Inverse function, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Inverse_function)
2. [3.1. Functions, Discrete Structures for Computing, Western University](https://www.csd.uwo.ca/~abrandt5/teaching/DiscreteStructures/Chapter3/functions.html)
3. [1.3 Functions, MATH0007: Algebra for Joint Honours Students, UCL](https://www.homepages.ucl.ac.uk/~ucahmto/0007/_book/1-3-functions.html)
4. [Inverse functions, Prelude to Mathematics, University of British Columbia](https://personal.math.ubc.ca/~PLP/book/sec_inv_func.html)
5. [Math 115 Chapter 2.8 Examples and Extra Notes, University of Maryland](https://math.umd.edu/~tjp/115%2002.8a%20handout%20fcn%20inverses.pdf)
6. [Where did the inverse function notation f⁻¹ come from?, Mathematics Stack Exchange (answer by Robert Israel)](https://math.stackexchange.com/questions/3396248/where-did-the-inverse-function-notation-f-1-come-from)
7. [Lesson X: Inverse functions and domain restriction, James D. Anderson, University of Toledo](https://math.utoledo.edu/~janders/1850/PreClassProblems/Problems26.pdf)
8. [3.8: Derivatives of Inverse and Logarithmic Functions, Mathematics LibreTexts](https://math.libretexts.org/Courses/College_of_Southern_Nevada/Calculus_%28Hutchinson%29/03%3A_Differentiation/3.08%3A_Derivatives_of_Inverse_and_Logarithmic_Functions)
9. [Earliest Uses of Function Symbols, University of Hawaii](https://math.hawaii.edu/~tom/history/functions.html)

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

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › Formal logic and foundations › Set theory › Elementary set theory

Copyright 2026 Edgepedia

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

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

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