Académique Documents
Professionnel Documents
Culture Documents
Coordinates
Y. K. Goh
2009
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Outline
I
I
I
I
I
I
I
I
I
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Separation of Variables
Separation of Variables
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Boundary-value Problem
1D Heat Equation:
u
2u
= c2 2 ,
t
x
0 < x < L,
t > 0;
(1)
t > 0;
(2)
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
0 < x < L.
(3)
Separation of variables
Let u(x, t) = X(x)T (t), differentiate & subsitute into Eq.(1):
T
X 00
=
= k,
c2 T
X
Which gives a set of two ODEs:
X 00 kX = 0,
T kc2 T = 0.
(4)
(5)
=
=
k=0
I
I
I
k = 2 < 0
I
I
I
I
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
T (t) = Tn (t) = bn en t , n = 1, 2, . . . ,
cn
I where n =
.
L
Combining Xn (x) and Tn (t), we get a solution for Eq.(1) and
the solution satisfies the Boundary Conditions Eq.(2)
I
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
n
x, n = 1, 2, . . . , (8)
L
Principle of Superposition
Theorem
If and are solutions to a linear differential equation and
satisfy a linear boundary condition, then the linear
combination u = c1 + c2 is also a solution and satisfies the
same boundary condition. Here c1 and c2 are constants.
Since u1 (x, t), u2 (x, t), . . . are satisfying the 1D Heat equation
and the zero temperature boundary conditions. Thus, a
general solution is the superposition of all these un (x, t):
u(x, t) =
X
n=1
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
bn en t sin
n
x.
L
(9)
X
n
u(x, 0) =
bn sin
x = f (x), 0 < x < L,
L
k=1
Z
2 L
n
= bn =
f (x) sin
x dx, n = 1, 2, . . .
L 0
L
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Summary
I
Boundary-value problems
2u
u
= c2 2 , 0 < x < L, t > 0;
t
t
u(0, t) = 0 and u(L, t) = 0, t > 0;
u(x, 0) = f (x),
0 < x < L.
General solution
u(x, t) =
bn en t sin
n=1
bn =
2
L
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
f (x) sin
0
n
x,
L
nx
dx.
L
n =
cn
;
L
Example
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Boundary-value problems
1D Wave Equation:
2
2u
2 u
=
c
,
t2
t2
(10)
t > 0;
(11)
u
(x, 0) = g(x),
t
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
0 < x < L.
(12)
Separation of variables
Let u(x, t) = X(x)T (t), differentiate and subsitute into
Eq. 10:
T
X 00
=
= k,
c2 T
X
Which gives a set of two ODEs:
X 00 kX = 0,
T kc2 T = 0.
(13)
(14)
=
=
k = 0 (trivial solution)
X(x) = c1 x + c2 ,
X(0) = X(L) = 0 = c1 = c2 = 0.
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
n
(bn cos n t+bn sin n t), n = 1, 2, . . .
L
(17)
Principle of Superposition
Theorem
If and are solutions to a linear differential equation and
satisfy a linear boundary condition, then the linear
combination u = c1 + c2 is also a solution and satisfies the
same boundary condition. Here c1 and c2 are constants.
Since u1 (x, t), u2 (x, t), . . . are satisfying the 1D wave equation
and the fixed ends boundary conditions. Thus, a general
solution is the superposition of all these un (x, t):
u(x, t) =
sin
n=1
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
n
(bn cos n t + bn sin n t).
L
(18)
X
n
u(x, 0) =
bn sin
x = f (x), 0 < x < L,
L
k=1
Z
2 L
n
= bn =
f (x) sin
x dx, n = 1, 2, . . .
L 0
L
Applying initial condition
X
n
u
(x, 0) =
n bn sin
x = g(x), 0 < x < L,
t
L
k=1
Z
2 L
n
= n bn =
g(x) sin
x dx, n = 1, 2, . . .
L 0
L
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Summary
I
Boundary-value problems
2
2u
2 u
=
c
, 0 < x < L, t > 0;
t2
t2
u(0, t) = 0 and u(L, t) = 0, t > 0;
u
(x, 0) = g(x), 0 < x < L.
u(x, 0) = f (x) and
t
General solution
bn
cn
n
(bn cos n t + bn sin n t), n =
;
L
L
n=1
Z
Z L
2 L
nx
2
nx
=
f (x) sin
dx, bn =
g(x) sin
dx.
L 0
L
n L 0
L
u(x, t) =
sin
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Examples
1. Let say a string with length L = 1 is fixed at two ends.
m
The initial displacement of the string is f (x) = sin
x
L
and with zero initial velocity. Find u(x, t).
2. Same as the previous example, but
(
3
x,
0 x 31 ;
f (x) = 10
3(1x)
, 13 x 1.
10
3. Now, assume that the initial displacement is 0, but the
the initial velocity is g(x) = x cos x, given that L = 1 and
c = 1. Find u(x, t).
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Boundary-value problems
2
2u
2 u
=
c
, 0 < x < L, t > 0;
t2
t2
u(0, t) = 0 and u(L, t) = 0, t;
u
(x, 0) = g(x), 0 < x < L.
u(x, 0) = f (x) and
t
DAlembert solution
1
1
u(x, t) = [f (xct)+f (x+ct)]+
2
2c
x+ct
xct
Examples (Optional)
x and g(x) = 0, find the solution
1. Let say f (x) = sin m
L
for the 1D wave equation.
2. Same as the previous example, but L = 1, c = 1 ,
g(x) = 0, and
(
3
x,
0 x 31 ;
f (x) = 10
3(1x)
, 13 x 1.
10
3. Now, let say L = 1, c = 1, f (x) = 0,
g(x) = x, 0 < x < 1. Find the solution.
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Boundary-value problems
2D Laplace Equation:
2u 2u
+
= 0,
x2 y 2
(20)
Boundary Conditions:
u(0, y) = u(a, y) = 0, 0 < y < a;
u(x, 0) = 0 and u(x, b) = f (x), 0 < x < a;
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
(21)
(22)
X 00 + kX = 0;
00
Y kY
= 0.
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
(23)
(24)
n = 1, 2, . . . .
Non-trivial solution is Xn (x) = sin n
a x,
Corresponding solution for Y is
n
Yn (y) = An cosh n
a y + Bn sinh a y.
Apply BC Y (0) = 0, thus Yn (y) = Bn sinh n
a y.
u(x, y) =
Xn Y n =
n=1
Bn sinh
n=1
n
n
y sin
x.
a
a
sinh
nb
2
Bn =
a
a
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
f (x) sin
a
n
x dx,
a
n = 1, 2, . . . .
Example
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
0 < x < L,
t > 0.
(25)
0 < x < L.
(26)
(27)
X
n=1
2
where bn =
L
bn en t sin
f (x) sin
0
n
x, n = 1, 2, . . . ,
L
n
x dx.
L
(28)
u
Robins B.C. (u + n
are given on boundaries)
I This B.C. correspond to one end insulated and one end
radiating heat.
I u(0, t) = 0, u (L, t) = u(L, t), t > 0.
x
I is called the convection coefficient.
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
t > 0;
Steady-State Solutions
I
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
(29)
(30)
(31)
X
2
w(x, t) =
bn en t sin n x, where
Z n=1
2 L
bn =
(f (x) us (x)) sin n x dx.
L 0
Finally, the solution to the non-homogeneous problem is
u(x, t) = w(x, t) + us (x).
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Example
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
B.C.:
I.C.:
u
2u
= c2 2 , 0 < x < L, t > 0;
t
x
u
u
(0, t) =
(L, t) = 0, t > 0;
x
x
u(x, 0) = f (x), 0 < x < L.
(32)
(33)
(34)
k = 0, = X(x) = c1 x + c2
I
I
X 0 (0) = X 0 (L) = 0 = c1 = c2 = 0
trivial solution
X 0 (0) = X 0 (L) = 0 = c1 = 0, c2 arbitrary
Let choose c2 = a0 /2 where a0 is a constant.
X 0 (0) = 0 = c2 = 0
X 0 (L) = 0 = = n = n
L , n = 1, 2, . . .
c1 is arbitrary, and set c1 to 1.
2
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
u(x, t) =
a0 X
n
2
+
an en t cos
x, n = 1, 2, . . . ,
2
L
n=1
where
I
Z
2 L
a0 =
f (x) dx,
L 0
Z
n
2 L
an =
f (x) cos
x dx.
L 0
L
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
(35)
0 < x < L,
t > 0;
(36)
u
(L, t) = u(L, t), t > 0;(37)
x
u(x, 0) = f (x), 0 < x < L.
(38)
u(0, t) = 0,
k = 0, = X(x) = c1 x + c2
I
I
X(0) = 0 = c1 = 0
X 0 (L) = X(L) implies must satisfies the non-linear
equation cos L + sin L = 0, which has infinite
many roots, = n , n = 1, 2, . . . .
Thus, X(x) = Xn (x) sin n x.
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
cn en t sin n x, n = 1, 2, . . . ,
n=1
where
I
cn = R L
0
sin2 n x dx
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
(39)
Example
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
T
X 00 Y 00
=
+
= k 2 , gives
2
cT
X
Y
I
I
I
I
T + c2 k 2 T = 0;
Y 00
X 00
=
k 2 = 2 ;
X
Y
X 00 + 2 X = 0 and Y 00 + 2 Y = 0,
where = k 2 2 .
In summary
I
I
I
X 00 + 2 X = 0, X(0) = 0, X(a) = 0,
Y 00 + 2 Y = 0, Y (0) = 0, Y (b) = 0,
+ c2 k 2 T = 0, k 2 = 2 + 2 .
X
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
Thus,
I
I
I
T (t) = Tp
mn (t) = Bmn cos mn t + B sin mn t, where
mn = c 2m + n2 .
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
X
X
n=1 m=1
(40)
I
4
=
ab
Z bZ
Bmn
=
g(x, y) sin m x sin n y dx dy;
abmn 0 0
m
n
m =
, n =
, m, n = 1, 2, . . . .
a
b
Bmn
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates
X
I u(x, y, t) =
Amn sin m x sin n yemn t ;
n=1 m=1
p
n = n
, mn = c 2m + n2 ;
b
Z Z
4 b a
=
f (x, y) sin m x sin n y dx dy.
ab 0 0
m =
Amn
m
,
a
Y. K. Goh
Boundary-value Problems in Rectangular Coordinates