Skip to content

Mathematics · Ch 12 — Differential Equations

Linear Differential Equations of the Type dy/dx + Py = Q

6

Linear Differential Equations of the Type dy/dx + Py = Q

A first-order differential equation is called linear in yy if it can be written in the standard form

dydx+Py=Q,\frac{dy}{dx} + Py = Q,

where PP and QQ are given functions of xx only (or constants) -- crucially, yy and dydx\dfrac{dy}{dx} each appear to the first power only, with no products such as y⋅dydxy\cdot\dfrac{dy}{dx} or y2y^2.

Why an integrating factor is needed. The left-hand side dydx+Py\dfrac{dy}{dx} + Py is not, by itself, the derivative of any simple product -- so the equation cannot be integrated directly. The idea is to multiply the whole equation by a cleverly chosen function μ(x)\mu(x), called an integrating factor (I.F.), chosen so that μ ⁣(dydx+Py)\mu\!\left(\dfrac{dy}{dx} + Py\right) becomes exactly ddx(yμ)\dfrac{d}{dx}(y\mu) -- a single exact derivative that integrates immediately.

Deriving the integrating factor. By the product rule, ddx(yμ)=μdydx+ydμdx\dfrac{d}{dx}(y\mu) = \mu\dfrac{dy}{dx} + y\dfrac{d\mu}{dx}. Comparing this with μdydx+μPy\mu\dfrac{dy}{dx} + \mu P y (the left side after multiplying by μ\mu), the two match term-by-term exactly when

dμdx=μP⟺1μ dμ=P dx.\frac{d\mu}{dx} = \mu P \quad\Longleftrightarrow\quad \frac{1}{\mu}\,d\mu = P\,dx.

This is itself separable (Section 4): integrating both sides, ln⁡∣μ∣=∫P dx\ln|\mu| = \displaystyle\int P\,dx (taking the constant of integration as 00, since only one valid μ\mu is needed), so

μ=e∫P dx.\mu = e^{\int P\,dx}.

Integrating factor: I.F.=e∫P dx\text{I.F.} = e^{\int P\,dx}. Multiplying dydx+Py=Q\dfrac{dy}{dx}+Py=Q through by this I.F. always converts the left side into ddx(y⋅I.F.)\dfrac{d}{dx}(y\cdot\text{I.F.}) exactly.

General solution. With μ=e∫P dx\mu = e^{\int P\,dx}, the equation μdydx+μPy=μQ\mu\dfrac{dy}{dx} + \mu P y = \mu Q is, by construction, ddx(yμ)=μQ\dfrac{d}{dx}(y\mu) = \mu Q. Integrating both sides with respect to xx:

y⋅I.F.=∫(Q⋅I.F.) dx+C,y\cdot\text{I.F.} = \int (Q\cdot\text{I.F.})\,dx + C, …