Solve the following differential equation: x²dy/dx=(x²-2y²+xy)
Question 913 marksMedium
Solve the following differential equation:
x2dxdy=(x2−2y2+xy)
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; we also use ∫a2−v2dv=2a1loga−va+v.
Step 1 — Write dxdy in terms of xy.
We divide both sides by x2 (with x=0).
dxdy=1−x22y2+xy
Step 2 — Substitute y=vx.
We replace dxdy by v+xdxdv, and the v terms cancel.
v+xdxdv=1−2v2+v
xdxdv=1−2v2
Step 3 — Separate the variables.
We divide by 1−2v2 and by x. Taking out the factor 2 puts the denominator in the form a2−v2 with a=21.
1−2v2dv=xdx
21⋅(21)2−v2dv=xdx
Step 4 — Integrate.
With a=21, we have 2a1=22, and we add one arbitrary constant c.
21⋅22log21−v21+v=log∣x∣+c
Multiplying the top and bottom of the fraction by 2 tidies it.
221log1−2v1+2v=log∣x∣+c
Step 5 — Put back v=xy.
We multiply the top and bottom of the fraction by x.
1−2v1+2v=x−2yx+2y
221logx−2yx+2y−log∣x∣=c
Therefore, the general solution is 221logx−2yx+2y−log∣x∣=c, where c is an arbitrary constant.