1.1 Basics
Vector spaces
Definition 1.1. A vector space V is a set of elements (vectors) which are manipulated using
two operations: addition, and multiplication by a scalar.
A vector space V is not simply a collection of points, but a concept which interconnects
V with a field F and the addition and scalar multiplication options. The field we normally
work with is either real numbers (R) or complex numbers (C). The following axioms result,
assuming x and y are two vectors in V:
Definition 1.3. Let a1 , . . . , ak be arbitrary vectors in Rn . The set of all their linear combi-
nations is called the span of a1 , . . . , ak .
( k )
X
span[a1 , . . . , ak ] = αi ai : α1 , . . . , αk ∈ R
i=1
In general a space may have more vectors than necessary to describe a vector span. However,
all possible bases of a subspace ν contain the same number of vectors. That number is the
dimension of V = dim V. An arbitrary vector u in Rn can be expressed in terms of a basis
A real vector space of dimen- {ui }i=1,..,n as
sion n, Rn has a basis of Xn
Definition 1.6. A real vector space V is called a real inner product space if for every pair of
vectors a and b there is a real number, denoted ha, bi, and called the inner product, which
satisfies the following axioms.
(p − a) · n = 0 ⇔ p·n=a·n (1.8)
Definition 1.11. Given two vectors u and v that lie in a plane, along with a position vector
u and v need not be mutu- a, any vector p on the plane may be written as
ally orthogonal.
p = a + su + tv s, t ∈ R (1.9)
Alternately, since any vector in the plane must be orthogonal to the normal to the plane,
(p − a) · n = 0 ⇔ p·n=a·n (1.10)
This second definition is more convenient because (a) it is of the same form as the definition
of a line, and this can therefore be seen to extrapolate to hyperplanes of any dimension, and
(b) needs only two vectors (a point in the plane and a normal).
which is the Pythagoras theorem. The following three (in)equalities then hold:
since hw, wi ≥ 0. Multiply by ha, ai which is > 0 to get the Cauchy-Schwarz inequality.
2. Triangle inequality: kak + kbk ≥ ka + bk.
2 2 2 2
3. Parallelogram equality: ka + bk + ka − bk = 2(kak + kbk ).
Examples:
√
• Find the Euclidean norm of [3, 2, −2, 4, 0]> . Answer = 33.
• Does the triangle inequality hold for a = [0.4, 1.3, −2.2]> and b = [2, 3, −5]> .
√ √ √
[2.4, 4.3, −7.2]>
= 76.09 = 8.72 ≤ 6.69 + 38 = 8.75.
If θ is the angle between the two vectors whose inner product is real,
ha, bi
a · b = kak kbk cos(θ) ⇒ cos(θ) = p (1.12)
ha, ai hb, bi
and cos(θ) ≤ 1 by the Cauchy-Schwarz inequality.
p √ q
kak = ha, ai = a> a = a21 + · · · + a2n (1.13)
For a distance d(u, v) to qualify as a metric, the following axioms need to be satisfied:
Normed spaces with such
distance metrics are called d(u, v) ≥ 0 (1.14)
metric spaces. d(u, u) = 0 (1.15)
d(u, v) = d(v, u) (1.16)
d(u, w) ≤ d(u, v) + d(v, w) (1.17)