Solution:
Concept: A first-order equation is homogeneous when dxdy can be written as a function of xy, so we put y=vx; then dxdy=v+xdxdv, and the equation separates in v and x.
Step 1 — Write dxdy in terms of xy.
We divide both sides by x2 (with x=0).
dxdy=1+x5y+x24y2
Step 2 — Substitute y=vx.
We replace dxdy by v+xdxdv and xy by v.
v+xdxdv=1+5v+4v2
xdxdv=4v2+4v+1
xdxdv=(2v+1)2
Step 3 — Separate the variables.
We divide by (2v+1)2 (with 2v+1=0) and by x.
(2v+1)2dv=xdx
Step 4 — Integrate.
We use ∫(2v+1)−2dv=−2(2v+1)1 and write the constant as −c.
−2(2v+1)1=log∣x∣−c
Step 5 — Put back v=xy.
We have 2v+1=xx+2y, so its reciprocal is x+2yx.
−2(x+2y)x=log∣x∣−c
log∣x∣+2(x+2y)x=c
Watch out: Dividing by (2v+1)2 leaves out the line x+2y=0, which also satisfies the equation.
Therefore, the general solution is log∣x∣+2(x+2y)x=c, where c is an arbitrary constant.