186 Chapter 3
First few terms of sum
> u(x,t):=sum(u[n](x,t),n=1..3):
ANIMATION
> animate(u(x,t),x=a..b,t=0..5,thickness=3);
Due to the additional heat loss from the lateral surface, we see that the temperature drops off
more rapidly than in Example 3.6.1.
The preceding animation command illustrates the spatial-time-dependent solution for u(x, t).
The animation sequence shown in Figure 3.6 shows snapshots at times t = 0, 1, 2, 3, 4, and 5.
ANIMATION SEQUENCE
> u(x,0):=subs(t=0,u(x,t)):u(x,1):=subs(t=1,u(x,t)):
> u(x,2):=subs(t=2,u(x,t)):u(x,3):=subs(t=3,u(x,t)):
> u(x,4):=subs(t=4,u(x,t)):u(x,5):=subs(t=5,u(x,t)):
> plot({u(x,0),u(x,1),u(x,2),u(x,3),u(x,4),u(x,5),},x=a..b,thickness=10);
x
0 0.2 0.4 0.6 0.8 1
0
0.05
0.10
0.15
0.20
Figure 3.6
3.7 Verification of Solutions—Three-Step Verification
Procedure
Earlier, we used the method of separation of variables to construct solutions to the initial
value-boundary value problems. The natural question that arises is, does the solution satisfy all
the conditions of the problem? We establish a three-step verification procedure:
1. Does the solution satisfy the partial differential equation?
2. Does the solution satisfy the boundary conditions?
3. Does the solution satisfy the initial conditions?