1. Introduction
1.1
Mathematical modelling
Mathematical modelling is a three-step process aimed at solving problems found in Nature. The
first step amounts to identifying a problem of Physics, Chemistry, Biology, Engineering, Social
Sciences, etc., idealising its elements and figuring out a sketch of it. With the help of this sketch
a mathematical formulation arises so that this problem is translated into a mathematical problem.
This is referred to as a mathematical model of the problem. Let us walk through a few examples.
Example 1.1 — Radioactive decay. Consider a radioactive sample of size (mass, volume,
number of atoms. . . ) M. The probability that a radioactive atom of the sample disintegrates at
any time does not depend on time (is a constant). Let us call λ the probability that one such
disintegration occurs per unit time. Then, in a small time interval dt, the number of atoms that
undergo a radioactive disintegration is proportional to λ M dt. Actually, the mass of the sample
decreases within dt by an amount dM = −λ M dt. This equation can alternatively be written
dM
= −λ M,
(1.1)
dt
which is the decay law of a radioactive sample.
Example 1.2 — Elastic spring: Hooke’s law. The force of a spring is proportional to its
deformation. Accordingly, the movement of a mass m attached to a spring whose length at rest is
negligible, is given by Newton’s second law as
d2x
= −kx,
dt 2
where k is the restoration spring constant.
m
(1.2)
Example 1.3 — RLC circuit. Consider the circuit in figure 1.1. A time-varying electromotive
force E(t) generates a current which sequentially goes through a resistance R, an inductance L and
a capacitance C. Let q(t) be the charge of the capacitor at time t. Then the intensity going through
the circuit will be
dq
i= .
(1.3)
dt
Chapter 1. Introduction
10
Figure 1.1: Sketch of an RLC circuit.
Thus, according to Kirchhoff’s laws, the equation satisfied by these magnitudes will be
L
dq 1
d2q
+ R + q = E(t).
2
dt
dt C
(1.4)
Example 1.4 — Epidemic spreading: the SIR model.
Suppose that a pathogen agent (say,
SARS-COV-2 coronavirus) spreads on a population. Individuals in this population can be divided up
into three groups: susceptible (S), or healthy individuals who can become infected by the pathogen;
infected (I), or individuals who currently have the disease; and removed (R), or individuals who
have completed the infection cycle and are either recovered—and forever immunised—or death.
Suppose that there is an infectious rate (probability that a healthy individual gets infected per unit
time) β , which takes into account both the frequency of contacts between people and the probability
that in a meeting of a susceptible individual and an infected one the former becomes infected. If
the total population is N = S + I + R—and hence the probability of such a contact is SI/N—then
speed at which susceptible individuals get infected is
dS
SI
= −β .
dt
N
All these newly infected individuals increase the population I, which in turn decreases because
eventually, infected individuals either recover from the disease or die. If µ is the removal rate, i.e.,
the probability per unit time that an infected individual undergoes one of these two changes of state,
then the speed of change of infected individuals is
dI
SI
= β − µI.
dt
N
Figure 1.2: Typical evolution of the SIR model for epidemics.
1.2 Differential equations and their solutions
11
And of course, the speed of change of removed individuals must be
dR
= µI.
dt
This is the famous SIR model for epidemic spreading of which we heard so much about during the
COVID-19 pandemic.
In all the examples above we have started from a given real problem and, with the help of
an idealisation, we have ended up with a set of variables and functions, as well as one (or a few)
equation(s) relating them. The kind of equations we have found are differential equations. They are
the way in which often mathematical models are described—hence their importance.
The second step of mathematical modelling amounts to solving the mathematical model. The
tools employed depend on the nature of the mathematical problem posed by this model. The goal of
this course will be how to deal with the kind of differential equations that can model real problems.
Despite the vast amount of knowledge acquired in this subject along centuries of research—a tiny
portion of which will be displayed in this course—the number of differential equations which we
still do not know how to deal with is overwhelming. Ultimately it is numerical analysis that allows
us to explore mathematical models. This course will be devoted to analytical tools though.
The third and last step in mathematical modelling amounts to translating the solution of our
problem, once found, back into terms that connect it with the real problem that originated the model.
This step reveals the power of mathematical thinking because it allows us to implement solutions of
problems of daily life.
In a way, mathematical modelling can be regarded as a translation of a real problem into a
language which is particularly suitable to find solutions, and then, once this solution is found, all
that it remains to do is to translate it back and understand what it implies for our original problem.
The goal of this course is to be fluent in this language, at least in the particular dialect of differential
equations.
1.2
Differential equations and their solutions
With the term differential equation we refer to any equation involving one or several independent
variables (usually denoted t, or x, or x1 , x2 , . . . , xn ), a function (either scalar or vector) of those
independent variables and one or more derivatives of this function with respect to them. If there is
only one independent variable we refer to the equation as an ordinary differential equation (ODE),
whereas if there are more than one independent variable we speak of a partial differential equation
(PDE).
Example 1.5 Some ODEs are
d2y
dy
x
+ x + y = x3 ,
2
dx
dx
2
s
2 2
d x
1−
− x = 0,
dt 2
d4u
= su.
ds4
Some PDEs are
∂ 2v ∂ 2v
+
= 0,
∂ x12 ∂ x22
∂y
∂
3∂y
=
x
,
∂t
∂x
∂x
Newton’s second law in Physics,
m
d2r
=F
dt 2
∂u
∂x
2
∂u
+
∂y
2
=
∂u
.
∂t
Chapter 1. Introduction
12
(m is the mass of a particle, r(t) its position at time t and F the force acting on it), or Malthus’s
populations growth law,
dN
= κN
dt
(N(t) is the size of a population at time t and κ the growth rate), are expressed as ODEs. Laplace’s
equation,
∂ 2u ∂ 2u
+
= 0,
∂ x2 ∂ y2
which determines the electric field u(x, y) on a two dimensional region, or Navier-Stokes’s equations,
∂u
∇ · u = 0,
ρ
+ (u · ∇)u − µ∆u + ∇p = f,
∂t
which describes the velocity field of an incompressible fluid (ρ is the density, µ the viscosity, p the
pressure field, and f the force), are typical examples of PDE.
Formally, an ODE is expressed as
F x, y, y0 , . . . , y(n) = 0,
(1.5)
where y = y(x) is the unknown function and primes denote its derivatives. Similarly, a PDE is
expressed as
F (x1 , . . . , xn , y, yx1 , . . . , yxn , yx1 x1 , yx1 x2 , . . . ) = 0,
(1.6)
where y = y(x1 , . . . , xn ) is the unknown function and subscripts denote its partial derivatives with
respect to the given variables.
The highest derivative involved in the equation defines the order of the ODE or the PDE.
Furthermore, if the function F is a first-order polynomial in the function y and all its derivatives,
the equation is linear; otherwise, it is nonlinear.
A solution of an ODE (1.5) in the interval (a, b) (where −∞ ⩽ a < b ⩽ ∞) is a function φ (x)
such that identifying y(x) ≡ φ (x) fulfils the ODE for all x ∈ (a, b). Similarly for a PDE, only that
now the n-dimensional set Ω where the function solves the equation can be more complex than an
interval.
Example 1.6 A solution of the ODE
d2y 2
− y=0
dx2 x2
is φ (x) = x2 − x−1 . This function and its derivatives are defined in R − {0}, so φ is a solution in
(0, ∞) or in (−∞, 0).
Example 1.7 The two functions
y(x) = e2x ,
y(x) = e3x ,
are two solutions of the ODE
y00 − 5y0 + 6y = 0.
1.3 Initial value problems
13
But any linear combination of these two solutions
y(x) = c1 e2x + c2 e3x ,
is also a solution of the ODE, regardless of the values of the two constants c1 , c2 . Hence this
equation has a two parameter family of solutions.
Example 1.8 Often solutions can only be given as implicit equations; for instance,
xy = log y + c,
for any constant c ∈ R, is an implicit solution of the ODE
y0 =
y2
.
1 − xy
This can be checked if we differentiate the implicit equation with respect to x,
y + xy0 =
y0
y
⇒
y2 = (1 − xy)y0
⇒
y0 =
y2
.
1 − xy
Any curve, either explicit or implicit, describing the solution of an ODE is called an integral
curve of the ODE. The examples above show that often the solutions of ODEs depend on arbitrary
constants, so that, in general, an ODE has a parametric family of integral curves. The number of
free parameters is typically the order of the ODE. There are exceptions though. For instance, the
equation
2
y0 + 1 = 0
lacks any real solution, or the equation
2
y0 + y2 = 0
has only one solution, namely y = 0.
1.3
Initial value problems
We have already mentioned that, in general, the solution of an ODE of nth order is an n-parameter
family of integral curves whose equation is usually referred to as the general solution of the ODE.
When it comes to model some problem of the real world though, it is desirable to provide a unique
solution (or at least as few as possible and with a well defined criterion to know which one applies),
otherwise we are not giving a definite answer to the problem. Thus we need a procedure to find
values for those n constants that pick one and only one particular solution out of the infinitely
many ones that form the general solution. The most basic way of achieving this is by imposing
initial conditions.
By this we mean that we must know the values of y(x) and its first n − 1 derivatives at a given
point of the independent variable x0 —which is referred to as the initial point. Thus the set of (in
general nonlinear) equations
y(x0 ) = y0 ,
dy
(x0 ) = y1 ,
dx
..
.
d n−1 y
(x0 ) = yn−1 ,
dxn−1
(1.7)
Chapter 1. Introduction
14
provides (under very general conditions) a way of determining the unknown constants. If the
problem is well-posed, these equations will fix the constants uniquely, otherwise there could be
more than one solution (and we should impose additional requirements to our model) or no solution
at all.
Example 1.9 The two-parameter family of solutions of the ODE
d2y
+y = 0
dx2
is y(x) = a cos x + b sin x (check it by direct substitution). We seek for the integral curve that fulfils
the initial conditions y(0) = −1, y0 (0) = 1. Differentiating the solution y0 (x) = −a sin x + b cos x,
hence we have the set of equations
)
a cos 0 + b sin 0 = −1
−a sin 0 + b cos 0 = 1
⇒
a = −1, b = 1.
Thus the solution of the initial value problem is y(x) = sin x − cos x.
This issue had important philosophical implications at the time differential equations were
being developed, because it implies that, given the ODE that models a phenomenon, the knowledge
of the state of this phenomenon at a single instant in time allows us to predict its state at any later
time. This is a mathematical statement of strong determinism, and it led Lagrange to claim that if
he were given the initial conditions of the entire universe, he would be able to reconstruct its past
and predict its future.
R
1.4
Determinism underwent a serious drawback in the late 20th century with the discovery of
chaos, a (very extended) property of some ODEs which manifests itself as a strong sensitivity
to initial conditions, so much so that it makes impossible in practise to make predictions
beyond a small time window (the famous butterfly effect, which in practise makes it impossible
forecasting weather beyond a few days time).
Continuous dependence
When we model a process through an ODE we are assuming two simplifications: first of all, we are
introducing approximations to arrive at the ideal model represented by the ODE, and secondly, we
can only provide values to the parameters defining the ODE and to the initial data that come from
measurements and are, therefore, affected by errors. Our model is useless unless we can make sure
that the solution of the approximate model provides a good approximation to the solution of the
“exact” model. This is what is known as continuous dependence of the solutions on the parameters
and the initial data.
Continuous dependence captures the idea that changing the parameters or initial conditions
“a little”, the solution of the new ODE deviates from the exact one just “a little”. This type of
robustness is an important requirement for any reasonable mathematical model. Any model lacking
this property is said to be ill-posed.
R
As mentioned above, chaotic systems illustrate the problems associated to an ill-posed
problem, because small changes in the initial conditions quickly lead to completely different
future developments of the solutions. The example of chaos also shows that ill-posed problems
are not entirely useless, but may be an indication that the corresponding phenomenon calls
for a more elaborate description (in the case of chaotic models, a probabilistic one).
1.4 Continuous dependence
15
The following example shows a model with a strong dependence on the initial conditions.
Example 1.10 Consider the initial value problem
y0 =
2−y
,
x
y(1) = 2.
One can check by substitution that the solutions of the ODE are of the form
y(x) =
c
+ 2.
x
As y(1) = c + 2 = 2, then c = 0 and the solution to our problem is y(x) = 2. However, let’s change
our initial condition a little bit, y(1) = 2 + ε. Then y(1) = c + 2 = 2 + ε, so c = ε and the solution
becomes
y(x) =
ε
+ 2.
x
This is no small change with respect to the former solution y(x) = 2, because no matter how small
ε is, the function always diverges at x = 0. Quite a qualitative change!
Chapter 1. Introduction
16
Problems
Problem 1.1 Classify the following equations as ordinary or partial, give their order, and state
whether they are linear or nonlinear. In each case identify the dependent and independent variables.
(a) Bessel’s equation (ν is a parameter) x2 y00 + xy0 + (x2 − ν 2 )y = 0,
∂u
∂u
∂ 2u
(b) Burgers’s equation (ν is a parameter)
−ν 2 +u
= 0,
∂t
∂x
∂x
(c) van der Pol’s equation (m, k, a, and b are parameters) mẍ + kx = aẋ − bẋ3 ,
dy
= t − y2 ,
(d)
dt
2
∂ 2y
2∂ y
(e) the wave equation (c is a parameter)
=
c
,
∂t 2
∂ x2
dp
(f) the logistic population model (k is a parameter)
= kp(1 − p),
dt
(g) Newton’s second law for a particle of mass m moving in a potential V (x), mẍ = −V 0 (x),
(h) the coupled equations
(
ẋ = x(4 − 2x − y),
ẏ = y(9 − 3x − 3y),
dx
= Ax, where x is a n-component vector and A a n × n matrix.
dt
Problem 1.2 Here is a bunch of problems we would like to model:
(a) Newton’s cooling law states that the rate of change of the temperature of an object, T , is
proportional to the difference between this temperature and the environmental temperature
T0 , and is such that the object cools down if T > T0 and heats up if T < T0 . Find a differential
equation for the evolution of T .
(b) A bacterium duplicates at a rate proportional to the difference between a maximum population
M and the current population of bacteria, p. Find a differential equation for the evolution of
p.
(c) The rate of change in vapour pressure P of a certain substance with respect to the temperature
T is proportional to the pressure and inversely proportional to the square of the temperature.
Write down the differential equation.
(d) A spherical raindrop evaporates at a rate proportional to its surface area. Write a differential
equation for the volume of the raindrop as a function of time.
(e) A ball falling within a vase full of oil undergoes a friction proportional to its speed v. What
is the equation describing the evolution of v?
(i)
Problem 1.3 — Poiseuille’s flow. In general, it is not possible to find explicit solutions of the
Navier-Stokes equations that govern fluid flow. However, in certain cases the equations simplify
very strongly. Suppose that a fluid is flowing down a pipe that has a circular cross-section of radius
a. Assuming that the velocity v of the fluid depends only on its distance from the centre of the pipe,
the equation satisfied by v is
1 d
dv
r
= −P,
r dr
dr
where P > 0. Multiply by r and integrate once to show that
dv
Pr c
=− + ,
dr
2
r
where c is an arbitrary constant. Integrate again to find an expression for the velocity, and then
use the facts that (i) the velocity should be finite at all points in the pipe, and (ii) fluids ‘stick’ to
Problems
17
boundaries (which means v(a) = 0), to show that
v(r) =
P 2
(a − r2 ).
4
Problem 1.4 Prove by direct substitution that the given function is a solution of the corresponding
differential equation:
(i) y(x) = 4e2x of y0 = 2y,
(ii) y(x) = 2e5x of y0 = 3y + 4e5x ,
(iii) y(x) = 5 sin x − cos x of y00 + y = 0,
(iv) y(x) = ex − e−x of y00 − y = 0,
−x2
Z x
2
2
(v) y(x) = e
et dt + 3e−x of y0 + 2xy = 1,
0
(
−x2 , x < 0,
(vi) y(x) = 2
of xy0 − 2y = 0.
x ,
x ⩾ 0,
Problem 1.5 Prove that the following implicit functions y(x) are solutions of the corresponding
differential equation:
2xy
,
y−1
e−xy − y
(ii) exy + y = x − 1 of y0 = −xy
,
e +x
6xy0 + (y0 )3 sin y − 2(y0 )2
(iii) sin y + xy − x3 = 2 of y00 =
.
3x2 − y
Problem 1.6 Find the differential equation satisfied by these uniparametric families of curves:
(i) parabolas with equation y = cx + x2 ,
(ii) straight lines with equation y = cx + c2 ,
(iii) circumferences on the plane with centre at the origin,
1 + ce2x
,
(iv) curves with equation y =
1 − ce2x
(v) cardioids r = a(1 − cos θ ),
(vi) curves with equation y = ce−x sin 2x,
2
(vii) curves with equation y = x3/2 + c (t ⩾ 0),
(viii) Descartes’s folia x3 + y3 = 3cxy,
(ix) curves with equation y(x) = c1 x + c2 x2 .
HINT : Differentiate y at least once and find a way to get rid of the constant.
(i) y − log y = x2 + 1 of y0 =
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )