r-soy
- 170
- 1
I am given the following ODE, and the instructions are to show whether it is exact or not, and then solve:
$$(x+y)dy=(y-x)dx$$
My first step, is to put the equation in the form $$M(x,y)\,dx+N(x,y)\,dy=0$$:
$$(x-y)dx+(x+y)dy=0$$
Next, I compute the partials:
$$\frac{\delta M}{\delta y}=-1\ne1=\frac{\delta N}{\delta x}$$
Thus, I have found the equation is not exact.
Next, I want to find an integrating factor. First I consider:
$$\frac{\frac{\delta M}{\delta y}-\frac{\delta N}{\delta x}}{N(x,y)}=-\frac{2}{x+y}$$
Since this is not a function of just $x$, I next consider:
$$\frac{\frac{\delta N}{\delta x}-\frac{\delta M}{\delta y}}{M(x,y)}=\frac{2}{x-y}$$
Since this is not a function of just $y$, I next observe that the given ODE is homogeneous:
$$\frac{dy}{dx}=\frac{\frac{y}{x}-1}{\frac{y}{x}+1}$$
So, I know I need to make the substitution:
$$v=\frac{y}{x}\,\therefore\,y=vx\,\therefore\,\frac{dy}{dx}=v+x\frac{dv}{dx}$$
and so the ODE becomes:
$$v+x\frac{dv}{dx}=\frac{v-1}{v+1}$$
I know now that I must have a separable ODE:
$$x\frac{dv}{dx}=\frac{v-1}{v+1}-v=\frac{v-1-v(v+1)}{v+1}=-\frac{v^2+1}{v+1}$$
Hence:
$$-\frac{v+1}{v^2+1}\,dv=\frac{1}{x}\,dx$$
At this point, I am unsure how to proceed. Should I write:
$$\left(\frac{1}{2}\cdot\frac{2v}{v^2+1}+\frac{1}{v^2+1} \right)dv=-\frac{1}{x}\,dx$$
and now integrate?
$$(x+y)dy=(y-x)dx$$
My first step, is to put the equation in the form $$M(x,y)\,dx+N(x,y)\,dy=0$$:
$$(x-y)dx+(x+y)dy=0$$
Next, I compute the partials:
$$\frac{\delta M}{\delta y}=-1\ne1=\frac{\delta N}{\delta x}$$
Thus, I have found the equation is not exact.
Next, I want to find an integrating factor. First I consider:
$$\frac{\frac{\delta M}{\delta y}-\frac{\delta N}{\delta x}}{N(x,y)}=-\frac{2}{x+y}$$
Since this is not a function of just $x$, I next consider:
$$\frac{\frac{\delta N}{\delta x}-\frac{\delta M}{\delta y}}{M(x,y)}=\frac{2}{x-y}$$
Since this is not a function of just $y$, I next observe that the given ODE is homogeneous:
$$\frac{dy}{dx}=\frac{\frac{y}{x}-1}{\frac{y}{x}+1}$$
So, I know I need to make the substitution:
$$v=\frac{y}{x}\,\therefore\,y=vx\,\therefore\,\frac{dy}{dx}=v+x\frac{dv}{dx}$$
and so the ODE becomes:
$$v+x\frac{dv}{dx}=\frac{v-1}{v+1}$$
I know now that I must have a separable ODE:
$$x\frac{dv}{dx}=\frac{v-1}{v+1}-v=\frac{v-1-v(v+1)}{v+1}=-\frac{v^2+1}{v+1}$$
Hence:
$$-\frac{v+1}{v^2+1}\,dv=\frac{1}{x}\,dx$$
At this point, I am unsure how to proceed. Should I write:
$$\left(\frac{1}{2}\cdot\frac{2v}{v^2+1}+\frac{1}{v^2+1} \right)dv=-\frac{1}{x}\,dx$$
and now integrate?
Last edited by a moderator: