{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Example\n\nLet $f$ be the $2\\pi$-periodic function with $f(x) = \\frac{\\pi - x}{2}$ for $0 \u003c x \u003c 2\\pi$ and $f(0) = 0$.\nIts graph is a sawtooth: it falls linearly from $\\frac{\\pi}{2}$ to $-\\frac{\\pi}{2}$ on each period and jumps back up at the multiples of $2\\pi$.\nIt is odd, so its cosine coefficients vanish, and integration by parts gives for $n \\ge 1$\n$$b_n = \\frac{1}{\\pi} \\int_0^{2\\pi} \\frac{\\pi - x}{2} \\sin nx \\, dx = \\frac{1}{\\pi} \\cdot \\frac{1}{2} \\cdot \\frac{2\\pi}{n} = \\frac{1}{n}.$$\nSo its [[Fourier series|G12KXDHPPS]] is\n$$\\sum_{n=1}^{\\infty} \\frac{\\sin nx}{n}.$$\nThe function has bounded variation, so by the [[Dirichlet conditions|75ZQW12WY0]] the series converges to $\\frac{\\pi - x}{2}$ for $0 \u003c x \u003c 2\\pi$, and to $0$ at the [[jumps|004FH91BN5]] $x \\in 2\\pi\\Z$.\n\n## Remarks\n\nAt $x = \\pi/2$ the series gives $\\frac{\\pi}{4} = 1 - \\frac{1}{3} + \\frac{1}{5} - \\cdots$, the Leibniz formula.\nThe coefficients $\\frac{1}{n}$ are square summable but not summable, as expected for a function with a jump.\nIntegrating the series term by term from $0$ to $x$ gives $\\sum_{n \\ge 1} \\frac{1 - \\cos nx}{n^2} = \\frac{\\pi x}{2} - \\frac{x^2}{4}$ for $0 \\le x \\le 2\\pi$, and at $x = \\pi$ this yields $\\sum_{n \\text{ odd}} \\frac{2}{n^2} = \\frac{\\pi^2}{4}$.\n\n## Explanations\n\n### L1 human\n\nThe sawtooth wave ramps down steadily and then snaps back, like the sweep of an old television beam.\nIt contains every harmonic, the $n$-th one with amplitude $\\frac{1}{n}$.\nBecause of the snap back, the amplitudes shrink slowly, and many harmonics are needed for a good picture.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "illustrates": [
      "G12KXDHPPS"
    ],
    "kind": "example",
    "msc": [
      "42A16",
      "42A20"
    ],
    "name": "Sawtooth wave",
    "same_as": {
      "wikidata": "Q1742397",
      "wikipedia": "Sawtooth wave"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Sawtooth_wave"
      }
    ],
    "tag": "PW5SKE8D5R",
    "uses": [
      "75ZQW12WY0",
      "004FH91BN5"
    ]
  },
  "kind": "example",
  "link": "https://tamnd.github.io/math2/node/PW5SKE8D5R/",
  "links": [
    {
      "field": "illustrates",
      "target": "G12KXDHPPS"
    },
    {
      "field": "uses",
      "target": "75ZQW12WY0"
    },
    {
      "field": "uses",
      "target": "004FH91BN5"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/PW5SKE8D5R.md",
  "msc": [
    "42A16",
    "42A20"
  ],
  "name": "Sawtooth wave",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/PW5/PW5SKE8D5R.md",
  "status": null,
  "tag": "PW5SKE8D5R",
  "uri": "m2://PW5SKE8D5R",
  "url": "https://tamnd.github.io/math2/wiki/sawtooth-wave/",
  "writing": {
    "tag": "PW5SKE8D5R",
    "kind": "example",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
