1 Fourier Series

1 Fourier Series

August 10, 2020 APM346 { Week 8 Justin Ko 1 Fourier Series We begin by introducing the Fourier series of a function. The series representations of solutions to PDEs on a finite interval will be expressed in the form of these series. The series coefficients are determined by the initial conditions of the problems. The Fourier series of f is of the form 1 a0 X nπx nπx f(x) = + a cos + b sin : (1) 2 n L n L n=1 There are 3 main types of coefficients: 1. Full Fourier Series: The coefficients of the (full) Fourier series of f :[−L; L] ! R is given by 1 Z L nπx 1 Z L nπx an = f(x) cos dx and bn = f(x) sin dx: (2) L −L L L −L L The partial sums of this Fourier series satisfies periodic boundary conditions, f(−L) = f(L) and f 0(−L) = f 0(L). 2. Fourier Cosine Series: The coefficients of the Fourier cosine series of f : [0;L] ! R is given by the coefficients of the full Fourier series of the even extension of f: 1 Z L nπx 2 Z L nπx an = feven(x) cos dx = f(x) cos dx (3) L −L L L 0 L 1 Z L nπx bn = feven(x) sin dx = 0: (4) L −L L To compute bn, we used the fact that the product of an even and odd function is odd. The partial sums of this Fourier series satisfies Neumann boundary conditions f 0(0) = f 0(L) = 0. 3. Fourier Sine Series: The coefficients of the Fourier sine series of f : [0;L] ! R is given by the coefficients of the full Fourier series of the odd extension of f: 1 Z L nπx an = fodd(x) cos dx = 0 (5) L −L L 1 Z L nπx 2 Z L nπx bn = fodd(x) sin dx = f(x) sin dx: (6) L −L L L 0 L To compute an, we used the fact that the product of an even and odd function is odd. The partial sums of this Fourier series satisfies Dirichlet boundary conditions f(0) = f(L) = 0. 1.1 Derivation of the Fourier Series Using Orthogonality Suppose (Xn)n≥1 is an orthogonal sequence of functions on [a; b]. The general Fourier series of f is a series of the form 1 X f(x) = cnXn(x): n=1 To solve for the Fourier coefficient ck, we can take the inner product of both sides by Xk 1 1 X X hf; Xki hf; X i = c X ;X = c hX ;X i = c hX ;X i =) c = : (7) k n n k n n k k k k k hX ;X i n=1 n=1 k k since orthogonality implies that hXn;Xki = 0 unless n = k. Page 1 of 15 August 10, 2020 APM346 { Week 8 Justin Ko We can use this formula to derive the Fourier coefficients of the full Fourier series. By the product nπx nπx 1 sum identities, it is easy to check that Xn = cos( L ) and Yn = sin( L ) for n ≥ 1 and X0 = 2 for n = 0 are orthogonal. The full Fourier series is of f :[−L; L] ! R is of the form 1 1 X a0 X nπx nπx f(x) = a X (x) + a X (x) + b Y (x) = + a cos + b sin : 0 0 n n n n 2 n L n L n=1 n=1 Its coefficients for n ≥ 1 are R L R L nπx Z L hf; Xni −L f(x)Xn(x) dx −L f(x) cos( L ) dx 1 nπx an = = = = f(x) cos dx L L nπx hXn;Xni R 2 R 2 L −L L −L Xn(x) dx −L cos ( L ) dx R L R L nπx Z L hf; Yni −L f(x)Yn(x) dx −L f(x) sin( L ) dx 1 nπx bn = = = = f(x) sin dx L L 2 nπx hYn;Yni R 2 R L −L L −L Yn (x) dx −L sin ( L ) dx and the coefficient for a0 is given by R L R L 1 Z L hf; X0i −L f(x)X0(x) dx −L f(x) 2 dx 1 an = = = = f(x) dx L L 1 hX0;X0i R 2 R L −L −L X0 (x) dx −L 22 dx which is what we get if we naively extend the formula for an to a0. Remark 1. The coefficients of the Fourier cosine and sine series can be derived in a similar way. We can also use symmetry and the uniqueness of the Fourier coefficients to recover these coefficients from the full Fourier series. Remark 2. It turns out that the Fourier series form a orthogonal basis on the space of square integrable functions L2([−L; L]). This means that every square integrable function can be written as a linear combination of its orthogonal basis elements. The Fourier coefficients are an explicit formula for the scalars in this linear combination. 1.2 Derivation of the Fourier Series Using Least-Square Approximation Suppose (Xn)n≥1 is an orthogonal sequence of functions on [a; b]. The general Fourier series of f is a series of the form 1 X f(x) = cnXn(x): n=1 For fixed N ≥ 1, we want to find coefficients (cn) that minimizes the mean-squared error N 2 Z L N 2 X X EN = EN (c1; : : : ; cN ) = f − cnXn = f(x) − cnXn(x) dx: 2 n=1 L −L n=1 2 We used the notation k · kL2 = h·; ·i to denote the inner product norm. If we expand the square terms, then Z L N Z L N Z L 2 X X EN = jf(x)j dx − 2 cn f(x)Xn(x) dx + cncm Xn(x)Xm(x) dx: −L n=1 −L n;m=1 −L N N X X 2 = hf; fi − 2 cnhf; Xni + cnhXn;Xni n=1 n=1 Page 2 of 15 August 10, 2020 APM346 { Week 8 Justin Ko since hXn;Xmi = 0 if n 6= m by orthogonality. We can now differentiate with respect to c1; : : : ; cN to find critical point conditions, hf; Xki @ck EN = −2hf; Xki + 2ckhXk;Xki = 0 =) ck = hXk;Xki which agrees with the formula in (7). It is easy to see that we have a minimum at the critical point, because the Hessian of EN is positive definite because it is a diagonal matrix with diagonal entries 2 hXk;Xki = kXkkL2 > 0. 1.3 Example Problems Problem 1.1. Decompose the following functions into its Fourier series on the interval [−1; 1] and sketch the graph of the sum of the first three nonzero terms of its Fourier series. (a) f(x) = x (b) f(x) = jxj Solution 1.1. (Part a) We find the Fourier coefficients defined in (2): an: Since f(x) = x is odd, the an coefficients are zero. bn: Using integration by parts, Z 1 Z 1 2(−1)n bn = x sin(nπx) dx = 2 x sin(nπx) dx = − : −1 0 πn The corresponding Fourier series (1) of x is given by 1 1 X X 2(−1)n x = b sin(nπx) = − sin(nπx): n πn n=1 n=1 (Part b) We find the Fourier coefficients defined in (2): a0: A simple computation shows Z 1 Z 1 a0 = jxj dx = 2 x dx = 1: −1 0 an: For n ≥ 1, we can integration by parts, Z 1 Z 1 2((−1)n − 1) an = jxj cos(nπx) dx = 2 x cos(nπx) dx = 2 2 : −1 0 π n We had to treat the a0 case separately, because we would've divided by 0 in the computation above if n = 0. bn: Since f(x) = jxj is even, the bn coefficients are zero. The corresponding Fourier series (1) of jxj is given by 1 1 n a0 X 1 X 2((−1) − 1) f(x) = + a cos(nπx) = + cos(nπx): 2 n 2 π2n2 n=1 n=1 Plots: The blue plots of the first 3 non-zero terms of the series are displayed below: Page 3 of 15 August 10, 2020 APM346 { Week 8 Justin Ko 1 1 0:8 0:8 0:6 0:6 0:4 0:4 0:2 0:2 −1:5 −1 −0:5 0:5 1 1:5 −1:5 −1 −0:5 0:5 1 1:5 −0:2 −0:2 −0:4 −0:4 −0:6 −0:6 −0:8 −0:8 (a) −1 (b) −1 Remark 3. The series in part (a) and part (b) are also the respective Fourier sine and cosine series of f(x) = x on [0; 1] (shown in red). Remark 4. It appears that the partial sums of the Fourier series give a good approximation of the function on [−1; 1]. The blue lines seem to converge to the periodic extensions of f to R. We will show in the next section that the Fourier series do converge to the original function f almost everywhere. The Fourier series in part (b) appears to approximate the original solution much better than the Fourier series in part (a). The Fourier series in part (b) actually converges uniformly, which is a stronger form of convergence, which states that all points are close to the original function when we take enough terms in the sum. Page 4 of 15 August 10, 2020 APM346 { Week 8 Justin Ko 2 Convergence of Fourier Series Let (Xn)n≥1 be a sequence of orthogonal functions.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    15 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us