- Foundation
- About 20 min
- 5 practice questions
Homogeneous differential equations
Recognise homogeneous functions and homogeneous differential equations, and solve them with the substitution y = vx (or x = vy), which turns them into variable separable equations.
If something looks wrong, please tell us.
Some equations, such as dy/dx = (x + y)/x, cannot be separated as they stand. But their right side depends only on the ratio y/x. A clever substitution then makes the variables separate. These are the homogeneous differential equations.
Homogeneous functions
A function F(x, y) is called a homogeneous function of degree n if F(λx, λy) = λⁿ F(x, y) for every non-zero constant λ. For example:
- F(x, y) = x² + 3xy: F(λx, λy) = λ²x² + 3λ²xy = λ² F(x, y), homogeneous of degree 2.
- F(x, y) = 4x − 5y: F(λx, λy) = λ F(x, y), degree 1.
- F(x, y) = (x − y)/(x + y): F(λx, λy) = λ(x − y)/[λ(x + y)] = λ⁰ F(x, y), degree 0.
- F(x, y) = cos(y/x): unchanged when x and y are scaled, degree 0.
- F(x, y) = x + sin y: no n works, so it is not homogeneous.
A homogeneous function of degree n can be written as F(x, y) = xⁿ g(y/x) (or yⁿ h(x/y)). For instance, x² + 3xy = x²[1 + 3(y/x)]. In particular, a function of degree 0 depends only on y/x.
Homogeneous differential equations and the substitution y = vx
A differential equation dy/dx = F(x, y) is called homogeneous if F(x, y) is a homogeneous function of degree zero. Then dy/dx = g(y/x). Put y = vx, where v is a new function of x. By the product rule, dy/dx = v + x (dv/dx). The equation becomes v + x (dv/dx) = g(v), i.e. x (dv/dx) = g(v) − v. This separates: dv/[g(v) − v] = dx/x. Integrate, then replace v by y/x.
If the equation is given in the form dx/dy = F(x, y) with F homogeneous of degree zero, write F = h(x/y) and use x = vy instead, so that dx/dy = v + y (dv/dy).
Solving a homogeneous equation
- Write as dy/dx = F(x, y)
- Check F(λx, λy) = F(x, y) (degree zero)
- Put y = vx and dy/dx = v + x dv/dx
- Separate v and x; integrate
- Replace v by y/x; apply any condition
For dy/dx = g(y/x): put y = vx, dy/dx = v + x dv/dx. For dx/dy = h(x/y): put x = vy, dx/dy = v + y dv/dy.
Worked examples
Worked example 1
Solve dy/dx = (x + y)/x. Here F(λx, λy) = (λx + λy)/(λx) = F(x, y), so the equation is homogeneous, with dy/dx = 1 + y/x. Put y = vx: v + x (dv/dx) = 1 + v, so x (dv/dx) = 1, i.e. dv = dx/x. Integrating, v = log |x| + C. Replacing v by y/x: y = x log |x| + Cx.
Worked example 2
Solve 2xy (dy/dx) = y² − x², i.e. dy/dx = (y² − x²)/(2xy). Numerator and denominator both have degree 2, so F has degree 0. Put y = vx: v + x (dv/dx) = (v²x² − x²)/(2vx²) = (v² − 1)/(2v). Then x (dv/dx) = (v² − 1)/(2v) − v = (v² − 1 − 2v²)/(2v) = −(1 + v²)/(2v). Separate: 2v dv/(1 + v²) = −dx/x. Integrate: log(1 + v²) = −log |x| + log |C|, so (1 + v²) x = C. With v = y/x: (1 + y²/x²) x = C, i.e. x² + y² = Cx. The solution curves are circles passing through the origin with centres on the x-axis.
Worked example 3: a particular solution
Solve dy/dx = y/x + tan(y/x), given y = π/2 when x = 1. The right side depends only on y/x, so the equation is homogeneous. Put y = vx: v + x (dv/dx) = v + tan v, so x (dv/dx) = tan v, i.e. cot v dv = dx/x. Integrating, log |sin v| = log |x| + log |C|, so sin v = Cx, that is sin(y/x) = Cx. Using x = 1, y = π/2: sin(π/2) = 1 = C. The particular solution is sin(y/x) = x.
Worked example 4: using x = vy
Solve dx/dy = (x + y)/y, i.e. dx/dy = x/y + 1. Put x = vy: v + y (dv/dy) = v + 1, so dv = dy/y and v = log |y| + C. Hence x = y log |y| + Cy. This is worked example 1 with the roles of x and y exchanged.
Key takeaways
- F is homogeneous of degree n if F(λx, λy) = λⁿ F(x, y).
- dy/dx = F(x, y) is homogeneous when F has degree zero, i.e. F depends only on y/x.
- Substitute y = vx and dy/dx = v + x dv/dx; the equation becomes variable separable.
- Use x = vy when the equation is given as dx/dy = h(x/y).
- Always substitute back y/x for v at the end.
Check your understanding
-
1. Which function is homogeneous of degree 2?
- x² + y
- x² + xy + y²
- x³ + y²
- x² + sin y
Show answer
Answer: B. Replacing x, y by λx, λy in x² + xy + y² gives λ²(x² + xy + y²). In each of the other functions the terms have different degrees (or contain sin y), so no single power of λ comes out.
-
2. Which differential equation is homogeneous?
- dy/dx = (x + y + 1)/(x − y)
- dy/dx = x² + y
- dy/dx = (x² + y²)/(xy)
- dy/dx = (x + 2)/(y − 3)
Show answer
Answer: C. (x² + y²)/(xy) is unchanged when x and y are replaced by λx and λy (λ² cancels), so it is homogeneous of degree zero. The constants 1, 2 and 3 in the others spoil homogeneity, and x² + y has mixed degrees.
-
3. A homogeneous equation given in the form dx/dy = h(x/y) is best solved by the substitution
- y = vx
- x = vy
- y = v + x
- x = v/y
Show answer
Answer: B. When x/y is the natural ratio, put x = vy, so that dx/dy = v + y dv/dy and the equation separates in v and y.
-
4. What is the general solution of dy/dx = 1 + y/x?
- y = log |x| + C
- y = x + Cx²
- y = Cx eˣ
- y = x log |x| + Cx
Show answer
Answer: D. Put y = vx: v + x dv/dx = 1 + v, so dv = dx/x and v = log |x| + C. Then y = vx = x log |x| + Cx.
-
5. Assertion (A): The differential equation dy/dx = (x − y)/(x + y) is homogeneous. Reason (R): F(x, y) = (x − y)/(x + y) satisfies F(λx, λy) = λ⁰ F(x, y) for every non-zero λ.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- A is false, but R is true
Show answer
Answer: A. F(λx, λy) = λ(x − y)/[λ(x + y)] = F(x, y) = λ⁰ F(x, y), so F is homogeneous of degree zero (R true). That is precisely the condition for the equation to be homogeneous, so R explains A.
Sign in to keep track of the lessons you finish.