nextuppreviouscontents
Next:1.2 Forcing Function Up:1 One-dimensional ProblemsPrevious:1 One-dimensional Problems

1.1 Forcing Function tex2html_wrap_inline6367

  Now, let us consider the following example

eqnarray2206

According to (3.2) and (3.3), we decompose our problem into the following problems,

eqnarray2208

and

eqnarray2210

The first problem above has the general solution

eqnarray2212

where tex2html_wrap_inline6369
It subjects to the prescribed boundary conditions, leads to tex2html_wrap_inline6371 . Hence, tex2html_wrap_inline6373 . Next, we need to find tex2html_wrap_inline6121 by the method of Green's function. We first observe from (3.17a) that is either tex2html_wrap_inline6377 or tex2html_wrap_inline6379 . Then, from the definition of delta function, we could have

eqnarray2214

If tex2html_wrap_inline6381 and tex2html_wrap_inline6383 are linearly independent solutions of the above homogeneous differential equation, each of them satisfies one homogeneous condition and is selected in the way that

eqnarray2216

Then, we could have

eqnarray2218

Hence, the Green's function has the form

eqnarray2220

where u and v are functions to be determined. Imposing conditions (3.17c and 3.17d), it follows that the unknown functions u and v must be chosen such that

eqnarray2222

The simultaneous solution yields

eqnarray2224

where tex2html_wrap_inline6395 is the Wronskian function. Since tex2html_wrap_inline6397 , the Green's function is , accordingly,

eqnarray2226

Now, the external disturbance is a continuous sine function. Using the integration by parts, therefore, the solution of tex2html_wrap_inline6121 is

eqnarray2228

So, the exact solution of the problem (1.1.1) is

eqnarray2230

We are going to use the method of finite difference to investigate the problem (1.1.1). Under the consideration of the problem (1.1.1), we divide the interval [0,1] into n equal parts, then the step size is h = 1/n and we have (n+1) node points. That is, for each node point,

eqnarray2232

And let the corresponding function value be

eqnarray2234

Therefore, the problem (1.1.1) can be approximated by

eqnarray2236

Then we could have

eqnarray2238

So that we can form a matrix equation to find the other nodestex2html_wrap_inline6411 , that is,

eqnarray2240

where A is an order (n-1) square matrix, u and b are tex2html_wrap_inline6421 column matrices, such that

eqnarray2242

eqnarray2244

TABLE 1.1

 
h=1/4 .26821964x10-4
-.16287549x10-6
-.10167418x10-9
-.17034985x10-13
h=1/8
.65833344x10-5
-.10275038x10-7
-.16054241x10-11
.28449465x10-15
h=1/16
.16381273x10-5
-.64369495x10-9
-.2480654610-13
-.19428903x10-15
h=1/32
.40904906x10-6
-.40254189x10-10
-.57592819x10-15
.23314684x10-14
h=1/64
.10223207x10-6
-.25164315x10-11
.22828961x10-14
 
h=1/128
.25556131x10-7
-.15513285x10-12
   
h=1/256
.63889164x10-8
     

 
 

TABLE 1.2

r(1)
.24544565
.063085230
.015789890
-.016700611
r(2)
.24882943
.062646480
.015451709
 
r(3)
.24970529
.062536126
.023216783
 
r(4)
.24992619
.062513532
   
r(5)
.24998154
.061647953
   
r(6)
.24999545
     

We can compare the solution error at different nodal point. Table 1.1 shows the solution error at the point x = 1/2, where we denote the numerical solution, tex2html_wrap_inline6425 , after k steps of extrapolation. Table 1.2 shows the ratio between two consecutive errors according to (5.2). The numerical results completely agree with the theoretical result in paper [1]. From the first column of the data of Table 1.2, we can see that the ratio tends to 0.25 gradually, that is, tex2html_wrap_inline6359 can be determined from (5.1), we take tex2html_wrap_inline6431. Using (5.3), we can compute the first step of extrapolation and the corresponding errors as shown in the second column of the data of the Table 1.1. Repeat the same procedure, we can take tex2html_wrap_inline6433 . Therefore, we could have the asymptotic error expansion is

eqnarray2246

We also see that extrapolating from the three solutions corresponding to h=1/4, 1/8 and 1/16, we get a numerical solution with error tex2html_wrap_inline6437 , which is smaller than the numerical solution error tex2html_wrap_inline6439 corresponding to h=1/256. At other nodal points, we find that we have a similar results as Table 1.1 and Table 1.2, we also find that we have an identical asymptotic error expansion as (1.1.19) and have the similar improvement on the numerical solution accuracy by using extrapolation [See Appendix A.1a-A.1c].


nextuppreviouscontents
Next:1.2 Forcing Function Up:1 One-dimensional ProblemsPrevious:1 One-dimensional Problems
Cheung Sau Hung

Wed Sep 15 10:03:39 HKT 1999