← 返回资讯屏轩教育 · 行业资讯

Spectrum of a Periodic Function | 周期函数的频谱

2026-08-03 02:44 · 本文部分内容由AI辅助创作

📚 Spectrum of a Periodic Function | 周期函数的频谱

In the study of periodic phenomena, from sound waves to alternating current, the idea of a spectrum reveals hidden structure. Instead of viewing a signal only through its shape over time, we can decompose it into a sum of pure sine and cosine waves, each with a specific frequency, amplitude, and phase. This article explores the spectrum of a periodic function within the IB Mathematics curriculum, covering Fourier series, amplitude and phase spectra, and the deep connection between time‑domain and frequency‑domain representations.

在研究周期现象(从声波到交流电)时,频谱的概念揭示了隐藏的结构。我们不必仅仅通过时间上的形状来观察信号,而是可以将其分解为一系列不同频率、振幅和相位的纯正弦波与余弦波之和。本文在IB数学课程框架内探讨周期函数的频谱,涵盖傅里叶级数、振幅谱与相位谱,以及时域与频域表示之间的深层联系。


1. Periodic Functions and the Idea of a Spectrum | 周期函数与频谱的概念

t+T) = f(t) for all t. The smallest positive T is called the fundamental period. Many real‑world signals are periodic, but a raw time‑ uted across different frequencies. This representation is essential in music, telecommunications, and physics.

如果对于所有t都有f(t+T)=f(t),则函数f(t)是周期为T的周期函数。最小的正数T称为基本周期。许多现实世界的信号都是周期性的,但原始的时域图形并不能直接告诉我们存在哪些频率。f(t)的频谱描述了其能量或振幅如何在不同频率上分布。这种表示在音乐、电信和物理学中至关重要。

volved and their corresponding amplitudes is called the frequency spectrum. The lowest non‑ frequency f₀ = 1/T; all other frequencies are integer multiples of it, known as harmonics.

为了得到频谱,我们将周期函数表示为简单三角项的和。所涉及的频率集合及其对应的振幅称为频谱。存在的最低非零频率为基频f₀ = 1/T;所有其他频率都是它的整数倍,称为谐波。


2. Fourier Series: The Foundation of Spectral Analysis | 傅里叶级数:频谱分析的基石

Jean‑ sines and cosines. For a period T, letting ω₀ = 2π/T, the trigonometric Fourier series is:

让-巴蒂斯特·约瑟夫·傅里叶证明了任何足够光滑的周期函数都可以写成无穷多个正弦和余弦之和。对于周期T,令 ω₀ = 2π/T,三角形式的傅里叶级数为:

f(t) = a₀/2 + Σn=1∞ [aₙ cos(nω₀t) + bₙ sin(nω₀t)]

The constant term a₀/2 is the average value (DC component). The coefficients aₙ and bₙ measure how much of the cosine and sine at frequency nω₀ is present. This series is the key that unlocks the spectrum.

常数项a₀/2是平均值(直流分量)。系数aₙ和bₙ衡量了频率为nω₀的余弦和正弦成分的含量。这个级数是解锁频谱的钥匙。


3. Trigonometric Form of the Fourier Series | 傅里叶级数的三角形式

The trigonometric form uses sine and cosine functions directly. Many IB problems focus on this representation because it aligns well with basic integration skills. The series can also be written in an amplitude‑phase form:

三角形式直接使用正弦和余弦函数。许多IB问题都关注这种表示,因为它与基本的积分技巧很好地对应。该级数也可以写成振幅-相位形式:

f(t) = A₀/2 + Σn=1∞ Aₙ cos(nω₀t + φₙ)

or

或

f(t) = A₀/2 + Σn=1∞ Aₙ sin(nω₀t + θₙ)

Here, the amplitude Aₙ = √aₙ² + bₙ² represents the spectral magnitude at the n‑th harmonic, and the phase φₙ (or θₙ) captures the relative shift. This directly gives the single‑sided amplitude and phase spectra.

这里,振幅Aₙ = √aₙ² + bₙ²表示第n次谐波处的频谱幅值,相位φₙ(或θₙ)则刻画了相对偏移。这直接给出了单边振幅谱和相位谱。


4. Calculating Fourier Coefficients | 计算傅里叶系数

The coefficients are found using orthogonality of sine and cosine over one period. The standard formulas for a period T (or interval [0, T]) are:

利用正弦和余弦在一个周期上的正交性,可以求出这些系数。周期T(或区间[0, T])上的标准公式为:

a₀ = (2/T) ∫0T f(t) dt

aₙ = (2/T) ∫0T f(t) cos(nω₀t) dt,   n ≥ 1

bₙ = (2/T) ∫0T f(t) sin(nω₀t) dt,   n ≥ 1

reduce work. For an even function, all bₙ = 0; for an odd function, a₀ = 0 and all aₙ = 0.

在IB考试中,你经常会处理简单的分段函数,利用分部积分法或对称性(偶/奇函数)来减少计算量。对于偶函数,所有bₙ = 0;对于奇函数,a₀ = 0且所有aₙ = 0。


