Homogeneous First-Order ODE
Problem
Solve dy/dx = (x^2 + y^2) / (x y). Substitute y = v x to reduce the equation to separable form, and show the substitution in action.
Explanation
What "homogeneous" means here
Homogeneous gets used for (at least) two completely different things in differential equations — be careful:
- Homogeneous linear ODE (right side is zero): . Relevant for #183–#185.
- Homogeneous first-order ODE (this problem): the right side is a function of the ratio only:
Equivalently, numerator and denominator are both polynomial and of the same total degree so the scaling cancels. Example of degree-2/degree-2: Every term on top and bottom is degree-2, so this is homogeneous.
Why the substitution works
Let (so depends on ). Then and, by product rule,
Substituting into :
That is separable. Integrate, then back-substitute .
The given equation
Let's verify homogeneity first. Divide top and bottom by :
So . Homogeneous. ✓
Step-by-step solution
Step 1 — Substitute .
Step 2 — Isolate .
Step 3 — Separate.
Step 4 — Integrate.
Step 5 — Back-substitute .
(For , .)
Verification
Implicit differentiation of :
Also, , so . Plug back:
Divide by :
Geometric picture
The direction field of a homogeneous ODE is radial-symmetric in a scaling sense: the slope at depends only on the angle , not on how far out from the origin you are. Along any ray through the origin the slope is constant. That's exactly why the substitution (moving along rays) strips the radial dependence away.
Quick detection checklist
Is your equation homogeneous? Two quick tests:
- Scaling test. Replace . If for all , it's homogeneous (degree-0).
- Ratio test. Write as a single fraction. If every term in the numerator has the same degree , and likewise for the denominator, and the two degrees match, it's homogeneous.
Common mistakes
- Confusing the two meanings of "homogeneous" — this one is about the right-side scaling, not about the equation being set to zero.
- Forgetting the in . Students often write only.
- Using as a free variable without explicitly substituting. Define up front and track it carefully.
- Absolute values. matters when — pick a domain and stay on one side of zero.
When the substitution stalls
If the ODE isn't quite homogeneous but has a linear-shift form like you can often translate to kill first, then apply the homogeneous substitution. Or: if the two lines , are parallel, use the substitution (a different linearization).
Try it in the visualization
Slide the initial condition along a ray through the origin and watch the slope stay the same (the hallmark of a homogeneous ODE). Overlay the substitution — the map that sends rays through the origin into vertical lines in the plane, turning the radial ODE into a separable one.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.