Solving ODE: Separate x from M-x

  • Thread starter Thread starter John O' Meara
  • Start date Start date
  • Tags Tags
    Ode
John O' Meara
Messages
325
Reaction score
0
The rate of growth of the population x of a country is proportional to the product of x and (M-x), where M is a constant. Assume that x can be regarded as a continuous function of the time t with a continuous derivative at all times and show that if x=M/2 when t=50 then
x=\frac{M}{1+\exp^{-Mk(t-50)}} \\.
My attempt:
\frac{dx}{dt} \propto x(M-x) Therefore
\int\frac{1}{x(M-x)}dx = k\int dt Solving the first integral, using partial fractions, we get:
\int \frac{1}{x(M-x)} dx = \frac{-1}{M} \int \frac{1}{x} dx + \frac{1}{M} \int \frac{1}{m-x} dx \\
Solving the 2nd integral on the l.h.s., let u=M-x => -du=dx, therefore \int \frac{1}{x(M-x)} dx = \frac{-1}{M} \ln{x} + \frac{-1}{M} \int \frac{1}{u}du \\ =-1/M(ln(x) + ln(m-x)) = -1/M*ln(x(M-x)) = k\int dt.
Therefore ln(x(M-x)) = -M*k*t - M*c. => x(M-x) = \exp{-M(kt+c)}.
As you can see x is not separated, but I cannot find the mistake/s that gave rise to this. Thanks for helping.
 
Last edited:
Physics news on Phys.org
Recheck the integration by partial fractions.
 
I now get x/(M-x) =\exp{-M(kt+c)
 
What you wrote as

\int \frac{1}{x(M-x)} dx = \frac{-1}{M} \int \frac{1}{x} dx + \frac{1}{M} \int\frac{1}{m-x} dx \\

should have been...

\int \frac{1}{x(M-x)} dx = \frac{1}{M} \int \frac{1}{x} dx + \frac{1}{M} \int \frac{1}{M-x} dx \\

i.e.No minus signs.After integrating, it should read,

\frac{1}{M}\left[\ln{x} - \ln{\left(M-x\right)}\right] = k\int{dt}
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top