maths.freePartial Differential Equations › Fourier series: coefficients, convergence and Parseval

Fourier series: coefficients, convergence and Parseval

Orthogonality, computing coefficients, what kind of convergence to expect, Gibbs, and Parseval's identity.

On \( [-\pi, \pi] \) the functions \( 1, \cos x, \sin x, \cos 2x, \sin 2x, \dots \) are mutually orthogonal: \( \int_{-\pi}^{\pi}\sin mx\sin nx\,dx = \pi\delta_{mn} \) for \( m, n \ge 1 \), similarly for cosines, and every sine is orthogonal to every cosine. Assuming \( f(x) = \frac{a_0}{2} + \sum_{n\ge1}(a_n\cos nx + b_n\sin nx) \) and integrating against each basis function isolates one coefficient: \[ a_n = \frac1\pi\int_{-\pi}^{\pi} f(x)\cos nx\,dx, \qquad b_n = \frac1\pi\int_{-\pi}^{\pi} f(x)\sin nx\,dx. \] For \( f(x) = x \) (an odd function, so \( a_n = 0 \)) integration by parts gives \( b_n = 2(-1)^{n+1}/n \), which the example computes.

Convergence needs care, and there are three kinds. For every square-integrable \( f \) the partial sums converge in mean square: \( \int|f - S_N|^2 \to 0 \). If \( f \) is piecewise continuously differentiable, the series converges at every point, to \( f(x) \) where \( f \) is continuous and to \( \tfrac12(f(x^-) + f(x^+)) \) at a jump. If the \( 2\pi \)-periodic extension of \( f \) is continuous and piecewise \( C^1 \), the convergence is uniform. For \( f(x) = x \) the periodic extension jumps at \( \pm\pi \), the series gives \( 0 \) there, and near the jump the partial sums overshoot by about 9% of the jump however many terms you take: the Gibbs phenomenon.

Parseval's identity is Pythagoras in infinitely many dimensions: \[ \frac1\pi\int_{-\pi}^{\pi}|f|^2\,dx = \frac{a_0^2}{2} + \sum_{n\ge1}\big(a_n^2 + b_n^2\big). \] For \( f(x) = x \) the left side is \( 2\pi^2/3 \) and the right is \( \sum 4/n^2 \), which proves \( \sum 1/n^2 = \pi^2/6 \).

Picture it: add sine waves one at a time and watch a sawtooth assemble, each new term fixing finer detail, with a persistent ear of overshoot at the jump that narrows but never shrinks in height.

Think it: smoothness is decay. If the periodic extension of \( f \) has \( k \) continuous derivatives then integrating by parts \( k \) times shows the coefficients are \( o(n^{-k}) \); conversely, fast decay of coefficients means smoothness. Measuring a function by \( \sum (1 + n^2)^s(a_n^2 + b_n^2) \) is how Sobolev spaces are defined on a circle, and it is why the heat equation, which multiplies coefficients by \( e^{-n^2t} \), makes everything smooth.

Eksempel på arbeid · fourier series of x from -pi to pi

Fourier series of x from -pi to pi

x,\quad - \pi \le x \le \pi

Steg for trinn

  1. f(x) = x,\quad - \pi \le x \le \pi

    A Fourier series writes f as a sum of cosines and sines that repeat every 2 \pi (the length of the interval).

  2. a_0 = \frac{1}{\pi}\int_{- \pi}^{\pi} f\,dx,\quad a_n = \frac{1}{\pi}\int_{- \pi}^{\pi} f \cos\left(n x\right) dx,\quad b_n = \frac{1}{\pi}\int_{- \pi}^{\pi} f \sin\left(n x\right) dx

    The coefficient formulas. Here n is a positive whole number, so sin(nπ) = 0 and cos(nπ) = (-1)ⁿ, which is what tidies the integrals.

  3. f(-x) = -f(x)

    f is odd on a symmetric interval, and cosine is even, so a_0 and every a_n are zero.

  4. a_0 = 0

    Zero by symmetry.

  5. a_n = 0

    Zero by symmetry.

  6. b_n = - \frac{2 \left(-1\right)^{n}}{n}

    Integrate f against the sine.

  7. f(x) \sim \frac{a_0}{2} + \sum_{n=1}^{\infty} \left( a_n \cos\left(n x\right) + b_n \sin\left(n x\right) \right)

    Put the coefficients into the series.

  8. S_{5}(x) = 2 \sin{\left(x \right)} - \sin{\left(2 x \right)} + \frac{2 \sin{\left(3 x \right)}}{3} - \frac{\sin{\left(4 x \right)}}{2} + \frac{2 \sin{\left(5 x \right)}}{5}

    The partial sum with the first 5 harmonics, the approximation drawn on the graph.

Vis svaret
a_0 = 0,\quad a_n = 0,\quad b_n = - \frac{2 \left(-1\right)^{n}}{n}

Nå har du Velg et problem, eller skriv inn, eller tegne din egen. Hvert steg, et bilde, svaret skjult til du spør.

Fortsett ditt eget arbeid

En gratis konto legger til notater om hver leksjon, en oversikt over hva du har fullført, problemene du har løst på ett sted og en lærer du kan spørre om. Matematikkene er åpne for alle, signerte på eller ikke.

Registrer Logg inn

Symboler som brukes her

Trykk på et symbol for den fulle definisjonen, et bilde og hva hver bokstav i det betyr.

Hvordan: Fourier series: coefficients, convergence and Parseval

  1. Check symmetry first: odd functions have only sine terms, even functions only cosine terms.
  2. Compute a_0 = (1/π)∫f, remembering the series uses a_0/2.
  3. Compute a_n and b_n by integrating against cos nx and sin nx, usually by parts, and simplify cos nπ = (-1)^n.
  4. Decide convergence from the regularity of the periodic extension, not of f on the open interval.
  5. Use Parseval to turn coefficient sums into integrals, or integrals into sums.

Spørsmål folk stiller

Why is the constant term a_0/2 rather than a_0?

So that one formula a_n = (1/π)∫ f cos nx covers n = 0 as well: the function 1 has squared length 2π, not π, on [-π, π].

Can the Fourier series of a continuous function diverge?

At a point, yes (du Bois-Reymond built one). But by Carleson's theorem the series of any square-integrable function converges almost everywhere, and continuity plus piecewise smoothness gives uniform convergence.

What should I know before starting?

Partial derivatives, the divergence theorem and multiple integrals from multivariable calculus; linear second-order ODEs; eigenvalues from linear algebra; and enough analysis to be comfortable with uniform convergence and integrals over infinite intervals.

Why are there so few formulas for solutions?

Explicit solutions exist for linear equations with constant coefficients on simple domains. Almost everything else (curved domains, variable coefficients, nonlinear terms) has none, so the modern subject proves that a solution exists and estimates its size and smoothness without ever writing it down.

How does this course lead to the Navier-Stokes problem?

The Navier-Stokes equations are a heat equation for the velocity with a transport term and a pressure that is found from a Poisson equation. Reading the Millennium problem needs energy estimates, weak solutions, Sobolev spaces, local existence with a blow-up criterion, and the scaling argument that explains why three dimensions is hard. The last six lessons build those.

What do elliptic, parabolic and hyperbolic mean?

Elliptic equations (Laplace) describe equilibrium and smooth everything; parabolic equations (heat) describe diffusion forward in time; hyperbolic equations (waves) carry signals at finite speed and keep their sharp edges. The type decides which data make a sensible problem.

Mer i Partial Differential Equations