Docsity

Part 32 Numeric Linear Algebra-Advanced Engineering Mathematics-Solution Manual, Exercises of Engineering Mathematics

Toggle sidebar
bg1
Instructor’s Manual 305
8. 0.8032 (
0.0244), 0.4872 (
0.0148); the quadratic interpolation polynomial
is
p
2
(x) 0.3096x
2
0.9418x1
and gives the values 0.7839 (
0.0051) and 0.4678 (
0.0046).
10. From
L
0
(x) x
2
20.5x104.5
L
1
(x) (x
2
20x99)
L
2
(x) (x
2
18.5x85.5)
(see Example 2) and the 5S-values of the logarithm in the text we obtain
p
2
(x) 0.005 233x
2
0.205 017x0.775 950.
This gives the values and errors
2.2407, error 0
2.3028, error 0.0002
2.3516, error 0.0002
2.4415, error 0.0008
2.4826, error 0.0024.
It illustrates that in extrapolation one may usually get less accurate values than one
does in interpolation. p
2
(x) would change if we took more accurate values of the
logarithm.
12. 4x
2
6x5
14. p
2
(x) 1.0000 0.0112r0.0008r(r1)/2 x
2
2.580x2.580,
r(x1)/0.02; 0.9943, 0.9835, 0.9735
16. The divided difference table is
x
j
ƒ(x
j
)ƒ[x
j
, x
j1
]ƒ[x
j
, x
j1
, x
j2
]ƒ[x
j
, •••, x
j3
]
6.0 0.1506
0.1495
7.0 0.3001 0.1447
0.0676 0.0088
7.5 0.2663 0.1299
0.1585
7.7 0.2346
From it and (10) we obtain
p
3
(6.5) 0.1506 (6.5 6.0) •0.1495
(6.5 6.0)(6.5 7.0) •(0.1447)
(6.5 6.0)(6.5 7.0)(6.5 7.5) •0.0088
0.2637.
1
3
1
0.75
im19.qxd 9/21/05 1:10 PM Page 305
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Part 32 Numeric Linear Algebra-Advanced Engineering Mathematics-Solution Manual and more Exercises Engineering Mathematics in PDF only on Docsity!

Instructor’s Manual 305

8. 0.8032 (   0.0244), 0.4872 (   0.0148); the quadratic interpolation polynomial is p 2 ( x )  0.3096 x^2  0.9418 x  1

and gives the values 0.7839 (   0.0051) and 0.4678 (   0.0046).

10. From L 0 ( x )  x^2  20.5 x  104.

L 1 ( x )  ( x^2  20 x  99)

L 2 ( x )  ( x^2  18.5 x  85.5)

(see Example 2) and the 5S-values of the logarithm in the text we obtain

p 2 ( x )  0.005 233 x^2  0.205 017 x  0.775 950.

This gives the values and errors

2.2407, error 0 2.3028, error 0. 2.3516, error 0. 2.4415, error 0. 2.4826, error 0.0024.

It illustrates that in extrapolation one may usually get less accurate values than one does in interpolation. p 2 ( x ) would change if we took more accurate values of the logarithm.

12. 4 x^2  6 x  5 14. p 2 ( x )  1.0000  0.0112 r  0.0008 r ( r  1)/2  x^2  2.580 x  2.580, r  ( x  1)/0.02; 0.9943, 0.9835, 0. 16. The divided difference table is

xj ƒ( xj ) ƒ[ xj , xj  1 ] ƒ[ xj , xj  1 , xj  2 ] ƒ[ xj , • • • , xj  3 ] 6.0 0.

7.0 0.3001 0. 0.0676 0. 7.5 0.2663 0. 0. 7.7 0.

From it and (10) we obtain

p 3 (6.5)  0.1506  (6.5  6.0) • 0.  (6.5  6.0)(6.5  7.0) • (0.1447)  (6.5  6.0)(6.5  7.0)(6.5  7.5) • 0.  0.2637.

306 Instructor’s Manual

18. The difference table is

