Stellar Grove · Concrete Mathematical Modelling
Dosing a drug on a schedule
How big a dose, how often, to keep a drug between its effective and toxic levels?
Chapter 1 · Growth and decay: dynamical systems. A worked example rebuilt from the chapter's topic in Mike Mesterton-Gibbons, *A Concrete Approach to Mathematical Modelling*; the scenario and numbers are our own illustration, not the book's text.
Headline: For a drug with a 6-hour half-life and a window of 10–25 mg/L, doses can be at most 7.9 hours apart. On a 6-hourly schedule a dose of 12.5 mg/L settles at 12.5–25.0 mg/L, and a loading dose gets there from the first dose.
- 7.9 hlongest safe interval: ln(c_max / c_min) ÷ k
- 12.5 mg/Ldose every 6 hours (steady peak exactly 25 mg/L)
- 4 dosesto reach 90% of the steady state without a loading dose
The problem
A drug is effective above 10 mg/L in the blood and toxic above 25 mg/L. The body clears it at a rate proportional to the amount present, with a half-life of 6 hours. Each dose raises the concentration at once by the dose size . What schedule keeps the patient inside the window?
The model
Between doses the concentration decays exponentially, with . Just after the -th dose, each earlier dose has decayed by another factor , so the peaks form a geometric series:
As the cycle settles between a steady peak and trough:
At steady state each dose lifts the trough to the peak, so . Fitting the cycle exactly into the window gives the longest interval and its dose:
Here per hour, so hours with mg/L. A 6-hour schedule is easier to follow; its largest safe dose is mg/L.
Try it
Dosing schedule explorer
Drag the sliders; hover the chart to read values.
Key findings
- The longest safe interval depends only on the width of the window and the half-life: hours. A narrow window forces frequent doses.
- Without a loading dose the trough first reaches 10 mg/L only after dose 3; it takes 4 doses (18 hours) to reach 90% of the steady peak, whatever the dose size.
- A first dose of mg/L (an extra 12.5 mg/L) puts the patient at steady state immediately.
from books.concrete_mathematics import growth as g
k = g.rate_from_half_life(6.0)
dose, interval = g.dosing_regimen(k, c_min=10.0, c_max=25.0)
print(f"dose {dose:.1f} mg/L every {interval:.2f} h")
print([round(c, 1) for c in g.steady_peak_trough(12.5000, k, tau=6)])
print(g.doses_to_reach(12.5000, k, tau=6, fraction=0.9))
# → dose 15.0 mg/L every 7.93 h
# → [25.0, 12.5]
# → 4
Assumptions and extensions
- Instant absorption and one well-mixed compartment. Oral doses are absorbed over time (a two-compartment model with an absorption rate smooths the peaks).
- First-order elimination. Some drugs (alcohol, phenytoin at high doses) saturate the liver and clear at a constant rate instead, so concentrations can build up without limit.
- Patients vary. Half-lives differ several-fold between people; Chapter 8's tools (
estimation.propagate) show how that uncertainty spreads to the peak.