First order ODEs

First-order linear differential equation

A first-order, linear ODE is given the standard form1

๐‘‘๐‘ฆ๐‘‘๐‘ฅ+๐‘(๐‘ฅ)๐‘ฆ=๐‘”(๐‘ฅ)

In the case of ๐‘”(๐‘ฅ) =0, the ODE is separable. Sometimes this is written as

๐‘ƒ(๐‘ฅ)๐‘‘๐‘ฆ๐‘‘๐‘ฅ+๐‘„(๐‘ฅ)๐‘ฆ=๐บ(๐‘ฅ)

which can be rearranged trivially to yield the standard form.

Solutions

Integrable LHS

In some cases a first-order linear ODE may be immediately solvable by integration. This is the case when the LHS is or can be rearranged to be the case of a product rule, that is of the form

๐‘ƒ(๐‘ฅ)๐‘‘๐‘ฆ๐‘‘๐‘ฅ+๐‘ƒโ€ฒ(๐‘ฅ)๐‘ฆ=๐บ(๐‘ฅ)

which can easily be rewritten as

๐‘‘๐‘‘๐‘ฅ(๐‘ƒ(๐‘ฅ)๐‘ฆ)=๐บ(๐‘ฅ)โŸน๐‘ƒ(๐‘ฅ)๐‘ฆ=โˆซ๐บ(๐‘ฅ)๐‘‘๐‘ฅ

so the general solution is

๐‘ฆ=โˆซ๐บ(๐‘ฅ)๐‘‘๐‘ฅ๐‘ƒ(๐‘ฅ)

including the integration constant. In cases where this is not possible, an Integrating factor ๐œ‡(๐‘ฅ) may be used to make it so.

Integrating factor

Explanation

In cases where the LHS is not immediately integrable, it may be made so by multiplying both sides by a chosen integrating factor, conventionally called either ๐œ‡(๐‘ฅ) or ๐ผ(๐‘ฅ)2.

๐œ‡(๐‘ฅ)๐‘‘๐‘ฆ๐‘‘๐‘ฅ+๐œ‡(๐‘ฅ)๐‘(๐‘ฅ)๐‘ฆ=๐œ‡(๐‘ฅ)๐‘”(๐‘ฅ)

We select ๐œ‡(๐‘ฅ) such that the LHS is the result of a product rule, i.e.

๐‘‘๐‘‘๐‘ฅ(๐œ‡(๐‘ฅ)๐‘ฆ)=๐œ‡(๐‘ฅ)๐‘‘๐‘ฆ๐‘‘๐‘ฅ+๐œ‡(๐‘ฅ)๐‘(๐‘ฅ)๐‘ฆโŸน๐œ‡โ€ฒ(๐‘ฅ)=๐‘(๐‘ฅ)๐œ‡(๐‘ฅ)

A family of solutions to this very basic differential equation for ๐œ‡ is given by

๐œ‡(๐‘ฅ)=expโก(โˆซ๐‘(๐‘ฅ)๐‘‘๐‘ฅ)

where the integration constant may be conveniently selected as 0. Thus, the ODE may be solved generally

๐‘‘๐‘‘๐‘ฅ(๐œ‡(๐‘ฅ)๐‘ฆ(๐‘ฅ))=๐œ‡(๐‘ฅ)๐‘”(๐‘ฅ)โŸน๐‘ฆ(๐‘ฅ)=1๐œ‡(๐‘ฅ)โˆซ๐œ‡(๐‘ฅ)๐‘”(๐‘ฅ)๐‘‘๐‘ฅ

Algorithm

Algorithmically, the integrating factor method is summarised as follows

  1. Write the differential equation in standard form
  2. Find the integrating factor (setting the constant of integration conveniently to 0)
๐œ‡(๐‘ฅ)=expโก(โˆซ๐‘(๐‘ฅ)๐‘‘๐‘ฅ)
  1. The general solution is
๐‘ฆ(๐‘ฅ)=1๐œ‡(๐‘ฅ)โˆซ๐œ‡(๐‘ฅ)๐‘”(๐‘ฅ)๐‘‘๐‘ฅ+๐ถ๐œ‡(๐‘ฅ)

Practice problems


#state/tidy | #lang/en | #SemBr | #review

Footnotes

  1. 2017. Elementary differential equations and boundary value problems, pp. 24ff. (ยง2.1) โ†ฉ

  2. I will be using the former since it is prettier. โ†ฉ