A tired engineer is working late on a project and drinks a coffee containing mg of caffeine at noon. They would like to be able to fall asleep by .
We make the following simplifying assumptions:
- the amount of caffeine in the body decreases at a rate proportional to the amount currently present;
- the proportionality constant remains constant over time;
- no other source of caffeine is consumed;
- caffeine is absorbed instantaneously.
- sleep is assumed not to be significantly affected once the amount of caffeine in the body falls below mg;
- the half-life of caffeine is hours.
Let denote the amount of caffeine, in milligrams, present in the engineer’s body hours after drinking the coffee.
Explain why can be modeled by a differential equation of the form
where .Solve this differential equation and show that
Use the initial condition to determine .
Using the half-life of caffeine, determine the constant .
Determine how long it takes for the amount of caffeine in the body to fall below mg.
At what time does this threshold occur?
The next day, the engineer plans to go to bed at . What is the latest time they could drink the same coffee so that the model predicts less than mg of caffeine remaining at bedtime?
The engineer is still tired and considers having a second identical coffee at . Assuming the effects of the two coffees add together, determine whether the mg threshold will be reached before .
Solutions
1Reveal solutionsAre you sure? Give it a try first.
Let denote the amount of caffeine, in milligrams, present in the engineer’s body hours after drinking the coffee.
Since the rate at which caffeine is eliminated is assumed to be proportional to the amount currently present in the body, we have
where . The negative sign indicates that the amount of caffeine decreases over time.Separating variables gives
Integrating,
where is a constant.
Immediately after drinking the coffee, the engineer has mg of caffeine in their body. Hence
Since
we obtain
ThusThe half-life is hours, so after hours the amount of caffeine has been divided by two:
Therefore
so
Taking logarithms,
and hence
The model is therefore
We want to determine when the amount of caffeine reaches mg:
Thus
Since
we obtain
and thereforeThe coffee was consumed at noon. Ten hours later, the caffeine level reaches mg at
To have at most mg of caffeine remaining by , the engineer must allow at least hours between drinking the coffee and going to bed.
Therefore, the latest possible time to drink the coffee is
Hence,
- Suppose the engineer drinks one coffee at and another identical coffee at .
At , the caffeine remaining from the first coffee is
The second coffee has been in the body for hours, so its contribution is
Thus the total amount of caffeine at is
Numerically,
Therefore,
According to our model, the engineer will not reach the mg threshold before . So perhaps that second coffee was not such a good idea.
