Question
Question: Solve the differential equation \[\left( {{x^2} + xy} \right)dy = \left( {{x^2} + {y^2}} \right)dx\]...
Solve the differential equation (x2+xy)dy=(x2+y2)dx.
Solution
First find the expression for dxdy in terms of x and y. This will give us a homogeneous equation. Then substitute y=vx. Find the value of dxdy and put it in the above equation. Then solve the resulting differential equation using a variable separation method and put back the value of v to get the answer.
Complete step-by-step solution:
According to the question, we have to solve the differential equation (x2+xy)dy=(x2+y2)dx.
If we find the expression for dxdy in terms of x and y by cross multiplication, we’ll get:
⇒dxdy=x2+xyx2+y2 .....(1)
This is a homogeneous equation on the right hand side as the degree of all the terms in the equation is the same i.e. 2. So we’ll substitute y=vx in the equation. We have:
⇒y=vx .....(2)
Differentiating it both sides, we’ll get:
⇒dxdy=xdxdv+v
Putting these values in equation (1), we’ll get:
⇒xdxdv+v=x2+xvxx2+(vx)2 ⇒xdxdv+v=x2+vx2x2+v2x2 ⇒xdxdv+v=1+v1+v2
On further simplification, this will give us:
⇒xdxdv=1+v1+v2−v ⇒xdxdv=1+v1+v2−v−v2 ⇒xdxdv=1+v1−v
Now we will cross multiply for variable separation, we’ll get:
⇒1−v1+vdv=xdx
This can also be written as:
⇒v−1v+1dv=−xdx
Integrating both sides, we’ll get:
⇒∫v−1v+1dv=−∫xdx
Left hand side can be simplified as:
⇒∫v−1v−1+2dv=−∫xdx ⇒∫v−1v−1dv+2∫v−1dv=−∫xdx ⇒∫dv+2∫v−1dv=−∫xdx
We know that the integration of x1 with respect to x is ln∣x∣.
⇒∫xdx=ln∣x∣
Similarly the integration of v−11 with respect to v is ln∣v−1∣.
⇒∫v−1dv=ln∣v−1∣
Using these results in our integration, we’ll get:
⇒v+2ln∣v−1∣=−ln∣x∣+lnC, where lnC is the integration constant.
We have taken a logarithmic constant just to adjust our equation as we are getting other terms in logarithms also.
⇒v+2ln∣v−1∣=lnC−ln∣x∣
Now, we will use few properties of logarithm as shown below:
⇒alnb=lnba ⇒lnm−lnn=lnnm
Using these properties in our equation, we’ll get:
⇒v+ln∣v−1∣2=lnxC ⇒ln(v−1)2−lnxC=−v
Again using property of logarithm, we will get:
⇒lnxC(v−1)2=−v ⇒ln(Cx(v−1)2)=−v
Putting back v=xy from equation (2), we’ll get:
⇒lnCx(xy−1)2=−xy ⇒lnCxx2(y−x)2=−xy ⇒lnCx(y−x)2=−xy
Taking anti logarithm both sides, we’ll get:
⇒Cx(y−x)2=e−xy ⇒(y−x)2=Cxe−xy
(y−x)2=Cxe−xy is the final solution of the differential equation.
Note: When the degree of all the terms in a polynomial equation is the same then those equations are called homogeneous equations. And if we have to solve the differential equation containing homogeneous equations then we substitute y=vx and proceed as we did above.
If we can separate the two variables of the differential equation on either side of the equation then we can solve it using the variable separation method also. This we have done in the step just before integration in the above problem separating v and x on either side of the equation.