# Thread: Can't solve this Differential equation

1. ## Can't solve this Differential equation

Hey everyone, I've been trying to solve this differential equation for 2 days and I haven't gotten any closer to the answer. If someone could help that would be amazing, thank you. Here it is:
$xy' + y = y^2$
$y(1)=-11$

I've tried manipulating it to get y and dy on one side, and x and dx on the other side, and then integrating but that didn't work. I was left with:
$cx = y^2 - y$ where c is a constant. but i can't do anything from there.

I also tried doing $xy = \int y^2 dy$ where x is the constant of integration, but again, that didn't work out.

Thank you,
CenturionMonkey

2. $xy'+y={{y}^{2}}\implies \frac{y'}{{{y}^{2}}}+\frac{1}{xy}=\frac{1}{x}.$ Now put $u=\frac1y.$

3. $x^2(xy)'=x^2(xy'+y)=x^2y^2=(xy)^2.$ let $xy=u$ to get $\frac{u'}{u^2}=\frac{1}{x^2}.$ integrate both sides: $\frac{-1}{xy}=\frac{-1}{u}=\frac{-1}{x} + C.$ thus: $y=\frac{1}{1-Cx}.$ now use your initial condition to find $C.$

4. that actually kind of makes sense. Thanks a lot you two.

$x \frac{dy}{dx} = y^2 - y$
$\frac{dy}{y^2-y} = \frac{dx}{x}$.