{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $f \\colon \\R \\to \\R$ be a function and let $h \u003e 0$.\nThe *central difference* of $f$ with step $h$ is the function $\\delta_h f \\colon \\R \\to \\R$ given by\n$$\\delta_h f(x) = f\\left(x + \\tfrac{h}{2}\\right) - f\\left(x - \\tfrac{h}{2}\\right).$$\n\n## Remarks\n\nIt is the [[finite difference|7JSQZ126BP]] with offsets $-\\tfrac{h}{2}$ and $\\tfrac{h}{2}$.\nExample: for $f(x) = x^3$, $\\delta_h f(x) = 3hx^2 + \\tfrac{h^3}{4}$, by expanding both cubes.\nNon-example: $f(x + h) - f(x)$ is not centred at $x$, so it is the forward difference and not the central difference.\nFor sequences one often uses the version $f(x + h) - f(x - h)$ with step $2h$, which avoids half-integer points.\nIf $f$ is three times continuously differentiable, Taylor's theorem gives $\\frac{f(x + h) - f(x - h)}{2h} = f'(x) + O(h^2)$ as $h \\to 0$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "BVGYDP6YKF",
    "kind": "definition",
    "msc": [
      "39A70",
      "65D25"
    ],
    "name": "Central difference",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Finite_difference"
      }
    ],
    "tag": "8HSQHDNFEF",
    "uses": [
      "CYW8E2HTWN",
      "0XHDTE5YMZ"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/8HSQHDNFEF/",
  "links": [
    {
      "field": "defines",
      "target": "BVGYDP6YKF"
    },
    {
      "field": "uses",
      "target": "CYW8E2HTWN"
    },
    {
      "field": "uses",
      "target": "0XHDTE5YMZ"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/8HSQHDNFEF.md",
  "msc": [
    "39A70",
    "65D25"
  ],
  "name": "Central difference",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/8HS/8HSQHDNFEF.md",
  "status": null,
  "tag": "8HSQHDNFEF",
  "uri": "m2://8HSQHDNFEF",
  "url": "https://tamnd.github.io/math2/wiki/central-difference-definition/",
  "writing": {
    "tag": "8HSQHDNFEF",
    "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
      }
    ]
  }
}
