{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $f \\colon \\R \\to \\C$ be a [[continuous function|0X3WGX95FE]].\nThen $f$ is [[Bohr almost periodic|ED69H4C3PK]] if and only if the following holds.\nFor every $\\varepsilon \u003e 0$ there are $N \\ge 1$, reals $\\lambda_1, \\dots, \\lambda_N$ and complex numbers $c_1, \\dots, c_N$ such that\n$$\\sup_{x \\in \\R} \\Big| f(x) - \\sum_{k=1}^{N} c_k e^{i \\lambda_k x} \\Big| \u003c \\varepsilon.$$\n\n## Remarks\n\nThe sums $\\sum c_k e^{i\\lambda_k x}$ are called generalized trigonometric polynomials.\nOne direction is the easier one.\nEach $e^{i\\lambda x}$ is periodic, and a finite sum of Bohr almost periodic functions is again almost periodic, for example by Bochner's criterion with sequences of translates.\nA uniform limit of almost periodic functions is almost periodic, by an $\\varepsilon/3$ argument on almost periods.\n\nThe other direction is the substance of the theorem.\nEvery Bohr almost periodic function has a mean value $M(g) = \\lim_{T \\to \\infty} \\frac{1}{2T} \\int_{-T}^{T} g(x) \\, dx$.\nSo $f$ has Fourier coefficients $a(\\lambda) = M(f(x) e^{-i\\lambda x})$, and $a(\\lambda) \\ne 0$ for at most countably many $\\lambda$.\nBohr proved the Parseval identity $M(\\abs{f}^2) = \\sum_\\lambda \\abs{a(\\lambda)}^2$, and approximating sums can then be built from these frequencies, for example by the Bochner–Fejér summation method.\nA modern proof uses the [[Bohr compactification|G852FHZ3W1]] of $\\R$ and the [[Stone–Weierstrass theorem|1P8D3MK79H]] or the Peter–Weyl theorem on that compact group.\n\nExample: $\\cos x + \\cos(\\sqrt{2} x) = \\frac12 \\big( e^{ix} + e^{-ix} + e^{i\\sqrt2 x} + e^{-i\\sqrt2 x} \\big)$ is itself a generalized trigonometric polynomial, hence almost periodic.\nThe theorem is a uniform analogue for all real frequencies of the density of [[trigonometric polynomials|J3NJQ5FZJ5]] among continuous periodic functions.\n\n## Explanations\n\n### L1 human\n\nA Bohr almost periodic function is one that nearly repeats itself.\nThe theorem says these are exactly the functions that can be approximated, uniformly on the whole line, by finite sums of waves $e^{i\\lambda x}$ with any real frequencies.\nSo almost periodic functions are built from pure waves, just as periodic functions are built from the harmonics of one basic frequency.\n\n### L2 human\n\nFor a continuous periodic function, the Weierstrass approximation theorem for trigonometric polynomials gives uniform approximation by harmonics of the period.\nBohr's theorem removes the restriction that all frequencies are multiples of one frequency.\nThe approximating frequencies can be taken among the $\\lambda$ with $a(\\lambda) \\ne 0$, which makes the Fourier series of $f$ a faithful description of $f$.\nEquivalently, the space of Bohr almost periodic functions is the closure in the uniform norm of the span of the characters $x \\mapsto e^{i\\lambda x}$ of $\\R$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "ED69H4C3PK"
    ],
    "kind": "statement",
    "msc": [
      "42A75",
      "42A10",
      "43A60"
    ],
    "name": "Bohr's approximation theorem",
    "role": "theorem",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Almost_periodic_function"
      }
    ],
    "tag": "GWCY1C1KQV",
    "uses": [
      "ED69H4C3PK",
      "0X3WGX95FE"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/GWCY1C1KQV/",
  "links": [
    {
      "field": "about",
      "target": "ED69H4C3PK"
    },
    {
      "field": "uses",
      "target": "ED69H4C3PK"
    },
    {
      "field": "uses",
      "target": "0X3WGX95FE"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/GWCY1C1KQV.md",
  "msc": [
    "42A75",
    "42A10",
    "43A60"
  ],
  "name": "Bohr's approximation theorem",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/GWC/GWCY1C1KQV.md",
  "status": null,
  "tag": "GWCY1C1KQV",
  "uri": "m2://GWCY1C1KQV",
  "url": "https://tamnd.github.io/math2/wiki/bohrs-approximation-theorem/",
  "writing": {
    "tag": "GWCY1C1KQV",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
