DevonAkins.com
Menu

Learning notes

Computational psychopharmacology

How does the timescale of elimination change a concentration curve?

Start with first-order decay in one idealized compartment. Moving from concentration to response requires another model, observations and evidence.

One compartment, one curve

Assume instantaneous mixing, no additional input and a constant elimination rate. Relative concentration follows C(t)/C(0) = 2−t/h, where h is the half-life in arbitrary time units. At t = h, one half remains.

1004 time units
Relative concentration · idealized first-order elimination
Check the integral numerically

The area under this normalized curve over four time units is h(1 − 2−4/h)/ln 2 = 1.35253 time units. Divide that interval into equal bins and evaluate each rectangle at its midpoint. Change the half-life above to compare results.

Midpoint integration for h = 1
BinsAreaAbsolute error
41.325830.02670
81.345780.00675
161.350840.00169
321.352100.00042

Read the calculation in source

With h = 1, 6.25% remains after four units. This teaching model uses no patient data and predicts neither dose nor clinical response.

Background reading · StatPearls, Pharmacokinetics

Pharmacokinetics · StatPearls

Assumption

Starting point

One well-mixed compartment with constant fractional elimination.

Evidence & limitations

What can be checked

The plotted curve is an analytical solution. It cannot describe absorption, multiple compartments or a person's response.

Next milestone

Planned work

Compare the analytical solution with a forward-Euler approximation and report error as the step size changes.

All research programs