Solve the following differential equation: x²dy/dx=2xy+y²
Question 873 marksMedium
Solve the following differential equation:
x2dxdy=2xy+y2
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=x2y+x2y2
Step 2 — Substitute y=vx.
We replace dxdy by v+xdxdv and xy by v.
v+xdxdv=2v+v2
xdxdv=v2+v
xdxdv=v(v+1)
Step 3 — Separate the variables.
We divide by v(v+1) and by x, then split the fraction into partial fractions.
v(v+1)dv=xdx
(v1−v+11)dv=xdx
Step 4 — Integrate.
We integrate and write the constant as logc so the logs combine.
log∣v∣−log∣v+1∣=log∣x∣+logc
logv+1v=log∣cx∣
v+1v=cx
Step 5 — Put back v=xy.
We multiply the top and bottom of the fraction by x.
y/x+1y/x=cx
x+yy=cx
y=cx(x+y)
Therefore, the general solution is y=cx(x+y), where c is an arbitrary constant.