Show that the given differential equation is homogeneous and then solve it.
x2dydx=x2−2y2+xy
Given, dydx=x2−2y2+xyx2 ...(i)
Here, the numerator and denominator both have polynomial of degree 2. So, the given differential equation is homogeneous.
So, put y=vx⇒dydx=v+xdvdx
Then, Eq. (i) becomes v+xdvdx=x2−2x2v2+x2vx2⇒v+xdvdx=1−2v2+v⇒xdvdx=1−2v2⇒11−2v2dv=1xdx
On integrating both sides, we get
∫11−2v2dv=∫dxx⇒12∫1(1√2)2−v2dv=∫dxx⇒12.12.1√1log∣∣
∣∣1√2+v1√2−v∣∣
∣∣=log|x|+C [∵∫dxa2−x2=12alog∣∣a+xa−x∣∣+C]⇒12√2log∣∣∣1+√2v1−√2v∣∣∣=log|x|+C⇒12√2log∣∣
∣∣1+√yx1−√2yx∣∣
∣∣=log|x|+C Put v=yx
⇒12√2log∣∣∣x+√2yx−√2y∣∣∣=log|x|+C
This is the required solution of the given differential equation.