• 沒有找到結果。

1092 Calculus4 ME Final Exam

N/A
N/A
Protected

Academic year: 2022

Share "1092 Calculus4 ME Final Exam"

Copied!
13
0
0

加載中.... (立即查看全文)

全文

(1)

1092 Calculus4 ME Final Exam

June 19, 2021

1. Let V = span⎧⎪⎪⎪⎪⎪

⎨⎪⎪⎪⎪⎪⎩

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 3

−4−5

−1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 4

−2−2 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 3 2 3

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

−2 2

−4 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎫⎪⎪⎪⎪⎪

⎬⎪⎪⎪⎪⎪⎭and W = span⎧⎪⎪⎪⎪⎪

⎨⎪⎪⎪⎪⎪⎩

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1

−1−1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1

−2−2 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1 1 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

−1 1 2 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎫⎪⎪⎪⎪⎪

⎬⎪⎪⎪⎪⎪⎭. (a) (5 pts) Find the dimension of the vector subspace V .

(b) (5 pts) Find a basis for W . (Hint: a basis is a linearly independent set of vectors that span W ) (c) (2 pts) Show that V and W are not equal.

Solution:

(a) The dimension is the rank of the matrix

⎡⎢⎢⎢

⎢⎢⎢⎢

3 −4 −5 −1

4 −2 −2 1

1 3 2 3

−2 2 −4 1

⎤⎥⎥⎥

⎥⎥⎥⎥

. We find the rank of the matrix via Gaussian elimination.

⎡⎢⎢⎢

⎢⎢⎢⎢

3 −4 −5 −1

4 −2 −2 1

1 3 2 3

−2 2 −4 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

1 3 2 3

−2 2 −4 1 3 −4 −5 −1

4 −2 −2 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

1 3 2 3

0 8 0 7

0 −13 −11 −10 0 −14 −10 −11

⎤⎥⎥⎥

⎥⎥⎥⎥

Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎢

⎢⎣

1 3 2 3

0 1 0 7

8 0 0 −11 11

8 0 0 −10 10

8

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎥

⎥⎦

Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎣

1 3 2 3

0 1 0 7

8 0 0 1 −1 0 0 0 80

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎦

The dimension of V is 3.

Alternative methods for (a):

The determinant can be used to determine whether the matrix is full rank.

det

⎡⎢⎢⎢

⎢⎢⎢⎢

3 −4 −5 −1

4 −2 −2 1

1 3 2 3

⎤⎥⎥⎥

⎥⎥⎥⎥= 3 det⎡⎢

⎢⎢⎢⎢

−2 −2 1 3 2 3⎤⎥

⎥⎥⎥⎥+4 det⎡⎢

⎢⎢⎢⎢

4 −2 1 1 2 3⎤⎥

⎥⎥⎥⎥−5 det⎡⎢

⎢⎢⎢⎢

4 −2 1 1 3 3⎤⎥

⎥⎥⎥⎥+det⎡⎢

⎢⎢⎢⎢

4 −2 −2 1 3 2⎤⎥

⎥⎥⎥⎥

(2)

They can also find the number of non-zero eigenvalues via the characteristic polynomial, which is λ4− 4λ3+ 34λ2− 11λ. So the dimension of V is 3.

Here we also provide the Gaussian elimination without reordering if graders need to check for mistakes.

⎡⎢⎢⎢

⎢⎢⎢⎢

3 −4 −5 −1

4 −2 −2 1

1 3 2 3

−2 2 −4 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣ 1 −4

3

−5 3

−1 0 10 14 37

0 13 11 10

0 −2 −22 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣ 1 −4

3

−5 3

−1 0 1 1.4 0.73

0 0 −72 9

0 0 −96 12

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎣

1 −4 3

−5 3

−1 3 0 1 1.4 0.7

0 0 1 −1

0 0 0 80

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎦

And transposed.

⎡⎢⎢⎢

⎢⎢⎢⎢

3 4 1 −2

−4 −2 3 2

−5 −2 2 −4

−1 1 3 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣ 1 4

3 1 3

−2 0 10 13 −23 0 14 11 −22

0 7 10 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣ 1 4

3 1 3

−2 0 1 1.3 −0.23 0 0 −72 −192

0 0 9 24

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎣

1 4 3

1 3

−2 0 1 1.3 −0.23

0 0 1 8

0 0 0 30

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎦

(b) We find a basis of W via Gaussian elimination.

⎡⎢⎢⎢

