



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!




13.2 (a) The function can be plotted
- - -
0
40
-2 -1 0 1 2
(b) The function can be differentiated twice to give
4 2 f "( x )=− 45 x − 24 x
Thus, the second derivative will always be negative and hence the function is concave for all
values of x.
(c) Differentiating the function and setting the result equal to zero results in the following
roots problem to locate the maximum
5 3 f x = =− x − x +
A plot of this function can be developed
- -
0
200
400
-2 -1 0 1 2
A technique such as bisection can be employed to determine the root. Here are the first few
iterations:
iteration xl xu xr f ( xl ) f ( xr ) f ( xl ) × f ( xr ) ε a
1 0.00000 2.00000 1.00000 12 -5 -60.
2 0.00000 1.00000 0.50000 12 10.71875 128.6250 100.00%
3 0.50000 1.00000 0.75000 10.71875 6.489258 69.5567 33.33%
4 0.75000 1.00000 0.87500 6.489258 2.024445 13.1371 14.29%
5 0.87500 1.00000 0.93750 2.024445 -1.10956 -2.2463 6.67%
The approach can be continued to yield a result of x = 0.91692.
13.3 First, the golden ratio can be used to create the interior points,
d =
x 1 = 0 + 1. 2361 = 1. 2361
x 2 = 2 − 1. 2361 = 0. 7639
The function can be evaluated at the interior points
f ( x 2 )= f ( 0. 7639 )= 8. 1879
f ( x 1 )= f ( 1. 2361 )= 4. 8142
Because f ( x 2 ) > f ( x 1 ), the maximum is in the interval defined by xl , x 2 , and x 1 .where x 2 is the
optimum. The error at this point can be computed as
For the second iteration, xl = 0 and xu = 1.2361. The former x 2 value becomes the new x 1 , that
is, x 1 = 0.7639 and f ( x 1 ) = 8.1879. The new values of d and x 2 can be computed as
d =
x 2 = 1. 2361 − 0. 7639 = 0. 4721
The function evaluation at f ( x 2 ) = 5.5496. Since this value is less than the function value at x 1 ,
the maximum is in the interval prescribed by x 2 , x 1 and xu. The process can be repeated and all
three iterations summarized as
i xl f ( xl ) x 2 f ( x 2 ) x 1 f ( x 1 ) xu f ( xu ) d xopt ε a
1 0.0000 0.0000 0.7639 8.1879 1.2361 4.8142 2.0000 -104.0000 1.2361 0.7639 100.00%
2 0.0000 0.0000 0.4721 5.5496 0.7639 8.1879 1.2361 4.8142 0.7639 0.7639 61.80%
3 0.4721 5.5496 0.7639 8.1879 0.9443 8.6778 1.2361 4.8142 0.4721 0.9443 30.90%
13.4 First, the function values at the initial values can be evaluated
f ( x 0 )= f ( 0 )= 0
f ( x 1 )= f ( 1 )= 8. 5
f ( x 2 )= f ( 2 )=− 104
and substituted into Eq. (13.7) to give,
2 2 2 2 2 2
x =
which has a function value of 3.924617. At this point, an approximate error can be computed
as
The process can be repeated, with the results tabulated below:
0 2 -104 -340 -
1 1.583333 -17.2029 -109.313 -342.981 26.316%
2 1.26462 3.924617 -33.2898 -153.476 25.202%
3 1.047716 8.178616 -8.56281 -80.5683 20.703%
Thus, within five iterations, the result is converging on the true value of f ( x ) = 8.69793 at x =
0.91692.
13.6 Golden section search is inefficient, but always converges if xl and xu bracket the maximum
or minimum of a unimodal function.
Quadratic interpolation can be programmed as either a bracketing or as an open method. For
the former, convergence is guaranteed if the initial guesses bracket the maximum or
minimum of a unimodal function. However, as mentioned at the top of p. 351, it may
sometimes converge slowly. If it is programmed as an open method, it may converge rapidly
for well-behaved functions and good initial values. Otherwise, it may diverge. It also has the
disadvantage that three initial guesses are required.
Newton’s method may converge rapidly for well-behaved functions and good initial values.
Otherwise, it may diverge. It also has the disadvantage that both the first and second
derivatives must be determined.
14.7 The partial derivatives can be evaluated at the initial guesses, x = 0 and y = 0,
3 3 = + − + = + − + = ∂
x x y x
f
x y y
f
2 4 f ( 0 + 4 h , 0 + 2 h )= 20 h + 20 h − 512 h
3 g ' ( h )= 20 + 40 h − 2048 h
The root of this equation can be determined by bisection. Using initial guesses of h = 0 and 1
1 0.00000 1.00000 0.50000 20.000 -216.000 -4320.00 100.00%
2 0.00000 0.50000 0.25000 20.000 -2.000 -40.00 100.00%
3 0.00000 0.25000 0.12500 20.000 21.000 420.00 100.00%
4 0.12500 0.25000 0.18750 21.000 14.000 294.00 33.33%
5 0.18750 0.25000 0.21875 14.000 7.313 102.38 14.29%
6 0.21875 0.25000 0.23438 7.313 3.008 21.99 6.67%
7 0.23438 0.25000 0.24219 3.008 0.595 1.79 3.23%
8 0.24219 0.25000 0.24609 0.595 -0.680 -0.40 1.59%
9 0.24219 0.24609 0.24414 0.595 -0.037 -0.02 0.80%
10 0.24219 0.24414 0.24316 0.595 0.280 0.17 0.40%
11 0.24316 0.24414 0.24365 0.280 0.122 0.03 0.20%
12 0.24365 0.24414 0.24390 0.122 0.043 0.01 0.10%
13 0.24390 0.24414 0.24402 0.043 0.003 0.00 0.05%
Therefore,
x = 0 + 4(0.244) = 0.
y = 0 + 2(0.244) = 0.