Overview of Partial Differential Equations
Overview of Partial Differential Equations
N. Magaji Chapter 6
1
Lecture 10
N. Magaji Chapter 6
2
Partial Differential Equations
N. Magaji Chapter 6
Example :
2 u ( x, t ) u ( x, t )
x 2
t
PDE involves two or more independen t variable s
(in the example x and t are independen t variable s)
3
Notation
N. Magaji Chapter 6
2 u ( x, t )
u xx
x 2
2 u ( x, t )
u xt
x t
Order of the PDE order of the highest order derivative.
4
Linear PDE
Classification
N. Magaji Chapter 6
u xx 2 u xt 3 ut 0
2 u xx 2 u xt ut 3 ut 0
5
Representing the Solution of a PDE
(Two Independent Variables)
N. Magaji Chapter 6
t1 T=3.5
x1
Different curves are used Three dimensional plot The axis represent the
for different values of of the function T(x,t) independent variables. The
one of the independent value of the function is
variable
displayed at grid points
6
Heat Equation Different curve is used
for each value of t
N. Magaji Chapter 6
2 T ( x, t ) T ( x, t )
0
Position x
x 2
t Temperature at
T (0, t ) T (1, t ) 0 different x at t=h
T ( x,0) sin( x)
7
Examples of PDEs
N. Magaji Chapter 6
Important Examples:
– Laplace Equation
– Heat Equation
– Wave Equation
8
Laplace Equation
N. Magaji Chapter 6
2u ( x , y , z ) 2 u ( x , y , z ) 2u ( x, y , z )
0
x 2
y 2
z 2
9
Heat Equation
N. Magaji Chapter 6
u ( x, y , z , t ) 2u 2u 2 u
2 2 2
t x y z
10
Simpler Heat Equation
N. Magaji Chapter 6
T ( x, t ) T ( x, t )
2
x
t x 2
11
Wave Equation
N. Magaji Chapter 6
2u ( x , y , z , t ) 2
u 2
u 2
u
c 2
2 2
t
x y z
2 2
12
Classification of PDEs
N. Magaji Chapter 6
13
Linear Second Order PDEs
Classification
N. Magaji Chapter 6
14
Linear Second Order PDE
Examples (Classification)
N. Magaji Chapter 6
2u ( x , y ) 2u ( x , y )
Laplace Equation 0
x 2
y 2
A 1, B 0, C 1 B 2 4 AC 0
Laplace Equation is Elliptic
One possible solution : u( x, y ) e x sin y
u x e x sin y , u xx e x sin y
u y e x cos y , u yy e x sin y
u xx u yy 0
15
Linear Second Order PDE
Examples (Classification)
N. Magaji Chapter 6
2 u ( x, t ) u ( x, t )
Heat Equation 0
x 2
t
A , B 0, C 0 B 2 4 AC 0
Heat Equation is Parabolic
______________________________________
2
u ( x , t ) 2
u ( x, t )
Wave Equation c 2
0
x 2
t 2
A c 2 0, B 0, C 1 B 2 4 AC 0
Wave Equation is Hyperbolic
16
Boundary Conditions for PDEs
N. Magaji Chapter 6
17
The Solution Methods for PDEs
N. Magaji Chapter 6
is parabolic if B 2 4 AC 0
19
Parabolic Problems
N. Magaji Chapter 6
T ( x, t ) 2 T ( x, t )
Heat Equation :
t x 2
T (0, t ) T (1, t ) 0
T ( x,0) sin( x ) ice ice
20
-. Summary of separation of variables.
21
1 Laplace equations
Use the method of separation of variables to solve the Laplace’s e
Example 1
N. Magaji Chapter 6
V ( y 0) 0
V(y ) 0
V ( x 0) V0 ( y )
V ( x ) 0
Find the potential inside this “slot”?
2V 2V
Laplace’s eq. 0
x 2
y 2
set V ( x, y) X ( x)Y ( y)
2 X 2Y
Y X 0
x 2
y 2 22
Laplace (cont.)
1 2 X 1 2Y
0
X
x 2
Y 2 y
N. Magaji Chapter 6
B.C. (i) V ( y 0) 0 D 0
V ( x, y ) Cekx sin ky
For V0 ( y) V0 constant
2V0
N. Magaji Chapter 6
Ck
0
sin ky dy
0 if k even
2V0
(1 cos k ) 4V0
k k if k odd
25
For some variation, when T0,
we need to consider [Link] the final state, maybe a linear
N. Magaji Chapter 6
function.
In this case, we can write down the solution simply like this.
n x
u bn e n / l t
2
sin uf .
n 1 l
n x
n x
u0 bn sin u f u0 u f bn sin .
n 1 l n 1 l
26
Example 2
node
Wave equation; vibrating string
Consider as an example the following problem: the one-dimensional wave equation with the
independent coordinates x for space and t for time:
N. Magaji Chapter 6
2u 2 u
2
c utt c 2u xx
t 2 x 2
Boundary condition x=0 x=l
u(0,t) = 0, u(b,t) = 0
Initial condition
u(x,0) = f(x),
u
( x, 0) g ( x)
t
The solution is u(x,t) but the example below may equally well represent a similar problem u(x,y)
with space coordinates x and y.
The method of separation of variables is as follows:
T t c T t 0
'' 2
n , n 1,2,3,
b
7. Now consider the coordinate with non-homogeneous boundary conditions, in this
example the T-problem. which is similar to the X-problem, so the solution is again a set
of cosine and sine terms:
n 2
2
T t
''
c T t 0
b
n n
Tn t Cn cos ct Dn sin ct
b b
29
8. Use any available homogeneous boundary condition to determine constants Cn or Dn.
Then proceed as shown below.
9. Combine the results obtained so far. The product of constants BnCn and BnDn can be
simplified by setting Bn = 1, which does not affect the solution. Any solutions from the
cases with < 0 or = 0 are added to u(x,t) before the summation. In this example,
N. Magaji Chapter 6
10. Use the non-homogeneous boundary conditions to determine the constants Cn and Dn. As
an example, the initial condition is specified as u(x,0) = f(x), The constant Cn can then be
determined.
n
u x, 0 f x Cn sin x
n 1 b
applying fourier sine series
n
Cn 0 f x sin n 1, 2,3.
b
x dx,
b
11. Use another non-homogeneous boundary condition to determine constant Dn using a
similar technique.
30
3) Eigenfunctions
n
n 1
u sin x Cn cos cnt Dn sin cnt a characteristic function or eigenfunction
b
N. Magaji Chapter 6
n
= eigenvalue
b
third fourth
31
Example 3: Elastic String with Nonzero Initial
Displacement.
N. Magaji Chapter 6
32
Solve by method of separation of variables
N. Magaji Chapter 6
Where
34
N. Magaji Chapter 6
where
Answer
35
Exercise 1
Consider a vibrating string of length L = 30 that satisfies the wave
equation 4uxx = utt,
0 < x < 30, t > 0. Assume that the ends of the string are fixed and that
N. Magaji Chapter 6
the string is set in motion with no initial velocity from the initial
position
u(x, 0) = f (x) ={x/10, x ,
{(3 − x)/20, 10 < x 3 .
Find the displacement u(x, t) of the string and describe its motion
through one period
ANSWER
where
36
Derivation of Heat Equation
Example 5
Solving the Heat Equation
u 2u
k 2 (1)
t x
N. Magaji Chapter 6
Let u(x,t) = X(x) T(t) be a solution of the heat equation. Then the last
equation can be written as
1 dT k d2 X
(2)
T dt X dx 2
u 2u d2 X
Since u X( x ) T( t ), we have x X' ( x ) T ( t ), x X" ( x ) T( t ) dx 2 T( t )
u dT
and X( x ) T' ( t ) X( x ) (3)
t dt
reduces to solving the pair of second order linear ordinary differential
equations
f(D) X = X(x), g(D) Y= Y(y) (4)
Putting these values in the heat equation we get equation 5]. The pair of
ordinary differential equations corresponding to (4) is
d2 X dT
2
X, k T
dx dt
d2 X dT
or 2
X 0 and kT =0 (5) 37
dx dt
2
Let = - n then by the method discussed in 2.1 we find that T(t)= Ke
2 - kn t
is a
general solution of the second equation of (5), where K is a constant of integration
which can be determined by given initial and boundary conditions.
N. Magaji Chapter 6
kT X
Now
u(0,t) =X(0) T(t)=0.
If T(t)=0 for all t, then the temperature function has the constant value zero,
which occurs if the initial temperature f(x) =0 for 0 x l. Otherwise, T(t)
cannot be identically zero, so we must have X(0)=0. Similarly, u(l,t) =X(l)T(t)=0
implies that X(l)=0. The problem for X is therefore
X" +X=0; X(0) = X(l)=0.
We seek values of (the eigenvalues) for which this problem for X has
nontrivial solutions (the eigenfunctions).
This problem for X is exactly the same one encountered for the space-
dependent function in separating variables in the wave equation. There we found
that the eigenvalues are
n2 2
n= for n=1,2….,
l2
and corresponding eigenfunctions are nonzero constant multiples of
nx
Xn(x) = sin .
l
39
The problem for T becomes
n 2 2k
T'+ 2
T = 0.
l
which has general solution
N. Magaji Chapter 6
2 2 2
Tn(t) = c n e n kt / l
For n=1,2,….., we now have functions
nx n2 2kt / l2
un(x,t) = cn sin e
l
which satisfy the heat equation on [0,l] and the boundary conditions
u(0,t)=u(l,t)=0. There remains to find a solution satisfying the initial condition. We
can choose n and cn so that
nx
un(x,0) = cn sin = f(x)
l
only if the given initial temperature function is a multiple of this sine function.
This need not be the case. In general, we must attempt to construct a solution using
the superposition
nx n2 2kt / l2
u(x,t) = n l e
c sin
n1
Now we need
nx
u(x,0)= n l =f(x).
c sin
n1
40
which we recognize as the Fourier sine expansion of f(x) on [0,l]. Thus
2 l n x
cn=
l
0
f (x) sin
l
dx .
With this choice of the coefficients, we have the solution for the temperature distribution
function:
2 l n x n x n2 2kt / l2
N. Magaji Chapter 6
Example 6
Solve the following heat problem for the given initial conditions.
2
2u 1 u
Heat flow : .
x 2 2 t
u ( x,0) 20; u (0, t) 0; u ( L,0) 0;
Solution
n x k ( n L )2 t
n 1
u ( x,0) Bn sin
l
e
n x
L
2 40(1 ( 1) n )
Bn
a0
20sin(
L
)dx
n
40(1 (1) n ) n x k ( n L )2 t
u ( x, t)
n 1 n
sin
l
e
41
Example 7
Solve the following heat problem for the given initial conditions.
2
2u u
k .
x 2
t
N. Magaji Chapter 6
uxx = ut , 0 < x < 30, t > 0, u(0, t) = 20, u(30, t) = 50, t > 0, u(x,
0) = 60 − 2x, 0 < x < 30. Find the steady-state temperature
distribution and the boundary value problem that
determines the transient distribution.
43
Exercise 2
Bar with Insulated Ends
N. Magaji Chapter 6
44
Bar with Insulated Ends
• 1. Solve by the method of separation of variables to
N. Magaji Chapter 6
45
Exercise 2(Cont.)
• Find the temperature u(x, t) in a metal rod of length 25 cm
N. Magaji Chapter 6
46
Exercise 3
The mathematical problem of finding the
function u satisfying Laplace’s equation (1)
N. Magaji Chapter 6
47
Solution
• To solve this problem, we construct a
N. Magaji Chapter 6
where
48
Exercise 3(cont.)
N. Magaji Chapter 6
In above problem,
let a = 3, b = 2, and f(y)={ y, 0 y 1,
{2 − y, 1 y 2.
Answer
We find that
49
Exercise 4
N. Magaji Chapter 6
2u 2 u
2
, 0 x L, t 0,
t 2
x 2
u( 0 ,t) u(L,t), t 0 ,
u(x,0 ) f(x) , 0 x L ,
u
(x,0 ) g(x), 0 x L .
t
• f(x) = 6 sin 2x + 9 sin 7x - sin 10x , and
• g(x) = 11 sin 9x - 14 sin 15x.
• The solution is of the form:
n n nx
u ( x, t ) [a n cos t bn sin t ] sin .
n 1 L L L
51