6.3 Partial Differential Equations 377
Example 1.
∂
2
u
∂x
2
=
∂u
∂t
, 0 < x < 1, 0 < t,
u(0, t) = 1, u(1, t) = 1, 0 < t,
u(x, 0) = 1 +sin(π x), 0 < x < 1.
The partial differential equation and the boundary conditions (that is, every-
thing that is valid for t > 0) are transformed, while the initial condition is
incorporated by the transform
d
2
U
dx
2
=sU −
1 +sin(π x )
, 0 < x < 1,
U(0, s) =
1
s
, U(1, s) =
1
s
.
This boundary value problem is solved to obtain
U(x, s) =
1
s
+
sin(πx)
s +π
2
.
We dire ct our at tent ion now to U as a function of s. Because sin(π x) is a con-
stant with respect to s,tablesmaybeusedtofind
u(x, t) = 1 + sin(πx) exp
−π
2
t
.
Example 2.
∂
2
u
∂x
2
=
∂
2
u
∂t
2
, 0 < x < 1, 0 < t,
u(0, t) = 0, u(1, t) = 0, 0 < t,
u(x, 0) = sin(π x), 0 < x < 1,
∂u
∂t
(x, 0) =−sin(π x), 0 < x < 1.
Under transformation the problem becomes
d
2
U
dx
2
=s
2
U −s sin(πx) +sin(π x), 0 < x < 1,
U(0, s) = 0, U(1, s) = 0.
The function U is found to be
U(x, s) =
s −1
s
2
+π
2
sin(πx),