- 1. What is a differential equation?
- 2. Order and degree: how hard is the equation?
- 3. General and particular solutions: a family and one member
- 4. Sort the x's from the y's: variables separable
- 5. Growth and decay: money, people and atoms
- 6. Why does tea cool slower and slower? Newton's law of cooling
- 7. Homogeneous functions and homogeneous equations
- 8. Solving homogeneous equations: put y = vx
- 9. Linear equations and the integrating factor
- 10. Linear equations in action, and which method to use
- Review
8 of 10·NCERT §9.4.2·6 min
Solving homogeneous equations: put y = vx
The big ideaA homogeneous equation \( \frac{dy}{dx} = g\left(\frac{y}{x}\right) \) becomes variable separable when you put y = vx, because then everything depends on v and x separately.
In simple words
The equation only cares about the ratio "y compared with x". So give that ratio its own name, v. Now ask the question again using v instead of y. Like magic, the x parts and the v parts come apart, and you can sort them into two piles as before. At the very end, swap v back for y over x.
Why y = vx works
If the right side is a function of \( \frac{y}{x} \) only, call that ratio v. So \( v = \frac{y}{x} \), that is
\[ y = vx, \]
where v is a new unknown function of x. Differentiate with the product rule (both v and x change):
\[ \frac{dy}{dx} = v + x\frac{dv}{dx}. \]
Try it: on a real solution curve, compare the slope of the ray through the origin (that is v) with the slope of the curve.
Put both into \( \frac{dy}{dx} = g(v) \): \( v + x\frac{dv}{dx} = g(v) \), so \( x\frac{dv}{dx} = g(v) - v \). This separates:
\[ \int \frac{dv}{g(v) - v} = \int \frac{dx}{x} + C. \]
The recipe, step by step
| Step | What to do | Example: \( \frac{dy}{dx} = \frac{x + y}{x} \) |
|---|---|---|
| 1 | Write \( \frac{dy}{dx} = F(x, y) \) and check F has degree 0. | \( F(\lambda x, \lambda y) = F(x, y) \), yes |
| 2 | Write F in terms of \( \frac{y}{x} \). | \( 1 + \frac{y}{x} \) |
| 3 | Put y = vx and \( \frac{dy}{dx} = v + x\frac{dv}{dx} \). | \( v + x\frac{dv}{dx} = 1 + v \) |
| 4 | Simplify to \( x\frac{dv}{dx} = g(v) - v \). | \( x\frac{dv}{dx} = 1 \) |
| 5 | Separate and integrate. | \( dv = \frac{dx}{x} \Rightarrow v = \log|x| + C \) |
| 6 | Replace v by \( \frac{y}{x} \). | \( y = x\log|x| + Cx \) |
Guess first: what is dy/dx?
We put y = vx. Guess: is \( \frac{dy}{dx} \) simply v, the way the derivative of 5x is 5?
See what happens
Worked example: partial fractions inside
Solve \( \frac{dy}{dx} = \frac{y^2 + 2xy}{x^2} \).
- Top and bottom both have degree 2, so it is homogeneous: \( \frac{dy}{dx} = \left(\frac{y}{x}\right)^2 + 2\frac{y}{x} \).
- Put y = vx: \( v + x\frac{dv}{dx} = v^2 + 2v \), so \( x\frac{dv}{dx} = v^2 + v = v(v + 1) \).
- Separate: \( \frac{dv}{v(v + 1)} = \frac{dx}{x} \). Partial fractions: \( \frac{1}{v(v+1)} = \frac{1}{v} - \frac{1}{v + 1} \).
- Integrate: \( \log\left| \frac{v}{v + 1} \right| = \log|x| + \log|C| \), so \( \frac{v}{v + 1} = Cx \).
- Put \( v = \frac{y}{x} \): \( \frac{v}{v+1} = \frac{y}{x + y} \). So \( y = Cx(x + y) \).
Worked example: a particular solution
Solve \( \frac{dy}{dx} = \frac{y}{x} + \tan\frac{y}{x} \), given \( y = \frac{\pi}{2} \) when x = 1.
- Already in terms of \( \frac{y}{x} \). Put y = vx: \( v + x\frac{dv}{dx} = v + \tan v \), so \( x\frac{dv}{dx} = \tan v \).
- Separate: \( \cot v\,dv = \frac{dx}{x} \). Integrate: \( \log|\sin v| = \log|x| + \log|C| \), so \( \sin v = Cx \).
- General solution: \( \sin\frac{y}{x} = Cx \). At x = 1, \( y = \frac{\pi}{2} \): \( \sin\frac{\pi}{2} = C \), so C = 1.
- Particular solution: \( \sin\frac{y}{x} = x \).
When it is easier the other way up: x = vy
If the equation comes as \( \frac{dx}{dy} = h\left(\frac{x}{y}\right) \), swap the roles: put x = vy, so \( \frac{dx}{dy} = v + y\frac{dv}{dy} \). For example, \( \frac{dx}{dy} = \frac{x}{y} + \frac{y}{x} \) gives \( v + y\frac{dv}{dy} = v + \frac{1}{v} \), so \( v\,dv = \frac{dy}{y} \), \( \frac{v^2}{2} = \log|y| + C \), and finally \( x^2 = 2y^2(\log|y| + C) \). Use this when the terms are full of \( \frac{x}{y} \), such as \( e^{x/y} \).
Don't mix these up
- Always swap v back to \( \frac{y}{x} \) at the end. An answer with v in it is unfinished.
- y = vx goes with \( \frac{dy}{dx} = v + x\frac{dv}{dx} \); x = vy goes with \( \frac{dx}{dy} = v + y\frac{dv}{dy} \). Don't mix the pairs.
Try it. Solve \( (x + 2y)\,dy = (2x - y)\,dx \), which we showed is homogeneous on the previous page.
Answer
- Substitution y = vx
- Naming the ratio \( \frac{y}{x} \) as a new unknown v.
- \( v + x\frac{dv}{dx} \)
- The derivative of vx by the product rule.
- Substitution x = vy
- The other way up, for \( \frac{dx}{dy} = h\left(\frac{x}{y}\right) \).
- Back-substitution
- Replacing v by \( \frac{y}{x} \) at the end.
Words to know
After putting y = vx in \( \frac{dy}{dx} = \frac{x^2 + y^2}{xy} \), what do you get?
- \( v = \frac{1 + v^2}{v} \)
- \( v + x\frac{dv}{dx} = \frac{1 + v^2}{v} \)
- \( v + x\frac{dv}{dx} = 1 + v^2 \)
Which substitution suits \( \frac{dx}{dy} = \frac{x}{y} + e^{x/y} \)?
- y = vx
- x = vy
- v = xy
Solving a homogeneous equation, you reach \( v = \log|Cx| \). What is the final answer?
- \( y = x\log|Cx| \)
- \( y = \log|Cx| \)
- \( y = \frac{\log|Cx|}{x} \)
Picture and video credits