http://mathworld.wolfram.com/PopulationGrowth.html
Solve the differential equation for exponential growth.
You get the result as
P(t) = Cekt, where
P is the population and
t is in years.
Your unknowns are
C and
k, but you can find them given your initial data.
P(1959) = 3,000,000,000 = Ce
1959k
P(1999) = 6,000,000,000 = Ce
1999k
Using the fact that the population should double every 40 years:
• Ce
1999k = 2 Ce
1959k
• e
1999k = 2 e
1959k
• ln(e
1999k) = ln(2 e
1959k)
• 1999k = ln(2) + 1959k
• 1999k - 1959k = ln(2)
• 40k = ln(2)
•
k = ln(2) / 40
Plugging back in
k to one of the equations:
• 3,000,000,000 = Ce
1959( ln(2) / 40 )
•
C = 3,000,000,000 / e48.975 ln(2)
(you can simplify this yourself, if you wish)
Now, plug
k and
C back into your equation,
P(t) = Cekt
~ (5.42222... × 10e-6) * exp(t * ln(2) / 40 )
_____________________________________
Edit: So now that you have the equation, but you need to find time, isolate the t.
P(t) = Ce
kt
ln(P(t)) = ln(C) + kt
ln(P(t)) - ln(C)= kt
(ln(P(t)) - ln(C)) / k = t
(ln(6,000,000) - ln(C)) / k = t
(In real life, this would actually be a logistic equation, since the world has a carrying capacity, but we'll ignore that.)