Mathematical Physicshigh schoolundergraduate

Separable ODE

Also known as: Separation of variables (ODE) · First-order separable equation

If the rate factorizes into an x-only piece times a y-only piece, you can herd all the y's to one side and all the x's to the other, then integrate each side independently. One integration on each side solves it.

dydx=f(x)g(y)    dyg(y)=f(x)dx\frac{dy}{dx} = f(x)\,g(y) \;\Rightarrow\; \int\frac{dy}{g(y)} = \int f(x)\,dx
Live simulation
warming up the physics…

A slope field of little tangent arrows fills the plane for dy/dx = -k y; a solution curve y = y₀ e^{-kx} is traced by a marker that advances with time, always tangent to the local arrows. Sliders set the rate k (decay vs growth) and the starting height y₀, sliding onto different members of the family.

Equivalent forms

dyy=kdxy=y0ekx\frac{dy}{y} = -k\,dx \Rightarrow y = y_0 e^{-kx}
dyg(y)=f(x)dx+C\int \frac{dy}{g(y)} = \int f(x)\,dx + C
The equation whose solution — the exponential — shows up wherever a quantity's rate of change is proportional to the quantity itself.