{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $G = (V, E)$ be a [[graph|00C0BR7D7H]] in which every vertex has finitely many neighbours.\nLet $c \\colon V \\times V \\to [0, \\infty)$ be a symmetric weight with $c(x, y) \u003e 0$ if and only if $\\set{x, y} \\in E$, and let $c(x) = \\sum_{y} c(x, y)$.\nA function $f \\colon V \\to \\R$ is *harmonic at* a vertex $x$ with $c(x) \u003e 0$ if\n$$f(x) = \\frac{1}{c(x)} \\sum_{y \\in V} c(x, y) f(y),$$\nor equivalently if $\\sum_{y \\in V} c(x, y) \\big(f(y) - f(x)\\big) = 0$.\nFor $A \\subseteq V$, the function $f$ is *harmonic on* $A$ if it is harmonic at every vertex of $A$.\nWith unit weights on all edges, harmonicity at $x$ says that $f(x)$ is the average of $f$ over the neighbours of $x$.\n\n## Remarks\n\nExample: on the graph $\\Z$ with edges $\\set{n, n + 1}$ and unit weights, $f(n) = 3n + 2$ is harmonic on $\\Z$, since $\\tfrac12\\big(f(n - 1) + f(n + 1)\\big) = \\tfrac12(6n + 4) = f(n)$.\nNon-example: $g(n) = n^2$ is harmonic at no vertex, since $\\tfrac12\\big((n - 1)^2 + (n + 1)^2\\big) = n^2 + 1$.\nThe expression $\\sum_y c(x, y)(f(y) - f(x))$ is minus the weighted [[graph Laplacian|TN6M6DVZRP]] applied to $f$ at $x$, so the harmonic functions on $V$ form the kernel of the Laplacian.\nFor the random walk with transition probabilities $p(x, y) = c(x, y)/c(x)$, the function $f$ is harmonic at $x$ exactly when $f(x)$ is the expected value of $f$ after one step from $x$.\nThis is the discrete form of the mean value property of a [[harmonic function|0DEB0JMN0W]].\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "WRY0M7SW59",
    "kind": "definition",
    "msc": [
      "31C20",
      "05C81"
    ],
    "name": "Discrete harmonic function",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Discrete_Laplace_operator"
      }
    ],
    "tag": "J64R5MR303",
    "uses": [
      "00C0BR7D7H",
      "0DEB0JMN0W",
      "TN6M6DVZRP"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/J64R5MR303/",
  "links": [
    {
      "field": "defines",
      "target": "WRY0M7SW59"
    },
    {
      "field": "uses",
      "target": "00C0BR7D7H"
    },
    {
      "field": "uses",
      "target": "0DEB0JMN0W"
    },
    {
      "field": "uses",
      "target": "TN6M6DVZRP"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/J64R5MR303.md",
  "msc": [
    "31C20",
    "05C81"
  ],
  "name": "Discrete harmonic function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/J64/J64R5MR303.md",
  "status": null,
  "tag": "J64R5MR303",
  "uri": "m2://J64R5MR303",
  "url": "https://tamnd.github.io/math2/wiki/discrete-harmonic-function-definition/",
  "writing": {
    "tag": "J64R5MR303",
    "kind": "definition",
    "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
      }
    ]
  }
}
