Stellar Grove · Research

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.

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 D. What schedule keeps the patient inside the window?

The model

Between doses the concentration decays exponentially, c′=−kc with k=ln2/t1/2. Just after the n-th dose, each earlier dose has decayed by another factor a=e−kτ, so the peaks form a geometric series:

cn+=D(1+a+a2+⋯+an−1)=D1−an1−a

As n→∞ the cycle settles between a steady peak and trough:

cpeak=D1−e−kτ,ctrough=cpeake−kτ

At steady state each dose lifts the trough to the peak, so D=cpeak−ctrough. Fitting the cycle exactly into the window gives the longest interval and its dose:

τmax=1klncmaxcmin,D=cmax−cmin

Here k=0.1155 per hour, so τmax=7.93 hours with D=15 mg/L. A 6-hour schedule is easier to follow; its largest safe dose is D=cmax(1−e−kτ)=12.50 mg/L.

Without a loading dose the patient is under-treated for the first doses; with one, the level starts in the window
Without a loading dose the patient is under-treated for the first doses; with one, the level starts in the window

Try it

Dosing schedule explorer

Drag the sliders; hover the chart to read values.

Key findings

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