Derivatives and integrals for pharmacy: variation, accumulation and approximations — Session 5: Simple differential equations, Euler's method, units and synthesis
ULSTEP Vila Nova · Faculty 1 Health · Module P04.4 · S5/5 · Academic content, clinical validation required before dissemination
Objectives, pathways, method and evaluation: how to progress at your own pace.
1
Objectifs de la séance
Objective 1: Verify that a function is a solution of Q′ = −kQ by differentiating it and checking Q(0), on at least 2 given candidates, without forgetting the initial condition
Objective 2: Calculate 2 Euler steps for Q0 = 8 ua, k = 0.5 h⁻¹, Δt = 1 h (4 then 2 ua) and give its relative error at 2 h (32.0% for an exact value of 2.9430 ua)
Objective 3: Predict with the product kΔt whether the approximation remains positive (0 ≤ kΔt ≤ 1) and distinguish this threshold from that of stability (kΔt ≤ 2), over 5 values of kΔt
Objective 4: Convert k from h⁻¹ to min⁻¹ (0.5 h⁻¹ → 0.008333 min⁻¹) and check that kΔt is unchanged, with the unit of each result
Objective 5: Write a methodology note of 5 lines that declares model, assumptions, fictitious data, step and limits for a small documentary project
2
Parcours d'apprentissage
Part 1 — Situate and diagnose: from the law of variation to the differential equation (Entry test and real case: a differential model of infection and immunity in Príncipe (survey of 2005); Q′ = −kQ: the decay equation and its exponential solution; Why approximate: equations without formula and data in table form)
Part 2 — Understand and practise: from Euler to units (Euler's method: following the tangent; Error, positivity and stability: the role of kΔt; Differentiate an interpolation and change units)
Part 3 — Apply, verify, synthesise (Guided activity: Euler, positivity and units; Two case studies: a chain of two stages and a fictitious documentary project; Summary sheet and review of the five sessions)
3
Méthode conseillée
Start with the entry test: it situates your knowledge, it is not marked.
Alternate listening and practice: pause at guided activities and search before reading the solution.
Choose the display mode of the player (visual, karaoke, silent, audio only) depending on your situation.
Note new words in the trilingual glossary FR/PT/EN.
4
Évaluation et durée
Self-assessment: success criteria to tick honestly.
Final self-test: 10 justified questions.
Indicative duration: approximately 1 hour 30 minutes (listening, activities and self-tests).
Academic content, without clinical advice or dosage: clinical validation required before dissemination.
Milestones: from differential calculus to numerical resolution
Timeline
Six dated reference points, read from the biography of mathematicians and in an open article.
1684
Leibniz publishes the details of his differential calculus in Nova Methodus (Acta Eruditorum)
Notation d and rules of differentiation of powers, products and quotients, without proofs
1686
First printed appearance of the integral sign in an article by Leibniz on integral calculus
Acta Eruditorum, 1686
1768
Euler publishes the Institutiones calculi integralis (1768-1770)
The online encyclopaedia attributes the numerical method bearing his name to him; original text not read: to be verified
1821
Cauchy publishes his Cours d'analyse for students of the École polytechnique
Develop the basic theorems of calculus as rigorously as possible
1900
Wilhelm Kutta obtains his doctorate from Munich; the thesis, published in 1901, contains the Runge-Kutta method
Method for numerical solution of ordinary differential equations
2014
Publication of a differential model of infection and immunity parameterised with the 2005 survey in Príncipe
PLoS One 9(2), 10 February 2014; equations solved numerically
Part 1 sur 3
1
Situate and diagnose: from the law of variation to the differential equation
Entry test and real case: a differential model of infection and immunity in Príncipe (2005 survey)
Q′ = −kQ: the equation of decay and its exponential solution
Why approximate: equations without formula and data in tabular form
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · Session 5 · Derivatives and integrals for pharmacy: variation…
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Entry test and real case: a differential model of infection and immunity in Príncipe (2005 survey)8 / 35
Definition
Vocabulaire
Course term
Entry test — Prerequisites for the session
Differential equation: a relationship between an unknown function and its derivative (definition from the course); differential comes from the Latin differentia, difference
Five questions to assess your knowledge of differentiation, exponentials and time units before tackling differential equations. This test is not marked. All values are fictitious, in arbitrary units (au).
Source : Cho S., Yoon Y.-R., « Understanding the pharmacokinetics of prodrug and metabolite », Translational and Clinical Pharmacology 26(1):1-5, 16 mars 2018, doi:10.12793/tcp.2018.26.1.1, accès libre (autorisation CC BY-NC 3.0) — texte intégral LU le 15/11/2026 via Europe PMC (PMC6989223) : équations dA/dt = −k₁A, A = A(0) e^(−k₁t), système de deux étapes avec A + B + C = A(0), demi-vies ln 2 / k, unités arbitraires
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Entry test and real case: a differential model of infection and immunity in Príncipe (2005 survey)9 / 35
Real case from São Tomé and Príncipe — A differential model of infection and immunity in Príncipe
Key concept
From the 2005 survey to simulations: the modelling chain read
1
2005 survey
535 samples, island of Príncipe
→
2
SIS framework
Infection, recovery, reinfection
→
3
Parameters
Transmission and recovery estimated
→
4
Resolution
ODEs resolved numerically by computer
→
5
Scenarios
Results to be read with their assumptions
Fig. 1
Source : Bandeiras C., Trovoada M.J., Gonçalves L.A., Marinho C.R.F., Turner L., Hviid L., Penha-Gonçalves C., Gomes M.G.M., « Modeling Malaria Infection and Immunity against Variant Surface Antigens in Príncipe Island, West Africa », PLoS One 9(2):e88110, publié le 10 février 2014, doi:10.1371/journal.pone.0088110, accès libre (autorisation CC BY 4.0) — texte intégral LU le 15/11/2026 via Europe PMC (PMC3919732) : enquête de 2005 (535 échantillons, prévalence totale 30,28 % soit 162/535) ; cadre SIS ; modèles implémentés comme EDO et résolus numériquement (paquet R) ; système d'équations aux dérivées partielles résolu dans un logiciel de calcul
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Entry test and real case: a differential model of infection and immunity in Príncipe (2005 survey)10 / 35
Key points — A real case to begin
Key takeaways
Key takeaways
Dated case from São Tomé and Príncipe: 2005 survey, 2014 article (Príncipe)
535 samples; overall prevalence of 30.28 % (162/535) in the article
The model is written in differential equations and resolved numerically by computer
Precise numerical method of the software not indicated in the article: to be verified
Mathematical reading only; no clinical conclusion
Source : Bandeiras C., Trovoada M.J., Gonçalves L.A., Marinho C.R.F., Turner L., Hviid L., Penha-Gonçalves C., Gomes M.G.M., « Modeling Malaria Infection and Immunity against Variant Surface Antigens in Príncipe Island, West Africa », PLoS One 9(2):e88110, publié le 10 février 2014, doi:10.1371/journal.pone.0088110, accès libre (autorisation CC BY 4.0) — texte intégral LU le 15/11/2026 via Europe PMC (PMC3919732) : enquête de 2005 (535 échantillons, prévalence totale 30,28 % soit 162/535) ; cadre SIS ; modèles implémentés comme EDO et résolus numériquement (paquet R) ; système d'équations aux dérivées partielles résolu dans un logiciel de calcul
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Q′ = −kQ: the equation of decay and its exponential solution11 / 35
Q′ = −kQ: the equation of decay and its exponential solution
Key concept
To verify that a function is a solution: four steps
1
Propose
Q(t) = Q0 e^(−kt)
→
2
Derive
Chain rule: Q′ = −k Q0 e^(−kt)
→
3
Compare
Q′ = −kQ: the two sides coincide
→
4
Condition
Q(0) = Q0: fixes the constant
Fig. 2
Source : Cho S., Yoon Y.-R., « Understanding the pharmacokinetics of prodrug and metabolite », Translational and Clinical Pharmacology 26(1):1-5, 16 mars 2018, doi:10.12793/tcp.2018.26.1.1, accès libre (autorisation CC BY-NC 3.0) — texte intégral LU le 15/11/2026 via Europe PMC (PMC6989223) : équations dA/dt = −k₁A, A = A(0) e^(−k₁t), système de deux étapes avec A + B + C = A(0), demi-vies ln 2 / k, unités arbitraires
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Q′ = −kQ: the equation of decay and its exponential solution12 / 35
Solving an equation does not prove that it describes a real phenomenon
Source : Cho S., Yoon Y.-R., « Understanding the pharmacokinetics of prodrug and metabolite », Translational and Clinical Pharmacology 26(1):1-5, 16 mars 2018, doi:10.12793/tcp.2018.26.1.1, accès libre (autorisation CC BY-NC 3.0) — texte intégral LU le 15/11/2026 via Europe PMC (PMC6989223) : équations dA/dt = −k₁A, A = A(0) e^(−k₁t), système de deux étapes avec A + B + C = A(0), demi-vies ln 2 / k, unités arbitraires
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Why approximate: equations without formula and data in tabular form13 / 35
Why approximate: equations without formula and data in tabular form
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S51.Situate and diagnose: from the law of variation to the differential equation›Why approximate: equations without formula and data in tabular form14 / 35
Key point — Why approximate
Key takeaways
Key takeaways
Most first-order equations have no solution in formula form (Dawkins)
Numerical methods advance step by step; Euler provides the simplest one
Three cases: equation without formula, coupled system, tabulated data
State how one approximates, bound the error, do not present the approximation as a measurement
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S52.Understand and practise: from Euler to units›Error, positivity and stability: the role of kΔt18 / 35
Measuring error: effect of step size
Key concept
Effect of step on error at 2 h (fictitious values)
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S52.Understand and practise: from Euler to units›Error, positivity and stability: the role of kΔt19 / 35
Positivity and stability: the product k Δt decides
Key concept
Three zones of the product k Δt for Q′ = −kQ
✅
0 ≤ kΔt ≤ 1
Factor between 1 and 0: positive and decreasing, like the exact solution
⚠️
1 < kΔt ≤ 2
Negative factor: alternating signs but non-increasing amplitude; result to be rejected physically
⛔
kΔt > 2
Factor less than −1: the amplitude grows; numerical instability
Fig. 6
Source : « Euler method », Wikipédia anglais (source ouverte non évaluée par des pairs, utilisée en APPOINT et signalée) — page LUE le 15/11/2026 : méthode nommée d'après Euler (Institutionum calculi integralis, 1768-1770), ordre un, erreur locale ∝ h², exemple de stabilité y′ = −2,3 y (h = 1 instable ; h = 0,7 décroît)
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S52.Understand and practise: from Euler to units›Error, positivity and stability: the role of kΔt20 / 35
Key points — Error, positivity, stability
Key takeaways
Key takeaways
Relative error = |exact − approximate| / exact × 100 ; dividing the step decreases the error (≈ proportional to the step)
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S52.Understand and practise: from Euler to units›Derive an interpolation and change units22 / 35
Change units: from hours to minutes without making a factor of 60 error
Key concept
Converting a rate constant and a step: five steps
1
Write
k en h⁻¹, Δt en h
→
2
Convert k
÷ 60: 0.5 h⁻¹ → 0.008333 min⁻¹
→
3
Convert Δt
× 60: 1 h → 60 min
→
4
Check
kΔt unchanged (0.5)
→
5
Announce
Write the unit of each result
Fig. 8
Source : NIST (National Institute of Standards and Technology), « NIST Guide to the SI, Chapter 5 : Units Outside the SI », tableau 6 — page LUE le 15/11/2026 : 1 min = 60 s ; 1 h = 60 min = 3600 s ; unités acceptées avec le SI
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S52.Understand and practise: from Euler to units›Derive an interpolation and change units23 / 35
To remember — Interpolation and units
Key takeaways
Key takeaways
A piecewise linear interpolation is continuous, its derivative generally discontinuous (Wikipedia, as supplementary material)
At the nodes: corner; choose and declare a slope rule
The area (trapezoids) remains well defined: 13.5 ua·h/L for the fictitious example
1 h = 60 min = 3600 s (NIST); k in h⁻¹ is divided by 60 to convert to min⁻¹
kΔt is dimensionless and does not change with the chosen unit
Sources : « Linear interpolation », Wikipédia anglais (source ouverte non évaluée par des pairs, utilisée en APPOINT et signalée) — page LUE le 15/11/2026 : interpolation linéaire par morceaux, courbe continue à dérivée en général discontinue (classe C0) · NIST (National Institute of Standards and Technology), « NIST Guide to the SI, Chapter 5 : Units Outside the SI », tableau 6 — page LUE le 15/11/2026 : 1 min = 60 s ; 1 h = 60 min = 3600 s ; unités acceptées avec le SI
Part 3 sur 3
3
Apply, verify, synthesise
Guided activity: Euler, positivity and units
Two case studies: a chain of two steps and a fictional documentary project
Summary sheet and assessment of the five sessions
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · Session 5 · Derivatives and integrals for pharmacy: variation…
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S53.Apply, verify, synthesise›Two case studies: a chain of two steps and a fictional documentary project27 / 35
Case Study 1 — A two-step chain A → B → C (structure read, fictitious values)
Cas concret
Structure read (Cho and Yoon, 2018): dA/dt = −k₁A; dB/dt = k₁A − k₂B; dC/dt = k₂B; A + B + C = A(0) at every instant.
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S53.Apply, verify, synthesise›Two case studies: a chain of two steps and a fictional documentary project28 / 35
Case Study 2 — Fictitious Santomean documentary project: table, rates, area and method note
Cas concret
Entirely fictitious context (methodology workshop in São Tomé; no trial, no patient, no real institution). Data in ua/L.
Fictitious table: t = 0; 1; 2; 4 h → C = 8.00; 4.85; 2.94; 1.08 ua/L.
Question a: slopes of the three segments, with units (ua/(L·h)).
Question b: estimate k by ln(C(0)/C(2))/2; verify with t = 4 h; express k in min⁻¹.
Question c: area by trapezoids between 0 and 4 h; compare to 16 (1 − e^(−2)) ≈ 13.83 ua·h/L.
Question d: Euler with Δt = 0.5 h up to 4 h; compare to 1.08; write the method note (5 lines).
ULS-DEPOT-SANTE-DERIVEES-INTEGRALES-PHARMACIE-P04-4 · S53.Apply, verify, synthesise›Two case studies: a chain of two steps and a fictional documentary project29 / 35
Key points — The two case studies
Key takeaways
Key takeaways
Case 1: chain A → B → C; kΔt = 0.4 and 0.1; A + B + C = 10 ua conserved at each step
Case 1: Euler gives A(1 h) = 3.6 ua versus 4.4933 ua exact: coarse step
Case 2 (fictitious): slopes −3.15; −1.91; −0.93; k ≈ 0.50 h⁻¹; area 14.34 versus 13.83 ua·h/L
Case 2: Euler Δt = 0.5 h → 0.80 ua at 4 h versus 1.08: not too coarse a step
Fictitious values; structure of case 1 read in the article
I can verify that a function is a solution of Q′ = −kQ by differentiating it and checking Q(0) (solution Q₀ e^(−kt))
I can calculate Euler steps for Q′ = −kQ (Q₀ = 8 ua, k = 0.5 h⁻¹, Δt = 1 h: 4 then 2 ua) and give the relative error (32.0 % at 2 h)
I can predict from kΔt whether the approximation remains positive (0 ≤ kΔt ≤ 1) and distinguish positivity from stability (kΔt ≤ 2)
I can convert k from h⁻¹ to min⁻¹ (÷ 60: 0.5 h⁻¹ → 0.008333 min⁻¹) and check that kΔt is unchanged
I can write a method note of 5 lines (model, hypotheses, fictitious data, method and step, limitations)
Format attendu : Short answers with calculations, units and one concluding sentence per question; short corrected exercise: Q₀ = 10 ua, k = 0.2 h⁻¹, Δt = 2 h (fictitious values) Deposit: Personal self-assessment: no compulsory submission Weighting: Not graded: self-assessment tool
Numbered references [S#], with nature, access and slides where they are cited.
Réf.
Nature
Référence
Accès
Citée en diapo
[S1]
Academic
Cho S., Yoon Y.-R., "Understanding the pharmacokinetics of prodrug and metabolite", Translational and Clinical Pharmacology 26(1):1-5, 16 March 2018, doi:10.12793/tcp.2018.26.1.1, open access (CC BY-NC 3.0 licence) — full text…
« Euler method », English Wikipedia (open source not peer-reviewed, used as SUPPLEMENTARY and noted) — page READ on 15/11/2026 : method named after Euler (Institutionum calculi integralis, 1768-1770), first order, local error ∝…
O'Connor J.J., Robertson E.F., « Leonhard Euler (1707-1783) », MacTutor History of Mathematics, University of St Andrews — page READ on 15/11/2026 : Institutiones calculi integralis (1768-70) ; « a method of approximating…
« Linear interpolation », English Wikipedia (open source not peer-reviewed, used as SUPPLEMENTARY and noted) — page READ on 15/11/2026 : piecewise linear interpolation, continuous curve with generally discontinuous derivative…
NIST (National Institute of Standards and Technology), « NIST Guide to the SI, Chapter 5 : Units Outside the SI », table 6 — page READ on 15/11/2026 : 1 min = 60 s ; 1 h = 60 min = 3600 s ; units accepted with the SI
Differential equation (FR) / Equação diferencial (PT, to be reviewed) / Differential equation (EN)Relationship between an unknown function and its derivative, here of the time variable only
Initial condition (FR) / Condição inicial (PT, to be reviewed) / Initial condition (EN)Value of the function at the starting time, which fixes the solution among a family
Exact solution (FR) / Solução exata (PT, to be reviewed) / Exact solution (EN)Function that satisfies the equation and the initial condition, written in formula form
Euler method (FR) / Método de Euler (PT, to be reviewed) / Euler method (EN)Numerical method that advances step by step by following the tangent
Step size (FR) / Passo de tempo (PT, to be reviewed) / Step size (EN)Duration Δt of each advance of the numerical method
Relative error (FR) / Erro relativo (PT, to be reviewed) / Relative error (EN)Absolute difference between exact and approximate value, divided by the exact value
Positivity (FR) / Positividade (PT, to be reviewed) / Positivity (EN)Property of remaining non-negative ; for Q′ = −kQ : 0 ≤ kΔt ≤ 1
Numerical stability (FR) / Estabilidade numérica (PT, to be reviewed) / Numerical stability (EN)Property of not seeing the approximate solution grow while the exact solution decreases
Piecewise linear interpolation (FR) / Interpolação linear por partes (PT, to be reviewed) / Piecewise linear interpolation (EN)Broken line connecting the points of a table
Rate constant (FR) / Constante de velocidade (PT, to be reviewed) / Rate constant (EN)Parameter k of Q′ = −kQ, in the inverse of a unit of time
Half-life (FR) / Meia-vida (PT, to be reviewed) / Half-life (EN)Duration ln 2 / k for the quantity to be divided by two in the exponential model
Unit conversion (FR) / Conversão de unidades (PT, to be reviewed) / Unit conversion (EN)Change from one unit to another ; 1 h = 60 min = 3600 s
Arbitrary unit (FR) / Arbitrary unit (PT, to review) / Arbitrary unit (EN)Calculation unit without real measurement value, used in fictional examples
Ten self-corrected questions. Validation threshold: 80 % (8 correct answers out of 10). If your score is lower, re-read the sections indicated in the justifications.
1. For Q′ = −kQ with Q(0) = 8 au and k = 0.5 h⁻¹, what is Q′(0) ?
a. +4 ua/h
b. −4 ua/h
c. −0,5 ua/h
2. Which function is a solution of Q′ = −kQ with Q(0) = Q0 ?
a. Q0 e^(kt)
b. Q0 − kt
c. Q0 e^(−kt)
3. What is the Euler step for Q′ = −kQ ?
a. Q_(n+1) = (1 − kΔt) Q_n
b. Q_(n+1) = (1 + kΔt) Q_n
c. Q_(n+1) = Q_n − k
4. With Q0 = 8 au, k = 0.5 h⁻¹ and Δt = 1 h, what is the Euler value at 2 h ?
a. 4,0 ua
b. 2,0 ua
c. 0 ua
5. What condition ensures that the Euler sequence remains positive for Q′ = −kQ ?
a. kΔt ≥ 2
b. kΔt ≤ 2
c. 0 ≤ kΔt ≤ 1
6. In the source read (Wikipedia, in support), what does the Euler solution of y′ = −2.3 y with h = 1 do ?
a. It oscillates and grows (unstable)
b. It decreases without changing sign
c. It remains constant
7. How to convert k = 0.5 h⁻¹ into min⁻¹ ?
a. × 60, that is 30 min⁻¹
b. Unchanged, 0.5 min⁻¹
c. ÷ 60, that is approximately 0.008333 min⁻¹
8. What can be said about the derivative of a piecewise linear interpolation at an interior node ?
a. It always equals zero
b. In general, it does not exist: different slopes on the left and right
c. It is equal to the arithmetic mean of the ordinates
9. In the fictional chain A → B → C, what is A + B + C after two Euler steps ?
a. 10 au, as at the start
b. 9,6 ua
c. 12 ua
10. What total prevalence of the 2005 survey in Príncipe is indicated in the article read ?
a. 23.93 % (128/535), that of P. falciparum alone
b. 30,28 % (162/535)
c. 63.9 % (535 samples)
For reflection
«
A differential equation gives the local rule; a numerical method follows it step by step; and it is the product of the step by the constant, a dimensionless number, that tells whether the calculation makes sense.