I'm reading an example on homogeneous differential equations which goes like this:
$$ (y-x)y'=2x $$
Understand that in those case of scenarios we let $$y=y(x)=xz(x)$$ After we differentiate we get $$y'=z+xz'=\frac{2}{z-1}$$
I really don't understand why $z+xz'=\frac{2}{z-1}$. How did we get that?
Thanks in advance!
It's actually really simple. $$ z+xz'=y'=\frac{2x}{y-x} = \frac{2}{\frac{y}{x}-1} = \frac{2}{z-1} $$ Because for non-zero $x$ $$ y = xz \iff z=\frac{y}{x} $$