Updated · By Pete Bromfield, former Head of Maths with IB examining experience

IA idea · Differential equations & dynamics

Does caffeine build up if you drink coffee every few hours?

AA SLAA HLAI SLAI HL Solid Also in: Health & biology, Pure maths

Research question

With a first-order elimination model, what steady-state caffeine level is reached with regular doses, and how does the answer depend on half-life and dosing interval?

Make it yours, then agree it with your teacher.

Next step: plan this IA free — the planner opens with this question filled in. For feedback on your own draft, the IA package (€39 once) gives you 5 AI feedback credits and every annotated exemplar in full.

Why it makes a good exploration

Pharmacologists design dosing schedules with this model. It combines exponential decay with a geometric series that has a clean limit — and it is about something many students (and teachers) do every day.

The mathematics you'll need

  • Exponential decay and half-life
  • Geometric series and the sum to infinity for the steady state
  • Piecewise (sawtooth) functions
  • HL: the DE dC/dt = −kC between doses

Where the data comes from

Use published caffeine contents of drinks and a published range of caffeine half-lives (roughly 3–7 hours in healthy adults) and cite them.

A possible outline

  1. Derive concentration after one dose.
  2. Add doses and show the peaks form a geometric series.
  3. Find the steady-state peak and trough.
  4. Vary half-life and interval; find schedules that stay below a chosen level.
  5. Reflect on individual variation and absorption time.

Pitfalls that cost marks

  • Treating the half-life as fixed for everyone.
  • Ignoring absorption (instant-dose assumption).
  • Giving medical advice — keep it to the mathematics.

Showing personal engagement

  • Model a typical day of your own or a family member's drinks.
  • Compare coffee, tea and energy drinks.
  • Explain why a late coffee affects sleep using your model.

See Criterion C: personal engagement for what examiners look for.

Which course is it for?

CourseFitMaths to lean on
AA SLGood fitExponential decay and half-life; Geometric series and the sum to infinity for the steady state
AA HLGood fitExponential decay and half-life; Geometric series and the sum to infinity for the steady state
AI SLGood fitExponential decay and half-life; Geometric series and the sum to infinity for the steady state
AI HLGood fitExponential decay and half-life; Geometric series and the sum to infinity for the steady state

Level: Solid. Needs some independent work beyond class examples. See how the IA differs between AA and AI, SL and HL.

How this idea reaches the top bands

Reflection (D)

For this idea, start with the weak points: treating the half-life as fixed for everyone; and ignoring absorption (instant-dose assumption). Say how each one affects your answer.

Use of mathematics (E)

SL: exponential decay and half-life; geometric series and the sum to infinity for the steady state; piecewise (sawtooth) functions, each explained in your own words and carried out correctly.

HL adds: the DE dC/dt = −kC between doses, each explained in your own words and carried out correctly.

How differential equations explorations reach the top bands in general: Differential equations & dynamics IA ideas. Guides: A · B · C · D · E · self-grade sheet.

Taking it further

Add an absorption phase (a two-compartment model) and compare peak timing with published data.

Extending it for HL

This idea already has HL mathematics in it: the DE dC/dt = −kC between doses. Make that the centre of the exploration and use it with full rigour.

Frequently asked questions

Which IB Maths course is this IA idea for?

It works for AA SL, AA HL, AI SL and AI HL. We rate it Solid: it needs some independent work beyond class examples.

What mathematics does this IA use?

Exponential decay and half-life, geometric series and the sum to infinity for the steady state, piecewise (sawtooth) functions and hL: the DE dC/dt = −kC between doses.

Where can I get data for this IA?

Use published caffeine contents of drinks and a published range of caffeine half-lives (roughly 3–7 hours in healthy adults) and cite them. Checked sources and tools: Desmos graphing calculator.

Turn this idea into your IA

The planner opens with “Does caffeine build up if you drink coffee every few hours?” filled in: the question, the maths and the data sources.

Plan this IA free

Your plan is kept in this browser. A free account keeps it with your drafts on any device: Join free · Sign in

Also: free IA self-check · A–E checklist (PDF) · have a draft? AI feedback or a review with Pete (€100)

Writing it up: how to write a Maths IA, step by step · structure and format · mistakes that cost marks · IA modelling, step by step

Similar ideas

All differential equations ideas · AA SL ideas · AA HL ideas · AI SL ideas · AI HL ideas · All 239 IA ideas