{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "8943THTS6W"
    }
  ],
  "body": "\n## Statement\n\nLet $n \\ge 1$, and let $f, g, h \\in L^1(\\R^n)$.\nThen the [[convolutions|2Z29JN3VES]] $(f * g) * h$ and $f * (g * h)$ are both defined almost everywhere, they lie in [[$L^1(\\R^n)$|SASP14MA1Z]], and\n$$(f * g) * h = f * (g * h)$$\nalmost everywhere.\n\n## Remarks\n\nBoth sides are formally the double integral $\\iint f(y) g(z - y) h(x - z) \\, dy \\, dz$.\n[[Tonelli's theorem|067SYD2J4B]] shows that $\\iiint \\abs{f(y) g(z - y) h(x - z)} \\, dy \\, dz \\, dx = \\norm{f}_1 \\norm{g}_1 \\norm{h}_1 \u003c \\infty$, so the double integral converges absolutely for almost every $x$.\n[[Fubini's theorem|0R0T1VWH5X]] then allows the order of integration to be swapped, and the substitution $z = y + w$ turns one side into the other.\n\nExample: on $\\R$ with $f = g = h = \\mathbf{1}_{[0, 1]}$, both sides equal the convolution of the tent function $\\mathbf{1}_{[0,1]} * \\mathbf{1}_{[0,1]}$ with $\\mathbf{1}_{[0, 1]}$, a piecewise quadratic spline supported on $[0, 3]$.\n\nIntegrability matters.\nTake $f = 1$, $g = \\mathbf{1}_{[0,1]} - \\mathbf{1}_{[1,2]}$ and $h = \\mathbf{1}_{[0,\\infty)}$ on $\\R$; only $g$ is integrable.\nThen $f * g = \\int_\\R g = 0$, so $(f * g) * h = 0$.\nBut $g * h$ is the tent function equal to $x$ on $[0, 1]$, to $2 - x$ on $[1, 2]$ and to $0$ elsewhere, so $f * (g * h) = 1$.\n\n## Explanations\n\n### L1 human\n\nWhen you convolve three functions, you may first combine the first two or the last two.\nThe result is the same.\nSo an expression like $f * g * h$ needs no brackets.\n\n### L2 human\n\nAssociativity makes $L^1(\\R^n)$ an associative algebra under convolution, in fact a commutative Banach algebra.\nIt lets one define [[convolution powers|JGR1E7Q9KQ]] $f^{*k}$ without brackets.\nIn probability it says that the distribution of $X + Y + Z$ for independent $X, Y, Z$ does not depend on how the sum is grouped.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "2Z29JN3VES"
    ],
    "kind": "statement",
    "msc": [
      "44A35",
      "42A85"
    ],
    "name": "Associativity of convolution",
    "role": "proposition",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Convolution"
      }
    ],
    "tag": "HZ5J8GGS16",
    "uses": [
      "2Z29JN3VES",
      "SASP14MA1Z",
      "0R0T1VWH5X",
      "067SYD2J4B"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/HZ5J8GGS16/",
  "links": [
    {
      "field": "about",
      "target": "2Z29JN3VES"
    },
    {
      "field": "uses",
      "target": "2Z29JN3VES"
    },
    {
      "field": "uses",
      "target": "SASP14MA1Z"
    },
    {
      "field": "uses",
      "target": "0R0T1VWH5X"
    },
    {
      "field": "uses",
      "target": "067SYD2J4B"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/HZ5J8GGS16.md",
  "msc": [
    "44A35",
    "42A85"
  ],
  "name": "Associativity of convolution",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/HZ5/HZ5J8GGS16.md",
  "status": null,
  "tag": "HZ5J8GGS16",
  "uri": "m2://HZ5J8GGS16",
  "url": "https://tamnd.github.io/math2/wiki/associativity-of-convolution/",
  "writing": {
    "tag": "HZ5J8GGS16",
    "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
      }
    ]
  }
}
