Before solving homogeneous differential equations, we must understand what a homogeneous function is.
A function F(x,y) is said to be a homogeneous function of degree n if, upon replacing x with λx and y with λy (where λ is any non-zero constant), the factor λ comes out completely as λn:
F(λx,λy)=λnF(x,y)
This means that every term of the function scales in the same way.
Examples:
F(x,y)=x2+2xy+y2F(λx,λy)=(λx)2+2(λx)(λy)+(λy)2=λ2(x2+2xy+y2)=λ2F(x,y)
So this is homogeneous of degree 2.
G(x,y)=sin(xy)G(λx,λy)=sin(λxλy)=sin(xy)=λ0G(x,y)
So this is homogeneous of degree 0.
H(x,y)=sinx+cosyH(λx,λy)=sin(λx)+cos(λy)
Here no single power of λ can be factored out. So this is not homogeneous.
Homogeneous Differential Equations
A first-order, first-degree differential equation of the form
dxdy=F(x,y)
is called a homogeneous differential equation if F(x,y) is a homogeneous function of degree zero.
That means
F(λx,λy)=F(x,y)
for every non-zero constant λ.
Equivalently, such an equation can be rewritten in the form
dxdy=f(xy)
or, in some cases, more conveniently as
dydx=g(yx).
This is the key observation that allows us to solve homogeneous equations.
The Solving Algorithm
Homogeneous differential equations are generally not directly separable, but they become separable after a standard substitution.
Method 1: Substituting y=vx
This is used when the equation is written as
dxdy=f(xy).
Steps:
Put
y=vx,
where v is a function of x.
Differentiate using the product rule:
dxdy=v+xdxdv.
Substitute y=vx and dxdy=v+xdxdv into the equation.
The equation will reduce to a separable equation in v and x.
Integrate.
Replace v by xy to get the final answer.
Method 2: Substituting x=vy
This is useful when it is easier to write the equation as
dydx=g(yx).
Steps:
Put
x=vy,
where v is a function of y.
Differentiate with respect to y:
dydx=v+ydydv.
Substitute and simplify.
Separate variables and integrate.
Replace v by yx.
Important idea: The substitution works because a homogeneous function of degree zero depends only on the ratio xy or yx.
Example 1: Basic Homogeneous Equation
Solve the differential equation: (x+y)dy+(x−y)dx=0.
Solution:
Step 1: Write the equation in the form dxdy=F(x,y).
(x+y)dy=−(x−y)dxdxdy=−x+yx−y=x+yy−x
Now the numerator and denominator are both homogeneous expressions of degree 1, so their ratio is homogeneous of degree 0. Hence the equation is homogeneous.
Step 2: Use the substitution
y=vx⟹dxdy=v+xdxdv.
Substitute into the equation:
v+xdxdv=vx+xvx−x=v+1v−1.
Step 3: Isolate the derivative term.
xdxdv=v+1v−1−v=v+1v−1−v(v+1)=v+1v−1−v2−v=−v+11+v2.
Step 4: Separate variables.
1+v2v+1dv=−xdx.
Step 5: Integrate both sides.
Split the left side:
∫1+v2vdv+∫1+v21dv=−∫xdx.
So,
21ln(1+v2)+tan−1v=−ln∣x∣+C.
Step 6: Put v=xy.
21ln(1+x2y2)+tan−1(xy)=−ln∣x∣+C.
Now,
21ln(x2x2+y2)=21ln(x2+y2)−ln∣x∣,
so the −ln∣x∣ on the right combines neatly, giving
21ln(x2+y2)+tan−1(xy)=C.
Answer:21ln(x2+y2)+tan−1(xy)=C
Example 2: Verifying and Solving
Show that the differential equation x2dy+y(x+y)dx=0 is homogeneous and solve it.
Solution:
Step 1: Rewrite in differential form.
x2dxdy=−y(x+y)dxdy=−x2xy+y2.
Let
F(x,y)=−x2xy+y2.
Then,
F(λx,λy)=−(λx)2(λx)(λy)+(λy)2=−λ2x2λ2(xy+y2)=F(x,y).
So F is homogeneous of degree 0. Hence the differential equation is homogeneous.
Step 2: Put
y=vx⟹dxdy=v+xdxdv.
Substitute:
v+xdxdv=−(v+v2).
Step 4: Integrate.
Using partial fractions,
v(v+2)1=21(v1−v+21).
Therefore,
21lnv+2v=−ln∣x∣+C.
Multiply by 2:
lnv+2v=−2ln∣x∣+C1=lnx2K.
So,
v+2v=x2K.
Solution:
Step 1: Divide by x.
dxdy=xy+tan(xy).
This is of the form f(y/x), so it is homogeneous.
Step 2: Put
y=vx⟹dxdy=v+xdxdv.
Substitute:
v+xdxdv=v+tanv.
Step 3: Simplify.
xdxdv=tanvcotvdv=xdx.
Step 4: Integrate.
∫cotvdv=∫xdxln∣sinv∣=ln∣x∣+C=ln∣Cx∣.
So,
sinv=Cx.
Step 5: Replace v=xy.
sin(xy)=Cx.
Answer:sin(xy)=Cx
Example 5: Initial Value Problem (IVP)
Solve the initial value problem: xdxdy−y+xsin(xy)=0, given that y=π when x=2.
Solution:
Step 1: Rewrite the equation.
xdxdy=y−xsin(xy)dxdy=xy−sin(xy).
Step 2: Put
y=vx⟹dxdy=v+xdxdv.
Substitute:
v+xdxdv=v−sinv.
Step 3: Simplify and separate.
xdxdv=−sinvcscvdv=−xdx.
Step 4: Integrate.
Using ∫cscvdv=ln∣cscv−cotv∣,
ln∣cscv−cotv∣=−ln∣x∣+C=lnxC.
Therefore,
cscv−cotv=xC.
Step 5: Replace v=xy.
csc(xy)−cot(xy)=xC.
Step 6: Apply the condition x=2, y=π.
Then xy=2π, so
csc(2π)−cot(2π)=2C1−0=2CC=2.
Hence the particular solution is
csc(xy)−cot(xy)=x2.
Answer:csc(xy)−cot(xy)=x2
Example 6: Radical Homogeneous Equation
Solve: xdxdy=y+x2+y2.
Solution:
Step 1: Divide by x:
dxdy=xy+xx2+y2.
Now,
xx2+y2=1+(xy)2
when working in the standard homogeneous setting. Thus,
dxdy=xy+1+(xy)2.
Step 2: Put
y=vx⟹dxdy=v+xdxdv.
Substitute:
v+xdxdv=v+1+v2.
Step 3: Simplify.
xdxdv=1+v2.
So,
1+v2dv=xdx.
Step 4: Integrate.
Using
∫1+v2dv=ln∣v+1+v2∣,
we get
ln∣v+1+v2∣=ln∣x∣+C=ln∣Cx∣.
Therefore,
v+1+v2=Cx.
Step 5: Replace v=xy.
xy+1+x2y2=Cx.
Multiplying through by x gives
y+x2+y2=Cx2.
Answer:y+x2+y2=Cx2
Example 7: Implicit General Solution
Solve: (x2+y2)dx−2xydy=0.
Solution:
Step 1: Rearrange.
2xydy=(x2+y2)dxdxdy=2xyx2+y2.
This is homogeneous because numerator and denominator are both of degree 2.
Step 2: Put
y=vx⟹dxdy=v+xdxdv.
Substitute:
v+xdxdv=2v1+v2.
Step 4: Integrate.
Let u=1−v2, so du=−2vdv.
Then
∫1−v22vdv=−∫udu=−ln∣1−v2∣.
Therefore,
−ln∣1−v2∣=ln∣x∣+C.
So,
ln1−v21=ln∣Cx∣1−v21=Cx.
Step 5: Replace v=xy.
1−y2/x21=Cxx2−y2x2=Cx.
This simplifies to
x=C(x2−y2).
Equivalently,
x2−y2=Kx,
where K=C1.
Answer:x2−y2=Kx
Example 8: Reverse Substitution Case (x=vy)
Solve: 2xydx+(x2+2y2)dy=0.
Solution:
Step 1: It is easier to isolate dydx.
2xydx=−(x2+2y2)dydydx=−2xyx2+2y2.
This is homogeneous, so use x=vy.
Step 2: Put
x=vy⟹dydx=v+ydydv.
Substitute:
v+ydydv=−2vv2+2.
Step 3: Simplify.
ydydv=−2vv2+2−v=−2v3v2+2.
So,
3v2+22vdv=−ydy.
Step 4: Integrate.
Let u=3v2+2, then du=6vdv, so 2vdv=3du.
Hence,
31∫udu=−∫ydy31ln∣3v2+2∣=−ln∣y∣+C.
Multiply by 3:
ln∣3v2+2∣=−3ln∣y∣+C1=lny3K.
Therefore,
y3(3v2+2)=K.
Step 5: Replace v=yx.
y3(3y2x2+2)=K3x2y+2y3=K.
Answer:3x2y+2y3=K
Example 9: Complex Logarithmic Homogeneous Equation
Solve: xdxdy=y(lny−lnx+1).
Solution:
Step 1: Use log properties.
lny−lnx=ln(xy).
So the equation becomes
xdxdy=y(ln(xy)+1)dxdy=xy(ln(xy)+1).
This is homogeneous.
Step 2: Put
y=vx⟹dxdy=v+xdxdv.
Substitute:
v+xdxdv=v(lnv+1)=vlnv+v.