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


tidy | 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. ↩