This post is translated from Chinese into English through AI.View Original
AI-generated summary
This article discusses the concepts and calculations involved in the Fourier series expansion of functions with different periods. It explains the use of trigonometric functions and integrals to calculate the coefficients in the Fourier series formula. The article also mentions the importance of understanding the orthogonality of trigonometric functions in this process. It recommends further study and references other sources for a more detailed explanation of the topic.
The sixth lecture of Games101 covers the topic of Fourier transforms. After spending some time after class to understand it (even though I studied it in college, I had mostly forgotten), I wrote this article to record my learning insights.
I strongly recommend the series "Purely Practical Mathematical Derivation" 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 as I cannot prove why G=mg. For truths, it may be simpler to use them directly. However, for readers who feel uncomfortable not understanding, I recommend the article written by Teacher Wang Jiliang, which provides a detailed introduction to how Fourier extracted 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 formulas 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 result derived here, as it 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, we will introduce how to combine the orthogonality of trigonometric functions to find the coefficients in the formula.
After integrating both sides, it is obvious that the combinations of 1, cosnx and 1, sinnx can be eliminated based on the orthogonality of trigonometric functions, leading to 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 equal 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, 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; it essentially transforms the expression through a parameter change to force it 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)), the corresponding relationship from the above table shows that the graph of g(x) can correspond to f(t), for example, f(2L) = g(2 π). The period of g(x) is 2 π, and 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, and I will write another article later to prove Euler's formula (the proof requires Taylor expansion, although Euler himself did not derive it this way).
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 (after substituting n=0, e−iT2nπ results in 1).
Thus, the expression for Cn can be unified as:
Cn=T1∫0Tf(t)e−iT2nπtdt
At this point, we let ω0 be 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], and then substitute back into the original expression (the definite integral of periodic functions will yield the same result as long as the difference in limits is one period):
Fourier Series Expansion for Non-Periodic Functions#
The treatment for expanding non-periodic functions into Fourier series is also quite clever. The general idea is to treat the non-periodic function as a periodic function with an infinite period, and then use the expansion formula for periodic functions for transformation.
Let T1 be f, and since T = ∞, f approaches zero, leading to:
f(t)=Σn=−∞+∞(∫−∞∞f(t)e−inω0tdt)einω0tf
Doesn't that look familiar? (the definition of definite integrals). Since f approaches 0 infinitely, and ω0=T2π=2πf, we can apply the sum-to-integral transformation to obtain:
f(t)=∫−∞∞(∫−∞∞f(t)e−i2πftdt)ei2πftdf
However, I think everyone might be more familiar with the following form:
f(t)=2π1∫−∞∞(∫−∞∞f(t)e−iωtdt)eiωtdω
Both expressions are essentially the same, just one is from the perspective of frequency and the other from angular velocity.