Possible Duplicate:
How do you solve the Initial value probelm $dp/dt = 10p(1-p), p(0)=0.1$?
i need to integrate the following: $$ \frac{dr}{dt}=r(u-r) $$ u is a constant and $$t_0=0, r(0)=r_0$$ this is part of the work required to answer an example in my textbook. it being an example, the solution for r is given, but the working out is not shown. the textbook is on solving nonlinear ordinary differential equations, so the focus is not so much on showing how to integrate. iv been trying to get it, but i cant. i tried to use a method in zill for integrating bernoulli equations, that got me close. i tried integration by separation, but that left me very confused. please help. the answer given is: $$ r=\frac{ur_0}{r_0+(u-r_0)e^{-ut}} $$