⎢⎢⎢⎢

1 1 −1 −1

1 −2 −2 1

1 1 1 1

−1 1 2 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

1 1 −1 −1

0 −3 −1 2

0 0 2 2

0 2 1 −1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎣

1 1 −1 −1

0 1 1

3

−2 3

0 0 2 2

0 0 1

3 1 3

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎦

Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣

1 1 −1 −1

0 1 1

3

−2 0 0 1 31

0 0 0 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ The vectors

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1

−1−1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 0 3 1

−2

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 0 0 1 1

⎤⎥⎥⎥

⎥⎥⎥⎥

form a basis of W . Because we didn’t switch the rows,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1

−1−1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1

−2−2 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1 1 1

⎤⎥⎥⎥

⎥⎥⎥⎥

also form a basis of W . ⎦

Alternative methods for (b):

If we start by checking whether the four vectors are linearly independent by definition, we would be solving a system of equations.

⎧⎪⎪⎪⎪⎪⎪⎪

⎨⎪⎪⎪⎪⎪⎪⎪

x+ y + z − w = 0 x− 2y + z + w = 0

−x − 2y + z + 2w = 0

−x + y + z = 0

w=x+y+z

ÐÐÐÐ→⎧⎪⎪⎪⎪⎨

⎪⎪⎪⎪⎩

2x− y + 2z = 0 x+ 3z = 0

−x + y + z = 0

x=y+z

ÐÐÐ→⎧⎪⎪

⎨⎪⎪⎩

y+ 4z = 0 y+ 4z = 0

So x= 3, y = 4, z = −1, w = 6 is a nonzero solution. The four vectors are linearly dependent.

We can then check if three of them would be linearly independent.

⎧⎪⎪⎪⎪⎪⎪⎪

⎨⎪⎪⎪⎪⎪⎪⎪

x+ y + z = 0 x− 2y + z = 0

−x − 2y + z = 0

−x + y + z = 0

x=y+z

ÐÐÐ→⎧⎪⎪⎪⎪⎨

⎪⎪⎪⎪⎩

2y+ 2z = 0

−y + 2z = 0

−3y = 0

Page 2 of 13

(3)

Hence x = 0, y = 0, z = 0 is the only solution. The three vectors

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1

−1−1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1

−2−2 1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ ,

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1 1 1 1

⎤⎥⎥⎥

⎥⎥⎥⎥

are linearly

independent and form a basis of W .

(c) From the results of the Gaussian elimination we can see that the vector (0, 0, 1, 1) is in W but not in V .

Alternative methods for (c):

Since both vector subspaces are 3-dimensional, we can check whether they have the same

eigenvectors for λ = 0. The vector

⎡⎢⎢⎢

⎢⎢⎢⎢

−5−7 1 8

⎤⎥⎥⎥

⎥⎥⎥⎥

is an eigenvector for V and the vector

⎡⎢⎢⎢

⎢⎢⎢⎢

⎣ 1

−1 1

−1

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ is an

eigenvector for W , not parallel.

We can also add a vector from V to W and show that the vector subspace would become 4-dimensional.

⎡⎢⎢⎢

⎢⎢⎢⎢

1 1 −1 −1

1 −2 −2 1

1 1 1 1

1 3 2 3

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

1 1 −1 −1

0 −3 −1 2

0 0 2 2

0 2 3 4

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

1 1 −1 −1

0 −3 −1 2

0 0 1 1

0 0 7 14

⎤⎥⎥⎥

⎥⎥⎥⎥

⎦ Ð→

⎡⎢⎢⎢

⎢⎢⎢⎢

1 1 −1 −1

0 −3 −1 2

0 0 1 1

0 0 0 7

⎤⎥⎥⎥

⎥⎥⎥⎥

Grading:

(a) No points if the method is wrong. 2 points if they only showed that dim(V ) ≠ 4 (by determinant). 1 point off for each minor mistake (algebra, miscopy). 2 points off for each major mistake (inventing row operations). Do not take more points off for wrong answer if it is a result of mistakes.

(b) 3 points for finding a basis. 2 points for whether their work showed linearly independence.

Similar to (a), the work is more important than the answer.

(c) Depends on work shown in (a) and (b). Full credit or no credit.

Note:

For (a) and (b) if a minor mistake does not affect the answers, the grader may choose to take 0.5 off instead.

Because of the follow-through rule, they are allowed to say V and W are not equal due to dimension if they made a mistake in (a) or (b).

