01 / 20

Homogeneous
First-Order Equations

Master the \(v = y/x\) substitution technique to solve differential equations where every term shares the same degree of homogeneity.

Differential Equations

What Is a Homogeneous Function?

A function \(f(x, y)\) is called homogeneous of degree \(n\) if replacing every variable by \(\lambda\) times itself scales the whole function by \(\lambda^n\):

$$ f(\lambda x,\; \lambda y) \;=\; \lambda^{n}\, f(x, y) $$

The Homogeneous ODE Form

A first-order ODE \(\dfrac{dy}{dx} = F(x,y)\) is homogeneous when \(F\) can be rewritten purely in terms of the ratio \(y/x\):

$$ \frac{dy}{dx} \;=\; g\!\left(\frac{y}{x}\right) $$

Why Does Homogeneity Matter?

Simplifies to Separable
The substitution \(v = y/x\) transforms a two-variable homogeneous ODE into a separable equation involving only \(v\) and \(x\).
Scale Symmetry
Homogeneous equations encode a geometric scaling symmetry: solution curves look the same at every zoom level.
Wide Reach
Many physics, chemistry, and engineering models yield homogeneous ODEs, from mixing problems to orbital mechanics.

The Core Substitution Rule

Set \(v = \dfrac{y}{x}\), so that \(y = vx\). Differentiate using the product rule:

$$ \frac{dy}{dx} \;=\; v + x\,\frac{dv}{dx} $$

Substituting into \(\dfrac{dy}{dx} = g(v)\) gives a separable ODE:

$$ x\,\frac{dv}{dx} \;=\; g(v) - v $$

Substitution Flowchart

\(\frac{dy}{dx} = g(\frac{y}{x})\)
Set \(v = y/x\), so \(y = vx\)
\(x\frac{dv}{dx} = g(v) - v\) (separable)
Integrate and back-substitute \(v = y/x\)

Homogeneous vs. Separable vs. Linear

Homogeneous Separable Linear
Standard Form \(\frac{dy}{dx} = g\!\left(\frac{y}{x}\right)\) \(\frac{dy}{dx} = h(x)\,k(y)\) \(\frac{dy}{dx} + P(x)y = Q(x)\)
Key Strategy \(v = y/x\) substitution Separate and integrate Integrating factor
After Strategy Becomes separable Direct integration Direct integration
Check Same-degree \(M, N\) Factorable as \(h \cdot k\) Linear in \(y\)

How to Apply the Method

1
Verify homogeneity. Check that \(M(x,y)\) and \(N(x,y)\) are homogeneous of the same degree, or that \(dy/dx\) depends only on \(y/x\).
2
Substitute. Let \(v = y/x\), so \(y = vx\) and \(dy/dx = v + x\,dv/dx\).
3
Separate variables. Rewrite as \(\dfrac{dv}{g(v)-v} = \dfrac{dx}{x}\).
4
Integrate both sides. Evaluate \(\displaystyle\int \frac{dv}{g(v)-v}\) and \(\displaystyle\int \frac{dx}{x}\).
5
Back-substitute. Replace \(v\) with \(y/x\) to express the solution in terms of \(x\) and \(y\).

Example 1: Solve \(\dfrac{dy}{dx} = \dfrac{x+y}{x}\)

Step 1: Rewrite the right side: \(\dfrac{x+y}{x} = 1 + \dfrac{y}{x} = 1 + v\). This is a function of \(v\) alone, so the ODE is homogeneous.

Step 2: Substitute \(v + x\,\dfrac{dv}{dx} = 1 + v\), which simplifies to \(x\,\dfrac{dv}{dx} = 1\).

Step 3: Separate: \(dv = \dfrac{dx}{x}\).

Step 4: Integrate: \(v = \ln|x| + C\).

Example 2: Solve \(\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{2xy}\)

