Find the function $f$, given that $$f'(x) = f(x)(1-f(x))$$ and that $f(0) = \frac12$
The answer is
$$y = \frac{1}{1+e^{-x}}$$
What I tried doing is changing $f'(x)$ as \frac{dy}{dx} and all the $f(x)$ as $y$ to make it easier to read for myself. Manipulating the equation.
I got
$$\left(y + \frac1y\right)dy = 1dx$$
but when I integrate I'm not getting the correct answer, I'm pretty sure I'm doing this incorrectly. Any advice?