(4)

2. Let A=⎡⎢

⎢⎢⎢⎢

−1 3 1 3 −1 1

1 1 1

⎤⎥⎥⎥

⎥⎥⎦ .

(a) (8 pts) Find the eigenvalues of A and corresponding eigenvectors given that det(A − λI3) =

−λ3− λ2+ 12λ.

(b) (4 pts) Diagonalize A. That is, find an orthogonal matrix P (i.e. PTP = I3) and a diagonal matrix D such that PTAP = D.

(c) (4 pts) Determine whether A+ 5I3 is positive definite, negative definite, or indefinite.

(d) (4 pts) Determine whether A− 5I3 is positive definite, negative definite, or indefinite.

Solution:

(a) det(A − λI3) = −λ3− λ2+ 12λ = −λ(λ2+ λ − 12) = −λ(λ − 3)(λ + 4). Eigenvalues are 0, 3, −4.

The eigenvectors corresponding to each:

λ= 0 Ð→ A − λI3 =⎡⎢

⎢⎢⎢⎢

−1 3 1 3 −1 1

1 1 1

⎤⎥⎥⎥

⎥⎥⎦ Ð→⎧⎪⎪⎪⎪⎨

⎪⎪⎪⎪⎩

−x + 3y + z = 0 3x− y + z = 0 x+ y + z = 0

x=3y+z

ÐÐÐ→⎧⎪⎪

⎨⎪⎪⎩

8y+ 4z = 0

4y+ 2z = 0 Ð→⎡⎢

⎢⎢⎢⎢

⎣ x y z

⎤⎥⎥⎥

⎥⎥⎦

=⎡⎢

⎢⎢⎢⎢

⎣ 1 1

−2

⎤⎥⎥⎥

⎥⎥⎦ t

λ= 3 Ð→ A−λI3 =⎡⎢

⎢⎢⎢⎢

−4 3 1

3 −4 1

1 1 −2

⎤⎥⎥⎥

⎥⎥⎦ Ð→⎧⎪⎪⎪⎪⎨

⎪⎪⎪⎪⎩

−4x + 3y + z = 0 3x− 4y + z = 0 x+ y − 2z = 0

x=−y+2z

ÐÐÐÐ→⎧⎪⎪

⎨⎪⎪⎩

7y− 7z = 0

−7y + 7z = 0 Ð→⎡⎢

⎢⎢⎢⎢

⎣ x y z

⎤⎥⎥⎥

⎥⎥⎦

=⎡⎢

⎢⎢⎢⎢

⎣ 1 1 1

⎤⎥⎥⎥

⎥⎥⎦ t

λ= −4 Ð→ A − λI3=⎡⎢

⎢⎢⎢⎢

3 3 1 3 3 1 1 1 5

⎤⎥⎥⎥

⎥⎥⎦ Ð→⎧⎪⎪⎪⎪⎨

⎪⎪⎪⎪⎩

3x+ 3y + z = 0 3x+ 3y + z = 0 x+ y + 5z = 0

z=−3x−3y

