The math inside the box · Mathematics innovation project
The equations the box works out for you
Smart Plant Box doesn't water by guesswork. It uses these three equations to decide how much water to give, and to predict how big the plant will be on any day. Every formula below is live — change the numbers and watch the result.
- 1 Water the plant needs Sensors + plant mass → water per watering (ml)
- 2 Growth rate Grams gained per day (a differential equation)
- 3 Plant mass at any time The solution of equation 2 → mass on day t
Formula 3 gives the plant mass m for each day, and the box feeds that m into formula 1 — so the water grows with the plant.
Water the plant needs per watering (watered twice a day)
Blends two ways of thinking: top the soil up to its target moisture (from the sensor), and the water the plant actually uses (from its size, age and the temperature).
(g − h) is the moisture still missing; times the soil volume s, it is the water needed to bring the soil up to target.
k × c × m × F is the water the plant uses in a day; divided by 2 because it is watered twice a day.
a and (1 − a) always add up to 1, so V is a weighted average. a = 1 trusts the sensor completely; a = 0 uses only the plant model.
Water per watering
—
Units: g and h are entered as % (used as decimals, e.g. 40% = 0.40). s is in m³, and 1 m³ = 1,000,000 ml. k is taken as ml per gram per day.
How fast the plant grows
The logistic differential equation: when the plant weighs m grams, how many grams a day it is gaining.
While the plant is small (m much less than K) the bracket is almost 1, so growth is exponential.
As m gets close to K the bracket heads to 0, so growth slows and stops when the plant is fully grown.
dm/dt = rm − rm²/K. Its derivative in m, r − 2rm/K, is 0 at m = K/2, where the top rate is rK/4.
Rate of change of plant mass
—
Plant mass at any time
The solution of equation 2 is an S-shaped curve: slow at first, fastest in the middle, then levelling off towards K.
Put t = 0: m₀ = K / (1 + e^−C), which rearranges to C = ln( m₀ / (K − m₀) ).
When rt + C = 0 the bottom equals 2, so m = K/2 — exactly where formula 2 says growth is fastest.
The gold line on the chart is the tangent; its slope is exactly the dm/dt that formula 2 gives.
Plant mass on day t
—
Where formula 3 comes from: solving equation 2 step by step
-
Start from formula 2 and separate the variables — m on one side, t on the other.
-
Split into partial fractions (add them back together to check: you get K / m(K − m)).
-
Integrate both sides; the constant of integration is C.
-
Solve for m, then divide top and bottom by e^(rt + C) — that is formula 3.
What every symbol means
| Symbol | Meaning | Unit | Formula |
|---|---|---|---|
| V | Water the plant needs per watering | ml | 1 |
| a | Sensor reliability | 0 – 1 | 1 |
| g | Target soil moisture | % | 1 |
| h | Current soil moisture | % | 1 |
| s | Soil volume in the pot | m³ | 1 |
| k | Plant water-need constant | ml/g/day | 1 |
| c | Plant-age multiplier | — | 1 |
| m | Plant mass | grams (g) | 1, 2, 3 |
| F | Temperature multiplier | — | 1 |
| dm/dt | Rate of change of plant mass | g/day | 2 |
| r | Initial relative growth rate | per day | 2, 3 |
| K | Plant mass when fully grown | grams (g) | 2, 3 |
| m(t) | Plant mass at time t (any time) | grams (g) | 3 |
| t | Time | days | 3 |
| e | Euler's number ≈ 2.71828 | — | 3 |
| C | Constant of integration (found from the starting mass) | — | 3 |
The starting values in the calculators are examples for demonstration, not measurements of a particular plant.