First-order ODEs: separable, linear and exact

Database › Mathematics › Applied mathematics › Differential equations

DE-0005MethodUndergraduate

First-order ODEs are solved by separating variables when y′ = f(x)g(y), and by the integrating factor e^{∫P dx} when linear, y′ + P(x)y = Q(x); exact equations integrate directly.

$$\int\frac{dy}{g(y)}=\int f(x)\,dx;\qquad y'+P y=Q\Rightarrow y=e^{-\int P}\Big(\int Q\,e^{\int P}dx+C\Big)$$

Explanation

Multiplying the linear equation by $\mu=e^{\int P\,dx}$ turns the left side into $(\mu y)'$. Homogeneous equations $y'=F(y/x)$ become separable with $y=vx$; equations $M\,dx+N\,dy=0$ with $M_y=N_x$ are exact.

Physical examples: radioactive decay and RC/RL circuits (exponential relaxation with time constant $\tau$), Newtonian cooling, and terminal velocity with linear drag.

Example 1

Solve $y'=xy^2$, $y(0)=1$, and $y'+2y=e^{-x}$.

Solution

$-1/y=x^2/2-1$, so $y=\frac{2}{2-x^2}$ (blows up at $x=\sqrt2$). With $\mu=e^{2x}$: $(ye^{2x})'=e^x$, $y=e^{-x}+Ce^{-2x}$.

Example 2

A $50\,\mu$F capacitor charges through $2\,$kΩ from a 12 V source. Find the voltage after 0.2 s.

Solution

$RC\dot V+V=V_0$ gives $V=V_0(1-e^{-t/\tau})$ with $\tau=0.1$ s: $V=12(1-e^{-2})\approx10.4$ V.

Related entries