{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe use the integrating factor $\\mu = e^{P}$.\n\n1. The function $p$ is continuous on $I$. So $P(x) = \\int_{x_0}^{x} p(s)\\, ds$ is differentiable on $I$ with $P' = p$, by [[the integral of a continuous function is an antiderivative|0NC2A3HWGT]]. Also $P(x_0) = 0$.\n2. Let $\\mu(x) = e^{P(x)}$. By the [[chain rule|0RXX2PT1MQ]] and [[the derivative of the exponential|0EX9GFJ0B3]], $\\mu' = p\\, \\mu$ on $I$.\n3. The [[exponential is positive|0P9BNBW2W3]], so $\\mu(x) \u003e 0$ for each $x \\in I$. Also $\\mu(x_0) = e^0 = 1$. So $\\mu$ is an [[integrating factor|01THH3Y3YP]] of the [[linear first-order equation|0Z3YKRQZ48]].\n4. Let $y : I \\to \\R$ be differentiable. By the [[product rule|0V9A43H7WV]] and step 2, $(\\mu y)' = \\mu y' + p \\mu y = \\mu\\, (y' + p y)$.\n5. The function $\\mu q$ is continuous on $I$. So $Q(x) = \\int_{x_0}^{x} \\mu(s)\\, q(s)\\, ds$ is differentiable on $I$ with $Q' = \\mu q$, again by the antiderivative theorem. Also $Q(x_0) = 0$.\n6. Uniqueness. Let $y$ be a solution of the [[initial value problem|075VBY4K4X]] on $I$. By step 4, $(\\mu y)' = \\mu q = Q'$.\n7. So $G = \\mu y - Q$ has $G' = 0$ on $I$, by [[linearity of differentiation|0M0TKFRX2A]]. Hence [[$G$ is constant|003QDZ4T16]] on $I$.\n8. Its value at $x_0$ is $\\mu(x_0) y(x_0) - Q(x_0) = y_0$. So $\\mu(x) y(x) = y_0 + Q(x)$ for each $x \\in I$.\n9. Divide by $\\mu(x) \u003e 0$ and use $1/\\mu(x) = e^{-P(x)}$. This gives the formula $y(x) = e^{-P(x)}\\left(y_0 + Q(x)\\right)$ of the statement. So there is at most one solution.\n10. Existence. Define $y(x) = e^{-P(x)}\\left(y_0 + Q(x)\\right)$ for $x \\in I$. It is differentiable on $I$ by steps 1 and 5, the chain rule and the product rule.\n11. Here $\\mu y = y_0 + Q$, so $(\\mu y)' = Q' = \\mu q$. By step 4, $\\mu\\, (y' + p y) = \\mu q$ on $I$.\n12. Dividing by $\\mu \u003e 0$ gives $y' + p y = q$ on $I$. Also $y(x_0) = e^{0}(y_0 + 0) = y_0$.\n13. So $y$ is a solution on $I$, and by step 9 it is the only one.\n\n## Idea\n\nMultiplying by $\\mu = e^{P}$ turns the left side $y' + p y$ into the exact derivative $(\\mu y)'/\\mu$. Then the equation says that $\\mu y$ is an antiderivative of $\\mu q$. An antiderivative is fixed by its value at one point, and this value is $y_0$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "34A30"
    ],
    "name": "Proof of the solution formula for linear first-order equations",
    "proves": "06B9W45XV0",
    "sources": [
      {
        "locator": "Solving first order linear ordinary differential equations",
        "url": "https://en.wikipedia.org/wiki/Integrating_factor"
      }
    ],
    "tag": "4D99EN036G",
    "uses": [
      "0Z3YKRQZ48",
      "01THH3Y3YP",
      "075VBY4K4X",
      "0NC2A3HWGT",
      "0RXX2PT1MQ",
      "0EX9GFJ0B3",
      "0P9BNBW2W3",
      "0V9A43H7WV",
      "0M0TKFRX2A",
      "003QDZ4T16"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/4D99EN036G/",
  "links": [
    {
      "field": "proves",
      "target": "06B9W45XV0"
    },
    {
      "field": "uses",
      "target": "0Z3YKRQZ48"
    },
    {
      "field": "uses",
      "target": "01THH3Y3YP"
    },
    {
      "field": "uses",
      "target": "075VBY4K4X"
    },
    {
      "field": "uses",
      "target": "0NC2A3HWGT"
    },
    {
      "field": "uses",
      "target": "0RXX2PT1MQ"
    },
    {
      "field": "uses",
      "target": "0EX9GFJ0B3"
    },
    {
      "field": "uses",
      "target": "0P9BNBW2W3"
    },
    {
      "field": "uses",
      "target": "0V9A43H7WV"
    },
    {
      "field": "uses",
      "target": "0M0TKFRX2A"
    },
    {
      "field": "uses",
      "target": "003QDZ4T16"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/4D99EN036G.md",
  "msc": [
    "34A30"
  ],
  "name": "Proof of the solution formula for linear first-order equations",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/4D9/4D99EN036G.md",
  "status": null,
  "tag": "4D99EN036G",
  "uri": "m2://4D99EN036G",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-solution-formula-for-linear-first-order-equations/",
  "writing": {
    "tag": "4D99EN036G",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
