Differential Equations with Exponential Growth and Decay Interactive Widget

One constant k controls both halving and doubling

Whether a population explodes or a substance decays, the mathematics is identical — only the sign of k changes. The same formula ln(2)/k gives you half-life for decay and doubling time for growth. Drag the slider to change k and watch how exponential behaviour unfolds in real-time.

Exponential Solution
k = +0.50
Drag to adjust the rate constant k
Growth: Doubling time = 1.39 units
Rate constant k
−1.00 0.00 +1.00
Current y-value
1.65
Time constant
1.39

To solve dy/dx = ky, separate variables to get dy/y = k dx, then integrate both sides. The left side becomes ln|y| and the right becomes kx + C. Exponentiating both sides gives |y| = e^(kx+C) = e^C · e^(kx). Since e^C is just another constant, we write y = Ae^(kx) where A = ±e^C represents the initial value at x = 0. This is the general solution to all exponential growth and decay problems — one elegant formula capturing everything from bacterial colonies to radioactive atoms.

Know This

The half-life formula t½ = ln(2)/k for decay and the doubling time formula for growth are mathematically identical — both equal ln(2)/|k| — revealing that exponential processes have a characteristic timescale determined entirely by the rate constant.