Let us solve the following differential equations.
1. (y−2x)dx+xdy=0,y(−1)=3
This equation can be rewritten in the form xy′+y−2x=0 or (xy)′=2x. It follows that xy=x2+C, and we conclude that the general solution is of the form: y=x+xC. Then 3=y(−1)=−1−C, and thus C=−4. The solution of (y−2x)dx+xdy=0,y(−1)=3, is y=x−x4.
2. dy=(x−4xy)dx,y(0)=−1/4
This equation is equivalent to 1−4ydy=xdx, and hence ∫1−4ydy=∫xdx. Then −41ln∣1−4y∣=2x2+C.
It follows that y=−41 when x=0, and hence −41ln2=C.
We conclude that the solution of dy=(x−4xy)dx,y(0)=−1/4
is of the form −41ln∣1−4y∣=2x2−41ln2.
Comments