Trinh @ Bath

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
vpde_lecture20 [2020/03/19 12:30]
trinh
vpde_lecture20 [2020/03/19 12:41]
trinh
Line 17: Line 17:
 $$ $$
 f(x) \sim \frac{a_0}{2} + \sum_{n=1}^\infty \left[ a_n \cos\left(\frac{n\pi x}{L}\right) + b_n \sin\left(\frac{n\pi x}{L}\right)\right] f(x) \sim \frac{a_0}{2} + \sum_{n=1}^\infty \left[ a_n \cos\left(\frac{n\pi x}{L}\right) + b_n \sin\left(\frac{n\pi x}{L}\right)\right]
 +$$
 +where now the coefficients are calculated from 
 +$$
 +a_n = \frac{1}{L} \int_{-L}^L f(x) \cos\left(\frac{n\pi x}{L}\right) \, \mathrm{d}{x}
 +$$
 +$$
 +b_n = \frac{1}{L} \int_{-L}^L f(x) \sin\left(\frac{n\pi x}{L}\right) \, \mathrm{d}{x}
 $$ $$
  
 +There is a simple way to prove this based on what we already know. Let's take the function we have on $[-L. L]$ and simply transform the domain so that it is now between $[-\pi, \pi]$. We can do that via 
 +$$
 +X = \frac{\pi x}{L}.
 +$$
 +Go ahead and verify that this works as indicated. You can verify that if $f(x) = f(LX/\pi) = g(X)$, then this new function $g(X)$ is $2\pi$ periodic and defined on $[-\pi, pi]$. So now we have the Fourier series for $g(X)$. Go and write that down. After you have done that, you'll notice that you get the above formulae.
  
 +**Remark 12.8.** There is an important note here. Because of the $2L$-periodicity, suppose we asked you to determine the Fourier series for a function on $[0, 2L]$ instead of $[-L, L]$. Then this is equivalent to using all the same formulae, but instead you integrate from $0$ to $2L$. 
  
 +==== Fourier series for even and odd- extensions ====
 +
 +We are almost done. There is one last variation to explain. Occasionally, we want to derive the Fourier series of an even or odd- extension of a function that is defined on $[0, L]$. In other words, you would take that original function on $[0, L]$, plot the even/odd extension to $[-L, 0]$, and then at that point you have a full function from $[-L, L]$ so you can apply the usual Fourier series.
 +
 +It is a lot easier to explain how this is done via a picture. 
 +
 +=== Odd- and even extensions of $f(x) = x^2$ === 
 +
 +We'll draw the odd and even periodic extension of $f(x)
 +
 +=== Fourier series of $f(x) = e^x$ === 
 +
 +We'll then do two examples. One will be the Fourier series for full $2\pi$-periodic extension of $e^x$ defined on $[0, 2\pi]$. The other will be the even extension of $e^x$ defined on $[0, \pi]$.