Ask these questions in order
Work down the list. Stop at the first question that says yes. That's your method.
∫ 1/g(y) dy = ∫ f(x) dx
d/dx[μy] = μ·Q(x)
→ integrate both sides
Check: ∂M/∂y = ∂N/∂x
F_y = N → solve for g'(y)
Solution: F(x,y) = C
(n ≠ 0, n ≠ 1)
u' = (1−n)y^(−n)y'
→ linear ODE in u
or M, N same degree
y' = v + xv'
→ separable in v, x
2. Plug in (x₀, y₀)
3. Solve for C
Worked examples
Five problems, one per method. Every algebraic step is shown — nothing skipped. Use the arrows to step through each solution.
Why each method works
First principles. Every method is an answer to one question: what hidden structure is this ODE carrying, and how do we expose it so we can integrate?
The core idea
When dy/dx = f(x)·g(y), the x-influence and y-influence on the slope are completely independent — they don't talk to each other. So the equation splits cleanly. Each side, once separated, is a single-variable integral.
Why cross-multiplying is valid
When we write (1/g(y))dy = f(x)dx, we're treating dy and dx as "differentials" — infinitesimally small pieces. The formal justification is the chain rule. If we write y as a function of x, then:
dy/dx = f(x)g(y) → (1/g(y))·(dy/dx) = f(x)
Integrate both sides with respect to x. On the left, the chain rule turns ∫(1/g(y))(dy/dx)dx into ∫(1/g(y))dy by substitution. So the "cross-multiply" is really a u-substitution in disguise.
Where μ comes from
Start with y' + P(x)y = Q(x). We want to multiply by some function μ(x) so the left side becomes a perfect derivative. If d/dx[μy] = μy' + μ'y, we need μ' = μP(x). This gives:
dμ/μ = P(x) dx → ln|μ| = ∫P dx → μ = e^(∫P dx)
This is a separable ODE for μ itself — we solved an ODE to find the tool that solves another ODE.
Why the product rule is key
Product rule: d/dx[μy] = μy' + μ'y. Our equation after multiplying by μ reads:
μy' + μPy = μQ
Left side matches d/dx[μy] when μ' = μP — exactly the condition μ satisfies. So the left side always collapses. The right side ∫μQ dx is just a standard integral.
What "exact" really means
Consider a function F(x,y). Its total differential is dF = F_x dx + F_y dy. If the ODE is M dx + N dy = 0, and we find that M = F_x, N = F_y for some F — then the ODE is just dF = 0, meaning F = constant along every solution.
Why the mixed-partial test works
If F exists with F_x = M and F_y = N, then by Clairaut's theorem (equality of mixed partials):
∂M/∂y = ∂²F/∂y∂x = ∂²F/∂x∂y = ∂N/∂x
So ∂M/∂y = ∂N/∂x is a necessary condition. For simply connected domains, it's also sufficient — the test both ways. If it fails, the equation is not exact as-is (though you can sometimes find an integrating factor to make it exact).
Why the substitution linearizes the equation
Start with y' + P(x)y = Q(x)yⁿ. Divide by yⁿ:
y'·y⁻ⁿ + P(x)·y^(1−n) = Q(x)
Set u = y^(1−n). By the chain rule:
du/dx = (1−n)·y^(−n)·y', so y'·y⁻ⁿ = u'/(1−n).
Substituting gives a linear equation in u — the nonlinearity is gone. The exponent (1−n) is chosen precisely so the chain rule produces the term y'·y⁻ⁿ that we created by dividing.
The scale symmetry argument
If dy/dx = F(y/x), then scaling x → λx and y → λy leaves F(y/x) = F(λy/λx) unchanged. The equation doesn't care about scale — only direction. This is a symmetry.
Substituting v = y/x (the "direction") removes the scale variable. After substitution, x factors out and the equation becomes separable in v and x — always. This is guaranteed by the homogeneity.
Why y' = v + xv'
This is just the product rule. If y = vx, then:
dy/dx = d(vx)/dx = v·(dx/dx) + x·(dv/dx) = v + x·dv/dx
This replacement turns the original equation into one involving v, v', and x — and the homogeneity guarantees the x's cancel or factor, leaving a separable equation in v and x.
Quick reference
The full strategy on one screen. Interrogate every ODE in this order.
| Method | Signature form | Key move | Result |
|---|---|---|---|
| Separable | dy/dx = f(x)g(y) | Divide by g(y), multiply by dx. Integrate both sides. | ∫1/g dy = ∫f dx + C |
| Linear | y' + P(x)y = Q(x) | Multiply by μ = e^∫P dx. Left becomes d/dx[μy]. | y = (1/μ)∫μQ dx + C/μ |
| Exact | M dx + N dy = 0 ∂M/∂y = ∂N/∂x |
Find F with F_x=M, F_y=N via integration + g(y) recovery. | F(x,y) = C (implicit) |
| Bernoulli | y' + Py = Qyⁿ n ≠ 0, 1 |
Divide by yⁿ. Sub u = y^(1−n). Becomes linear in u. | Solve linear u ODE, then y = u^(1/(1−n)) |
| Homogeneous | dy/dx = F(y/x) | Sub y = vx, y' = v + xv'. Becomes separable in v, x. | Solve, then replace v = y/x |
| Autonomous | dy/dx = f(y) | Separable. Equilibria at f(y) = 0 reveal long-run behavior. | ∫1/f(y) dy = x + C |
| IVP | y(x₀) = y₀ | Find general solution first. Substitute (x₀, y₀) to find C. | Particular solution curve |