Professional Documents
Culture Documents
Continuous Mathematics
Partial Differential Equations
• Ordinary differential equations are differential equations
Continuous Mathematics HT16 that only depend on total derivatives, e.g. dy d2 y
dx , dx 2
• Partial differential equations are differential equations that
depend on partial derivatives, for example
@u @u
+u = x +u
✓ ◆ ✓ @t @x
◆
@ u @u @ 3u @u
+ = eu
@x 1 + u @x @y 1 + u @y
Stephen Cameron
University of Oxford Department of Computer Science
Z 1
for some given function ⇥0 (x)
) x ne x
dx = n! • We also require boundary conditions for ⇥ or @⇥
@x at x = 0
0 and x = L for all times t > 0
@⇥ @2⇥ Z L
=D 2 0<x <L 2
@t @x E(t) = [ (x, t)] dx ) E(0) = 0, E(t) 0
0
with initial conditions
⇡x
⇥(x, 0) = 3 sin Z Z L
L dE d L 2 @ 2
= [ (x, t)] dx = [ (x, t)] dx
with boundary conditions ⇥ = 0 at x = 0, L dt dt 0 0 @t
• We will assume throughout these examples that D > 0 Z L Z L
@ @2
• We will first show that if we can find a solution then it is = 2 dx = 2 D 2 dx
0 @t 0 @x
unique L Z L ✓ ◆2
• Suppose there are two solutions, ⇥1 and ⇥2 ; Let @ @
= 2 D 2D dx
= ⇥1 ⇥2 @x 0 0 @x
• It then follows by substituting into the equation and Z L ✓ ◆2
@
boundary conditions that = 2D dx 0
0 @x
@ @2
=D 2 0<x <L • Hence E(t) is a decreasing function; the only way all the
@t @x
conditions on E(t) can be met is if E(t) = 0 at all times t
with initial conditions and boundary conditions
(x, 0) = 0 = 0 at x = 0, L ) ⇥1 = ⇥2
Cont. Maths HT16–8.7 Cont. Maths HT16–8.8
Partial Differential Partial Differential
Example, continued Equations Example, continued Equations
• We look for a separable solution ⇥(x, t) = X (x)S(t). If we Stephen Cameron Stephen Cameron
• Suppose 2
> 0. Then we can write = k , and so
• We therefore write
d2 X 2
k X =0
dx 2 X 00 (x)
= k2
X (x)
• This has general solution X = Aekx + Be kx
• The boundary conditions then give A = B = 0, and so • This equation has general solution
X (x) = 0, and then ⇥(x, t) = 0. This isn’t what we want —
the assumption > 0 must be false X (x) = A sin kx + B cos kx
• Suppose now that =0 • We now fit the boundary conditions
• We then have
X (0) ) B = 0 X (L) = 0 ) A sin kL = 0
X 00 (x)
=0
X (x) • If A = 0 we would have the trivial solution X (x) = 0, and
so ⇥(x, t) = 0 which violates the initial conditions
together with boundary conditions X (0) = 0 and X (L) = 0
• Instead, sin kL = 0 and so kL = n⇡ where n = 1, 2, 3, . . .
• Again, this only has solution X (x) = 0
• We must have <0
Cont. Maths HT16–8.11 Cont. Maths HT16–8.12
Partial Differential Partial Differential
Example, continued Equations Example, continued Equations
@U @⇥ @2U @2⇥
= , 2
= • Suppose we want to solve
@t @t @t @t 2
we see that U satisfies the PDE @⇥ @2⇥
=D 2, x, t > 0
@U @2U @t @x
= , 0 < x < 1, t >0
@t @x 2 with initial and boundary conditions
• The boundary conditions become
⇥(x, 0) = 0 (x > 0) ⇥(0, t) = U, ⇥(1, t) = 0 (t > 0)
U = 0 at x = 0, and U = 0 at x = 1
• Physically this corresponds to a semi-infinite bar
and the initial conditions become occupying the region 0 < x < 1, that is initially at zero
U(x, 0) = 3 sin ⇡x temperature. At time t = 0 the end at x = 0 is raised to
temperature U
• The equation for U has homogeneous boundary p
• Let ⌘ = x/ Dt, and let ⇥ = f (⌘)
conditions, so can be solved in the same way as we have
solved earlier equations • ⌘ is known as a similarity variable
• The solution for ⇥ can then be recovered by writing
⇥(x, t) = U(x, t) + 2 + 2x
Cont. Maths HT16–8.21 Cont. Maths HT16–8.22
f 00 (⌘) + 12 ⌘f 0 (⌘) = 0
• x = 1, t > 0 corresponds to ⌘ = 1 — the second
• Integrating once gives, for arbitrary constant B, boundary condition corresponds to f (1) = 0. Note this is
consistent with other conditions on f
⌘ 2 /4 • Using these conditions on f (0) and f (1) we may
f 0 (⌘) = Be
determine A and B to give
• Integrating once more gives, for arbitrary constant A, !
R⌘ s2 /4
Z e ds
⌘
s2 /4 u(x, t) = f (⌘) = U 1 Rs=0
1
f (⌘) = A + B e ds s=0
e s2 /4 ds
s=0
p
• Noting that x > 0, t = 0 corresponds to ⌘ = x/ Dt = 1,
the initial condition corresponds to f (1) = 0
• Similarly, x = 0, t > 0 corresponds to ⌘ = 0 and so the first
boundary condition corresponds to f (0) = U.
• u(0, t) = 0 ) B = 0 and so
• u(L, t) = 0 ) = cn⇡ ( ⇣ ⌘
L 8d ⇥ ( 1)(n 1)/2
n odd
• Now include T (t); we must have An = ⇡ 2 n2
0 n even
X (x) = An sin n⇡
L x T (t) = Cn cos n⇡ n⇡
L ct + Dn sin L ct
• So there is a fundamental frequency, followed by odd
1
• ut (x, 0) = 0 ) Dn = 0 harmonics, with harmonic n of magnitude n2
compared to
• WLOG, Cn = 1 and the fundamental.
X • The spectrum of the relative size of the harmonics is what
u(x, t) = An sin( n⇡ n⇡
L x) cos( L ct)
makes up the tone of a musical note
n
Cont. Maths HT16–8.27 Cont. Maths HT16–8.28
Partial Differential Partial Differential
Standing Waves Equations Poisson’s equation Equations
@2u @2u
+ x2 y2 = 0
@x 2 @y 2 • This has general solution
1
X ⇣ ⌘
u(x, y , t) = Pn en⇡y en⇡(2 y)
sin n⇡x
• We can normally assume that PDEs have a unique
n=1
solution
• To set u = x(1 x) on y = 0 we note that • Separation of variable used to construct separate (but
x(1 x) = u(x, 0) linked) ODEs for each variable
X1 • Boundary conditions on one variables can be used to
= Pn 1 e2n⇡ sin n⇡x constrain the common constant
n=1
• Common sense is also useful. For physical systems
• We will now follow the Fourier type approach to determine quantities can’t be infinite, entropy tends to increase with
the constants Pn . Noting that for integers m, n we have time, etc.
Z 1 ⇢ • Tricks are also useful in solving the equations
0 m 6= n
sin m⇡x sin n⇡x dx = 1 • Fourier techniques can be used to combine solutions, with
0 2 m=n
the constants established from the boundary conditions
we may write
Z 1 ⇢ 8
2 n3 ⇡ 3 (e2n⇡ 1)
n even
Pn = x(1 x) sin n⇡x dx =
1 e2n⇡ 0 0 n odd
Cont. Maths HT16–8.35 Cont. Maths HT16–8.36