ÐÐÐÐÐ→ {−2x − 2y = 0 Ð→⎡⎢

⎢⎢⎢⎢

⎣ x y z

⎤⎥⎥⎥

⎥⎥⎦

=⎡⎢

⎢⎢⎢⎢

⎣ 1

−1 0

⎤⎥⎥⎥

⎥⎥⎦ t

(b) Hence if P =

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎢⎢

⎢⎣

√1 6

√1 3

√1 2

√1 6

√1 3

√−1 2

√−2 6

√1

3 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎥⎥

⎥⎦

and D = ⎡⎢

⎢⎢⎢⎢

0 0 0

0 3 0

0 0 −4

⎤⎥⎥⎥

⎥⎥⎦

, then P is orthogonal and PTAP =

D.

(c) A+5I3 =⎡⎢

⎢⎢⎢⎢

4 3 1 3 4 1 1 1 6

⎤⎥⎥⎥

⎥⎥⎦

is Positive Definite. The eigenvalues of A+5I3 are 1, 5, 8, all positive.

They can also convert to vT(A + 5I3)v = 4x2+ 4y2 + 6z2+ 6xy + 2xz + 2yz and complete the squares:

4x2+ 4y2+ 6z2+ 6xy + 2xz + 2yz = 3(x + y)2+ (x + z)2+ (y + z)2+ 4z2≥ 0

(5)

Or use Sylvester’s criterion for the matrix A+ 5I3=⎡⎢

⎢⎢⎢⎢

4 3 1 3 4 1 1 1 6

⎤⎥⎥⎥

⎥⎥⎦ .

detA1= 4 > 0, detA2 = 16 − 9 = 7 > 0, detA3 = 96 + 3 + 3 − 4 − 4 − 54 = 40 > 0.

(d) A− 5I3 =⎡⎢

⎢⎢⎢⎢

−6 3 1

3 −6 1

1 1 −4

⎤⎥⎥⎥

⎥⎥⎦

is Negative Definite. The eigenvalues of A− 5I3 are −9, −5, −2, all negative.

They can also convert to vT(A − 5I3)v = −6x2− 6y2− 4z2+ 6xy + 2xz + 2yz and complete the squares:

−6x2− 6y2− 4z2+ 6xy + 2xz + 2yz = −3(x + y)2− (x + z)2− (y + z)2− 2x2− 2y2− 2z2 ≤ 0

Or use Sylvester’s criterion for the matrix A− 5I3=⎡⎢

⎢⎢⎢⎢

−6 3 1

3 −6 1

1 1 −4

⎤⎥⎥⎥

⎥⎥⎦ .

detA1= −6 < 0, detA2= 36 − 9 = 27 > 0, detA3= −144 + 3 + 3 + 6 + 6 + 36 = −90 > 0.

Grading:

(a) 2 points for eigenvalues. 2 points for each corresponding eigenvector.

(b) 3 points for P and 1 point for D.

(c) 1 point for the correct conclusion. 3 points for justifying their result.

(d) 1 point for the correct conclusion. 3 points for justifying their result.

In general, 1 point off for each minor mistake (algebra, miscopy). 2 points off for each major mistake (inventing new math).

If they get a zero vector as eigenvector, then they get no points for the eigenvector AND lose points for (b).

(6)

3. Maximize f(x, y, z) = yz subject to x + z = 1, x2+ y2 ≤ 6, z ≥ 0.

(a) (4 pts) Check whether the NDCQ is satisfied.

(b) (8 pts) Write out the Lagrangian function and the first order conditions.

(c) (8 pts) Solve the constrained optimization problem given that the constraints form a closed and bounded region.

Solution:

(a) The equality constraint is h(x, y, z) = x + z = 1. The inequality constraints are

g1(x, y, z) = x2 + y2 ≤ 6 and g2(x, y, z) = −z ≤ 0. ∇h = (1, 0, 1), ∇g1(x, y, z) = (2x, 2y, 0), and

∇g2(x, y, z) = (0, 0, −1) (2 pt)

If both g1 and g2 are binding, then z = 0, x = 1, and y = ±√

5. In this case, ∇h = (1, 0, 1),

∇g1= (2, ±2√

5, 0) and ∇g2= (0, 0, −1) are linearly independent. (0.5 pt)

If only g1 is binding, then x2 + y2 = 6 and ∇g1(x, y, z) = (2x, 2y, 0) ≠ (0, 0, 0). In this case,

∇h = (1, 0, 1) and ∇g1 = (2x, 2y, 0) are linearly independent. (0.5 pt)

If only g2 is binding, then z = 0, x = 1. In this case, ∇h = (1, 0, 1) and ∇g2 = (0, 0, −1) are linearly independent. (0.5 pt)

If neither g1 nor g2 are binding, then we just need to check∇h = (1, 0, 1) which is not (0, 0, 0).

(0.5 pt)

The above discussion shows that on the constraint set, ∇h and gradient(s) of binding inequality constraint(s) are linearly independent. Hence the NDCQ is satisfied.

(b) Lagrangian function L(x, y, z, µ, λ1, λ2) = yz − µ(x + z − 1) − λ1(x2+ y2− 6) + λ2z. (1 pt) First order conditions:

Lx= −µ − 2xλ1= 0 (1pt) Ly= z − 2yλ1= 0 (1pt) Lz= y − µ + λ2= 0 (1pt) λ1Lλ1 = λ1(6 − x2− y2) = 0 (1pt)

λ2z= 0 (1pt)

1− x − z = 0, x2+ y2≤ 6, z ≥ 0 (1pt) λ1 ≥ 0, λ2≥ 0 (1pt)

(c) Since f(x, y, z) = yz is zero when z = 0, we can assume z > 0 and λ2 = 0.

(1 pt for ruling out the case λ2> 0.)

Now we have µ+ 2xλ1= 0, 2yλ1 = z, y = µ, x + z = 1, λ1(6 − x2− y2) = 0.

If λ1= 0, then x = 1, y = 0, z = 0, µ = 0 and f(1, 0, 0) = 0. (1 pt for the case λ1= 0.)

Page 6 of 13

(7)

If λ1 ≠ 0, then x2 + y2 = 6. Replace µ and z to get 2xλ1 + y = 0, 2yλ1 = 1 − x. Hence 2xyλ1 = −y2= x − x2. So we get 2x2− x − 6 = (2x + 3)(x − 2) = 0.

If x= 2, then z = −1(not valid). If x = −3

2 , then z= 5

2. Then we get y = µ =

√15

2 , λ1 = 5 2√

15. (If y is negative then λ1< 0.) The solution satisfies all our conditions.

(5 pts for the case λ1> 0 and the complete solution (x, y, z) and µ, λ1. ) The maximum of f(x, y, z) = yz is 5√

15

4 at (−3 2 ,

√15 2 ,5

2). (1 pt)

(8)

4. Suppose that you keep t hours a day as leisure time and 16− t hours to tutor with wage 400 dollars per hour. Your daily budget is 200+400(16−t) and you spend money on food and clothes with prices 250 and 350, respectively, per unit. If you consume x units of food and y units of clothes, then your utility function U(x, y, t) depends on x, y and hours of leisure time t, where ∂U

∂x > 0, ∂U

∂y > 0, and

∂U

∂t > 0. Now you want to maximize U(x, y, t) under the constraints 250x+350y ≤ 200+400(16−t), t≤ 16, t ≥ 0, x ≥ 0, y ≥ 0.

(a) (8 pts) Write down the Kuhn-Tucker Lagrangian function, ˜L(x, y, t, λ1, λ2), and the first order conditions in the Kuhn-Tucker formulation.

(b) (4 pts) Show that if(x, y, t) is a maximizer, then the constraint 250x+350y ≤ 200+400(16−t) is binding at (x, y, t).

(c) (6 pts) Show that if(x, y, t) is a maximizer satisfying x> 0, y > 0, and 0 < t < 16, then

∂U

∂t(x, y, t) 1

400 =∂U

∂x(x, y, t) 1

250 = ∂U

∂y(x, y, t) 1 350.

Solution:

(a) ˜L(x, y, t, λ1, λ2) = U(x, y, t) − λ1(250x + 350y − 200 − 400(16 − t)) − λ2(t − 16) (1 pt) At the maximizer (x, y, t), there are λ1 and λ2 s.t.

1. ∂ ˜L

∂x = ∂U

∂x(x, y, t) − 250λ1 ≤ 0

∂ ˜L

∂y = ∂U

∂y(x, y, t) − 350λ1 ≤ 0

∂ ˜L

∂t = ∂U

∂t(x, y, t) − 400λ1− λ2 ≤ 0 (2 pts) 2. x∂ ˜L

∂x = x(∂U

∂x(x1, x2, t) − 250λ1) = 0 y∂ ˜L

∂y = y(∂U

∂y(x, y, t) − 350λ1) = 0 t∂ ˜L

∂t = t(∂U

∂t(x, y, t) − 400λ1 − λ2) = 0 (2 pts) 3. ∂ ˜L

∂λ1 = −250x− 350y+ 200 + 400(16 − t) ≥ 0, ∂ ˜L

∂λ2 = −t+ 16 ≥ 0 (1 pt) 4. λ1 ∂ ˜L

∂λ1 = λ1(−250x− 350y+ 200 + 400(16 − t)) = 0, λ2

∂ ˜L

∂λ2 = λ2(−t+ 16) = 0 (1 pt) 5. λ1 ≥ 0 and λ2 ≥ 0 (1 pt)

(Students get full credits about the FOC with (x, y, t), λ1, λ2 instead of (x, y, t), λ1, λ2.) (b) If 250x+ 350y< 200 + 400(16 − t), then λ1 = 0 (1 pt)

However, this implies that ∂U

∂x(x, y, t) ≤ 0 and ∂U

∂y(x, y, t) ≤ 0 . (2 pts) This contradicts the assumptions that ∂U

∂x, ∂U

∂x > 0. (1 pt) Hence we must have 250x+ 350y = 200 + 400(16 − t).

(c) Since t< 16, we have λ2 = 0 (1 pt).

Because x > 0, y> 0, we derive ∂U

∂x(x, y, t) − 250λ1 = 0 and ∂U

∂y(x, y, t) − 350λ1 = 0.

Page 8 of 13

(9)

(2 pts)

Also, 0< t implies that ∂U

∂t(x, y, t) − 400λ1− λ2 = ∂U

∂t(x, y, t) − 400λ1 = 0 (1 pt) Thus at the maximizer (x, y, t), ∂U

∂x 1

250 = ∂U

∂y 1

350 = ∂U

∂t 1

400 = λ1 (2 pts)

(10)

5. Consider the problem of maximizing f(x, y, z) = xyz subject to 2x + y + z = 18, and x + 2y + z = 18.

(a) (1 pts) Write down the Lagrangian function for this problem, L(x, y, z, µ1, µ2), where µ1 and µ2 are the Lagrange multipliers.

Solution:

Grading scheme: 1 pt for the correct answer no partial credit for this part.

Solution: The Lagrangian function is

L(x, y, z, µ1, µ2) = xyz − µ1(2x + y + z − 18) − µ2(x + 2y + z − 18).

(b) (2 pts) Check whether the NDCQ is satisfied.

Solution:

Grading scheme: 0.75 pt for computing ∇h1, 0.75 pt for computing∇h2, 0.5 pt for stating the rank is 2.

Solution: We have two constraint equalities h1(x, y, z) = 2x + y + z = 18 and h2(x, y, z) = x+ 2y + z = 18. [∇h1

∇h2] = [2 1 1

1 2 1]. The rank of [2 1 1

1 2 1] iis 2. So NDCQ is satisfied.

(c) (4 pts) Write down the first order conditions for this problem.

Solution:

Grading scheme: 0.8 pt for each part Solution: We have to compute

∂L

∂x = yz − 2µ1− µ2= 0

∂L

∂y = xz − µ1− 2µ2= 0

∂L

∂z = xy − µ1− µ2= 0

∂L

∂µ1 = −(2x + y + z − 18) = 0

∂L

∂µ2 = −(x + 2y + z − 18) = 0

(d) (7 pts) Show that the solution of the first order conditions are(x, y, z, µ1, µ2) = (4, 4, 6, 8, 8) or (x, y, z, µ1, µ2) = (0, 0, 18, 0, 0). (You have to show your steps to get complete credits).

Solution:

Grading scheme: There are two solution. Each solution 3.5 point. Given partial credit accordingly.

Solution: We have xyz− (2µ1+ µ2)x = xyz − (µ1+ 2µ2)y = xyz − (µ1+ µ2)z = 0.

Using 2x+ y + z = 18 and x + 2y + z = 18, we add previous three equations to get 3xyz= µ1(2x + y + z) + µ2(x + 2y + z) = 18(µ1+ µ2).

From xyz− (µ1+ µ2)z = 0 and xyz = 6(µ1+ µ2) we have z = 6 if µ1+ µ2≠ 0. Now 2x + y = 12 and x+ 2y = 12. Then x = 4 and y = 4. Then 2µ1+ µ2 = 24 and µ1+ µ2 = 16. Then µ1 = 8 and µ2= 8. So (x, y, z, µ1, µ2) = (4, 4, 6, 8, 8).

Page 10 of 13

(11)

If µ12 = 0 then xyz = 0. Hence x = 0, y = 0 or z = 0. If x = 0 then µ1+2µ2 = 0, µ12= 0.

This gives µ1 = µ2 = 0. If x = 0 then y + z = 18 and 2y + z = 18. Thus y = 0 z = 18 Thus (x, y, z, µ1, µ2) = (0, 0, 18, 0, 0).

If y = 0 then µ1 = µ2 = 0, x = 0, z = 18. Thus (x, y, z, µ1, µ2) = (0, 0, 18, 0, 0) If z = 0 then µ1= µ2= 0, y = 6, x = 6. But this doesn’t satisfy xy = 0.

(e) (7 pts) Check the second order conditions at(x, y, z, µ1, µ2) = (4, 4, 6, 8, 8) and (x, y, z, µ1, µ2) = (0, 0, 18, 0, 0). Show that (4, 4, 6) a local maximizer and (0, 0, 18) is a local minimizer.

Solution:

Grading scheme: There are two solution. Each solution 3.5 point. Given partial credit accordingly.

Solution:

The constraint equations are h1(x, y.z) = 2x + y + z = 18 and h2(x, y.z) = x + 2y + z = 18

∇h1= (2, 1, 1) and ∇h2 = (1, 2, 1). rank [∇h1

∇h2] = rank [2 1 1

1 2 1] =2. So NDCQ holds.

Recall

∂L

∂x = yz − 2µ1− µ2 = 0

∂L

∂y = xz − µ1− 2µ2= 0

∂L

∂z = xy − µ1− µ2 = 0 We have

2L

∂x2 = 0, ∂2L

∂x∂y = z, ∂2L

∂x∂z = y

2L

∂y2 = 0, ∂2L

∂y∂z = x, ∂2L

∂z2 = 0.

So the bordered hessian matrix of Lagrangian is H =

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣

0 0 2 1 1 0 0 1 2 1 2 1 0 z y 1 2 z 0 x 1 1 y x 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ At (x, y, z, µ1, µ2) = (4, 4, 6, 8, 8), we have H =

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣

0 0 2 1 1 0 0 1 2 1 2 1 0 6 4 1 2 6 0 4 1 1 4 4 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ Now n= 3 k = 2. 2k + 1 = 5 n + k = 5.

⎡⎢⎢⎢

⎢⎢

0 0 2 1 1 0 0 1 2 1⎤⎥

⎥⎥⎥⎥

⎡⎢⎢⎢

⎢⎢

0 0 2 1 1

0 0 1 2 1⎤⎥

⎥⎥⎥⎥

(12)

[−3 −1

6 14] = −36< 0

(−1)k= 1 (−1)n= −1. So it is negative definite and it is a local maximizer.

At (x, y, z, µ1, µ2) = (0, 0, 18, 0, 0), we have H =

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣

0 0 2 1 1

0 0 1 2 1

2 1 0 18 0

1 2 18 0 0

1 1 0 0 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦ detH = det

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣

0 0 2 1 1

0 0 1 2 1

2 1 0 18 0

1 2 18 0 0

1 1 0 0 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦

= det

⎡⎢⎢⎢

⎢⎢⎢⎢

⎢⎢⎣

0 0 2 1 1

0 0 1 2 1

0 −1 0 18 0

0 1 18 0 0

1 1 0 0 0

⎤⎥⎥⎥

⎥⎥⎥⎥

⎥⎥⎦

= det

⎡⎢⎢⎢

⎢⎢⎢⎢

0 2 1 1

0 1 2 1

−1 0 18 0

1 18 0 0

⎤⎥⎥⎥

⎥⎥⎥⎥

= det

⎡⎢⎢⎢

⎢⎢⎢⎢

0 2 1 1

0 1 2 1

0 18 18 0 1 18 0 0

⎤⎥⎥⎥

⎥⎥⎥⎥

= (−1)det⎡⎢

⎢⎢⎢⎢

2 1 1

1 2 1

18 18 0

⎤⎥⎥⎥

⎥⎥⎦

= (−18)det⎡⎢

⎢⎢⎢⎢

2 1 1 1 2 1 1 1 0

⎤⎥⎥⎥

⎥⎥⎦

= (−18)det⎡⎢

⎢⎢⎢⎢

0 −1 1

0 1 1

1 1 0

⎤⎥⎥⎥

⎥⎥⎦

= (−18)det [−1 1 1 1] =36.

Now k= 2. (−1)k= 1 > 0. So it is positive definite and it is a local minimizer.

(f) (1 pt) Does f(x, y, z) = xyz have a global maximum or global minimum subject to 2x+y+z = 18, and x+ 2y + z = 18?

Solution:

Grading scheme: 0.3 point for finding the parametric equation of the line. 0.3 pt for finding f in one variable. 0.4 point to explain f goes to ∞ as the point goes to ∞.

Solution: The constraint set 2x+ y + z = 18, and x + 2y + z = 18 is a line. First, we have 2x+ y + z − 2(x + 2y + z) = 18 − 36, i.e. −3y − z = −18. Hence z = −3y + 18, x = 18 − 2y − z = 18− 2y + 3y − 18 = y. Thus the constraint set can be expresses ad x = y, z = −3y + 18.

f(x, y, z) = y ⋅y ⋅(−3y +18) = −3y3+18y2 on the constraint set. limy→∞f = −∞ and limy→−∞f= ∞.

So f doesn’t have a global maximum and a global minimum.

(g) (4 pts) Estimate the value of the local maximum of the following function f(x, y, z) = xyz subject to 2x+ y + z = 18.1, and x + 2y + z = 18.2.

Solution:

Grading scheme: One point for setting up the right problem.

One point for pointing ∂f(x(a1, a2), y(a1, a2), z(a1, a2))

∂a1 = µ1(a1, a2) and one point for pointing ∂f(x(a1, a2), y(a1, a2), z(a1, a2))

∂a2 = µ2(a1, a2). One point for getting the right answer.

Solution: (x(a1, a2), y(a1, a2), z(a1, a2), µ1(a1, a2), µ2(a1, a2)) be the local maximizer and the multipliers of the following function.

Let f(x, y, z, a) = xyz subject to h1(x, y, z) = 2x + y + z = 18 + a1 and x+ 2y + z = 18 + a2. We have

(x(0, 0), y(0, 0), z(0, 0), µ1(0, 0), µ2(0, 0)) = (4, 4, 6, 8, 8)

Page 12 of 13

(13)

We have

∂f(x(a1, a2), y(a1, a2), z(a1, a2))

∂a1 = µ1(a1, a2) and

∂f(x(a1, a2), y(a1, a2), z(a1, a2))

∂a2 = µ2(a1, a2).

Thus

∂f(x(a1, a2), y(a1, a2), z(a1, a2))

∂a1

(0,0)= µ1(0, 0) = 8 and

∂f(x(a1, a2), y(a1, a2), z(a1, a2))

∂a2 = µ2(0, 0) = 8.

Thus

f(x(0.1, 0.2), y(0.1, 0.2), z(0.1, 0.2))

≈ f(x(0, 0), y(0, 0), z(0, 0) + µ1(0, 0) ⋅ 0.1 + µ2(0, 0) ⋅ 0.2

= 96 + 0.8 + 1.6 = 98.4

(h) (4 pts) Estimate the value of the local maximum of the following function f(x, y, z) = xyz+0.1x subject to 2x+ y + 1.1z = 18, and x + 2y + z = 18.1.

Solution:

Grading scheme: One point for setting up the right problem. One point for getting the Lagrangian L(x, y, z, µ1, µ2, a) = xyz + ax − µ1(2x + y + (1 + a)z − 18) − µ2(x + 2y + z − 18 − a) One points for computing the right ∂L

∂a. One point for getting the right answer.

Solution: Let f(x, y, z, a) = xyz+ax, h1(x, y, z, a) = 2x+y+(1+a)z = 18 and x+2y+z = 18+a.

Let (x(a), y(a), z(a).µ1(a), µ2) be the local maximizer and the multipliers of the fol- lowing function Let f(x, y, z, a) = xyz + ax subject to h1(x, y, z, a) = 2x + y + (1 + a)z = 18 and x+ 2y + z = 18 + a.

We know that (x(0), y(0), z(0), µ1(0), µ2(0)) = (4, 4, 6, 8, 8).

We also have df((x(a), y(a), z(a), a)

da = ∂L

∂a(x(a), y(a), z(a), µ1(a), µ2(a), a) Note that

L(x, y, z, µ1, µ2, a) = xyz + ax − µ1(2x + y + (1 + a)z − 18) − µ2(x + 2y + z − 18 − a).

Then ∂L

∂a = x − µ1z+ µ2. So df((x(a), y(a), z(a), a)

da ∣a=0= x(0) − µ1(0)z(0) + µ2(0) = 4 − 8 ⋅ 6 + 8 = −36.

Then

f(x(0.1), y(0.1), z(0.1), 0.1)

參考文獻

相關文件

Because of the wrong data, question (a) has no answer, and therefore 5 points are automatically given.. For part (b), options C,D,E are all correct according to the

[r]

This theorem does not establish the existence of a consis- tent estimator sequence since, with the true value θ 0 unknown, the data do not tell us which root to choose so as to obtain

[r]

With the help of the pictures and the words below, write a journal entry about what happened.. Write at least

Listen carefully and choose the best answers for Questions 1–5.. Why don’t Adam and Winnie choose to dance in

A) The ionization energy increases from left to right through a period of elements.. B) The atomic radius decreases from left to right through a period

C) protein chains maintained by interactions of peptide backbones D) amino acid sequence maintained by peptide bonds. E) protein structure maintained through multiple hydrogen