Question
Question: How do you integrate \(ydx=2\left( x+y \right)dy\)?...
How do you integrate ydx=2(x+y)dy?
Solution
Divide both the sides with ydy and take the terms of x to the L.H.S to form a linear differential equation in x of the form dydx+Px=Q, where P and Q may be constants or functions of y. Now, find the integrating factor by using the formula I.F=e∫Pdy and write the solution of the differential equation as: x×I.F=∫(I.F×Q)dy. Perform the required integral and add the constant to integration (c) in the end to get the solution.
Complete step by step solution:
Here we have been provided with the differential equation ydx=2(x+y)dy and we are asked to integrate it. That means we need to find its solution. Let us try to form a linear differential equation.
∵ydx=2(x+y)dy
Dividing both the sides with ydy we get,
⇒dydx=y2(x+y)⇒dydx=y2x+2
Taking the terms of x to the L.H.S we have,
⇒dydx=y2(x+y)⇒dydx−y2x=2⇒dydx+(−y2)x=2
Clearly, the above differential equation is of the form dydx+Px=Q, where P=(−y2) and Q=2. This form of the differential equation is called linear differential equation in x. So, to find the solution first we need to find the integrating factor (I.F) given by the formula: I.F=e∫Pdy.
⇒I.F=e∫(−y2)dy⇒I.F=e−2∫y1dy
We know that ∫ydy=lny, so we have,
⇒I.F=e−2lny
Using the property of log given as mloga=logam we get,
⇒I.F=eln(y−2)⇒I.F=y−2⇒I.F=y21
Now, we know that the solution of a linear differential equation in x is given as x×I.F=∫(I.F×Q)dy, so we have,
⇒x×y21=∫(y21×2)dy⇒y2x=2∫(y21)dy
We know that ∫y21dy=(−y1), so we have,
⇒y2x=2(−y1)+c⇒y2x+y2=c⇒y2x+2y=c
Here ‘c’ is the constant of integration.
Here ‘c’ is the constant of integration.
Hence, the above relation is our answer.
Note: There can be another method also to solve the above question. We can also form a homogeneous differential equation and by using the substitution x=vy we can simplify the given equation. In the end the solution may look different but on simplifying it to a certain step we will get the same answer. Here you cannot form a linear differential equation in y of the form dxdy+Py=Q so you need to be careful at the initial step of the solution.