




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!





ME6443, Fall 200 7 , Dr. Ferri Homework Solution 1 Due Thurssday, August 30, 200 7
Problem 1. (2 pts) Find the point (x 1 , x 2 , x 3 ) at which the following function attains an extremum. Also, classify the nature of the extremum (minimum, maximum, saddle.)
f ( x )= 2 x 12 + 4 x 1 x 2 + 4 x 22 − 4 x 2 x 3 + 4 x 32 − 2 x 1 − x 2 + x 3 + 4
Solution:
First necessary condition is that the gradient = 0 ; i.e., 0 1 2 3
x
f x
f x
f
1
∂ (^) x x x
f
1
∂ (^) x x x x
f
3
∂ (^) x x x
f
3
2
1
x
x
x
There is only one vector that satisfies this linear system of equations:
» format rat » A=[4 4 0; 4 8 -4; 0 -4 8]; » B=[2 1 -1]'; » x=inv(A)B*
Yields: x = [5/4 -3/4 -1/2 ]T
Min/max? Examine the Hessian matrix:
32
2
3 2
2
3 1
2
2 3
2 2 2
2 2 1
2
1 3
2
1 2
2
12
2
x
f x x
f x x
f
x x
f x
f x x
f
x x
f x x
f x
f
Compute eigenvalues:
» eig(A) Æ ans = 0.7922, 6.2198, 12.
Since all eigenvalues are > 0, the Hessian is positive definite Æ the stationary point is a minimum.