5. Amplitude Spectrum: Visualising Magnitudes | 振幅谱:幅值的可视化

0, the plot consists of discrete vertical lines (spectral lines) at each harmonic frequency. The height of each line is the amplitude Aₙ.

振幅谱(或幅度谱)是Aₙ随频率nω₀(或简单地用n)变化的图形。由于Aₙ ≥ 0,该图由每个谐波频率处的离散垂直线(谱线)组成,每条线的高度就是振幅Aₙ。

For a single‑sided spectrum, only positive frequencies are shown. The spectrum tells us which harmonics dominate the signal. Typically, magnitudes decrease as n increases, but not always. Recognizing the decay rate gives insight into how jagged or smooth the original function is.

对于单边频谱,只显示正频率。频谱告诉我们哪些谐波在信号中占主导地位。通常,幅值随着n增大而减小,但并非总是如此。判断衰减速度可以推断原函数的不规则程度或光滑程度。


6. Phase Spectrum: Timing and Shape | 相位谱:时序与波形形状

The phase spectrum is equally important – it shows how the harmonics are aligned in time. It plots φₙ (or θₙ) against frequency. Phase information is crucial for reconstructing the exact shape of the original signal; changing phases can drastically alter the waveform even if amplitudes remain the same.

相位谱同样重要——它展示了谐波在时间上的对齐方式。它绘制φₙ(或θₙ)随频率变化的图形。相位信息对于重建原始信号的精确形状至关重要;即使振幅相同,改变相位也会极大地改变波形。

ally found from tan φₙ = bₙ/aₙ, but care must be taken with the quadrant. In the amplitude‑ ). IB problems may ask you to find the phase and interpret its meaning in a given context.

相位φₙ通常由tan φₙ = bₙ/aₙ求得,但需要注意象限。在振幅‑相位余弦形式中,若使用Aₙ cos(nω₀t + φₙ) = aₙ cos(nω₀t) + bₙ sin(nω₀t),则 φₙ = arctan(−bₙ/aₙ)。IB问题可能要求你求出相位并在给定情境中解释其含义。


广告 / Sponsored

7. Spectrum of a Square Wave: An Illustrative Example | 方波的频谱:一个示例

< π and f(t) = −1 for π < t < 2π. Because it is odd, all aₙ = 0 and a₀ = 0. Computing bₙ:

考虑一个周期为2π的奇对称方波,定义为当0 < t < π时f(t) = 1,当π < t < 2π时f(t) = −1。由于它是奇函数,所有aₙ = 0且a₀ = 0。计算bₙ:

bₙ = (2/π) ∫0π (1) sin(nt) dt = (2/(nπ)) [1 − (−1)ⁿ]

Thus bₙ = 4/(nπ) for odd n, and 0 for even n. The amplitude for the n‑th harmonic is Aₙ = |bₙ| = 4/(nπ) for odd n. The amplitude spectrum therefore shows lines at n = 1, 3, 5, … . This illustrates that a square wave contains only odd harmonics, with decreasing energy.

因此,当n为奇数时bₙ = 4/(nπ),当n为偶数时为0。对于奇数n,第n次谐波的振幅为Aₙ = |bₙ| = 4/(nπ)。因此,振幅谱在n = 1, 3, 5, …处显示谱线,高度与1/n成正比。这表明方波只包含奇次谐波,且能量递减。


8. Spectrum of a Sawtooth Wave | 锯齿波的频谱

the square wave, the sawtooth contains all harmonics (both odd and even), and its amplitudes decay as 1/n.

标准的锯齿波周期为2π,在−π < t < π上定义为f(t) = t(并进行周期延拓),是另一个经典例子。该函数为奇函数,故aₙ = 0且a₀ = 0。通过分部积分可得bₙ = (2/n)(−1)ⁿ⁺¹。其振幅谱对所有n ≥ 1为Aₙ = 2/n。与方波不同,锯齿波包含所有谐波(奇次和偶次),且其振幅按1/n衰减。

be calculated: since aₙ = 0, using the sine form is more natural, but in cosine amplitude‑ s. This example shows how the decay rate of amplitudes (1/n vs 1/n) indicates the function's continuity and differentiability properties.

相位谱也可以计算:由于aₙ = 0,用正弦形式更自然,但在余弦振幅‑相位形式中,相位会交替变化。这个例子表明振幅的衰减速率(1/n 对比 1/n)如何反映函数的连续性和可微性。


9. Complex Exponential Fourier Series and Two‑Sided Spectrum | 复指数傅里叶级数与双边频谱

A more compact representation uses Euler’s formula to combine sines and cosines into complex exponentials. The complex Fourier series is:

利用欧拉公式将正弦和余弦组合成复指数,可以得到更简洁的表示。复傅里叶级数为:

f(t) = Σn=−∞∞ cₙ einω₀t

where the complex Fourier coefficients are:

