Arora, Introduction to Optimum Design, 4e
10.64 ______________________________________________________________________________
Calculate the gradient of the following functions at the given points by the forward, backward, and
central difference approaches with a 1 percent change in the point and compare them with the exact
gradient.
22
1 1 2 12
( ) 12.096 21.504 1.7321 ;f x x xx= + −−x
starting point
22 2
2 21 1
( ) 50( x ) (2 x ) ;fx= − +−x
starting point
222
3 1 2 3 12 23
( ) 2 2 2x x 2x x ;f xxx=+++ +x
starting point
Solution:
( ) 12.096 21.504 1.7321 ;f x x xx= + −−x
[5, 6]=x
2. Forward Difference Approach
12 1 1
[ (5,6.06) (5,6)] 0.06 15.50 0.06 258.3382fx f f∂∂= − = =
3. Backward Difference Approach
11 1 1
[ (5,6) (4.95,6)] 0.05 5.9312 0.05 118.6fx f f∂∂= − = =
4. Central Difference Approach
11 1 1
[ (5.05,6) (4.95,6)] 0.10 11.923 0.10 119.2fx f f∂∂= − = =
22 2
( ) 50( x ) (2 x ) ;fx= − +−x
2. Forward Difference Approach
21 2 2
[ (1.01, 2) (1, 2)] 0.01 2.0097 0.01 200.97fx f f∂ ∂= − =− =−
4. Backward Difference Approach
21 2 2
[ (1, 2) (0.99, 2)] 0.01 2.0299 0.01 202.99fx f f∂ ∂= − =− =−
4. Central Difference Approach
21 2 2
[ (1.01, 2) (0.99, 2)] 0.02 4.0396 0.02 201.98fx f f∂ ∂= − =− =−