Given: ydx=2(x+y)dy
Now ydx=2(x+y)dy⇒dydx=y2(x+y)
Observe that the given differential equation is a first-order homogeneous differential equation.
Solve the equation by using the substitution x=vy
x=vy⇒dydx=v(1)+y(dydv)=v+ydydv
Then the given differential equation becomes
dydx=y2(x+y)⇒v+ydydv=y2(vy+y)=y2y(v+1)=2(v+1)
⇒ydydv=2v+2−v=v+2
Using the separation of variables, we get
v+2dv=ydy
Integrating on both sides, we get
∫v+2dv=∫ydy⇒ln(v+2)=ln(y)+ln(c)⇒ln(v+2)=ln(cy)
⇒v+2=cy
Substituting v=yx , we get
yx+2=cy⇒yx+2y=cy⇒x+2y=cy2
Therefore, general solution to the given differential equation is
x+2y=cy2
Comments