其中复傅里叶系数为:

cₙ = (1/T) ∫0T f(t) e−inω₀t dt

The coefficients cₙ are generally complex; their magnitudes |cₙ| give the two‑ trum. In this spectrum, frequencies range from negative to positive, and for real signals, |cₙ| = |c₋ₙ|. The two‑sided amplitude is half of the single‑sided amplitude Aₙ for n ≠ 0.

系数cₙ通常是复数;其模|cₙ|给出了双边振幅谱。在此频谱中,频率从负到正,对于实信号,|cₙ| = |c₋ₙ|。n ≠ 0时,双边振幅是单边振幅Aₙ的一半。

The phase spectrum from the complex series is simply the argument of cₙ. This representation is powerful in advanced topics like signal processing and appears in the IB HL Mathematics: Analysis and Approaches syllabus.

复级数的相位谱就是cₙ的辐角。这种表示在信号处理等进阶主题中非常有用,并出现在IB HL数学:分析与方法的课程中。


10. Time Domain vs Frequency Domain Thinking | 时域与频域的思维转换

Understanding the spectrum trains you to move between time‑domain and frequency‑domain perspectives. A delta‑like click in time has a flat, broad spectrum, while a pure sine has a single spectral line. The wider a pulse in time, the narrower its spectral footprint – a manifestation of the reciprocal relationship between time and frequency.

理解频谱能训练你在时域和频域视角之间转换。时间上的类脉冲声(如点击声)具有平坦宽广的频谱,而纯正弦波只有单一谱线。时域中的脉冲越宽,其频谱足迹就越窄——这体现了时间与频率之间的倒数关系。

In IB problems, you might be asked to interpret a given spectrum or deduce symmetry properties of the original function from its coefficients. For example, if only odd harmonics appear, the function has half‑wave symmetry. If only sine terms appear, the function is odd. These connections make spectral analysis a unifying theme in mathematics.

在IB问题中,你可能会被要求解读给定的频谱,或根据系数推断原函数的对称性质。例如,若只出现奇次谐波,则该函数具有半波对称性;若只出现正弦项,则该函数为奇函数。这些联系使频谱分析成为数学中一个统一性的主题。


11. Common Pitfalls and Exam Advice | 常见错误与考试建议

When computing Fourier coefficients, students often forget to adjust the integration limits if the function is defined piecewise, or neglect the factor 2/T. Ensure you correctly calculate a₀/2 rather than a₀ alone. In amplitude‑phase conversion, quadrant errors for φₙ are frequent: always sketch the vector (aₙ, bₙ) to determine the correct angle.

在计算傅里叶系数时,学生常常忘记当函数是分段定义时调整积分限,或者忽略了因子2/T。要确保正确计算的是a₀/2而不仅仅是a₀。在振幅-相位转换中,φₙ的象限错误也很常见:一定要画出向量(aₙ, bₙ)来确定正确的角度。

IB markschemes often reward using symmetry to simplify work. State clearly if a function is even or odd before integrating. Also, remember that the spectrum is discrete for periodic functions – it is a line spectrum, not a continuous curve. Explaining the physical meaning of the DC component and the fundamental frequency can earn you valuable communication points.

IB的评分方案通常奖励利用对称性简化计算的做法。在积分前应清楚地说明函数是偶函数还是奇函数。同时,记住周期函数的频谱是离散的——它是线状谱,而非连续曲线。解释直流分量和基频的物理意义可以为你赢得宝贵的交流分。


12. Applications and Further Connections | 应用与进一步的联系

The spectrum of a periodic function is not just an abstract mathematical concept. It underpins music synthesis (where harmonics define timbre), data compression (JPEG, MP3), and the analysis of electrical circuits. In physics, Fraunhofer diffraction patterns are essentially Fourier spectra of aperture functions. Appreciating this breadth enriches your understanding of why IB Mathematics includes this topic.

周期函数的频谱不仅仅是一个抽象的数学概念。它支撑着音乐合成(谐波决定音色)、数据压缩(JPEG、MP3)以及电路分析。在物理学中,夫琅禾费衍射图样本质上是孔径函数的傅里叶频谱。认识到这种广度,能加深你对IB数学为何包含这一主题的理解。

For further study, you will meet the continuous Fourier transform, which extends spectra to non‑periodic signals. The journey from periodic Fourier series to continuous transforms is a natural progression in university mathematics and engineering. Mastering the discrete line spectrum now builds essential intuition for that leap.

在后续学习中,你将遇到连续傅里叶变换,它将频谱拓展到非周期信号。从周期傅里叶级数到连续变换的过程,是大学数学和工程学中的一个自然进阶。现在掌握离散线状谱,能为这一飞跃建立起至关重要的直觉。


Published by TutorHao | IB Mathematics Revision Series | aleveler.com

广告 / Sponsored
IBDP国际文凭计算机科学学生用书 高级及标准水平 Computer Science for the IB Diplo…
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥524.0

更多咨询请联系16621398022(同微信)

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao