Modeling Caffeine Metabolism - mathematical note
I wanted to make a quick mathematical note on the long term behavior of our caffeine metabolism function. In the previous post, we came up with the expressions
as the exponential decay for a single dose of milligrams at time .
for the behavior at time for a dose of mg delivered every hours, where .
In this post, we’ll look at the long term behavior using two similar approaches. The quantity we are most interested in is the amount of active caffeine that is always present regardless of where the person is along the dosing cycle, i.e. the lowest point along the exponential curve (just before the spike up).
Approach 1 - Infinite Series
We know that just before (just before the spike), we have that the amount is given by . Similarly, just before , we have that the amount is given by . Generalizing to , we have the amount given by the infinite series
where we have summed the infinite series. This expression gives us the desired quantity.
Approach 2 - Extending Finite Series
We are interested in the behavior at times just before a new dose. We can represent these times as where is a positive integer and . We use so that we are working just before the new dose, occurring at .
We can also calculate .
We can substitute into our formula for .
Now we consider the limit we are working in–unbounded and small . As , and as , . Accordingly, we have this expression approaching as found previously.
Through two slightly different approaches, we were able to determine the long term behavior of the function. For very large , we have that the function spikes up to
at
and decays down to
just before .