Solve the following differential equation: 2dy/dx=y/x+y²/x²
Question 923 marksMedium
Solve the following differential equation:
2dxdy=xy+x2y2
Solution:
Concept: The right side is already a function of xy, so the equation is homogeneous. We put y=vx; then dxdy=v+xdxdv, and the equation separates in v and x.
Step 1 — Substitute y=vx.
We replace dxdy by v+xdxdv and xy by v.
2(v+xdxdv)=v+v2
2xdxdv=v2−v
2xdxdv=v(v−1)
Step 2 — Separate the variables.
We divide by v(v−1) and by x, then use partial fractions.
v(v−1)2dv=xdx
2(v−11−v1)dv=xdx
Step 3 — Integrate.
We integrate and write the constant as logc.
2logvv−1=log∣x∣+logc
(vv−1)2=cx
Step 4 — Put back v=xy.
We multiply the top and bottom by x, then clear the fraction.
vv−1=yy−x
y2(y−x)2=cx
(y−x)2=cxy2
Therefore, the general solution is (y−x)2=cxy2, where c is an arbitrary constant.