Professional Documents
Culture Documents
HKUST
October 27, 2022
Problem 1. Let S := [−1, 1] × [−1, 1] ⊂ R2 . Does the mapping f : S → S such that f (x, y) = (x/2, y/3)
have a fixed point? Which fixed point theorem, Banach, Brouwer, or both, applies here? If Banach applies,
also find the fixed point.
1
d(x, y)∀ (x1 , y1 ) , (x2 , y2 ) ∈ S
2
(2) Brouwer:
S is compact and convex and f is continuous.
S is compact because it is closed and bounded in Euclidean space. And it’s clear that S is covex as every
line connecting any two points in it is inside S.
Since fx (x, y) = 1/2 and fy (x, y) = 1/3, f (x, y) is continuous.
(0, 0) is the fixed point. From Banach we konw that (x, f (x), f (f (x)), · · · ) → x∗ . For any (x, y) ∈
S, ((x, y), (x/2, y/3), (x/4, y/9), · · · ) → (0, 0)
Problem 2. Consider the function f : R3 → R where f (x, y, z) = x2 (y + z). 1. Find ∇f (x, y,z). 2. Find
1
Hf (x, y, z). 3. Is f totally differentiable? If so, find f 0 (x, y, z). 4. Find ∇v f (1, 1, 1) where v = 2 .
3
2 2
Solution. (1) ∇f (x,
y, z) = (f x , fy , fz )
= 2x(y + z), x , x .
fxx fxy fxz 2(y + z) 2x 2x
(2) Hf (x, y, z) = fyx fyy fyz = 2x 0 0
fzx fzy fzz 2x 0 0
(3) Yes.
Because ∇f exists at ∀x ∈ R3 and fx , fy , fz are continuous at ∀x ∈ R3 , by Proposition 5.5 (2), f is (totally)
differentiable.
f 0 (x, y, z) = ∇f (x, y, z) = (fx , fy , fz ) = 2x(y + z), x2 , x2 .
√
[∇f (1,1,1)]t v (4,1,1)(1,2,3)t 9 14
(4) ∇v f (1, 1, 1) = kvk = √
1+4+9
= 14 .
Problem 3. Consider the function f : R2 → R where f (x, y) = x2 + y 2 . Find the slope of the line tangent
to any point (x, y) on the contour curve f (x, y) = k.
1
Problem 4. Suppose that f : Rn → R is differentiable. Prove that
Solution. f 0 (x) = cos x. Let f 0 (x) = 0, critical points are x = π2 + nπ∀n ∈ N. f 00 (x) = − sin x. Since f 00 < 0
when x = π2 + 2nπ and f 00 < 0 when x = − π2 + 2nπ, f (x) takes its local maximum when x = π2 + 2nπ. And
f (x) takes its global maximum when x = π2 + 2nπ because all local maximums are equal to 1 .
Solution.
√
x1 x2 − µ x21 + x22 − 1 .
L (x1 , x2 , µ) =
√ √ √
x x
Denote f (x1 , x2 ) = x1 x2 and h (x1 , x2 ) = x21 +x22 ·f 0 = 2√x21 , 2√x12 , f is not differentiable when x1 x2 = 0
and h0 = (0, 0) when x1 = x2 = 0.A = {(x1 , x2 ) : x1 x2 = 0}. Since f = 0 when x1 x2 = 0 and f > 0 otherwise.
Elements in A are not maximizers.
Let L0 = 0 : √
x2
√ − 2µx1 = 0
2 x1
√
x1
√ − 2µx2 = 0
2 x2
x21 + x22 − 1 = 0
√ √ √ √ √
Then B = (1/ 2, 1/ 2), (−1/ 2, −1/ 2} and f = 1/ 2 when (x1 , x2 ) ∈ B.B is the solution to the
optimization problem.
max −x2
s.t. x21 − x32 = 0
2
2/3
Solution. x2 = x1 ≥ 0, so −x2 ≤ 0. The maximum is 0 and (x1 , x2 ) = (0, 0)
Note that the Lagrangian method doesn’t work here, because the derivative of the constraint function
x21 − x32 at the maximizer (0, 0) is equal to (0, 0), implying that the necessary conditions from the Lagragian
method need to hold here.
max x1 + x2
s.t. x21 + x22 ≤ 1
Solution.
L (x1 , x2 , λ) = x1 + x2 − λ x21 + x22 − 1
KKT condition:
∂L 1
= 1 − 2λx1 = 0 ⇒ x1 =
∂x1 2λ
∂L 1
= 1 − 2λx2 = 0 ⇒ x2 =
∂x2 2λ
λ x21 + x22 − 1 = 0
λ≥0
x21 + x22 ≤ 1
√ √
1 1 2 2
Plug x1 = 2λ , x2 = 2λ in λ x21 + x22 − 1 = 0, we have λ1 = 0, λ2 = 2 . Because x21 + x22 ≤ 1, then λ = 2 .
√ √
Thus, x1 = x2 = 22 and max x1 + x2 = 2.