Question
Question: Solve the differential equation \[({x^2} + {y^2})dx - 2xydy = 0\]....
Solve the differential equation (x2+y2)dx−2xydy=0.
Solution
Hint: Determine dxdy from (x2+y2)dx−2xydy=0 and observe it is a function of xy. Substitute another variable in terms of xy and solve the differential equation and finally convert it in terms of y and x.
Complete step-by-step answer:
A differential equation is an equation that relates one or more functions and their derivatives.
We are given the expression (x2+y2)dx−2xydy=0 and we need to solve for this differential equation.
As a first step, we need to find dxdy from (x2+y2)dx−2xydy=0.
(x2+y2)dx−2xydy=0
Taking -2xydy to the right-hand side of the equation, we get:
(x2+y2)dx=2xydy
Dividing both sides of the equation by dx, we obtain as follows:
x2+y2=2xydxdy
Solving for dxdy in terms of x and y, we get:
dxdy=2xyx2+y2
dxdy=2xyx2+y2................(1)
Let F(x,y)=2xyx2+y2, we now find F(λx,λy).
F(λx,λy)=2(λx)(λy)(λx)2+(λy)2
F(λx,λy)=2λ2xyλ2x2+λ2y2
F(λx,λy)=2xyx2+y2
F(λx,λy)=F(x,y)
Hence, F(x, y) is a homogeneous differential equation.
Therefore, we make the substitution y=ux.
u=xy.............(2)
y=ux
Differentiating both sides with respect to x, we get as follows:
dxdy=xdxdu+u.............(3)
From equation (1), we have:
dxdy=2yx+2xy
Substituting equation (2) and equation (3) into the above equation, we have:
xdxdu+u=2u1+2u
Taking u to the right-hand side of the equation and simplifying, we have:
xdxdu=2u1+2u−u
xdxdu=2u1−2u
Simplifying the fractions, we have:
xdxdu=2u1−u2
Now, we can solve this differential equation using separation of variables method.
Taking all terms with u to the left-hand and taking all terms with x to the right-hand side, we have:
1−u22udu=xdx
Integrating both sides, we have:
∫1−u22udu=∫xdx
Let 1−u2=t.
1−u2=t
Differentiating both sides we have:
−2udu=dt
Then the integral is given as follows:
−∫t1dt=∫xdx
Integration of x1 is log∣x∣.
−log∣t∣=log∣x∣+C
Simplifying, we get:
−log∣t∣−log∣x∣=C
log∣xt∣=−C
We know that 1−u2=t.
logx(1−u2)=−C
We know that u=xy, then, we have:
logx(1−(xy)2)=−C
Simplifying, we get:
logx(x2x2−y2)=−C
logxx2−y2=−C
Let −C=logc, then we have:
logxx2−y2=logc
xx2−y2=c
x2−y2=c∣x∣
Hence, the solution to the given differential equation is x2−y2=c∣x∣.
Note: If you use the integration of x1 as just logx, you will end up in a wrong answer. Integration of x1 is log∣x∣.