{
  "aliases": [
    "landau-big-o"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "04TSHB9H8D"
    }
  ],
  "body": "\n## Definition\n\nLet $f$ and $g$ be real functions defined on an interval $[x_0, \\infty)$.\nThe notation $f(x) = O(g(x))$ as $x \\to \\infty$ means that there are real numbers $C \u003e 0$ and $x_1 \\ge x_0$ with\n$$|f(x)| \\le C |g(x)| \\quad \\text{for all } x \\ge x_1.$$\n\n## Remarks\n\nThe same definition works as $x \\to a$, with $|x - a| \u003c \\delta$ in place of $x \\ge x_1$.\nIf $g(x) \\ne 0$ for large $x$, then $f = O(g)$ means that $f/g$ is bounded for large $x$.\nFor example, $3x^2 + 5x = O(x^2)$ as $x \\to \\infty$.\nMathlib defines it for filters, as `Asymptotics.IsBigO`.\n\n## Explanations\n\n### L1 human\n\nThe statement $f = O(g)$ says that $f$ grows at most as fast as $g$, up to a constant factor.\nIt ignores constant factors and small values of $x$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "landau-big-o"
    ],
    "defines": "0TGV80E6A4",
    "kind": "definition",
    "msc": [
      "41A60"
    ],
    "name": "Big O notation",
    "sources": [
      {
        "locator": "Formal definition",
        "url": "https://en.wikipedia.org/wiki/Big_O_notation"
      }
    ],
    "tag": "0RYTGBJAGN"
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0RYTGBJAGN/",
  "links": [
    {
      "field": "defines",
      "target": "0TGV80E6A4"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0RYTGBJAGN.md",
  "msc": [
    "41A60"
  ],
  "name": "Big O notation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0RY/0RYTGBJAGN.md",
  "status": null,
  "tag": "0RYTGBJAGN",
  "uri": "m2://0RYTGBJAGN",
  "url": "https://math2.tamnd.com/wiki/big-o-notation-definition/",
  "writing": {
    "tag": "0RYTGBJAGN",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
