Chapter 1 Mathematical Modelling by Differential Equations: Du DX
Chapter 1 Mathematical Modelling by Differential Equations: Du DX
Many physical phenomenons are goverened by physical rules (such as physical laws, e.g. Force and acceleration in Newton mechanic). These physical rules can be converted into mathematical models. It in turns
leads to Differential equations, which are equations involving unknown functions and derivatives. Besides,
many practical problems in engineering and medical research are related to differential equations and system
of linear or non-linear equations. For example, in image processing, many problems can be solved by Partial
Differential equations (PDEs). Developing methods to solve these equations are therefore very important.
du(x)
dx
Figure 2:
1
() is the differential equation governing the displacement of the bar under gravity.
Boundary condition :
In order to obtain the (unique) solution, only the differential equation () is not enough. We further need
the boundary condition. Thats, some special requirements defined on the boundaries.
dx
du
c(x)
dx
= f (x) := x3 ,
Solution
dx
du
c(x)
dx
dx
x
du
dx 0
du
dx
x
du
dx
0 dx
x
u(x)
u(1) = 0 = C0 =
5
x
u(x) = x20 + 20
1
20
=
=
=
=
=
f (x)dx
0
4 x
x
4 0
x4
+ C0
4
x
x4
dx + C0 x
4
0
5 x
x
+ C0 x
20 0
d
dx
du
c(x)
= f (x) := x2 + 1,
dx
u(0) = 0, c(x)
du
= 0,
dx x=1
c(x) = 1
Solution:
dx
du
c(x)
dx
dx
1
du
c(x)
dx
u(x)
(x2 + 1)dx
x
du
dx
du
dx
=
=
=
1
x3
+ x
3
x
4 x3
x
3
3
x
4 x3
3
12
2
Remark:
In both case, 2 boundary conditions (2 ends) are needed !
In both cases, exact (analytic) solution can be found.
In practice, analytic solution cannot be obtained need numerical approximation
Example 2: Math modeling for heat conduction
Consider:
Let:
f (x, t)
u(x, t)
Math modelling:
t
x
u
c(x)
=
x
f (x, t),
0 < x < 1,
t0
where c(x) is the heat conductivity and this equation is called the Heat conduction equation.
Again, we need boundary conditions to solve the equation. We have 3 boundaries:
x = 0,
x = 1 and t = 0
For t = 0, set u(x, 0) = u0 (x) for 0 x 1 (assume the initial temperature is known)
For x = 0, set u(0, t) = 0, t 0 (assume one end (x = 0) is placed at ice basin)
For x = 1, set
u
c(x)
=0
x x=1
3
u
u
t x c(x) x = f (x, t)
u(x, 0) = u0 (x) 0 x 1
u(0, t) = 0 t 0
=0 t0
c(x) u
x
x=1
h(~v , t)dx
~q (~n)dS
d
cv u(x, t)dx
dt
cv ut (x, t)dx
~q (~n)dS
~qdx
~v d~x =
~v ~ndS
v1
x1
Omega
v2
x2
v3
x3 .
Now, ~q = ku implies:
cv ut + (ku) = 0
k
ut = 4u := K4u (heat equation)
cv
where K =
k
cv
=temperature conductivity.
on D,
> 0 is a constant
(Difference of u and its surrounding temperature generate a heat flux, linearly proportional (Newton
Condition law) to the difference).
On t = 0:
u(~x, 0) = u0 (~x),
xD
In image processing, one important problem is called image denoising. Due to transmission error or other
technical reasons, images that we receive are usually distorted by noises. For example, compare the original
image v and the noisy image v as shown above.
In order to restore the image, we can turn it into a mathematical problem. The basic idea is to look
for a smooth function u : D R approximating v.
In calculus, we know that a function f is not smooth if its derivative |f | is big. Hence, we can solve
the above image processing problem by minimizing the following functional:
E(u) =
|u|2 d + (u v)2 d
()
=
=
=
=
=
d
E(u + tw)
dt
d
2
2
|(u + tw)| d~x + ((u + tw) v) d~x
dt
d
2
((u + tw) (u + tw))d~x + ((u v) + tw) d~x
dt
d
2
2
(u u + 2tu w + t ww)d~x + ((u v) + tw) d~x
dt
0 = G0 (0) =
d
E(u + tw)
t=0
dt
2u wd~x +
2(u v)wd~x
( )
(1)
u ~v =
u(~v ~n)dS
u ~v d~x
w(u ~n)dS
0=2
Note that w = 0 on .
w (u)d~x + 2
(u v)w
0=
for all w
Exercise
1. Solve
2. Solve
dx
d
dx
du
c(x)
= x3 ,
dx
du
c(x)
dx
=e ,
du
u(1) = 1, c(x)
= ex , c(x) = x + 1
dx x=1