Professional Documents
Culture Documents
Linear algebra
Real vectors
The set of real numbers is denoted as R.
A real vector or vector x of dimension n is written as
x1
x2
x= ..
.
xn
2. The zero vector: there exists a unique vector called the zero vector
(written as 0) such that x + 0 = x. (Do not confuse 0 with the
scalar 0. They are different.)
3. The sign and operation: there exist a unique vector for x (writ-
ten as x) such that x + (x) = 0. The vector y z is defined as
y + (z).
background material
lecture notes of ucla math164 spring 2016
instructor: wotao yin) 2
4. Scalar multiplication: x = [x1 xn ] is a vector, and this
scalar multiplication satisfies: ( x) = ()x and 1x = x.
5. Distributivities: (x + y) = x + y and ( + )x = x + x.
Following this property and the definition of 0, we have 0x = 0.
Matrix
We write an m n matrix as
a11 a12 a1n
a a22 a2n
A = 21 .
am1 am2 amn
background material
lecture notes of ucla math164 spring 2016
instructor: wotao yin) 3
The transpose of an m n matrix is an n m matrix with each pair
of aij and a ji having swapped their positions. The diagonal entries aii ,
i = 1, 2, . . . , min{m, n} remain their positions.
A column vector and a row vector are special matrices. The trans-
pose of a column vector is a row vector, and vice versa.
If A has the same number of rows and columns, i.e., m = n, then
we call it a square matrix. Consider a square matrix A Rnn . If
A T = A, then A is symmetric. The identitfy matrix I is a special
case. The quadratic function f (x) = x T Ax = i,j[n] aij xi x j , where
x Rn and [n] is an abbreviation of {1, . . . , n}. If x T Ax 0 for
all x Rn , then we say A is positive semi-definite. In the special case
that x T Ax > 0 for all nonzero x Rn , A is called positive definite or,
to avoid ambiguity, strictly positive definite. Note that positive semi-
definite and positive definite matrices do not need to be symmetric.
To see this, the value of x T Ax remains unchanged if we add 1 to aij
and subtract 1 from a ji . Nonetheless, in x T Ax, we often use a sym-
metric matrix; if it is not so, we can replace A by its symmetrization
1 T
2 ( A + A ).
A linear transformation T from Rn to Rm is such that T (x +
y) = T (x) + T (y) for all , R and x, y Rn . Any linear
transformation from Rn to Rm can be represented by a matrix: for
any x Rn , T (x) = Ax, where y = Ax is a vector with the following
entries:
n
yi = [ ai1 ai2 ain ]x = aij x j .
j =1
It is easy to verify that it satisfies the three criteria that define a norm:
for any x, y Rn ,
3. kx + yk kxk + kyk.
k x k k x k2 k x k1 ,
k x k2 k x k1 n k x k2 ,
k x k k x k2 n k x k ,
k x k k x k1 n k x k .
background material
lecture notes of ucla math164 spring 2016
instructor: wotao yin) 5
It is important to know where each = holds in these inequalities.
Let p > 0 and define
n 1/p
kxk p = | xi | p .
i =1
1 k x k2 k x k G n k x k2
Complementary subspace
Consider a linear subspace m-dimensional V Rn . It must hold
m n.
When m < n, there exists a set of points, known as the complemen-
tary subspace and denoted as V , such that
Set
Affine set
Directly following from it definition, a linear subspace must contain
0. In particular, by setting 1 = = m = 0, we obtain im=1 i xi =
0 V.
Pick x0 6 V , and create the new set
V 0 = { x + x0 : x V }.
Useful sets
The set with no point is called an empty set. A set with exactly one
single point is called a singleton set or singleton. The set that has all
the points in the space Rn is called a full set.
The set Rn+ = {x : x1 , . . . , xn 0} is called the nonnegativity set
or the first orthant. The set Rn++ = {x : x1 , . . . , xn > 0} is called the
(strict) positivity set.
A box set or box is referred to the set {x : li xi ui , i = 1, . . . , n}
for two given vectors l, u Rn that satisfy li < , < ui
, and li ui .
The standard simplex is the set
n
= {x : x 0, xi = 1}.
i =1
Convex set
A set S is convex if, for any x, y S , the line segment [x, y] = {x +
(1 )y : 0 1} is a subset of S . From any point of a convex set,
one can follow a straight line completely within the set to reach any
other point of the set.
All the sets defined above (including the empty set and singletons)
are convex.
A convex set can be formed by convexly combining a set of vectors
background material
lecture notes of ucla math164 spring 2016
instructor: wotao yin) 8
x 1 , . . . , x m Rn :
m
conv{x1 , . . . , xm } = i xi :
,
i =1
Function
is a closed set.
A function is lower semi-continuous if and only if it is closed.
Therefore, the two properties are used interchangeably. If a function
f has a closed domain dom( f ) and is continuous in dom( f ), then
the function is closed. In addition, the closeness is preserved in the
following settings: for any closed functions f 1 , f 2 , . . . , f m ,
1. x f ( Ax + b) = A T f ( Ax + b).
4. ... matrix functions involving norms, trace, and matrix dot prod-
uct.
Convex function
Convex functions play an important role in optimization because of
the convenient properties they have. They are easier to analyze and
to minimize.
A function is convex if
holds.
The inequality (3) is related to Jensens inequality. Let X be a ran-
dom variable and E denotes the corresponding expectation. If f is
convex, then
f EX E f ( X )).
(4)
Exercises
hx, yiG = x T Gy
8. Prove the inequalities (1) and specific when each inequality holds
with =.
9. Prove Theorem 1.
10. Prove that a set is convex if and only if the intersection of the set
with any line is convex.
11. Let S1 , S2 Rn be two convex sets. Prove that the following sets
are convex
(a) Intersection: S1 S2 .
background material
lecture notes of ucla math164 spring 2016
instructor: wotao yin) 13
(b) Minkowski sum: S1 + S2 = {x + y : x S1 , y S2 }.
(c) Partial intersect/sum:
where n1 + n2 = n.
{x Rn : x T Ax + b T x + c 0}.
What if we replace by ?