Back to home Smart Plant Box

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. 1 Water the plant needs Sensors + plant mass → water per watering (ml)
  2. 2 Growth rate Grams gained per day (a differential equation)
  3. 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.

1

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).

V= [a×(g−h)×s] + [(1−a)×k×c×m×F2]
Part 1: from the sensor

(g − h) is the moisture still missing; times the soil volume s, it is the water needed to bring the soil up to target.

Part 2: from the plant

k × c × m × F is the water the plant uses in a day; divided by 2 because it is watered twice a day.

a is the weight of trust

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.

2

How fast the plant grows

The logistic differential equation: when the plant weighs m grams, how many grams a day it is gaining.

dmdt= r·m·(1−mK)
r · m — the bigger, the faster

While the plant is small (m much less than K) the bracket is almost 1, so growth is exponential.

(1 − m/K) — the brake

As m gets close to K the bracket heads to 0, so growth slows and stops when the plant is fully grown.

Fastest at m = K/2

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

—

3

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.

m(t)= K1+e−(rt+C)
Finding C from the starting mass

Put t = 0: m₀ = K / (1 + e^−C), which rearranges to C = ln( m₀ / (K − m₀) ).

Inflection point t* = −C / r

When rt + C = 0 the bottom equals 2, so m = K/2 — exactly where formula 2 says growth is fastest.

The slope of the curve = formula 2

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
    1. Start from formula 2 and separate the variables — m on one side, t on the other.

      dmm(1−mK)=rdt
    2. Split into partial fractions (add them back together to check: you get K / m(K − m)).

      1m(1−mK)=1m+1K−m
    3. Integrate both sides; the constant of integration is C.

      lnm−ln(K−m)=rt+C ⇒mK−m=ert+C
    4. Solve for m, then divide top and bottom by e^(rt + C) — that is formula 3.

      m=Kert+C1+ert+C=K1+e−(rt+C)

    What every symbol means

    SymbolMeaningUnitFormula
    VWater the plant needs per wateringml1
    aSensor reliability0 – 11
    gTarget soil moisture%1
    hCurrent soil moisture%1
    sSoil volume in the potm³1
    kPlant water-need constantml/g/day1
    cPlant-age multiplier—1
    mPlant massgrams (g)1, 2, 3
    FTemperature multiplier—1
    dm/dtRate of change of plant massg/day2
    rInitial relative growth rateper day2, 3
    KPlant mass when fully growngrams (g)2, 3
    m(t)Plant mass at time t (any time)grams (g)3
    tTimedays3
    eEuler's number ≈ 2.71828—3
    CConstant of integration (found from the starting mass)—3

    The starting values in the calculators are examples for demonstration, not measurements of a particular plant.