{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Example\n\nLet $\\delta, \\alpha, \\beta, \\gamma, \\omega$ be real constants.\nThe Duffing equation is the second-order [[ordinary differential equation|0NT64JV96A]]\n$$x'' + \\delta x' + \\alpha x + \\beta x^3 = \\gamma \\cos(\\omega t).$$\nHere $\\delta$ is a damping coefficient, $\\alpha x + \\beta x^3$ is a restoring force with a cubic term, and $\\gamma \\cos(\\omega t)$ is a periodic forcing.\n\nTake $\\delta = \\gamma = 0$, $\\alpha = -1$ and $\\beta = 1$, so $x'' - x + x^3 = 0$.\nThis is a [[Hamiltonian system|0EDKGA2FAK]] with $H(x, y) = \\frac{1}{2} y^2 - \\frac{1}{2} x^2 + \\frac{1}{4} x^4$ and $y = x'$.\nIts equilibria are $(0, 0)$, a [[hyperbolic|0C5PREPZWG]] saddle, and $(\\pm 1, 0)$, two centres.\nThe function $x(t) = \\sqrt{2}\\, \\operatorname{sech} t$ is a solution.\nCheck: with $u = \\operatorname{sech} t$ one has $u'' = u - 2u^3$, so $x'' - x + x^3 = \\sqrt{2}(u - 2u^3) - \\sqrt{2} u + 2\\sqrt{2} u^3 = 0$.\nSince $x(t) \\to 0$ and $x'(t) \\to 0$ as $t \\to \\pm\\infty$, this solution is a [[homoclinic orbit|6DBSQKZK4W]] of the saddle.\nBy the symmetry $x \\mapsto -x$, there is a second one in the half-plane $x \u003c 0$.\n\n## Remarks\n\nSolutions of the unforced, undamped equation stay on level sets of $H$.\nSo each solution is an equilibrium, a periodic solution, or a homoclinic solution.\nWith small damping and small forcing, the two homoclinic orbits can break into a tangle of stable and unstable manifolds.\nThe [[Melnikov method|A755BDRP1A]] decides when this happens in terms of $\\gamma$, $\\delta$ and $\\omega$.\nIn that regime, numerical solutions of the Duffing equation look chaotic.\nFor $\\alpha \u003e 0$ and small $\\beta$, the equation is a perturbed harmonic oscillator whose frequency depends on the amplitude.\n\n## Explanations\n\n### L1 human\n\nThe Duffing equation is a spring whose force is not exactly proportional to the stretch, pushed back and forth periodically.\nWith $\\alpha \u003c 0 \u003c \\beta$ the spring has two stable rest positions, like a ball in a double well.\nA forced ball can jump between the two wells in an irregular way, which is a classical example of chaos.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "instance_of": [
      "0NT64JV96A"
    ],
    "kind": "example",
    "msc": [
      "34C15",
      "70K40",
      "34C28"
    ],
    "name": "Duffing equation",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Duffing_equation"
      }
    ],
    "tag": "SGQQGP261M",
    "uses": [
      "0EDKGA2FAK",
      "0C5PREPZWG",
      "6DBSQKZK4W",
      "A755BDRP1A"
    ]
  },
  "kind": "example",
  "link": "https://math2.tamnd.com/node/SGQQGP261M/",
  "links": [
    {
      "field": "instance_of",
      "target": "0NT64JV96A"
    },
    {
      "field": "uses",
      "target": "0EDKGA2FAK"
    },
    {
      "field": "uses",
      "target": "0C5PREPZWG"
    },
    {
      "field": "uses",
      "target": "6DBSQKZK4W"
    },
    {
      "field": "uses",
      "target": "A755BDRP1A"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/SGQQGP261M.md",
  "msc": [
    "34C15",
    "70K40",
    "34C28"
  ],
  "name": "Duffing equation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/SGQ/SGQQGP261M.md",
  "status": null,
  "tag": "SGQQGP261M",
  "uri": "m2://SGQQGP261M",
  "url": "https://math2.tamnd.com/wiki/duffing-equation/",
  "writing": {
    "tag": "SGQQGP261M",
    "kind": "example",
    "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
      }
    ]
  }
}
