Course Test · University: upper level

Fourier analysis and transforms: independent answers

Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.

  1. 1.Square wave
    Find the Fourier series of the square wave f=−1f = -1 on (−1,0)(-1, 0), f=1f = 1 on (0,1)(0, 1), period 2, up to sin⁡3πx\sin 3\pi x.
    Answer
    ff is odd, so only sines: bn=2∫01sin⁡nπx dx=2(1−(−1)n)nπb_n = 2\int_0^1 \sin n\pi x\,dx = \dfrac{2(1 - (-1)^n)}{n\pi}, i.e. 4nπ\dfrac{4}{n\pi} for odd nn. f∼4π(sin⁡πx+13sin⁡3πx+⋯ )f \sim \dfrac4\pi\left(\sin\pi x + \tfrac13\sin3\pi x + \cdots\right), with 4π≈1.27324\tfrac4\pi \approx 1.27324.
  2. 2.Sawtooth
    Find the Fourier coefficients of f(x)=xf(x) = x on (−1,1)(-1, 1).
    Answer
    Odd: bn=2∫01xsin⁡nπx dx=2(−1)n+1nπb_n = 2\int_0^1 x\sin n\pi x\,dx = \dfrac{2(-1)^{n+1}}{n\pi}: 2π,−1π,23π\tfrac2\pi, -\tfrac1\pi, \tfrac2{3\pi}.
  3. 3.Parabola
    Find the Fourier series of f(x)=x2f(x) = x^2 on (−1,1)(-1, 1) up to cos⁡2πx\cos 2\pi x.
    Answer
    Even: a02=∫01x2=13\tfrac{a_0}2 = \int_0^1 x^2 = \tfrac13, an=2∫01x2cos⁡nπx dx=4(−1)nn2π2a_n = 2\int_0^1 x^2\cos n\pi x\,dx = \dfrac{4(-1)^n}{n^2\pi^2}: −4π2≈−0.405285-\tfrac4{\pi^2} \approx -0.405285, 1π2≈0.101321\tfrac1{\pi^2} \approx 0.101321.
  4. 4.Value at a jump
    To what does the Fourier series of the square wave converge at x=0x = 0?
    Answer
    To the average of the one-sided limits, −1+12=0\tfrac{-1 + 1}{2} = 0 (every sin⁡nπ⋅0=0\sin n\pi\cdot0 = 0).
  5. 5.Orthogonality
    Compute ∫−ππsin⁡2xsin⁡3x dx\int_{-\pi}^{\pi}\sin 2x\sin 3x\,dx and ∫−ππsin⁡22x dx\int_{-\pi}^{\pi}\sin^2 2x\,dx.
    Answer
    sin⁡2xsin⁡3x=12(cos⁡x−cos⁡5x)\sin2x\sin3x = \tfrac12(\cos x - \cos5x) integrates to 0. sin⁡22x=12(1−cos⁡4x)\sin^2 2x = \tfrac12(1 - \cos4x) integrates to π\pi.
  6. 6.Parseval's identity
    Use Parseval's identity for f(x)=xf(x) = x on (−1,1)(-1, 1) to find ∑1/n2\sum 1/n^2.
    Answer
    ∫−11x2=23=∑bn2=∑4n2π2\int_{-1}^1 x^2 = \tfrac23 = \sum b_n^2 = \sum \dfrac{4}{n^2\pi^2}, so ∑1n2=π26\sum \dfrac1{n^2} = \dfrac{\pi^2}6.
  7. 7.Discrete Fourier transform
    Compute the DFT Xk=∑jxje−2πijk/4X_k = \sum_j x_j e^{-2\pi ijk/4} of (1,2,3,4)(1, 2, 3, 4).
    Answer
    X0=10X_0 = 10, X1=1−2i−3+4i=−2+2iX_1 = 1 - 2i - 3 + 4i = -2 + 2i, X2=1−2+3−4=−2X_2 = 1 - 2 + 3 - 4 = -2, X3=−2−2iX_3 = -2 - 2i.
  8. 8.DFT of an impulse
    Find the DFT of (1,0,0,0)(1, 0, 0, 0).
    Answer
    Only j=0j = 0 contributes: Xk=1X_k = 1 for every kk, a flat spectrum.
  9. 9.Aliasing
    A 7 Hz sine is sampled at 10 Hz. What frequency does it appear to have?
    Answer
    The Nyquist frequency is 5 Hz; 77 folds to 10−7=310 - 7 = 3 Hz, and a sine comes back with its sign reversed: sin⁡(2π⋅7n/10)=−sin⁡(2π⋅3n/10)\sin(2\pi\cdot7n/10) = -\sin(2\pi\cdot3n/10).
  10. 10.Fourier transform
    Find f^(ω)=∫−∞∞f(x)e−iωxdx\hat f(\omega) = \int_{-\infty}^\infty f(x)e^{-i\omega x}dx for f=e−∣x∣f = e^{-|x|} and for f=e−x2f = e^{-x^2}.
    Answer
    ∫0∞e−x(1+iω)dx+∫0∞e−x(1−iω)dx=21+ω2\int_0^\infty e^{-x(1 + i\omega)}dx + \int_0^\infty e^{-x(1 - i\omega)}dx = \dfrac{2}{1 + \omega^2}. The Gaussian: π e−ω2/4\sqrt\pi\,e^{-\omega^2/4}.
  11. 11.Convolution
    Compute (f∗f)(1)(f * f)(1) for f=e−∣x∣f = e^{-|x|}.
    Answer
    (f∗f)(x)=(1+∣x∣)e−∣x∣(f * f)(x) = (1 + |x|)e^{-|x|} (or invert 4(1+ω2)2\dfrac{4}{(1 + \omega^2)^2}): (f∗f)(1)=2e≈0.735759(f * f)(1) = \dfrac2e \approx 0.735759.
  12. 12.Laplace transform
    Find the Laplace transforms of t2t^2 and e2tsin⁡3te^{2t}\sin 3t.
    Answer
    L{tn}=n!sn+1\mathcal L\{t^n\} = \dfrac{n!}{s^{n+1}}: 2s3\dfrac2{s^3}. Shifting 3s2+9\dfrac3{s^2 + 9}: 3(s−2)2+9\dfrac{3}{(s - 2)^2 + 9}.
  13. 13.Inverse Laplace transform
    Find L−1{1s(s+1)}\mathcal L^{-1}\left\{\dfrac{1}{s(s + 1)}\right\}.
    Answer
    1s−1s+1\dfrac1s - \dfrac1{s + 1}, so 1−e−t1 - e^{-t}.
  14. 14.Legendre polynomials
    Find P3(x)P_3(x).
    Answer
    Rodrigues: P3=148d3dx3(x2−1)3=12(5x3−3x)P_3 = \tfrac1{48}\dfrac{d^3}{dx^3}(x^2 - 1)^3 = \tfrac12(5x^3 - 3x).
  15. 15.Sturm–Liouville eigenvalues
    Find the first three eigenvalues of −y′′=λy-y'' = \lambda y, y(0)=y(1)=0y(0) = y(1) = 0.
    Answer
    y=sin⁡nπxy = \sin n\pi x, λn=n2π2\lambda_n = n^2\pi^2: 9.86969.8696, 39.478439.4784, 88.826488.8264.
  16. 16.Heat equation
    Solve ut=uxxu_t = u_{xx} on 0<x<10 < x < 1 with u=0u = 0 at both ends and u(x,0)=sin⁡πxu(x, 0) = \sin\pi x. Find u(12,110)u(\tfrac12, \tfrac1{10}).
    Answer
    u=e−π2tsin⁡πxu = e^{-\pi^2t}\sin\pi x; u(12,110)=e−π2/10≈0.372708u(\tfrac12, \tfrac1{10}) = e^{-\pi^2/10} \approx 0.372708.
  17. 17.Wave equation
    A string of length 1 with c=1c = 1 starts at rest in the shape sin⁡πx\sin\pi x. Find the displacement at x=12x = \tfrac12 at t=12t = \tfrac12 and t=13t = \tfrac13.
    Answer
    u=sin⁡πxcos⁡πtu = \sin\pi x\cos\pi t: u(12,12)=0u(\tfrac12, \tfrac12) = 0, u(12,13)=12u(\tfrac12, \tfrac13) = \tfrac12.
  18. 18.Laplace's equation on a disc
    Solve Δu=0\Delta u = 0 in the unit disc with u=cos⁡θu = \cos\theta on the boundary. Find uu at r=12r = \tfrac12, θ=0\theta = 0.
    Answer
    u=rcos⁡θu = r\cos\theta (harmonic and right on the circle): u=12u = \tfrac12.
  19. 19.Convolution theorem
    Check the convolution theorem f∗g^=f^ g^\widehat{f * g} = \hat f\,\hat g for f=g=e−∣x∣f = g = e^{-|x|} at x=1x = 1.
    Answer
    f^g^=4(1+ω2)2\hat f\hat g = \dfrac{4}{(1 + \omega^2)^2}, whose inverse transform at 1 is 12π∫4eiω(1+ω2)2dω=2e−1\dfrac{1}{2\pi}\int\dfrac{4e^{i\omega}}{(1 + \omega^2)^2}d\omega = 2e^{-1}, the same as the direct convolution.
  20. 20.Mean-square convergence
    For f(x)=xf(x) = x on (−1,1)(-1, 1), find the mean square error 12∫−11(f−S3)2 dx\tfrac12\int_{-1}^1 (f - S_3)^2\,dx of the 3-term Fourier sum S3S_3.
    Answer
    By Bessel's equality, ∫−11(f−S3)2=∫−11x2−∑n≤3bn2=23−4π2(1+14+19)=23−499π2≈0.115029\int_{-1}^1 (f - S_3)^2 = \int_{-1}^1 x^2 - \sum_{n\le3} b_n^2 = \tfrac23 - \tfrac4{\pi^2}\left(1 + \tfrac14 + \tfrac19\right) = \tfrac23 - \tfrac{49}{9\pi^2} \approx 0.115029. Half of that is ≈0.0575146\approx 0.0575146.