Rewrite: Divide numerator and denominator by \(x^2\): \(\dfrac{1 + (y/x)^2}{2(y/x)} = \dfrac{1+v^2}{2v}\).

Substitute: \(v + x\,\dfrac{dv}{dx} = \dfrac{1+v^2}{2v}\). Then \(x\,\dfrac{dv}{dx} = \dfrac{1+v^2}{2v} - v = \dfrac{1+v^2 - 2v^2}{2v} = \dfrac{1-v^2}{2v}\).

Separate: \(\dfrac{2v}{1-v^2}\,dv = \dfrac{dx}{x}\).

Integrate: The left side yields \(-\ln|1-v^2|\), so \(-\ln|1-v^2| = \ln|x| + C_1\).

Example 3: Solve \((x - y)\,dx + x\,dy = 0\)

Check: \(M = x-y\) (degree 1), \(N = x\) (degree 1). Both are homogeneous of the same degree: the ODE is homogeneous.

Rewrite: \(\dfrac{dy}{dx} = -\dfrac{x-y}{x} = \dfrac{y}{x} - 1 = v - 1\).

Substitute: \(v + x\,\dfrac{dv}{dx} = v - 1\), so \(x\,\dfrac{dv}{dx} = -1\).

Integrate: \(v = -\ln|x| + C\).

Direction Field: \(dy/dx = (x+y)/x\)

x y 1 2 3 4 1 2 3 4 5 6 C = 1 C = 0

Recognizing Homogeneous Equations

1
Degree check: Write \(M\,dx + N\,dy = 0\). If \(M(\lambda x, \lambda y) = \lambda^n M\) and \(N(\lambda x, \lambda y) = \lambda^n N\) for the same \(n\), it is homogeneous.
2
Ratio rewrite: Try to express \(dy/dx\) entirely in terms of \(y/x\). If every \(x\) and \(y\) cancels into the ratio, it is homogeneous.
3
Scaling test: In the form \(\dfrac{dy}{dx} = F(x,y)\), replace \(x\) with \(\lambda x\) and \(y\) with \(\lambda y\). If \(F(\lambda x, \lambda y) = F(x,y)\) (i.e., all \(\lambda\) factors cancel), the ODE is homogeneous.

Common Mistakes

✕ Forgetting the product rule
Writing \(dy/dx = dv/dx\) instead of the correct \(dy/dx = v + x\,dv/dx\). The \(v\) term is essential.
✕ Not back-substituting
Leaving the answer in terms of \(v\) and \(x\). Always replace \(v = y/x\) at the end.
✕ Confusing "homogeneous"
A "homogeneous linear ODE" (\(y'' + y = 0\)) is different from a "homogeneous first-order ODE." Context matters.

Quick-Reference Summary

Step Action Result
1. Identify Check \(M, N\) have same degree Confirm homogeneous
2. Substitute \(v = y/x\), \(y = vx\) \(dy/dx = v + x\,dv/dx\)
3. Simplify Express RHS as \(g(v)\) \(x\,dv/dx = g(v) - v\)
4. Separate \(\dfrac{dv}{g(v)-v} = \dfrac{dx}{x}\) Two single-variable integrals
5. Integrate Evaluate both integrals Relation in \(v\) and \(x\)
6. Back-substitute Replace \(v = y/x\) General solution in \(x, y\)

Question 1 of 5

Which substitution converts a homogeneous first-order ODE into a separable equation?

Question 2 of 5

If \(v = y/x\) and \(y = vx\), what is \(\dfrac{dy}{dx}\) in terms of \(v\) and \(x\)?

Question 3 of 5

Which of these ODEs is homogeneous?

Question 4 of 5

Solve \(\dfrac{dy}{dx} = \dfrac{y - x}{x}\). What is the general solution?

Question 5 of 5

After the substitution \(v = y/x\) on \(\dfrac{dy}{dx} = \dfrac{x^2+y^2}{2xy}\), the separated equation is: