First-Order Separable ODEs

25 min
0/4 practice checks

A first-order ODE is separable if it can be written so that each side involves only one variable:

dydx=g(x)h(y)dyh(y)=g(x)dx.\frac{dy}{dx} = g(x)\,h(y) \quad\Longrightarrow\quad \frac{dy}{h(y)} = g(x)\,dx.

Integrate both sides and solve for yy (a constant of integration always appears).

Worked example. Solve dydx=xy.\dfrac{dy}{dx} = xy.

dyy=xdx    lny=x22+C    y=Aex2/2.\int \frac{dy}{y} = \int x\, dx \;\Rightarrow\; \ln|y| = \tfrac{x^2}{2} + C \;\Rightarrow\; y = A\,e^{x^2/2}.

The important special case dydx=ky\dfrac{dy}{dx} = ky gives exponential growth or decay, y=Cekx.y = C e^{kx}.

Which of these first-order ODEs is separable?

Solve dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y} with y(0)=3y(0) = 3, and find yy when x=4x = 4 (take the positive root).

What is the general solution of dydx=ky\dfrac{dy}{dx} = ky (with kk constant)?

Solve dydx=y2\dfrac{dy}{dx} = y^2 with y(0)=1y(0) = 1, and find yy when x=0.5x = 0.5.