xj J 1 ( xj ) 2 3 4 5 0.0 0. 9950 0.2 0.09950  297 9653  289 0.4 0.19603  586 22 9067  267 5 0.6 0.28670  853 27 8214  240 0.8 0.36884  1093 7121 1.0 0.

From this and (14) we get by straightforward calculation p 5 ( x )  0.00130 x^5  0.00312 x^4  0.06526 x^3  0.00100 x^2  0.49988 x. This gives as the values of J 1 ( x ), x  0.1, 0.3, 0.5, 0.7, 0.9, 0.04993, 0.14832, 0.24227, 0.32899, 0.40595, the errors being 1, 0, 0, 1, 0 unit of the last given digit.

22. Team Project. (a) For p 1 ( x ) we need

L 0   19  2 x , L 1    18  2 x

p 1 ( x )  2.19722(19  2 x )  2.25129( 18  2 x )  1.22396  0.10814 x , p 1 (9.2)  2.21885. Exact, 2.21920, error 0.00035. For p 2 we need L 0  104.5  _^412 x  x^2 L 1   132  _^803 x  4 _ 3 x^2 L 2  28.5  _^376 x  1 _ 3 x^2 This gives (with 10S-values for the logarithm) p 2 ( x )  0.779466  0.204323 x  0.0051994 x^2 , hence p 2 (9.2)  2.21916, error 0.00004. The error estimate is p 2 (9.2)  p 1 (9.2)  0.00031.

(b) Extrapolation gives a much larger error. The difference table is 0.2 0. 0. 0.4 0.9686 0. 0. 0.6 0.8443 0. 0. 0.8 0.5358 0. 0. 1.0 0.

x  x 0  x 1  x 0

x  x 1  x 0  x 1

308 Instructor’s Manual

Similarly, if x  xj  1 , then G  0 and qj ( xj  1 )  ƒ j  1 cj^2 ( xj  1  xj )^2  ƒ j  1. This verifies (4). By differenting (6) we obtain

qj ( x )  ƒ jcj^2 [2 G (1  2 cjF )  2 cjG^2 ]

 ƒ j  1 cj^2 [2 F (1  2 cjG )  2 cjF^2 ]

 kjcj^2 [ G^2  2 FG ]

 kj  1 cj^2 [2 FG  F^2 ].

If x  xj , then F  0, and in the first line the expression in the brackets [• • •] reduces to

2 G (1  cjG )  2( xj  xj  1 )( 1  )  0.

In the second and fourth lines we obtain zero. There remains

q  j ( xj )  kjcj^2 ( xj  1  xj )^2  kj.

Similarly, if x  xj  1 , then G  0 and

qj ( xj  1 )  ƒ j  1 cj^2 [2( xj  1  xj )  2 cj ( xj  1  xj )^2 ]

 kj  1 cj^2 ( xj  1  xj )^2  0  kj  1 • 1  kj  1. This verifies (5).

4. This derivation is simple and straightforward.

8. p 2 ( x )  x^2. [ƒ( x )  p 2 ( x )]  4 x^3  2 x  0 gives the points of maximum deviation

x  1/ 2  and by inserting this, the maximum deviation itself, ƒ(1/ 2 )  p 2 (1/ 2 )  ^1 _ 4  1 _ 2   1 _ 4. For the spline g ( x ) we get, taking x  0,

[ƒ( x )  g ( x )]  4 x^3  2 x  6 x^2  0.

A solution is x  1/2. The corresponding maximum deviation is ƒ(^1 _ 2 )  g (_^12 )  _ 161  (^1 _ 4  2 • 1 _ 8 )  _ 161 , which is merely 25% of the previous value.

10. We obtain q 0  ^3 _ 4 ( x  2)^2  3 _ 4 ( x  2)^3  3  6 x  _^154 x^2  3 _ 4 x^3 q 1  3 _ 4 ( x  1)  3 _ 2 ( x  1)^2  5 _ 4 ( x  1)^3  1  9 _ 4 x^2  5 _ 4 x^3 q 2  1  9 _ 4 x^2  5 _ 4 x^3 q 3  ^3 _ 4 ( x  1)  3 _ 2 ( x  1)^2  3 _ 4 ( x  1)^3  3  6 x  _^154 x^2  3 _ 4 x^3.

xj  xj  1  xj  1  xj

Instructor’s Manual 309

12. n  3, h  2, so that (14) is

Since k 0  0 and k 3  12, the solution is k 1  12, k 2  12. In (13) with j  0 we have a 00  ƒ 0  1, a 01  k 0  0, a 02  3 _ 4 (9  1)  1 _ 2 (12  0)  0

a 03  2 _ 8 (1  9)  _^14 (12  0)  1. From this and, similarly, from (13) with j  1 and j  2 we get the spline g ( x ) consisting of the three polynomials (see the figure) q 0 ( x )  1  x^3 (0  x  2) q 1 ( x )  9  12( x  2)  6( x  2)^2  2( x  2)^3  25  36 x  18 x^2  2 x^3 (2  x  4) q 2 ( x )  41  12( x  4)  6( x  4)^2   103  60 x  6 x^2 (4  x  6).

Section 19.4. Spline in Problem 12

14. q 0 ( x )  x^3 , q 1 ( x )  1  3( x  1)  3( x  1)^2  ( x  1)^3 , q 2 ( x )  6  6( x  2)  2( x  2)^3 16. 3 x /  4 x^3 / 3 18. The purpose of the experiment is to see that the advantage of the spline over the polynomial increases drastically with m. The greatest deviation of pm occurs at the ends. Formulas for the pm as a CAS will give them are p 4 ( x )  1  5 _ 4 x^2  1 _ 4 x^4 p 6 ( x )  1  _^4936 x^2  _ 187 x^4  _ 361 x^6 p 8 ( x )  1  _^205144 x^2  _ 19291 x^4  _ 965 x^6  _ 5761 x^8 and so on. 20. Team Project.

(b) x ( t )  1 _ 2 t  5 _ 2 t^2  2 t^3 , y ( t )  1 _ 2 t  (^1 _ 4  3   1) t^2  (^1 _ 2  1 _ 4  3 ) t^3 (c) x ( t )  t  2 t^2  2 t^3 , y ( t )  t  (^1 _ 2  3   2) t^2  (1  1 _ 2  3 ) t^3 Note that the tangents in (b) and (c) are not parallel.

SECTION 19.5. Numeric Integration and Differentiation, page 817

Purpose. Evaluation of integrals of empirical functions, functions not integrable by elementary methods, etc.

50 40 30 20 10 0 0 2 4 6 x

y

 3 _ 2 (ƒ 2  ƒ 0 )  60

 3 _ 2 (ƒ 3  ƒ 1 )  48.

k 2

4 k 2  k 3

k 0  4 k 1 

k 1 

Instructor’s Manual 311

20. h ^1 _ 2  0  1  • • •  n  1  1 _ 2  n   [( b  a )/ n ] nu  ( b  a ) u. This is similar to the corresponding proof for Simpson’s rule given in the text. 22. Since the cosine is even, we can take terms together,

/

0

cos x dx  1 _ 2 

/

 /

cos x dx  

1

 1

cos 1 _ 2 t dt

 [2 A 1 cos 1 _ 2 t 1  2 A 2 cos 1 _ 2 t 2  A 3 • 1]  1.00000 00552.

24. x  ( t  1)/1.6 gives x  0 when t  1 and x  1.25 when t  1. Also dx  dt /1.6. The computation gives 0.5459627. The 7S-exact value is 0.5459623. This is the value of the Fresnel integral S( x ) at x  1.25. 26. Team Project. The factor 2^4  16 comes in because we have replaced h by 1 _ 4 h , giving for h^2 now (^1 _ 4 h )^2  _ 161 h^2. In the next step (with h /8) the error  43 has the factor 1/(2^6  1)  _ 631 , etc. For ƒ( x )  e  x^ the table of J and  values is J 11  1.  21  0. J 21  0.935547 J 22  0.  31  0.017648  32  0. J 31  0.882604 J 32  0.864956 J 33  0. Note that J 33 is exact to 4D. For ƒ( x )  1 _ 4 x^4 cos 1 _ 4 x the table is J 11  0  21  0. J 21  0.555360 J 22  0.  31  0.168597  32  0. J 31  1.06115 J 32  1.22975 J 33  1.  41  0.049142  42  0.001864  43  0. J 41  1.20857 J 42  1.25771 J 43  1.25958 J 44  1.

Note that J 44 is exact to 5D.

28. 0.240, which is not exact. It can be shown that the error term of the present formula is h^3 ƒ(4)( )/12, whereas that of (15) is h^4 ƒ(5)( )/30, where x 2  h   x 2  h. In our case this gives the exact value 0.240  0.016  0.256 and 0.256  0  0.256, respectively. 30. Differentiating (14) in Sec. 19.3 with respect to r and using dr  dx / h we get

 h ƒ( x )  ƒ 0  2 ƒ 0  3 ƒ 0  • • •.

Now x  x 0 gives r  ( x  x 0 )/ h  0 and the desired formula follows.

SOLUTIONS TO CHAP. 19 REVIEW QUESTIONS AND PROBLEMS, page 830

16. 0.35287 • 100 , 0.12748 • 104 , 0.61400 • 10 ^2 , 0.24948 • 102 , 0.33333 • 100 , 0.12143 • 102 18. 8.2586, 8.258, 9.9, impossible 20. 199.98, 0.02; 199.98, 0. 22. 7.9475  d  7.

3 r^2  6 r  2  3!

2 r  1  2!

d ƒ( x )  dr

24.  r ( a ^2 )   •  •  2  r (^  a )

26. Because  g ( x ) is small (0.038) near the solution 0.739085.

28. 0.739. As mentioned before, this method is good for starting but should not be used once one is close to the solution. 30. 2  3 x  2 x^3 if  1  x  1, 1  3( x  1)  6( x  1)^2  ( x  1)^3 if 1  x  3, 23  15( x  3)  ( x  3)^3 if 3  x  5 32. J 0.5  0.90266, J 0.25  0.90450, 0.25  0.

a   a  a

2 a  a

a  a^   a

a  a^   a

a^2  a^ ^2  a^2

312 Instructor’s Manual

3S is simply not enough. The 4-digit calculations give x 2  4.095, x 1  1. without pivoting and the exact result x 2  4, x 1  1 with pivoting.

SECTION 20.2. Linear Systems: LU-Factorization, Matrix Inversion, page 840 Purpose. To discuss Doolittle’s, Crout’s, and Cholesky’s methods, three methods for solving linear systems that are based on the idea of writing the coefficient matrix as a product of two triangular matrices (“LU-factorization”). Furthermore, we discuss matrix inversion by the Gauss–Jordan elimination. Main Content, Important Concepts Doolittle’s and Crout’s methods for arbitrary square matrices Cholesky’s method for positive definite symmetric matrices Numerical matrix inversion Short Courses. Doolittle’s method and the Gauss–Jordan elimination. Comment on Content L suggests “lower triangular” and U “upper triangular.” For Doolittle’s method, these are the same as the matrix of the multipliers and of the triangular system in the Gauss elimination. The point is that in the present methods, one solves one equation at a time, no systems.

SOLUTIONS TO PROBLEM SET 20.2, page 844

2. [ ] [ ] ,

4. Y Z Y Z ,

6. Y Z Y Z ,

8. Team Project. (a) The formulas for the entries of L  [ ljk ] and U  [ ujk ] are

lj 1  aj 1 j  1, • • • , n

u 1 k  k  2, • • • , n

ljk  ajk  (^) 

k  1

s  1

ljsusk j  k , • • • , n ; k  2

ujk  ( ajk  (^) 

j  1

s  1

ljsusk ) k  j  1, • • • , n ; j  2.

ljj

a 1 k  l 11

x 1  0.

x 2  2.

x 3  2.

x 1   4

x 2   8

x 3   8

_^92
1 _

2

1 _

2

x 1   2

x 2   5

314 Instructor’s Manual