Docsity

3 Solved Problems on Variational Methods - Homework | ME 6443, Assignments of Mechanical Engineering

Toggle sidebar
bg1
ME6443, Fall 2007, Dr. Ferri
Homework Solution 1
Due Thurssday, August 30, 2007
Problem 1. (2 pts)
Find the point (x1, x2, x3) at which the following function attains an extremum. Also, classify the
nature of the extremum (minimum, maximum, saddle.)
4244442)( 321
2
332
2
221
2
1++−−+−++= xxxxxxxxxxxf
Solution:
First necessary condition is that the gradient = 0 ; i.e., 0
321
=
∂
∂
∂
∂
∂
∂
x
f
x
f
x
f
0244 21
1
=−+=
∂
∂xx
x
f
01484 321
1
=−−+=
∂
∂xxx
x
f
0184 32
3
=++−=
∂
∂xx
x
f
−
=
−
−
1
1
2
840
484
044
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:
−
−=
∂
∂
∂∂
∂
∂∂
∂
∂∂
∂
∂
∂
∂∂
∂
∂∂
∂
∂∂
∂
∂
∂
840
484
044
2
3
2
23
2
13
2
32
2
2
2
2
12
2
31
2
21
2
2
1
2
x
f
xx
f
xx
f
xx
f
x
f
xx
f
xx
f
xx
f
x
f
Compute eigenvalues:
» eig(A) Æ ans = 0.7922, 6.2198, 12.9879
Since all eigenvalues are > 0, the Hessian is positive definite Æ the stationary point is a minimum.
pf3
pf4
pf8

Partial preview of the text

Download 3 Solved Problems on Variational Methods - Homework | ME 6443 and more Assignments Mechanical Engineering in PDF only on Docsity!

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.