# 阶梯函数

阶梯函数是一种实值函数，它在定义域的有限多个片段上各自为常数，通常写成区间的指示函数的有限线性组合。在测度论语境中，同样的想法以简单函数之名出现，其中这些片段可以是任意可测集，而不必是区间。<sup>[1](https://mathworld.wolfram.com/StepFunction.html)</sup><sup> • </sup><sup>[2](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 定义在区间上、可写成半开区间 \( [a,b) \) 的指示函数的有限线性组合的函数<sup>[1](https://mathworld.wolfram.com/StepFunction.html)</sup> |
| 积分 | 对分割 \( a=x_0<x_1<\cdots<x_N=b \)，若 \( f \) 在每个 \( [x_{i-1},x_i) \) 上为常数，则 \( \int_a^b f\,dx = \sum_{i=1}^{N} f(x_{i-1})(x_i-x_{i-1}) \)<sup>[3](https://people.math.wisc.edu/~angenent/521.2017s/RiemannIntegral.html)</sup> |
| 与简单函数的关系 | 每个阶梯函数都是简单函数；简单函数在任意可测集上取有限多个值，当这些集合为区间时便称为阶梯函数<sup>[4](https://planetmath.org/simplefunction)</sup><sup> • </sup><sup>[2](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)</sup> |
| 黎曼可积性 | 阶梯函数黎曼可积；有界函数黎曼可积，当且仅当它能被下阶梯函数和上阶梯函数夹住，且二者积分之差可任意小<sup>[5](https://www.lehman.edu/faculty/rbettiol/lehman_teaching/2020mat320/Pugh_Real_Mathematical_Analysis.pdf)</sup><sup> • </sup><sup>[3](https://people.math.wisc.edu/~angenent/521.2017s/RiemannIntegral.html)</sup> |
| 稠密性 | 阶梯函数、绝对可积简单函数与连续紧支撑函数都在 \( L^1(\mathbb{R}^d) \) 中稠密<sup>[6](https://www.stat.rice.edu/~dobelman/courses/texts/qualify/Measure.Theory.Tao.pdf)</sup> |
| 赫维赛德阶跃函数 | 在负半轴上取 0、在正半轴上取 1 的函数 \( H \)，以奥利弗·赫维赛德（Oliver Heaviside，1850–1925）命名<sup>[7](https://encyclopediaofmath.org/wiki/Heaviside_function)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC6232577/)</sup> |
| 拉普拉斯变换 | 对平移单位阶跃 \( u_c(t) \)，\( \mathcal{L}\{u_c(t)\} = e^{-cs}/s \)，且 \( \mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s) \)<sup>[9](https://tutorial.math.lamar.edu/Classes/DE/StepFunctions.aspx)</sup> |

## 定义与基本形式

最常见的定义在区间 \( [a,b] \) 上进行。函数 \( f:[a,b]\to\mathbb{R} \) 是阶梯函数，如果存在数 \( a=x_0<x_1<\cdots<x_N=b \)，使得 \( f \) 在每个半开区间 \( [x_{i-1},x_i) \) 上为常数。<sup>[3](https://people.math.wisc.edu/~angenent/521.2017s/RiemannIntegral.html)</sup> 等价地，\( f \) 是常数乘以区间特征函数的有限和。<sup>[5](https://www.lehman.edu/faculty/rbettiol/lehman_teaching/2020mat320/Pugh_Real_Mathematical_Analysis.pdf)</sup> 数学世界（MathWorld）将一般形式表述为

\[ f(x)=\alpha_1 f_1(x)+\cdots+\alpha_n f_n(x), \]

其中每个 \( f_i \) 是半开区间 \( [a_i,b_i) \) 的指示函数，而 \( \alpha_i \) 是实系数。<sup>[1](https://mathworld.wolfram.com/StepFunction.html)</sup> 这种函数的图像是若干条高度为 \( \alpha_1,\ldots,\alpha_n \) 的水平线段，这正是其名称的由来。<sup>[2](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)</sup>

阶梯函数在分割点本身的值是一个约定问题，不影响其积分。有些作者要求函数在分割的开区间 \( (x_{i-1},x_i) \) 上为常数，而端点处的值可任意。<sup>[10](https://ocw.mit.edu/courses/18-100c-real-analysis-fall-2012/81a1cbadcc642be3ec8dab392deb71e5_MIT18_100CF12_l19sum.pdf)</sup>

**阶梯函数与简单函数。** 这两个术语有重叠，但并不相同。测度空间 \( (S,\mathcal{S},\mu) \) 上的简单函数是只取有限多个值的函数，它可表示为 \( f=\sum_{k=1}^{n}\alpha_k \mathbf{1}_{A_k} \)，其中 \( A_k \) 是可测集。当这些集合恰好是区间时，图像看起来像台阶，这就是简单函数有时被称为阶梯函数的原因。<sup>[2](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)</sup> 这一区别很重要：有理数集的指示函数只取 0 和 1 两个值，因此它是简单函数，但它在任何区间上都不是分段常数，因为每个区间都同时包含有理点和无理点。<sup>[11](https://www.youtube.com/watch?v=i2qELFK6zS0)</sup> 反过来，每个阶梯函数都是简单函数。<sup>[4](https://planetmath.org/simplefunction)</sup>

## 在黎曼积分中的作用

阶梯函数提供了黎曼积分的标准构造之一。它们自身的积分由初等面积公式定义

\[ \int_a^b f(x)\,dx = \sum_{i=1}^{N} f(x_{i-1})\bigl(x_i-x_{i-1}\bigr). \]

对一般的有界函数 \( f \)，下积分是所有满足 \( s\le f \) 的阶梯函数 \( s \) 的 \( \int_a^b s\,dx \) 的上确界，上积分是所有满足 \( t\ge f \) 的阶梯函数 \( t \) 的 \( \int_a^b t\,dx \) 的下确界；当二者相等时，该函数黎曼可积。<sup>[3](https://people.math.wisc.edu/~angenent/521.2017s/RiemannIntegral.html)</sup> 等价地，若对每个 \( \varepsilon>0 \) 都存在阶梯函数 \( s\le f\le t \) 使得 \( \int_a^b t\,dx-\int_a^b s\,dx<\varepsilon \)，则 \( f \) 可积。<sup>[3](https://people.math.wisc.edu/~angenent/521.2017s/RiemannIntegral.html)</sup> 这与黎曼和是同一想法：当条带宽度趋于零时，曲线下的面积被逐条带地估计出来。<sup>[12](https://ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter20/section02.html)</sup>

由于阶梯函数只有有限多个跳跃间断点，它除一个有限集外连续，而有限集的勒贝格测度为零；于是黎曼-勒贝格准则保证其可积。<sup>[5](https://www.lehman.edu/faculty/rbettiol/lehman_teaching/2020mat320/Pugh_Real_Mathematical_Analysis.pdf)</sup>

## 在勒贝格积分中的作用

勒贝格积分是分阶段建立的，而简单函数是其中第一个非平凡层次。一本教材中的序列从指示函数到非负简单函数，再到一般非负可测函数，最后到任意可测函数；这一进程足够常见，以至于有了一个名称：标准机器。<sup>[2](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)</sup>

有些勒贝格积分的处理从区间上的阶梯函数开始，其积分与黎曼积分一致，然后过渡到可测集上的简单函数，后者已经能处理超出黎曼积分范围的积分。<sup>[14](https://cse.iitk.ac.in/users/satyadev/sp14/chap4-2.pdf)</sup> 这一收益在有理数集的指示函数上可见：它不是黎曼可积的，但作为简单函数，其勒贝格积分为 0，因为有理数集构成测度为零的集合。<sup>[5](https://www.lehman.edu/faculty/rbettiol/lehman_teaching/2020mat320/Pugh_Real_Mathematical_Analysis.pdf)</sup>

**稠密性。** 阶梯函数不仅是积分的构件；它们还能逼近一般可积函数。在 \( L^1(\mathbb{R}^d) \) 中，对每个 \( f \) 和 \( \varepsilon>0 \)，都存在阶梯函数 \( g \) 使得 \( \|f-g\|_{L^1}\le\varepsilon \)，同样的稠密性对绝对可积简单函数和连续紧支撑函数也成立。<sup>[6](https://www.stat.rice.edu/~dobelman/courses/texts/qualify/Measure.Theory.Tao.pdf)</sup> 类似结果在 \( 1\le p<\infty \) 的 \( L^p \) 中成立：简单函数在 \( L^p \) 中稠密，并且在区间上，每个可测集的特征函数都可以在 \( L^p \) 范数下由有限个区间之并的指示函数逼近，而后者是阶梯函数。<sup>[15](https://math.stackexchange.com/questions/5024914/clarification-on-typical-proof-of-step-functions-being-dense-in-lpa-b)</sup>

## 赫维赛德阶跃函数

最常用的例子是赫维赛德阶跃函数 \( H:\mathbb{R}\to\mathbb{R} \)，它在负半轴上取 0，在正半轴上取 1；关于 0 处的取值，约定各不相同，0、1/2 和 1 都出现过。<sup>[7](https://encyclopediaofmath.org/wiki/Heaviside_function)</sup><sup> • </sup><sup>[16](https://planetmath.org/heavisidestepfunction)</sup> 平移形式 \( u_c(t) \) 在 \( t<c \) 时等于 0，在 \( t\ge c \) 时等于 1，表示在时刻 \( c \) 开启的信号或力。<sup>[17](https://www.math.hkust.edu.hk/~machas/differential-equations-for-engineers.pdf)</sup>

在微分方程中，赫维赛德函数用于建模在不同时刻开启或关闭的强迫项，这种情况在电路中尤其常见。<sup>[18](https://courses.math.wichita.edu/math555/ch6/3/StepFunctions.html)</sup> 一个在时刻 \( c \) 开始输出 \( f(t-c) \) 的开关写作 \( g(t)=u_c(t)f(t-c) \)，其拉普拉斯变换满足平移法则

\[ \mathcal{L}\{u_c(t)f(t-c)\} = e^{-cs}F(s), \qquad \mathcal{L}\{u_c(t)\} = \frac{e^{-cs}}{s}. \]

这些公式是求解带不连续强迫项的初值问题的标准工具。<sup>[9](https://tutorial.math.lamar.edu/Classes/DE/StepFunctions.aspx)</sup>

阶梯函数还与广义函数相关联。尽管 \( H \) 有一个跳跃间断点，没有经典导数，但它定义了一个分布，其导数是狄拉克δ分布；相应地，其傅里叶变换为 \( \tfrac{1}{2}\delta + \tfrac{1}{\pi i s} \)，这可由恒等式 \( u(x)=\tfrac{1}{2}(1+\operatorname{sgn} x) \) 得到。<sup>[19](https://see.stanford.edu/materials/lsoftaee261/transcripts/TheFourierTransformAndItsApplications-Lecture14.html)</sup>

## 历史

该函数以奥利弗·赫维赛德（Oliver Heaviside）命名，他是一位自学成才的英国电气理论家，1850年5月18日出生，1925年2月3日在托基（Torquay）去世。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC6232577/)</sup> 在1880年至1887年间为求解电路微分方程而发展的运算微积中，他用变量 \( p \) 代替微分算子，把微分方程变成代数方程；对于初始时刻之前外加电压为零的瞬态电流，他把阶跃函数写成粗体符号 **1**。<sup>[20](https://mathshistory.st-andrews.ac.uk//Biographies/Heaviside/)</sup><sup> • </sup><sup>[21](https://osuva.uwasa.fi/server/api/core/bitstreams/7a3fbe3d-8566-4ec0-888a-82f4e9bc8f2b/content)</sup> 这套运算微积在给出答案方面非常成功，尽管其正确性直到布罗姆维奇（Bromwich）的工作才得到证明；伯恩赛德（Burnside）曾以实质性错误和证明不充分为由，拒绝了赫维赛德关于该方法的一篇论文。<sup>[20](https://mathshistory.st-andrews.ac.uk//Biographies/Heaviside/)</sup> 后来的形式化工作包括扬·米库辛斯基（Jan Mikusiński）在20世纪50年代通过卷积环对赫维赛德方法的处理。<sup>[22](https://www.mathematics.pitt.edu/content/operational-calculus)</sup> 美国物理学会指出，虽然赫维赛德阶跃函数在科学界广为人知，但它很可能是他最不具创新性的贡献之一，与他在向量微积分和运算微积方面的重要工作并列。<sup>[23](https://www.aps.org/apsnews/2010/02/1925-death-of-oliver-heaviside)</sup>

## References

1. [Step Function, Wolfram MathWorld](https://mathworld.wolfram.com/StepFunction.html)
2. [Chapter 3, Lebesgue Integration (Theory of Probability I), University of Texas at Austin](https://web.ma.utexas.edu/users/gordanz/notes/theory_of_probability_I.pdf)
3. [Math 521: The Riemann Integral, University of Wisconsin–Madison](https://people.math.wisc.edu/~angenent/521.2017s/RiemannIntegral.html)
4. [Simple function, PlanetMath](https://planetmath.org/simplefunction)
5. [Pugh, Real Mathematical Analysis, Chapter 3 (Lehman College course copy)](https://www.lehman.edu/faculty/rbettiol/lehman_teaching/2020mat320/Pugh_Real_Mathematical_Analysis.pdf)
6. [Tao, Measure Theory, Chapter 1 (Rice University course copy)](https://www.stat.rice.edu/~dobelman/courses/texts/qualify/Measure.Theory.Tao.pdf)
7. [Heaviside function, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Heaviside_function)
8. [Oliver Heaviside's electromagnetic theory, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6232577/)
9. [Differential Equations: Step Functions, Paul's Online Notes, Lamar University](https://tutorial.math.lamar.edu/Classes/DE/StepFunctions.aspx)
10. [MIT 18.100C Real Analysis, Lecture 19 Summary](https://ocw.mit.edu/courses/18-100c-real-analysis-fall-2012/81a1cbadcc642be3ec8dab392deb71e5_MIT18_100CF12_l19sum.pdf)
11. [Measure theory: Stepped functions and Lebesgue integral (video), Nayel Prépa](https://www.youtube.com/watch?v=i2qELFK6zS0)
12. [Precise Definition and Riemann Sums, MIT 18.013A](https://ocw.mit.edu/ans7870/18/18.013a/textbook/HTML/chapter20/section02.html)
13. [Lebesgue Delta Integration of Simple Functions, Mathematics LibreTexts](https://math.libretexts.org/Courses/Sorbonne_Universite/Lebesgue_Integration_on_Time_Scales/04%3A_Lebesgue_Delta_Integration_of_Simple_Functions)
14. [Lebesgue integral of a step function and of a simple function, IIT Kanpur notes](https://cse.iitk.ac.in/users/satyadev/sp14/chap4-2.pdf)
15. [Clarification on typical proof of step functions being dense in L^p[a,b], Math StackExchange](https://math.stackexchange.com/questions/5024914/clarification-on-typical-proof-of-step-functions-being-dense-in-lpa-b)
16. [Heaviside step function, PlanetMath](https://planetmath.org/heavisidestepfunction)
17. [Differential Equations for Engineers, Jeffrey Chasnov, HKUST](https://www.math.hkust.edu.hk/~machas/differential-equations-for-engineers.pdf)
18. [StepFunctions, Math 555: Differential Equations, Wichita State University](https://courses.math.wichita.edu/math555/ch6/3/StepFunctions.html)
19. [The Fourier Transform and Its Applications, Lecture 14 transcript, Stanford SEE](https://see.stanford.edu/materials/lsoftaee261/transcripts/TheFourierTransformAndItsApplications-Lecture14.html)
20. [Oliver Heaviside (1850–1925), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk//Biographies/Heaviside/)
21. [Heaviside's Operational Calculus: The Foundations of Electrical Engineering, University of Vaasa repository](https://osuva.uwasa.fi/server/api/core/bitstreams/7a3fbe3d-8566-4ec0-888a-82f4e9bc8f2b/content)
22. [Operational Calculus, Department of Mathematics, University of Pittsburgh](https://www.mathematics.pitt.edu/content/operational-calculus)
23. [1925: Death of Oliver Heaviside, APS News](https://www.aps.org/apsnews/2010/02/1925-death-of-oliver-heaviside)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Real analysis

Copyright 2026 Edgepedia

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

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

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