- Practice
- About 16 min
- 5 practice questions
Homogeneous equations and the substitution y = vx
Recognise a homogeneous first-order equation, reduce it with y = vx to a separable equation in v and x, and solve it, including with an initial condition.
If something looks wrong, please tell us.
Many first-order equations are not separable as they stand, but become separable after a clever substitution. The most important case at this level is the homogeneous equation, where the right side depends only on the ratio y/x. This lesson shows how to test for homogeneity, why the substitution y = vx works, and how to carry it out cleanly.
What homogeneous means
A function F(x, y) is homogeneous of degree n if F(λx, λy) = λⁿF(x, y) for every λ > 0. The first-order equation dy/dx = F(x, y) is called a homogeneous differential equation if F is homogeneous of degree zero, that is F(λx, λy) = F(x, y). Then F depends only on y/x. In practice, an equation dy/dx = P(x, y)/Q(x, y) is homogeneous when P and Q are homogeneous of the same degree; for example (x² + y²)/(xy), (x − y)/(x + y) and y/x + tan(y/x) all qualify. But (x + y + 1)/(x − y) does not, because the constant 1 has a different degree from x and y.
Why y = vx works
Put y = vx, where v is a new function of x. By the product rule, dy/dx = v + x dv/dx. Since the right side depends only on y/x = v, the equation becomes v + x dv/dx = g(v), that is x dv/dx = g(v) − v. This is separable: dv/(g(v) − v) = dx/x. Integrate, then replace v by y/x.
Homogeneous equation: put y = vx, so dy/dx = v + x dv/dx. Separate to dv/(g(v) − v) = dx/x, integrate, then put back v = y/x.
Worked example 1
Solve 2xy dy/dx = x² + y², for x > 0. Here dy/dx = (x² + y²)/(2xy) = (1 + v²)/(2v). So v + x dv/dx = (1 + v²)/(2v), giving x dv/dx = (1 − v²)/(2v). Separate: 2v dv/(1 − v²) = dx/x. Integrate: −ln|1 − v²| = ln x + c, so x(1 − v²) = C. Put v = y/x: x(1 − y²/x²) = C, that is x² − y² = Cx.
Worked example 2
Solve dy/dx = (x − y)/(x + y). With y = vx: v + x dv/dx = (1 − v)/(1 + v), so x dv/dx = (1 − 2v − v²)/(1 + v). Separate: (1 + v) dv/(1 − 2v − v²) = dx/x. The numerator is −½ times the derivative of the denominator, so −½ ln|1 − 2v − v²| = ln|x| + c, which gives x²(1 − 2v − v²) = C. Substituting v = y/x: x² − 2xy − y² = C. Check by implicit differentiation: 2x − 2y − 2xy′ − 2yy′ = 0 gives y′ = (x − y)/(x + y).
Worked example 3: with a condition
Solve x dy/dx = y + x e^(y/x) with y(1) = 0, for x > 0. Divide by x: dy/dx = y/x + e^(y/x) = v + eᵛ. So x dv/dx = eᵛ, that is e^(−v) dv = dx/x. Integrate: −e^(−v) = ln x + C. At x = 1, y = 0, so v = 0: −1 = 0 + C, giving C = −1. Hence ln x + e^(−y/x) = 1.
Traps to avoid
- Forgetting the x dv/dx term: dy/dx is v + x dv/dx, not dv/dx.
- Calling an equation homogeneous when it has a stray constant, such as (x + y + 1)/(x − y).
- Leaving the answer in v: always substitute back v = y/x at the end.
Key takeaways
If the right side of dy/dx = F(x, y) is unchanged when x and y are both multiplied by the same λ, the equation is homogeneous. The substitution y = vx turns it into a separable equation in v and x. Integrate, substitute back, and use any condition at the end. The next lesson treats the other main type, linear first-order equations.
Check your understanding
-
1. Which of these differential equations is homogeneous?
- dy/dx = (x + y + 1)/(x − y)
- dy/dx = (x² + y)/(xy)
- dy/dx = (x² + y²)/(xy)
- dy/dx = (x + y²)/x
Show answer
Answer: C. Replacing x, y by λx, λy leaves (x² + y²)/(xy) unchanged (degree 2 over degree 2). In the others the terms have different degrees, so λ does not cancel.
-
2. With the substitution y = vx, where v is a function of x, what does dy/dx become?
- dv/dx
- x dv/dx
- v dv/dx
- v + x dv/dx
Show answer
Answer: D. By the product rule, d(vx)/dx = v × 1 + x dv/dx.
-
3. What is the general solution of dy/dx = (x + y)/x, for x > 0?
- y = x ln x + Cx
- y = ln x + Cx
- y = x ln x + C
- y = Cx²
Show answer
Answer: A. v + x dv/dx = 1 + v, so dv = dx/x and v = ln x + C, giving y = x ln x + Cx. Check: y′ = ln x + 1 + C = 1 + y/x.
-
4. What is the general solution of dy/dx = y/x + tan(y/x)? (Take x > 0 and 0 < y/x < π/2.)
- tan(y/x) = Cx
- sin(y/x) = x + C
- sin(y/x) = Cx
- cos(y/x) = Cx
Show answer
Answer: C. x dv/dx = tan v, so cot v dv = dx/x, and ln sin v = ln x + c, that is sin v = Cx with v = y/x.
-
5. What is the general solution of dy/dx = (x² + y²)/(xy), for x > 0?
- y² = x²(ln x + C)
- y² = 2x²(ln x + C)
- y = x(ln x + C)
- y² = 2x ln x + C
Show answer
Answer: B. v + x dv/dx = (1 + v²)/v = 1/v + v, so v dv = dx/x and v²/2 = ln x + C. Then y² = 2x²(ln x + C).
Sign in to keep track of the lessons you finish.