CH 03
CH 03
Chapter 3.
3.1. Sets
Sets of Real Numbers
Let a and b be two real numbers such that a < b; and let n be a finite
positive integer.
• {a, b} = the set that contains two elements “a” and “b”
• (a, b) = {x : a < x < b} • [a, b] = {x : a ≤ x ≤ b}
• (a, b] = {x : a < x ≤ b} • [a, b) = {x : a ≤ x < b}
• (a, +∞) = {x : x > a} • [a, +∞) = {x : x ≥ a}
• (−∞, a) = {x : x < a} • (−∞, a] = {x : x ≤ a}
Neighborhood
• The ε-neighborhood of a point x̄ ∈ Rn is the set of points inside
the ball with center x̄ and radius ε > 0:
Nε (x̄) = {x ∈ Rn : kx − x̄k < ε} ,
v
u n
uX
where kx − x̄k = t (xj − x̄j )2.
j=1
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:4
Open Sets
• A set S is called open if around every point in S there is a
neighborhood that is contained in S.
• Example 3.1. Rn, ∅, and the open interval (a, b) are open sets.
While (a, b] is not an open set.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:5
Closed Sets
• A set S is called closed if its complement S ′ is an open set.
• Example 3.2. Rn, ∅, and the closed interval [a, b] are closed sets.
Interior of a Set
• The interior of any set S is the set of points x ∈ S which are the
center of some ball contained in S.
• Example 3.3. The open interval (a, b) is the interior of the sets
(a, b), [a, b], (a, b], [a, b), etc.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:6
Bounded Sets
• A set is bounded if it can be contained in a ball of a sufficiently
large radius.
• Example 3.4. The open interval (a, b), and the closed interval [a, b]
are bounded sets.
Compact Sets
• A set is compact if it is both closed and bounded.
• Example 3.5. The closed interval [a, b] is a compact set.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:7
Convex Sets
• A set S is convex if, for any elements x̄ and x̂ of S,
λx̄ + (1 − λ)x̂ ∈ S
for all values of λ such that 0 ≤ λ ≤ 1.
• Example 3.6. The set
S = {x ∈ Rn : Ax ≤ b, A ∈ Rm×n , b ∈ Rm }
is convex.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:8
Continuity
• A function f (x) is continuous at a point c if
lim f (x) = f (c).
x→c
Differentiation
• The derivative of f (x) at a point c is defined by
′ df (c) df d df
f (c) ≡ ≡ (c) ≡ f (c) ≡
dx dx dx dx x=c
f (c + ∆x) − f (c) f (x) − f (c)
= lim = lim
∆x→0 ∆x x→c x−c
provided the limit exists.
• When the limit exists, we say that f (x) is differentiable at c.
• Note also that if f (x) is differentiable at c, then f (x) is continuous
at c.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:11
Derivatives of Polynomials
Let c be a constant.
d
• c=0
dx
d
• cx = c
dx
d c
• x = c xc−1 , if both xc and c xc−1 are defined
dx
Derivatives of Some Exponential and Logarithmic Functions
d x
• e = ex
dx
d x
• c = cx ln(c), where c > 0 is a constant
dx
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:12
d 1
• ln(x) = , if x > 0
dx x
d 1
• logc(x) = , where c is a constant with c > 0 and c 6= 1
dx x ln(c)
d x
• x = xx [1 + ln(x)], if x > 0
dx
Derivatives of Some Trigonometric Functions
d
• sin(x) = cos(x)
dx
d
• cos(x) = − sin(x)
dx
d 1
• tan(x) = sec2(x) =
dx cos2(x)
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:13
d d 1
• sec(x) = = sec(x) tan(x)
dx dx cos(x)
d d 1
• csc(x) = = − csc(x) cot(x)
dx dx sin(x)
d d 1 −1
• cot(x) = = − csc2(x) = 2
dx dx tan(x) sin (x)
d df (g(x)) dg(x)
• f (g(x)) =
dx dg(x) dx
dy 1
• If y = f −1 (x), then = ′ , for f ′ (y) 6= 0
dx f (y)
′
d h i f (x)
• f (x)g(x) = f (x)g(x) g(x) + ln(f (x)) g ′ (x)
dx f (x)
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:15
Higher Derivatives
• Second Order Derivative:
We define (if it exists)
2 2 2 2
d f (c) d f d d f
f (2)(c) ≡ f ′′ (c) ≡ 2
≡ 2 (c) ≡ 2 f (c) ≡ 2
dx dx dx dx x=c
to be the derivative of the function f ′ (x) at the point c.
• kth-Order Derivative:
Similarly, we define (if it exists) f (k) (c) to be the derivative of
f (k−1) (x) at c.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:16
• f ∈ C 1(S)
= f is a real-valued continuously differentiable function in S
= f ′ exists and is continuous everywhere in S.
• f ∈ C k (S), where k = 1, 2, 3, . . .
= f is a real-valued kth-order continuously differentiable
function in S
= f (k) exists and is continuous everywhere in its domain S
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:17
Example 3.8.
(a) f (x) = |x| ∈ C 0(R).
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:18
0, if x < 0
(b) f (x) = ∈ C 0(R).
x, if x ≥ 0
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:19
0, if x < 0
(c) f (x) = 2 ∈ C 1(R).
x , if x ≥ 0
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:20
x, if x < 0
(d) f (x) = ∈ C 2(R).
sin(x), if x ≥ 0
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:21
Taylor’s Theorem
• Given that f (k+1) (x) exists for every point on the interval [a, b]. Let
c ∈ [a, b]. For every x ∈ [a, b], there exists h(x) between c and x
with
f (x) = Pk (x) + Rk (x),
where
′ f ′′ (c)
Pk (x) = f (c) + f (c)(x − c) + (x − c)2
2!
(k)
f (c)
+ ···+ (x − c)k
k!
(k+1)
f (h(x))
Rk (x) = (x − c)k+1.
(k + 1)!
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:23
Example 3.9. The zero-, first-, second- and third-order Taylor series
expansion of f (x) = ex about c = 0 are:
20 20
15 f(x)=ex 15 f(x)=ex
10 10
5 5
P (x)=1
0
0 0
P1(x)=1+x
−5 −5
−3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3
x x
20 20
15 f(x)=ex 15 f(x)=ex
10 10
5 5
P (x)=1+x+x2/2!
2
0 0
P (x)=1+x+x2/2!+x3/3!
3
−5 −5
−3 −2 −1 0 1 2 3 −3 −2 −1 0 1 2 3
x x
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:25
Taylor’s Theorem
• Let
S = {x : aj ≤ xj ≤ bj , j = 1, 2, . . . , n}.
Let c ∈ S.
• If f ∈ C 2(S), then for every x ∈ S, the first-order Taylor series
expansion of f (x) about c is
P1(x) = f (c) + ∇f (c)T (x − c).
Since
f (−1.9, 3.2) = −19.755
P2(−1.9, 3.2) = −19.81
so the approximation is accurate to 3 digits.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:34
Example 3.14.
(a) f (x) = x2 is strictly convex in R.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:38
(c) f (x) = x is both convex and concave in R, but not strictly convex
or strictly concave in R.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:40
Exercise.
Is the function f (x) = x3 convex or concave?
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:42
Definition
• An n × n real symmetric matrix A is called positive semi-definite if
v T Av ≥ 0, for all non-zero vectors v ∈ Rn.
Eigenvalue Test
• A real symmetric matrix A is positive semi-definite if and only if
all its eigenvalues are non-negative, i.e., all the solutions, λ, to the
characteristic equation |A − λI| = 0 are real and non-negative.
• Similarly, A is positive definite if and only if all its eigenvalues are
real and positive.
• Remark: In particular, if A is a diagonal matrix, then its diagonal
elements are its eigenvalues.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:48
a11 ≥ 0, · · · , ann ≥ 0;
a11 a12 a11 a1n an−1,n−1 an−1,n
≥ 0, · · · ≥ 0, · · · ≥ 0;
a21 a22 an1 ann an,n−1 an,n
a11 a12 a13 a11 a12 a1n an−2,n−2 an−2,n−1 an−2,n
a21
a22 a23 ≥ 0, · · · a21 a22 a2n ≥ 0, · · · an−1,n−2 an−1,n−1 an−1,n ≥ 0;
a31 a32 a33 an1 an2 ann an,n−2 an,n−1 an,n
..
.
a11 · · · a1n
. .. ≥ 0.
.. .
n1 · · · ann
a
Example 3.15. f (x) = (x1 − x2)2 is a convex function for all x ∈ R2.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:52
Example 3.16. f (x) = x1x2 − x21 − 2x22 is a strictly concave function for
all x ∈ R2.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:54
3.5. Optimization
General Optimization Problems
Min f (x)
s.t. x ∈ S ⊂ Rn.
Weierstrass Theorem
• A continuous function f (x) defined on a compact set S has a
minimum point in S.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:56
Local Minimizers
• A point x∗ ∈ S is said to be a local minimizer of f over S if there
is an ε > 0 such that f (x) ≥ f (x∗) for all x ∈ S ∩ Nε (x∗), where
Nε (x∗) is the ε-neighborhood of x∗.
• If f (x) > f (x∗) for all x ∈ S ∩ Nε (x∗) and x 6= x∗, then x∗ is said
to be a strict local minimizer of f over S.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:57
Global Minimizers
• A point x∗ ∈ S is said to be a global minimizer of f over S if
f (x) ≥ f (x∗) for all x ∈ S.
• If x∗ is a global minimizer and is a strict local minimizer of f over S,
then x∗ is said to be a strict global minimizer of f over S.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:58
Remarks
• We always intend to seek a global minimizer when formulating an
optimization problem.
• In most situations, however, optimization theory and methodologies
only enable us to locate local minimizers.
• Global optimality can be achieved when
◦ the feasible region S is a convex set, and
◦ the objective function f (x) of a minimization problem is convex.
• When analytical solution is not achievable, numerical methods are
essential to the success of finding an optimum solution.
Chi-Kong Ng, SEEM3440/ESTR3500, Dept. of SEEM, CUHK 3:59