Solve the following differential equation: y² ,dx+(x²-xy+y²) ,dy=0
Question 1063 marksMedium
Solve the following differential equation:
y2dx+(x2−xy+y2)dy=0
Solution:
Concept: Both y2 and x2−xy+y2 are homogeneous of degree 2, so the equation is homogeneous. We put y=vx; then dxdy=v+xdxdv. The v-integral splits into a log and a tan−1.
Step 1 — Make dxdy the subject and substitute.
We move the dx term to the right, divide, and then divide the top and bottom by x2.
dxdy=x2−xy+y2−y2
v+xdxdv=1−v+v2−v2
Step 2 — Simplify.
We subtract v over the common denominator 1−v+v2.
xdxdv=1−v+v2−v2−v+v2−v3
xdxdv=−1−v+v2v(1+v2)
Step 3 — Separate the variables.
We multiply by the reciprocal fraction and divide by x.
v(1+v2)1−v+v2dv=−xdx
Step 4 — Split the fraction.
We write the numerator as (1+v2)−v, so the fraction becomes two simple terms.
v(1+v2)(1+v2)−v=v1−1+v21
Step 5 — Integrate.
We integrate both terms and write the constant as logc.
log∣v∣−tan−1v=−log∣x∣+logc
logcvx=tan−1v
Step 6 — Put back v=xy.
We have vx=y, and we take the exponential of both sides.
cy=etan−1(y/x)
∣y∣=cetan−1(y/x)
Therefore, the general solution is ∣y∣=cetan−1(y/x), where c is a positive constant.