






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







and similarly in all the further steps. This shows that our error bound is the best possible in general.
10. Let z 1 , • • • , z n be orthonormal eigenvectors corresponding to the eigenvalues 1 ,^ • • •^ ,^ n , respectively. Then for any initial vector^ x 0 we have (summations from 1 to n ) x 0 cj z j x 1 cj j z j x s cj js z j x s 1 cj sj ^1 z j and, using the last step, for the Rayleigh quotient q (^) (^) m where (^) m is of maximum absolute value, and the quality of the approximation increases with increasing number of steps s. Here we have to assume that cm 0, that is, that not just by chance we picked an x 0 orthogonal to the eigenvector z m of m. The chance that this happens is practically zero, but should it occur, then rounding will bring in a component in the direction of z m and one should eventually expect good approximations, although perhaps only after a great number of steps. 12. CAS Experiment. (a) We obtain 16, 41.2, 34.64, 32.888, 32.317, 32.116, 32.043, 32.0158, 32.0059, 32.0022, etc. The spectrum is {32, 12, 8}. Eigenvectors are [3 6 7]T, [1 0 1]T, [3 2 1]T. (b) For instance, for A 10 I we get q 6, 22.5, 22.166, 22.007, 22.00137, etc. Whereas for A the ratio of eigenvalues is 32/12, for A 10 I we have the spectrum {22, 2, 2}, hence the ratio 22/2. This explains the improvement of convergence. (d) A in (a) provides an example, q 16 41.2 34.64 32.888 32. 59 5.5 1.45 0.557 0. etc. Also A 10 I does, q 6 22.5 22.166 22.007 22. 59 3.0 0.072 0.023 0. Further examples can easily be found. For instance, the matrix [ ] has the spectrum {5, 2}, but we obtain, with x 0 [1 1]T, q 5 7 4.3208 5. 5 2 0.37736 0. etc.
^ ^ cj^2 2 js ^1 cj^2 2 js ^ x T^ s ^1 x s x s T x s
Instructor’s Manual 325
SECTION 20.9. Tridiagonalization and QR-Factorization, page 875 Purpose. Explanation of an optimal method for determining the whole spectrum of a real symmetric matrix by first reducing the matrix to a tridiagonal matrix with the same spectrum and then applying the QR-method, an iteration in which each step consists of a factorization (5) and a multiplication. Comment on Content The n 2 Householder steps ( n n the size of the matrix) correspond to similarity transformations; hence the spectrum is preserved. The same holds for QR. But we can perform any number of QR steps, depending on the desired accuracy. SOLUTIONS TO PROBLEM SET 20.9, page 882
2. Householder gives
Hence 1 is an eigenvalue. The other eigenvalues, 1 and 2, are now obtained by solving the remaining quadratic characteristic equation.
4. By Householder’s method we obtain
We see that 2 is an eigenvalue. The others are 0, 8, 18, unknown in practice, and approximations can be obtained by the QR-method applied to the left upper 3 3 principal submatrix.
6. The matrices B in the first three steps are
326 Instructor’s Manual
34. This is the row “sum” norm, equal to 20. 36. 4.5 • 6 27, which is rather large 38. 9 • 0.274336 2. 40. xj 15, xj^2 55, xj^3 225, xj^4 979, yj 30, xjyj 86, xj^2 yj 320; hence the normal equations are
Solving by Gauss, we get b 0 14.2, b 1 6.4, b 2 1. Hence the answer is y 14.2 6.4 x x^2.
42. By Gerschgorin’s theorem, the disks have
The eigenvalues are (4D) 0.2635, 4.0768, 9.6597.
44. q 1 23/3, 1 0.95; q 2 7.88, 2 0.82, q 3 8.04, 3 0.70, q 4 8.15, 4 0.58 (2D) The eigenvalues of the matrix are (5S) 8.3429, 6.4707, 4.1864.
radius 3 radius 3. radius 2.5.
center 1.5, center 3. center 9.
55 b 2 225 b 2 979 b 2
15 b 1 55 b 1 225 b 1
5 b 0 15 b 0 55 b 0
328 Instructor’s Manual
These include automatic variable step size selection in modern codes, the discussion of the Runge–Kutta–Fehlberg method, backward Euler’s method and its application to stiff ODEs, and the extension of Euler and Runge–Kutta methods to systems and higher order equations. SECTION 21.1. Methods for First-Order ODEs, page 886 Purpose. To explain three numerical methods for solving initial value problems
x 1 x 0 h , x 2 x 0 2 h , etc. Main Content, Important Concepts Euler’s method (3) Automatic variable step size selection Improved Euler method (8), Table 21. Classical Runge–Kutta method (Table 21.4) Error and step size control Runge–Kutta–Fehlberg method Backward Euler’s method Stiff ODEs Comments on Content Euler’s method is good for explaining the principle but is too crude to be of practical value. The improved Euler method is a simple case of a predictor–corrector method. The classical Runge–Kutta method is of order h^4 and is of great practical importance. Principles for a good choice of h are important in any method. ƒ in the equation must be such that the problem has a unique solution (see Sec. 1.7). SOLUTIONS TO PROBLEM SET 21.1, page 897
2. y ex. Computed values are xn yn y ( xn ) Error Error in Prob. 1 0.01 1.010000 1.010050 0. 0.02 1.020100 1.020201 0. 0.03 1.030301 1.030455 0. 0.04 1.040604 1.040811 0. 0.05 1.051010 1.051271 0. 0.06 1.061520 1.061837 0. 0.07 1.072135 1.072508 0. 0.08 1.082857 1.083287 0. 0.09 1.093685 1.094174 0. 0.10 1.104622 1.105171 0.000549 0. 329
xn yn y ( xn ) Error y ( xn ) yn 0.6 1.11209 1.11365 0. 0.7 1.12237 1.12456 0. 0.8 1.11636 1.11932 0. 0.9 1.08817 1.09203 0. 1.0 1.03212 1.03706 0.
10. The solution is y 2 tanh _^12 x. The 10S-computation rounded to 6D gives
xn yn y ( xn ) Error y ( xn ) yn 0.1 0.099875 0.099917 0. 0.2 0.199252 0.199336 0. 0.3 0.297644 0.297770 0. 0.4 0.394582 0.394750 0. 0.5 0.489626 0.489838 0. 0.6 0.582372 0.582626 0. 0.7 0.672455 0.672752 0. 0.8 0.759561 0.759898 0. 0.9 0.843421 0.843798 0. 1.0 0.923819 0.924234 0. The error is growing relatively slowly, because the solution itself remains less than 2.
12. The solution is y 1/(1 4 e x ). The computation is
xn yn Error y ( xn ) yn 0.1 0.2164806848 0.043 10 ^7 0.2 0.2339223328 0.085 10 ^7 0.3 0.2523167036 0.128 10 ^7 0.4 0.2716446148 0.170 10 ^7 0.5 0.2918751118 0.209 10 ^7 0.6 0.3129648704 0.249 10 ^7 0.7 0.3348578890 0.284 10 ^7 0.8 0.3574855192 0.318 10 ^7 0.9 0.3807668746 0.346 10 ^7 1.0 0.4046096381 0.370 10 ^7 To apply (10), we need the calculation of five steps with h 0.2. We obtain (the third column would not be needed) xn yn Error y ( xn ) yn 0.2 0.2339222103 1.310 10 ^7 0.4 0.2716443697 2.621 10 ^7 0.6 0.3129645099 3.854 10 ^7 0.8 0.3574850569 4.941 10 ^7 1.0 0.4046090919 5.832 10 ^7 Hence the required error estimate is (0.4046096381 0.4046090919)/15 0.364 10 ^7. The actual error is 0.370 (^) 10 ^7 ; the estimate is closer than one can expect in general.
Instructor’s Manual 331
with c 4). The computation with RK gives xn yn Error y ( xn ) yn 2.0 2.000000000 0 2.2 1.989975031 0.157 10 ^6 2.4 1.959592041 0.247 10 ^6 2.6 1.907878667 0.264 10 ^6 2.8 1.833030447 0.169 10 ^6 3.0 1.732050655 0.153 10 ^6 3.2 1.599998963 0.1037 10 ^5 3.4 1.428281966 0.3720 10 ^5 3.6 1.199985280 0. 3.8 0.8716743295 0. 4.0 0.0977998883 0. A graph shows that these values lie on the corresponding quarter-circle within the accuracy of graphing and that they are irregularly spaced as the x -values suggest.
16. The solution is y 3 cos x 2 cos^2 x. The computation gives xn yn Error y ( xn ) yn Error in Prob. 15 0.2 1.019137566 0.1173 10 ^5 0.74 10 ^7 0.4 1.066471079 0.5194 10 ^5 0.328 10 ^6 0.6 1.113634713 0.14378 10 ^4 0.904 10 ^6 0.8 1.119282901 0.36749 10 ^4 0.2277 10 ^5 1.0 1.036951866 0.101888 10 ^3 0.6142 10 ^5 Note that the ratio of the errors is about the same for all xn , about 2^4.
k 1 0.2( xn yn ) k 2 0.2[ xn 0.1 yn 0.1( xn yn )] 0.2[1.1( xn yn ) 0.1] k * 3 0.2[ xn 0.2 yn 0.2( xn yn ) 0.4[1.1( xn yn ) 0.1]] 0.2[1.24( xn yn ) 0.24] and from this
The computed values are xn yn Error 0.0 0.000 000 0.000 000 0.2 0.021 333 0.000 067 0.4 0.091 655 0.000 165 0.6 0.221 808 0.000 312 0.8 0.425 035 0.000 505 1.0 0.717 509 0.000 771
332 Instructor’s Manual
6. The comparison shows that in the present case, RK is better. The comparison is fair
- xn yn Error - 0.4 1.173518 - 0.5 1.284044 - 0.6 1.433364 - 0.7 1.632374 - 0.8 1.896572 - 0.9 2.248046 - 1.0 2.718486 - x 0.4 0.6 0.8 1. since we have four evaluations per step for RK, but only two for AM. The errors are: