Docsity

Part 36 Unconstrained Optimization Linear Programming-Advanced Engineering Mathematics-Solution Manual, Exercises of Engineering Mathematics

Toggle sidebar
bg1
8. We have k๎˜‚0.01. The boundary condition on the left is that the normal derivative
is zero. Now if we were at an inner point, we would have, by (5),
u
0,j๎˜ƒ1
๎˜‚
1
_
4
u
๎˜1,j
๎˜ƒ
1
_
2
u
0j
๎˜ƒ
1
_
4
u
1j
.
Here, by the central difference formula for the normal derivative (partial derivative
with respect to x) we get
0 ๎˜‚๎˜‚(u
1j
๎˜„u
๎˜1,j
)
so that the previous formula gives what we need,
u
0,j๎˜ƒ1
๎˜‚
1
_
2
(u
0j
๎˜ƒu
1j
).
The underlying idea is quite similar to that in Sec. 21.5. The computation gives
tx๎˜‚0x๎˜‚0.2 x๎˜‚0.4 x๎˜‚0.6 x๎˜‚0.8 x๎˜‚1
00 0 0000
0.01 0 0 0 0 0 0.5
0.02 0 0 0 0 0.125 0.866 025
0.03 0 0 0 0.031 0.279 1
0.04 0 0 0.008 0.085 0.397 0.866 025
0.05 0 0.002 0.025 0.144 0.437 0.5
0.06 0.001 0.007 0.049 0.187 0.379 0
0.07 0.004 0.016 0.073 0.201 0.236 ๎˜„0.5
0.08 0.010 0.027 0.091 0.178 0.043 ๎˜„0.866 025
0.09 0.019 0.039 0.097 0.122 ๎˜„0.150 ๎˜„1
0.10 0.029 0.048 0.089 0.048 ๎˜„0.295 ๎˜„0.866 025
0.11 0.039 0.054 0.068 ๎˜„0.028 ๎˜„0.352 ๎˜„0.5
0.12 0.046 0.054 0.041 ๎˜„0.085 ๎˜„0.308 0
10. u(x, 0) ๎˜‚u(1 ๎˜„x, 0) and the boundary conditions imply u(x, t) ๎˜‚u(1 ๎˜„x, t) for all
t. The calculation gives
(0, 0.2, 0.35, 0.35, 0.2, 0)
(0, 0.1875, 0.3125, 0.3125, 0.1875, 0)
(0, 0.171875, 0.28125, 0.28125, 0.171875, 0)
(0, 0.15625, 0.253906, 0.253906, 0.15625, 0)
(0, 0.141602, 0.229492, 0.229492, 0.141602, 0)
12. CAS Experiment. u(0, t) ๎˜‚u(1, t) ๎˜‚0, u(0.2, t) ๎˜‚u(0.8, t), u(0.4, t) ๎˜‚u(0.6, t),
where
x๎˜‚0.2 x๎˜‚0.4
t๎˜‚0 0.587785 0.951057
0.393432 0.636586 Explicit
t๎˜‚0.04 0.399274 0.646039 CN
0.396065 0.640846 Exact (6D)
0.263342 0.426096
t๎˜‚0.08 0.271221 0.438844
0.266878 0.431818
1
๎˜ˆ
2h
๎˜‹u
0j
๎˜ˆ
๎˜‹x
Instructorโ€™s Manual 345
im21.qxd 9/21/05 1:41 PM Page 345
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Part 36 Unconstrained Optimization Linear Programming-Advanced Engineering Mathematics-Solution Manual and more Exercises Engineering Mathematics in PDF only on Docsity!

8. We have k  0.01. The boundary condition on the left is that the normal derivative is zero. Now if we were at an inner point, we would have, by (5), u 0, j  1  1 _ 4 u 1, j  1 _ 2 u 0 j  1 _ 4 u 1 j. Here, by the central difference formula for the normal derivative (partial derivative with respect to x ) we get 0   ( u 1 j  u 1, j ) so that the previous formula gives what we need, u 0, j  1  _^12 ( u 0 j  u 1 j ). The underlying idea is quite similar to that in Sec. 21.5. The computation gives t x  0 x  0.2 x  0.4 x  0.6 x  0.8 x  1 0 0 0 0 0 0 0 0.01 0 0 0 0 0 0. 0.02 0 0 0 0 0.125 0.866 025 0.03 0 0 0 0.031 0.279 1 0.04 0 0 0.008 0.085 0.397 0.866 025 0.05 0 0.002 0.025 0.144 0.437 0. 0.06 0.001 0.007 0.049 0.187 0.379 0 0.07 0.004 0.016 0.073 0.201 0.236 0. 0.08 0.010 0.027 0.091 0.178 0.043 0.866 025 0.09 0.019 0.039 0.097 0.122 0.150  1 0.10 0.029 0.048 0.089 0.048 0.295 0.866 025 0.11 0.039 0.054 0.068 0.028 0.352 0. 0.12 0.046 0.054 0.041 0.085 0.308 0 10. u ( x , 0)  u (1  x , 0) and the boundary conditions imply u ( x , t )  u (1  x , t ) for all t. The calculation gives (0, 0.2, 0.35, 0.35, 0.2, 0) (0, 0.1875, 0.3125, 0.3125, 0.1875, 0) (0, 0.171875, 0.28125, 0.28125, 0.171875, 0) (0, 0.15625, 0.253906, 0.253906, 0.15625, 0) (0, 0.141602, 0.229492, 0.229492, 0.141602, 0) 12. CAS Experiment. u (0, t )  u (1, t )  0, u (0.2, t )  u (0.8, t ), u (0.4, t )  u (0.6, t ), where x  0.2 x  0. t  0 0.587785 0. 0.393432 0.636586 Explicit t  0.04 0.399274 0.646039 CN 0.396065 0.640846 Exact (6D) 0.263342 0. t  0.08 0.271221 0. 0.266878 0.

^1

2 h ^ u^0 j x

Instructorโ€™s Manual 345

x  0.2 x  0. 0.176267 0. t  0.12 0.184236 0. 0.179829 0. 0.117983 0. t  0.16 0.125149 0. 0.121174 0. 0.078972 0. t  0.2 0.085012 0. 0.081650 0.

14. We need the matrix

A .

3S-values computed by Crankโ€“Nicolson for x  0.1 (and 0.9), 0.2 (and 0.8), 0. (and 0.7), 0.4 (and 0.6), 0.5 and t  0.01, 0.02, โ€ข โ€ข โ€ข , 0.05 are 0.0754 0.141 0.190 0.220 0. 0.0669 0.126 0.172 0.201 0. 0.0600 0.114 0.156 0.183 0. 0.0541 0.103 0.141 0.166 0. 0.0490 0.093 0.128 0.150 0. 5S-values for t  0.04 are 0.054120 0.10277 0.14117 0.16568 0.17409. The corresponding values in Prob. 13 are 0.10182 0.16727. Exact 5S-values computed by (9) and (10) in Sec. 12.5 (two nonzero terms suffice) are 0.053947 0.10245 0.14074 0.16519 0.17359. We see that the present values are better than those in Prob. 13.

346 Instructorโ€™s Manual

6. From (12), Sec. 12.4, with c  1 we get the exact solution

u ( x , t )  

x  ct x  ct^ sin^  s ds^ ^ [cos^ ( x^ ^ ct )^ ^ cos^ ( x^ ^ ct )]. From (8) we have kgi  0.1 gi  0.1 sin 0.1  i. Because of the symmetry with respect to x  0.5 we need to list only the following values (with the exact values in parentheses): t x  0.1 x  0.2 x  0.3 x  0.4 x  0. 0.0 0 0 0 0 0 0.1 0.030902 0.058779 0.080902 0.095106 0. (0.030396) (0.057816) (0.079577) (0.093549) (0.098363) 0.2 0.058779 0.111804 0.153885 0.180902 0. (0.057816) (0.109973) (0.151365) (0.177941) (0.187098) 0.3 0.080902 0.153884 0.211803 0.248990 0. (0.079577) (0.151365) (0.208337) (0.244914) (0.257518) 0.4 0.095106 0.180902 0.248990 0.292705 0. (0.093549) (0.177941) (0.244914) (0.287914) (0.302731)

8. Since u ( x , 0)  ฦ’( x ), the derivation is immediate. Formula (8) results if the integral equals 2 kgi. 10. Exact solution: u ( x , t )  ( x  t )^2. The values obtained in the computation are those of the exact solution. u 11 , u 21 , u 31 , u 41 are obtained from (8) and the initial conditions ui 0  (0.2 i )^2 , gi  0.2 i. In connection with the left boundary condition we can use the central difference formula ( u 1, j  u 1, j )  ux (0, jk )  2 jk to obtain u 1, j and then (8) to compute u 01 and (6) to compute u 0, j  1.

SOLUTIONS TO CHAP. 21 REVIEW QUESTIONS AND PROBLEMS, page 930

16. y  ex^2. The computation is: xn yn Error 0.1 1 0. 0.2 1.02 0. 0.3 1.0608 0. 0.4 1.1244 0. 0.5 1.2144 0. 0.6 1.3358 0. 0.7 1.4961 0. 0.8 1.7056 0. 0.9 1.9785 0. 1.0 2.3346 0. This illustrates again that the method is too inaccurate for most practical purposes.

^1

2 h

^1

^1

348 Instructorโ€™s Manual

18. y  tan x  x  4; y  4, 4.002707, 4.022789, 4.084133, 4.229637, 4.557352, 5.370923, 8.341089. For x 1.0 the error is of the order 10^5 , but then (1.2)  10 ^3 , (1.4)  0.06 since we are getting close to /2. 20. (a) 0.1, 0.2034, 0.3109, 0,4217, 0.5348, 0.6494, 0.7649, 0.8806, error 0.0044, 0.0122, - โ€ข โ€ข , 0.0527. (b) 0.2055, 0.4276, 0.6587, 0.8924, error 0.0101, 0.0221, 0.0322, 0.0409. (c) 0.4352, 0.9074, error 0.0145, 0. 22. y  tan x  x. The computation is:

xn yn Error  105 0.2 0.00270741 0. 0.4 0.0227890 0. 0.6 0.0841334 0. 0.8 0.229637 0. 1.0 0.557352 5.

24. y 1  0.021400 (starting value), y 2  0.092322, y 3  0.223342, y 4  0.427788, y 5  0.721945. This shows that the method is rather inaccurate, the error of y 5 being 0.003663. Exact: y  ex^  x  1. 26. y  sin x. The computation is:

xn yn Error  105 0.2 0.198667 0. 0.4 0.389413 0. 0.6 0.564635 0. 0.8 0.717347 0. 1.0 0.841461 1.

28. The solution is y 1  3 e ^2 x^  e ^8 x , y 2  3 e ^2 x^  e ^8 x. The computation gives:

xn y 1, n Error y 2, n Error 0.1 2.00447 0.00239 2.90793 0. 0.2 1.80691 0.00215 2.21504 0. 0.3 1.55427 0.00145 1.73863 0. 0.4 1.30636 0.00087 1.38965 0. 0.5 1.08484 0.00048 1.12247 0.

30. u ( P 11 )  u ( P 22 )  u ( P 33 )  35, u ( P 21 )  u ( P 32 )  20, u ( P 31 )  10, u ( P 12 )  u ( P 23 )  50, u ( P 13 )  60 32. u ( P 21 )  500, u ( P 22 )  200, u  100 at all other gridpoints 36. From the 3D-values given below we see that at each point x 0 the temperature oscillates with a phase lag and a maximum amplitude that decreases with decreasing x.

Instructorโ€™s Manual 349

Part F. Optimization. Graphs

CHAPTER 22 Unconstrained Optimization.

Linear Programming

SECTION 22.1. Basic Concepts. Unconstrained Optimization, page 936 Purpose. To explain the concepts needed throughout this chapter. To discuss Cauchyโ€™s method of steepest descent or gradient method, a popular method of unconstrained optimization. Main Content, Important Concepts Objective function Control variables Constraints, unconstrained optimization Cauchyโ€™s method SOLUTIONS TO PROBLEM SET 22.1, page 939

2. The line of approach is tangent to a particular curve C: ฦ’( x )  const, the point of contact P giving the minimum, whereas the next gradient of C at P is perpendicular to C. 4. ฦ’( x )  ( x 1  0.5)^2  2( x 2  1.5)^2  4.75. The computation gives: Step x 1 x 2 ฦ’( x ) 1 0.25342 1.5206 4. 2 0.49351 1.4805 4. 3 0.49680 1.5003 4. 6. ฦ’( x )  ( x 1  4)^2  0.1( x 2  5)^2  4. The computation gives: Step x 1 x 2 ฦ’( x ) 1 4.0240 1.4016 5. 2 3.7933 4.8622 4. 3 4.0008 4.8760 4. 4 3.9929 4.9952 4. 5 4.0000 4.9957 4. 6 3.9997 5.0000 4. 7 4.0000 5.0000 4. 8. The calculation gives for Steps 15: x 1 x 2 ฦ’( x ) 1.33333 2.66667 5. 3.55556 1.77778 9. 2.37037 4.74074 16. 6.32099 3.16049 29. 4.21399 8.42798 53.

352 Instructorโ€™s Manual

This is the beginning of a broken line of segments spiraling away from the origin. At the corner points, ฦ’ is alternatingly positive and negative and increases monotone in absolute value.

10. ฦ’( x )  x 12  x 2 gives

z ( t )  x  t [2 x 1 , 1]  [(1  2 t ) x 1 , x 2  t ],

hence g ( t )  (1  2 t )^2 x 12  x 2  t ,

g ( t )  4(1  2 t ) x 12  1  0.

From this, 1  2 t   , t  . For this t , z ( t )  [ , x 2   ]. From this, with x 1  1, x 2  1, we get successively z (1)  [^1 _ 4 , 1  1 _ 2  1 _ 8 ]T z (2)  [1, 1  2 โ€ข 1 _ 2  1 _ 8  2]T z (3)  [^1 _ 4 , 1  3 โ€ข 1 _ 2  2 โ€ข 1 _ 8  2]T etc. The student should sketch this, to see that it is reasonable. The process continues indefinitely, as had to be expected.

12. CAS Experiment. (c) For ฦ’( x )  x 12  x 24 the values converge relatively rapidly to [0 0]T, and similarly for ฦ’( x )  x 14  x 24.

SECTION 22.2. Linear Programming, page 939 Purpose. To discuss the basic ideas of linear programming in terms of very simple examples involving two variables, so that the situation can be handled graphically and the solution can be found geometrically. To prepare conceptually for the case of three or more variables x 1 , โ€ข โ€ข โ€ข , xn. Main Content, Important Concepts Linear programming problem Its normal form. Slack variables Feasible solution, basic feasible solution Optimal solution Comments on Content Whereas the function to be maximized (or minimized) by Cauchyโ€™s method was arbitrary (differentiable), but we had no constraints, we now simply have a linear objective function, but constraints, so that calculus no longer helps. No systematic method of solution is discussed in this section; these follow in the next sections.

^1

8 x 12

^1

^1

4 x 1

^1

8 x 12

^1

^1

4 x 12

354 Instructorโ€™s Manual

Comment on Concepts and Method The given form of the problem involves inequalities. By introducing slack variables we convert the problem to the normal form. This is a linear system of equations. The initial simplex table is its augmented matrix. It is transformed by first selecting the column of a pivot and then the row of that pivot. The rules for this are entirely different from those for pivoting in connection with solving a linear system of equations. The selection of a pivot is followed by a process of elimination by row operations similar to that in the Gaussโ€“Jordan method (Sec. 7.8). This is the first step, leading to another simplex table (another augmented matrix). The next step is done by the same rules, and so on. The process comes to an end when the first row of the simplex table obtained contains no more negative entries. From this final simplex table one can read the optimal solution of the problem because the first row corresponds to the objective function ฦ’( x ) to be maximized (or minimized).

SOLUTIONS TO PROBLEM SET 22.3, page 946

2. From the given data we have the augmented matrix (the initial simplex table)

T 0  Y Z.

The pivot is 4 since 1600/4  1200/2. The indicated calculations give

T 1  Y Z

The pivot is 2 in Row 2. The indicated calculations give

T 2  Y Z

This shows that the solution is ฦ’ ( , )  500.

4. From the given data we obtain the augmented matrix

T 0  (^) W X.

^400

^1200

Row 1  1 _ 4 Row 2 Row 2 Row 3  2 _ 2 Row 2.

1 _ 8

^1 _ 2

3 _ 2

1 _ 4

Row 1  1 _ 4 Row 3 Row 2  2 _ 4 Row 3 Row 3.

1 _ 4

^1 _ 2

^1 _ 2