Solve (x-y)dy=ydx help!
solve for differential equation
\(\dfrac{dy}{dx} = \dfrac{y}{x-y}\)
\(y' = \dfrac{y}{x-y}\)
sibstitute \(y = vx \implies y' = v + v'x \)
the equation becomes : \(v + v'x = \dfrac{v}{1-v}\)
hmm so I plug in y=u(x)*x got du/dx = u^2/ x(1-u) how to switch it back?
separate variables
separate variables, integrate and solve \(v\) first
in the end substitute back the \(y\) using : \(y=vx\)
seperate variable and got u= (u^2 / 1-u) lnx still not seeing how you got the solution
@Rinru, you made a mistake somewhere: \[y'=\frac{y}{x-y}~~\Rightarrow~~v+xv'=\frac{vx}{x-vx}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~v+xv'=\frac{v}{1-v}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~xv'=\frac{v}{1-v}-\frac{1-v}{1-v}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~xv'=\frac{2v-1}{1-v}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\frac{1-v}{2v-1}dv=\frac{1}{x}~dx \]
should get \(\dfrac{1-v}{v^2} dv = \dfrac{1}{x} dx\) right ? @SithsAndGiggles
\(\dfrac{1-v}{v^2} dv = \dfrac{1}{x} dx\) \(\int \dfrac{1-v}{v^2} dv = \int \dfrac{1}{x} dx\) \(\dfrac{-1}{v} - \ln|v|= \ln |x| + c\)
replace \(v\) by \(\dfrac{y}{x}\), and you're done.
\[ y'=\frac{y}{x-y}~~\Rightarrow~~v+xv'=\frac{vx}{x-vx}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~v+xv'=\frac{v}{1-v}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~xv'=\frac{v}{1-v}-v\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~xv'=\frac{v}{1-v}-\color{red}{\frac{v(1-v)}{1-v}}\\ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~xv'=\frac{v^2}{1-v}\\ \]
Oh right, sorry!
so the final solution is.... -lny-x/y = C x=-(c+lny) it seem
\( \ln y +\dfrac{x}{y} = C\) looks good to me
anyway to check it?
there's too many sign change with the constant variable...
checking is easy : take ur final solution, \(\ln y +\dfrac{x}{y} = C \) differentiate and find out \(\dfrac{dy}{dx}\)
you should get back ur differential equation
Join our real-time social learning platform and learn together with your friends!