MathorynMathematical Formula Database

Differential Equations

Separable Differential Equation

If the right-hand side factors into a function of xx times a function of yy, the variables can be separated and both sides integrated. It is used to solve growth, decay, mixing and many other first-order models.

dydx=g(x) h(y) ⇒ ∫dyh(y)=∫g(x) dx\frac{dy}{dx}=g(x)\,h(y)\ \Rightarrow\ \int\frac{dy}{h(y)}=\int g(x)\,dx
LaTeX\frac{dy}{dx}=g(x)\,h(y)\ \Rightarrow\ \int\frac{dy}{h(y)}=\int g(x)\,dx

Variables

g(x), h(y)g(x),\ h(y)
factor functions
yy
unknown function of x

Example

Solve y′=xyy'=xy with y(0)=2y(0)=2 and find y(1)y(1).

  1. ∫dyy=∫x dx\int\frac{dy}{y}=\int x\,dx gives ln⁡∣y∣=x22+C\ln|y|=\frac{x^2}{2}+C.
  2. y=2ex2/2y=2e^{x^2/2}.
  3. y(1)=2e0.5y(1)=2e^{0.5}.

Answer: y(1)≈3.2974y(1)\approx3.2974.

Related formulas