Question
Question: Solve the following differential equation \[\text{cosec}x\log y\dfrac{dy}{dx}+{{x}^{2}}{{y}^{2}}=0\]...
Solve the following differential equation cosecxlogydxdy+x2y2=0.
Solution
In this question, in order to solve the given differential equation cosecxlogydxdy+x2y2=0 we have to simplify it using variable separable to get y2logydy=cosecx−x2dx . We will then integrate both sides to get the desired solution of the given differential equation.
Complete step by step answer:
We are given with a differential equation of the form cosecxlogydxdy+x2y2=0.
On taking the value x2y2 on the right hand side of the above differential equation, we get
cosecxlogydxdy=−x2y2.
Now we will be separating the variables by taking terms in variable x on the right hand side of the above equation and terms in variable y on the left hand side of the above equation.
Then we get
y2logydy=cosecx−x2dx
Now on integrating both sides of the above differential equation, we will have
∫y2logydy=∫cosecx−x2dx
Since cosecx1=sinx, then the above equation becomes
∫logyy21dy=−∫x2sinxdx
Since we know that by integration by parts we have ∫(uv)dx=u∫vdx−∫dxd(u)∫vdx
Now using formula of integration by parts on both side of the above integral, we get
logy∫y21dy−∫dyd(logy)∫y21dy=−[x2∫sinxdx−∫dxd(x2)∫sinxdx]
Now on evaluating the integral, we will have
logy[−y1]−∫(y1)[−y1]dy=x2cosx−∫(2x)cosxdx+c
On simplifying the above equation we get
−ylogy+∫(y21)dy=x2cosx−2∫xcosxdx+c
Again on evaluation the above integral by using integration by parts in the right hand side of the above equation we get,
−ylogy+[−y1]=x2cosx−2[x∫cosxdx−∫dxd(x)∫cosxdx]+c
Now we get
−ylogy+−y1=x2cosx−2[xsinx−∫1.sinxdx]+c
Again on simplifying, we will have
−ylogy−y1=x2cosx−2[xsinx+cosx]+c
⇒ylogy+y1+x2cosx−2[xsinx+cosx]+c=0
There on solving the given differential equation cosecxlogydxdy+x2y2=0, we get ylogy+y1+x2cosx−2[xsinx+cosx]+c=0.
Note:
In this problem, we are using the method of separation of variables of a differential equation in order to solve the problem. While using this method we have to take care of the fact that the differential equation allows one to rewrite an equation so that each of two variables occurs on a different side of the equation. Then integrating both sides with respect to different variables will lead us to the solution.