5.5 Fourier series

Harmonic oscillator: my″=−ky, y=Acos⁡ωt+Bsin⁡ωt.

Wave: ∂2u∂t2=c2∂2u∂x2. Methods.

1.

Reducing order. (∂∂t−c∂∂x)(∂∂t+c∂∂x)u=0 By means of method of characteristic line, we could get the traveling-wave solution.

2.

Separation of variables. Assuming u(x,t)=U(t)V(x), then the original PDE becomes 2 ODEs, and then we could get the standing-wave solution.

Assuming a periodic function f with period T, can it be expressed in the form of f(x)=A0+A1cos⁡2πxT+B1sin⁡2πxT+⋯+Ancos⁡2nπxT+Bnsin⁡2nπxT+⋯ and what’s its convergence?

Definition 5.5.1 Inner product of periodic functions. Assuming f,g are periodic functions with period 2π, then ⟨f.g⟩=∫02πf(x)g(x)dx

When m,n∈N∗, notice that ⟨cos⁡nx,cos⁡mx⟩=∫02πcos⁡(n+m)x+cos⁡(n−m)x2dx={0n≠mπn=m⟨sin⁡nx,sin⁡mx⟩=∫02πcos⁡(n−m)x−cos⁡(n+m)x2dx={0n≠mπn=m⟨cos⁡nx,sin⁡mx⟩=0

Assuming f(x)=A0+∑n=1+∞(Ancos⁡nx+Bnsin⁡nx) Then we have ∫02πf(x)cos⁡nxdx=⟨f(x),cos⁡nx⟩=An⟨cos⁡nx,cos⁡nx⟩={2πA0n=0πAnn≥1 Therefore A0=12π∫02πf(x)dx,An=1π∫02πf(x)cos⁡nxdx Similarly we have Bn=1π∫02πf(x)sin⁡nxdx

Definition 5.5.2 Assuming f is periodic with period 2π, f is integrable and absolutely integrable, let An=1π∫02πf(x)cos⁡nxdx,Bn=1π∫02πf(x)sin⁡nxdx,∀n∈N which is called the Euler-Fourier formula, then the Fourier series of f is defined as f(x)∼A02+∑n=1+∞(Ancos⁡nx+Bnsin⁡nx)

Example 5.5.1 f(x)=π−x2 when x∈(0,2π), f is periodic with period 2π, seek its Fourier series.

f is odd ⇒An=0,∀n∈N, and Bn=1π∫02ππ−x2sin⁡nxdx=1n So its Fourier series is ∑n=1+∞sin⁡nxn. Yet we’ve already known that ∑n=1+∞sin⁡nxn=π−x2,x∈(0,2π) So its Fourier series converges to itself when x≠2kπ,k∈Z.

Example 5.5.2 f(x)=x2 when x∈[−π,π], f is periodic with period 2π, seek its Fourier series.

f is odd ⇒Bn=0,∀n∈N, and An=2π∫0πx2cos⁡nxdx=4(−1)nn2,∀n∈N∗ So its Fourier series is π23+∑n=1+∞4(−1)nn2cos⁡nx. Yet we’ve already known that ∑n=1+∞cos⁡nxn2=π26+x2−2πx4,x∈[0,2π] Therefore, ∑n=1+∞(−1)nn2cos⁡nx=∑n=1+∞cos⁡n(x+π)n2=π26+(x+π)2−2π(x+π)4 After computation we could verify that its Fourier series constantly converges to itself.