Steps for Solving First-Order Differential Equations
A quick checklist to identify the type of a first-order ODE (linear, Bernoulli, separable, homogeneous, exact) before solving.
Continue where you stopped
The core idea
On this page
This is a quick method-selection checklist. In physics, you often derive a first-order ODE from:
- Newton’s 2nd law written as a first-order equation for v(t)
- Kirchhoff’s laws written as an equation for q(t) or i(t)
- “Relaxation to equilibrium” models with a time constant
and the main speed boost is recognizing the type fast so you don’t try the wrong tool.
- Drag / terminal speed: the models in UY1: Resistive Forces lead to first-order ODEs for v(t).
- Charging/discharging: UY1: RC Circuits is basically a first-order linear ODE for q(t).
- Math hub: Mathematics for Undergraduate Physics
Steps
-
Rewrite into a standard form
dy/dx = f(x,y) -
Test for separable (usually the fastest win)
Can you rearrange to a pure-y side times dy and a pure-x side times dx?
dy/dx = f(x) g(y) ⇒ 1/g(y) dy = f(x) dxIf yes: integrate both sides, then apply initial conditions.
-
Test for linear (the most common physics pattern)
dy/dx + P(x) y = Q(x)If yes: use an integrating factor. See First-order linear ODEs.
-
Test for Bernoulli (a “linear after substitution” type)
dy/dx + P(x) y = Q(x) yⁿ (n ≠ 0,1)If yes: substitute u = y¹⁻ⁿ to reduce to linear. See Bernoulli ODEs.
-
Test for homogeneous (first-order) (depends only on y/x or x/y)
dy/dx = F (y/x)If yes: use the substitution y = vx (or x = vy) to make it separable.
-
(Optional) Test for exactness (often introduced later)
Exact equations are often written as:
M(x,y) dx + N(x,y) dy = 0
- If separating variables leaves mixed x and y on both sides, it is not separable (at least not directly).
- “Looks linear” is not enough: you must be able to rewrite it as y' + P(x)y = Q(x) (no powers like y² on the left).
- If you do a substitution (e.g. y = vx), always rewrite y' carefully: y' = v + xv'.
Always apply the initial condition(s) to fix constants, then check:
- Units/dimensions
- Limiting behavior (e.g. t → 0 and t → ∞)
- Whether the answer stays physical in the domain you care about
Quick classification examples (what you’d do first)
-
RC charging form
dq/dt + (1/RC)q = E/RThis is linear in q(t). First move: identify P(t) = 1/RC, compute μ(t) = e^(∫ P dt) = e^(t/RC).
-
Quadratic drag (downward motion, v ≥ 0)
dv/dt = g-(b/m)v²This is separable. First move: dv/(g-(b/m)v²) = dt.
-
Bernoulli type
y' + y = x y²This is Bernoulli (n = 2). First move: divide by y² then substitute u = 1/y.
-
Homogeneous first-order
dy/dx = (y/x)² + y/xThis depends only on y/x. First move: set y = vx, so y' = v + xv'.
Practice: choose the method (with hints + answers)
1) Classify and pick a first move: dT/dt = -k (T - T_env)
Hint: Can you rewrite it as T' + P T = Q?
Answer: Linear (also separable). Standard relaxation form:
2) Classify: y' + (2/x) y = x^2
Hint: Does it match y' + P(x)y = Q(x)?
Answer: Linear. Integrating factor:
3) Classify (physics): dv/dt = g - (b/m) v|v|
Hint: In many UY1 “falling” problems you can assume v ≥ 0 after release.
Answer: Separable. If v ≥ 0 then v|v| = v² and
If the motion can reverse, keep v|v| and track the sign carefully.
4) Classify: y' + y = x y^3
Hint: Compare with y' + P(x)y = Q(x)yⁿ.
Answer: Bernoulli (n = 3). Divide by y³ and use u = y¹⁻³ = y⁻².
5) Classify: y' = sin(y/x)
Hint: The right-hand side depends only on y/x.
Answer: Homogeneous first-order. Use y = vx, so y' = v + xv', giving