Chapter0_intro_and_revision
Chapter0_intro_and_revision
2022-23
Lecture 1 Introduction + recap of rst-order ODEs
Today, we will:
revise what dierential equations are, how to describe them, and what
it means to solve one;
revise solving rst-order ordinary dierential equations by separation of
variables and the integrating factor method;
appreciate how dierential equations are relevant to chemical
engineering.
dy
3 + 4xy 3 = 0
dx
d2 y dy
2
+6 − 10y = x 2
dx dx
Dr. Chengjie Cai (UoN) MATH2052 2022-23 5 / 20
Solving a DE
dy
y = ce−x + 2x − 2 → =
dx
c(0) = 0:
This ODE gives the concentration of dye in the tank over time, denoted
c(t), where water and dye are both owing into the tank at dierent rates,
and a mixture is owing out of the tank (see diagram).
Solving this ODE gives us c(t); an expression for the concentration of dye
at any point in time.
Dr. Chengjie Cai (UoN) MATH2052 2022-23 7 / 20
Why do chemical engineers care?
d2 „ d„
a2 2
+ a1 + a0 „ = p(t);
dt dt
„(0) = 0:
This ODE gives the output signal over time, denoted „(t), of a device
measuring the pressure p(t) of a system.
Solving this ODE gives us „(t); an expression for the output signal at any
point in time. This allows us to monitor uctuations in pressure.
Dr. Chengjie Cai (UoN) MATH2052 2022-23 8 / 20
Why do chemical engineers care?
Example 3 - Diusion
(2)
Or equivalently:
(3)
Hence,
„ «
R
p(x) dx dy R
p(x) dx
e + p(x)y =e q(x):
dx
From the product rule (in reverse), we can re-write the LHS of the ODE:
R
p(x) dx
=e q(x):
This becomes
For an nth -order DE, there will be n constants of integration (can you
see why?).
Therefore to get a particular solution, we will need n distinct
conditions on the dependent variable (more on this later).
Dr. Chengjie Cai (UoN) MATH2052 2022-23 16 / 20
Linear v.s. nonlinear DEs
1
Don't worry; this ODE makes me want to cry too.
Dr. Chengjie Cai (UoN) MATH2052 2022-23 17 / 20
The objectives of this course
We will focus on ODEs for this semester and rst half of the Spring
semester, and PDEs for the second half of the Spring semester.
In the Python workshops, we will learn how to write programs that will
automate numerical methods for us (very useful!).
dc 1 c
= − ;
dt 40 10
c(0) = 0:
(a,b) Use both separation of variables and the integrating factor method.
(c) Sketch the graph of the solution and comment briey on it.