This post is translated from Chinese into English through AI.View Original
AI-generated summary
This article discusses Fourier transforms in the sixth lecture of Games101. It covers topics such as orthogonality of trigonometric functions, Fourier series expansion for different periods, and the complex form of Fourier series. The author recommends referring to resources for further study and mentions the inability to provide proofs for the expansion formula. The article also discusses the integration of trigonometric functions and the derivation of coefficients in the Fourier series. It concludes by explaining the process of finding coefficients and the formula for a function with a period of T.
Lecture 6 of Games101 covers content related to Fourier transforms. After class, I spent some time understanding this topic (although I studied it in college, I had mostly forgotten it), so I wrote this article to record my learning insights.
I strongly recommend the series "Purely Practical Mathematical Derivations" by Teacher DR_CAN in the reference materials! Most of this article consists of notes from his course.
This article will derive from the following aspects in order:
Orthogonality of trigonometric functions
Fourier series expansion for functions with a period of 2 π
Fourier series expansion for functions with a period of T
Complex form of Fourier series
Fourier series expansion for non-periodic functions
It should be noted that due to my limited knowledge, I cannot provide a proof for the Fourier series expansion formula, just like I cannot prove why G=mg. For truths, it may be simpler to use them directly. However, for readers who feel uncomfortable not understanding it, I recommend the article written by Teacher Wang Jiliang, which provides a detailed introduction to how Fourier derived the Fourier series from the heat conduction equation.
Fourier series expansion: f(x)=2a0+Σn=1+∞(ancosnx+bnsinnx)
The above integrals can be proven using the product-to-sum identities of trigonometric functions. Here, only one calculation process is provided for reference.
So what happens if n = m? For combinations like sin and cos, it doesn't matter, but for cos and cos or sin and sin, it is equivalent to integrating the product of two identical trigonometric functions. Below is the solution for the combination of cosmx and cosmx.
Remember the results derived here, as they will be used in the next section.
Fourier Series Expansion for Functions with a Period of 2 π#
At the beginning, the relevant formulas for Fourier series were directly given. Next, I will introduce how to combine the orthogonality of trigonometric functions to find the coefficients in the formula.
After integrating both sides, it is evident that the combinations of 1, cosnx and 1, sinnx will yield results of 0 based on the orthogonality of trigonometric functions. Thus, we can directly eliminate them to obtain the following equality:
At this point, we can directly eliminate 2a0∫−ππ1cosmxdx and bn∫−ππΣn=1+∞sinnxcosmxdx based on the orthogonality of trigonometric functions, as they will both yield 0. However, we cannot eliminate the middle term an∫−ππΣn=1+∞cosnxcosmxdx entirely, because when m=n, its integral result is π.
The proof process is omitted here, as it follows the same reasoning as above, yielding:
bn=π1∫−ππf(x)sinmxdx
Fourier Series Expansion for Functions with a Period of T#
The method for expanding functions with a period of T is somewhat clever. In general, it involves transforming parameters to force the expression into the form of π.
Let T = 2L, then we have f(t) = f(t + 2L).
Let x = Lπ t, then t = πLx, thus f(t) = f( πLx).
t
x
0
0
2L
2 π
4L
4 π
If we consider g(x) as f( πL (x)), from the correspondence in the above table, the graph of g(x) can correspond to f(t). For example, f(2L) = g(2 π). The period of g(x) is 2 π, but we have already obtained the coefficients for the Fourier expansion of functions with a period of 2 π in the previous section.
This section will use Euler's formula. I will write another article later to prove Euler's formula (the proof requires Taylor expansion, although Euler himself did not use this method to derive it).
eiθ=cosθ+isinθ
{eiθ=cosθ+isinθei−θ=cos−θ+isin−θ=cosθ−isinθ
From the above, we can derive:
{sinθ=2ieiθ−e−iθ=−i2eiθ−e−iθcosθ=2eiθ+e−iθ
Let x=T2πt and substitute this into the Fourier series to obtain:
Notice that the results for n > 0 and n < 0 are the same. Also, for n = 0, we can see that its expression is also the same as for n > 0 and n < 0 (substituting n=0 gives e−iT2nπ resulting in 1).
Thus, the expression for Cn can be unified as:
Cn=T1∫0Tf(t)e−iT2nπtdt
At this point, we define ω0 as T2π (the angular frequency in engineering), yielding:
Cn=T1∫0Tf(t)e−inω0tdt
Thus, we have obtained the complex form of the Fourier series:
Replace the limits of integration with [-T/2, T/2], then substituting into the original expression gives (the definite integral of periodic functions only needs the difference to be one period for the results to be the same):
Fourier Series Expansion for Non-Periodic Functions#
The treatment of Fourier series expansion for non-periodic functions is also quite clever. The general idea is to treat the non-periodic function as a periodic function with infinite period, and then use the expansion formula for periodic functions to transform it.
Let T1 be f, and since T = ∞, f approaches zero, thus we obtain:
f(t)=Σn=−∞+∞(∫−∞∞f(t)e−inω0tdt)einω0tf
Looks familiar, doesn't it (the definition of definite integrals)? Since f approaches 0 infinitely, and ω0=T2π=2πf, we can obtain it through summing to integration.
f(t)=∫−∞∞(∫−∞∞f(t)e−i2πftdt)ei2πftdf
However, I think everyone is probably more familiar with the following form:
f(t)=2π1∫−∞∞(∫−∞∞f(t)e−iωtdt)eiωtdω
Both expressions are essentially the same, one from frequency and the other from angular frequency.