0% found this document useful (0 votes)
48 views

Assume That The Quadratic Function Is Defined As:: X Z X e X y e e

1. The document defines a real function z in terms of x and y over specified ranges and provides sample z values for 9 x-y points. 2. It formulates an objective function to minimize the sum of squared differences between the real z values and a quadratic function g of x and y. 3. By taking partial derivatives of the objective function with respect to the quadratic coefficients and setting them to zero, it arrives at the coefficients a, b, c, d, e, f that define the optimal quadratic function g. 4. It then takes the partial derivatives of g with respect to x and y and sets them to zero to find the minimum point x = -0.0173, y =

Uploaded by

Duong The
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views

Assume That The Quadratic Function Is Defined As:: X Z X e X y e e

1. The document defines a real function z in terms of x and y over specified ranges and provides sample z values for 9 x-y points. 2. It formulates an objective function to minimize the sum of squared differences between the real z values and a quadratic function g of x and y. 3. By taking partial derivatives of the objective function with respect to the quadratic coefficients and setting them to zero, it arrives at the coefficients a, b, c, d, e, f that define the optimal quadratic function g. 4. It then takes the partial derivatives of g with respect to x and y and sets them to zero to find the minimum point x = -0.0173, y =

Uploaded by

Duong The
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

5

-5

2
3
2
0 1
0
-2 -1
-2
y -3
x

x  2 2 1 − x +1 2 − y 2
z = 3 (1 − x ) 2e
− x 2 −( y +1)
− 10  − x3 − y 5  e− x − y − e ( )
2
2

5  3

Assume that the quadratic function is defined as:

g ( x, y ) = ax 2 + by 2 + cxy + dx + ey + f

The real function is:

x  2 2 1 − x +1 2 − y 2
z = 3 (1 − x ) 2e
− x 2 −( y +1)
− 10  − x3 − y 5  e− x − y − e ( )
2
2

5  3

The range of x and y are:

xRange =  −3;3
yRange =  −3;3

The objective function is:

  z − g ( xi , yi ) 
2
min i
arg a ,b , c , d , e , f
i

From the range of x and y, and the real function we can make a table as:

Indication x y z

1 -2.0 -2.5 0.0668

2 -1.5 -2.0 0.7722


3 -1.0 -1.5 3.5864

4 0.0 -1.0 2.2761

5 1.0 0.0 2.9369

6 1.2 0.5 2.8073

7 1.4 1.0 1.7971

8 1.8 1.5 0.5396

9 2.0 2.0 0.1329

The summation of distances is defined as:

9
S =   zi − g ( xi , yi )  =  0.0668 − ( 4a + 6.25b + 5c − 2d − 2.5e + f ) 
2 2

i =1

+  0.7722 − ( 2.25a + 4b + 3c − 1.5d − 2.0e + f ) 


2

+ 3.5864 − ( a + 2.25b + 3c − d − 1.5e + f ) 


2

+  2.2761 − ( b − e + f )  +  2.9363 − ( a + d + f ) 
2 2

+  2.8073 − (1.44a + 0.25b + 0.6c + 1.2 d + 0.5e + f ) 


2

+ 1.7971 − (1.96a + b + 2.8c + 1.4d + e + f ) 


2

+  0.5396 − ( 3.24a + 2.25b + 2.7c + 1.8d + 1.5e + f ) 


2

+  0.1329 − ( 4a + 4b + 16c + 2d + 2e + f ) 
2

Simplify the summation S we have:

S = 55.4753a 2 + 123.72ab + 217.7ac + 13.858ad + 37.78af − 39.2449a + 83.25b 2 + 246.05bc


+ 42bf + 314.49c 2 + 40.3817c + 48cd + 66.2cf + 18.89d 2 + 88.5858d + 5.8df + 9 f 2 + 221.5333
− 120.4595b − 14bd − 40.7025 f

Calculate the partial derivative for variable a, b, c, d, e, f we get:


S
= 110.9506a + 123.72b + 217.7 c + 13.858d + 37.78 f
a
S
= 166.5b + 123.72b + 246.05c + 42 f − 14 d − 120.4595
b
S
= 628.98c + 217.7 a + 246.05b + 48d + 66.2 f + 40.3817
c
S
= 356.8321d + 13.858a − 14b + 48c + 5.8 f + 88.5858
d
S
=0
e
S
= 18 f + 37.78a + 42b + 66.2c − 40.7025
f

Solving the 5 equations above we can get the coefficients a, b, c, d, e, f:

a = −4.5475, b = 1.4728, c = 0.1057, d = −0.1578, e = 0, f = 7.9807

From that we derive the quadratic function as:

g ( x, y ) = −4.5475 x 2 + 1.4728 y 2 + 0.1057 xy − 0.1578 x + 7.9807

Calculate the partial derivative for variable x and y we have:

g
= −9.095 x + 0.1057 y − 0.1578
x
g
= 2.9456 y + 0.1057 x
y

Finally, we can get the value of x and y as:

x = −0.0173
y = 6.22  10 −4

The point above is really a minimum point

You might also like