
14 1. ODEs—An Introduction
1.3 Some Model Problems
One of our strategies in assessing numerical methods is to apply them to very
simple problems to gain understanding of their behaviour and then attempt to
translate this understanding to more realistic scenarios.
Examples of simple model ODEs are:
1. x
0
(t) = λx(t), x(0) = 1, λ ∈ <; usually λ < 0 so that x(t) → 0 as t → ∞.
2. x
0
(t) = ix(t), x(0) = 1 (i =
√
−1) modelling oscillatory motion (see Exer-
cise 1.6).
3. x
0
(t) = −100x(t) + 100e
−t
, x(0) = 2. The exact solution is x(t) = e
−t
+
e
−100t
, which combines two decaying terms, one of which is very rapid and
one that decays more slowly. Hence, there are two distinct time scales in
this solution.
4
4. x
0
(t) = 1, x(0) = 0.
5. x
0
(t) = 0, x(0) = 0.
The last two, in particular, are trivial, but of course, a numerical method, if
it is to be useful, must work well on such simple examples—if methods cannot
reproduce the solutions to these problems then they are deemed to be un-
suitable for solving any IVPs. Through use of simple ODEs we can highlight
deficiencies; and the simpler the ODE, the simpler the analysis is.
Example 1.9 (A Cooling Cup of Coffee)
Although linear ODEs such as 1–5 above are useful for testing numerical meth-
ods, they may also arise as mathematical models. For example, suppose that
a cup of boiling coffee is prepared at time t = 0 and cools according to New-
ton’s law of cooling: the rate of change of te mperature is prop ortional to the
difference in temperature between the coff ee and the surrounding room (see,
for instance, Chapter 12 of Fulford et al. [20]). Suppose that u(t) represents
the coffee temperature (in degrees Celsius) after t hours. This leads to the
differential equation
u
0
(t) = −α(u(t) − v),
where α is known as the rate constant (which will be taken to be α = 8
◦
C h
−1
)
and v represents room temperature. We consider a number of scenarios (see Fig-
ure 1.9).
4
Recall that the function A e
−λt
(λ ∈ R) decays to half its initial value (A at
t = 0) in a time t = (log 2)/λ ≈ 0.7/λ, commonly referred to as its half-life. The
larger the rate constant λ is, the more quickly it decays.