Question
Question: Solve the following expression: \(\left( {{x}^{2}}-y{{x}^{2}} \right)dy+\left( {{y}^{2}}+x{{y}^{2}} ...
Solve the following expression: (x2−yx2)dy+(y2+xy2)dx=0
Solution
Hint: First we will try to separate the variable of x and y. And then by taking them to opposite sides we will integrate both the sides using the formula for integration ∫xdx=lnxand ∫x2dx=x−1 , then the result that we get will be the final answer.
Complete step-by-step answer:
Let’s start solving the question.
We have been given (x2−yx2)dy+(y2+xy2)dx=0
Now after solving it we get,
(x2−yx2)dy=−(y2+xy2)dxx2(1−y)dy=−y2(1+x)dx
Now we can see that the variables can be separated easily.
After separating the variable x and y we get,
y2(1−y)dy=x2−(1+x)dx
Now integrating both the sides we get,
∫y2(1−y)dy=∫x2−(1+x)dx∫y2dy−∫ydy=∫x2−dx−∫xdx
Now we will use the formula of integration,
∫xdx=lnx and ∫x2dx=x−1
Using the above two formulas we get,
y−1−lny=−(x−1)−lnx+Cy1+lny=x−1+lnx+C
Hence, this is the equation that we get after solving the differential equation.
Note: Here we can see that we have got a constant C in our equation, students might be confused about what it is. C is called the integration constant and to find it’s value we must know at least one point on the equation. As in the question no such information is given so, we can’t determine the value of C. And the two formula ∫xdx=lnx and ∫x2dx=x−1 must be kept in mind while solving this question.