A separable differential equation is one that can be written in the form $\frac{dy}{dx} = f(x)g(y)$, where the right-hand side factors into a product of a function of $x$ and a function of $y$. The method of separation of variables allows us to rewrite the equation so that all $y$ terms are on one side and all $x$ terms on the other, then integrate both sides.

🎯 In this section you will learn

📌 The Method

$$ \frac{dy}{dx} = f(x)g(y) \quad \Longrightarrow \quad \frac{dy}{g(y)} = f(x) \, dx $$
Separate, then integrate both sides
💡 Step-by-Step Process
  1. Rewrite the equation so that all $y$ terms are on the left and all $x$ terms on the right.
  2. Integrate both sides: $\int \frac{dy}{g(y)} = \int f(x) dx$.
  3. Add the constant of integration $C$ (usually on one side).
  4. Solve for $y$ explicitly if possible.
  5. If given an initial condition, substitute to find $C$.
Example 1Basic Separable Equation

Solve $\displaystyle \frac{dy}{dx} = 2xy$.

Separate variables
$\frac{dy}{y} = 2x \, dx$
Integrate both sides
$\int \frac{1}{y} dy = \int 2x dx$
Evaluate integrals
$\ln|y| = x^2 + C$
Solve for $y$
$y = e^{x^2 + C} = e^C e^{x^2} = A e^{x^2}$, where $A = e^C$
Example 2Finding a Particular Solution

Solve $\displaystyle \frac{dy}{dx} = 3x^2 y$ with the initial condition $y(0) = 5$.

Separate variables
$\frac{dy}{y} = 3x^2 dx$
Integrate
$\int \frac{1}{y} dy = \int 3x^2 dx$ → $\ln|y| = x^3 + C$
Apply initial condition $y(0)=5$
$\ln|5| = 0^3 + C$ → $C = \ln 5$
Solve for $y$
$\ln|y| = x^3 + \ln 5$ → $\ln|y| - \ln 5 = x^3$ → $\ln\left|\frac{y}{5}\right| = x^3$ → $\frac{y}{5} = e^{x^3}$ → $y = 5e^{x^3}$
Example 3Equation with Both $x$ and $y$ in Denominators

Solve $\displaystyle \frac{dy}{dx} = \frac{2x}{y}$.

Separate variables
$y \, dy = 2x \, dx$
Integrate
$\int y dy = \int 2x dx$ → $\frac{y^2}{2} = x^2 + C$
Solve for $y$
$y^2 = 2x^2 + 2C$ → $y = \pm \sqrt{2x^2 + C_1}$ (where $C_1 = 2C$)
Example 4Equation with a Constant

Solve $\displaystyle \frac{dy}{dx} = 4y + 8$ with $y(0) = 1$.

Separate variables
$\frac{dy}{4y+8} = dx$ → $\frac{dy}{4(y+2)} = dx$
Integrate
$\frac{1}{4} \int \frac{1}{y+2} dy = \int dx$ → $\frac{1}{4} \ln|y+2| = x + C$
Apply $y(0)=1$
$\frac{1}{4} \ln|3| = 0 + C$ → $C = \frac{1}{4}\ln 3$
Solve for $y$
$\frac{1}{4} \ln|y+2| = x + \frac{1}{4}\ln 3$ → $\ln|y+2| = 4x + \ln 3$ → $\ln\left|\frac{y+2}{3}\right| = 4x$ → $\frac{y+2}{3} = e^{4x}$ → $y = 3e^{4x} - 2$
⚠️ Common Mistakes
🔍 Key Takeaways
← Back to Module Page