The geometry of vectors will later be applied to signals, so we first revisit some basic definitions.
Vector space
Definition (vector space over a field K \mathbb{K} K ). A vector space is a set V V V equipped with two binary operations:
vector addition: v ∈ V , w ∈ V ⇒ v + w ∈ V v \in V,\ w \in V \Rightarrow v + w \in V v ∈ V , w ∈ V ⇒ v + w ∈ V ;
scalar multiplication: λ ∈ K , v ∈ V ⇒ λ v ∈ V \lambda \in \mathbb{K},\ v \in V \Rightarrow \lambda v \in V λ ∈ K , v ∈ V ⇒ λ v ∈ V .
Axioms: for all u , v , w ∈ V u, v, w \in V u , v , w ∈ V and all a , b ∈ K a, b \in \mathbb{K} a , b ∈ K the following hold.
u + ( v + w ) = ( u + v ) + w u + (v + w) = (u + v) + w u + ( v + w ) = ( u + v ) + w
u + v = v + u u + v = v + u u + v = v + u
there exists 0 ∈ V 0 \in V 0 ∈ V such that v + 0 = v v + 0 = v v + 0 = v
there exists − v -v − v such that v + ( − v ) = 0 v + (-v) = 0 v + ( − v ) = 0
a ( u + v ) = a u + a v a(u + v) = au + av a ( u + v ) = a u + a v
( a + b ) u = a u + b u (a + b)u = au + bu ( a + b ) u = a u + b u
a ( b v ) = ( a b ) v a(bv) = (ab)v a ( b v ) = ( ab ) v
there exists 1 ∈ K 1 \in \mathbb{K} 1 ∈ K such that 1 ⋅ v = v ⋅ 1 = v 1 \cdot v = v \cdot 1 = v 1 ⋅ v = v ⋅ 1 = v
Definition (scalar). λ \lambda λ is called a scalar if it is an element of a field K \mathbb{K} K .
Definition (vector). v v v is called a vector if it is an element of a vector space V V V .
Example (Euclidean vector space over C \mathbb{C} C ).
v = [ v 1 v 2 ⋮ v N ] ∈ C N , V = { v ∣ v ∈ C N } . v = \begin{bmatrix} v_1 \\ v_2 \\ \vdots \\ v_N \end{bmatrix} \in \mathbb{C}^N, \qquad V = \{v \mid v \in \mathbb{C}^N\}. v = v 1 v 2 ⋮ v N ∈ C N , V = { v ∣ v ∈ C N } .
Scalar product
Definition (scalar product in vector spaces over C \mathbb{C} C ). Let V V V be a vector space over C \mathbb{C} C . A scalar product over V V V is a functional
V × V → C , ( v , w ) ↦ ⟨ v , w ⟩ ∈ C , V \times V \to \mathbb{C}, \qquad (v, w) \mapsto \langle v, w\rangle \in \mathbb{C}, V × V → C , ( v , w ) ↦ ⟨ v , w ⟩ ∈ C ,
that associates a complex number ⟨ v , w ⟩ \langle v, w\rangle ⟨ v , w ⟩ to any couple of vectors v , w ∈ V v, w \in V v , w ∈ V , such that:
⟨ v , w ⟩ = ⟨ w , v ⟩ ‾ \langle v, w\rangle = \overline{\langle w, v\rangle} ⟨ v , w ⟩ = ⟨ w , v ⟩ (conjugate symmetry);
⟨ α 1 v 1 + α 2 v 2 , w ⟩ = α 1 ⟨ v 1 , w ⟩ + α 2 ⟨ v 2 , w ⟩ \langle \alpha_1 v_1 + \alpha_2 v_2, w\rangle = \alpha_1\langle v_1, w\rangle + \alpha_2\langle v_2, w\rangle ⟨ α 1 v 1 + α 2 v 2 , w ⟩ = α 1 ⟨ v 1 , w ⟩ + α 2 ⟨ v 2 , w ⟩ (linearity in the first argument);
⟨ v , v ⟩ ≥ 0 \langle v, v\rangle \ge 0 ⟨ v , v ⟩ ≥ 0 , where equality holds if and only if v = 0 v = 0 v = 0 .
(By property 1, ⟨ v , v ⟩ \langle v, v\rangle ⟨ v , v ⟩ is real, so the inequality in 3 makes sense.)
Transpose and conjugate operations. Transpose: [ 1 j 3 ] T = [ 1 j 3 ] \begin{bmatrix}1 \\ j3\end{bmatrix}^T = \begin{bmatrix}1 & j3\end{bmatrix} [ 1 j 3 ] T = [ 1 j 3 ] . Vector conjugate (conjugate transpose): [ 1 j 3 ] ∗ = [ 1 − j 3 ] \begin{bmatrix}1 \\ j3\end{bmatrix}^* = \begin{bmatrix}1 & -j3\end{bmatrix} [ 1 j 3 ] ∗ = [ 1 − j 3 ] .
Notation (scalar product in C N \mathbb{C}^N C N ).
⟨ v , w ⟩ = w ‾ T v = w ∗ v , where w ∗ = w ‾ T . \langle v, w\rangle = \overline{w}^T v = w^* v, \qquad \text{where } w^* = \overline{w}^T. ⟨ v , w ⟩ = w T v = w ∗ v , where w ∗ = w T .
Example. v = [ 1 1 ] v = \begin{bmatrix}1 \\ 1\end{bmatrix} v = [ 1 1 ] , w = [ j 2 − 4 ] w = \begin{bmatrix}j2 \\ -4\end{bmatrix} w = [ j 2 − 4 ] . Then
⟨ v , w ⟩ = w ∗ v = [ − j 2 − 4 ] [ 1 1 ] = − j 2 ⋅ 1 − 4 ⋅ 1 = − 4 − j 2. \langle v, w\rangle = w^* v = \begin{bmatrix}-j2 & -4\end{bmatrix}\begin{bmatrix}1 \\ 1\end{bmatrix} = -j2\cdot 1 - 4\cdot 1 = -4 - j2. ⟨ v , w ⟩ = w ∗ v = [ − j 2 − 4 ] [ 1 1 ] = − j 2 ⋅ 1 − 4 ⋅ 1 = − 4 − j 2.
Norm
Definition (norm). Let V V V be a vector space over R \mathbb{R} R or C \mathbb{C} C . A norm is a functional ∥ ⋅ ∥ : V → R \|\cdot\| : V \to \mathbb{R} ∥ ⋅ ∥ : V → R with the properties:
∥ v ∥ ≥ 0 \|v\| \ge 0 ∥ v ∥ ≥ 0 (and = 0 = 0 = 0 if and only if v = 0 v = 0 v = 0 );
∥ α v ∥ = ∣ α ∣ ⋅ ∥ v ∥ \|\alpha v\| = |\alpha|\cdot\|v\| ∥ αv ∥ = ∣ α ∣ ⋅ ∥ v ∥ ;
∥ v + w ∥ ≤ ∥ v ∥ + ∥ w ∥ \|v + w\| \le \|v\| + \|w\| ∥ v + w ∥ ≤ ∥ v ∥ + ∥ w ∥ (triangular inequality).
Definition (Euclidean norm or 2-norm).
∥ v ∥ 2 : = ∑ k = 1 N ∣ v k ∣ 2 . \|v\|_2 := \sqrt{\sum_{k=1}^{N}|v_k|^2}. ∥ v ∥ 2 := k = 1 ∑ N ∣ v k ∣ 2 .
Definition (p p p -norms). For a vector and p ∈ R p \in \mathbb{R} p ∈ R , p > 0 p > 0 p > 0 :
∥ v ∥ p : = ∑ k = 1 N ∣ v k ∣ p p . \|v\|_p := \sqrt[p]{\sum_{k=1}^{N}|v_k|^p}. ∥ v ∥ p := p k = 1 ∑ N ∣ v k ∣ p .
Two limiting cases:
if p → 0 p \to 0 p → 0 : ∥ v ∥ 0 : = ∑ k = 1 N ϕ ( v k ) \|v\|_0 := \sum_{k=1}^{N}\phi(v_k) ∥ v ∥ 0 := ∑ k = 1 N ϕ ( v k ) , with ϕ ( x ) = 1 \phi(x) = 1 ϕ ( x ) = 1 if x ≠ 0 x \ne 0 x = 0 and ϕ ( x ) = 0 \phi(x) = 0 ϕ ( x ) = 0 otherwise (it counts the nonzero components);
if p → + ∞ p \to +\infty p → + ∞ : ∥ v ∥ ∞ : = sup k = 1 , … , N ∣ v k ∣ \|v\|_\infty := \sup_{k = 1, \dots, N}|v_k| ∥ v ∥ ∞ := sup k = 1 , … , N ∣ v k ∣ .
Example. v = [ 1 + j j ] v = \begin{bmatrix}1 + j \\ j\end{bmatrix} v = [ 1 + j j ] :
∥ v ∥ 2 2 = ∣ 1 + j ∣ 2 + ∣ j ∣ 2 = 1 2 + 1 2 + 1 2 = 3 ⇒ ∥ v ∥ 2 = 3 \|v\|_2^2 = |1 + j|^2 + |j|^2 = 1^2 + 1^2 + 1^2 = 3 \Rightarrow \|v\|_2 = \sqrt{3} ∥ v ∥ 2 2 = ∣1 + j ∣ 2 + ∣ j ∣ 2 = 1 2 + 1 2 + 1 2 = 3 ⇒ ∥ v ∥ 2 = 3 ;
∥ v ∥ 1 = ∣ 1 + j ∣ + ∣ j ∣ = 1 2 + 1 2 + 1 2 = 2 + 1 \|v\|_1 = |1 + j| + |j| = \sqrt{1^2 + 1^2} + \sqrt{1^2} = \sqrt{2} + 1 ∥ v ∥ 1 = ∣1 + j ∣ + ∣ j ∣ = 1 2 + 1 2 + 1 2 = 2 + 1 ;
∥ v ∥ 0 = 1 + 1 = 2 \|v\|_0 = 1 + 1 = 2 ∥ v ∥ 0 = 1 + 1 = 2 ;
∥ v ∥ ∞ = ∣ 1 + j ∣ = 2 \|v\|_\infty = |1 + j| = \sqrt{2} ∥ v ∥ ∞ = ∣1 + j ∣ = 2 .
Definition (norm associated to a scalar product). To each scalar product ⟨ ⋅ , ⋅ ⟩ \langle\cdot,\cdot\rangle ⟨ ⋅ , ⋅ ⟩ is associated a well-defined norm, for all v ∈ V v \in V v ∈ V :
∥ v ∥ : = ⟨ v , v ⟩ . \|v\| := \sqrt{\langle v, v\rangle}. ∥ v ∥ := ⟨ v , v ⟩ .
Orthogonality
Definition (orthogonal vectors). Two vectors v , w ∈ V v, w \in V v , w ∈ V are orthogonal if ⟨ v , w ⟩ = 0 \langle v, w\rangle = 0 ⟨ v , w ⟩ = 0 . Notation: v ⊥ w ⟺ ⟨ v , w ⟩ = 0 v \perp w \iff \langle v, w\rangle = 0 v ⊥ w ⟺ ⟨ v , w ⟩ = 0 .
Definition (orthonormal vectors). Two vectors v , w ∈ V v, w \in V v , w ∈ V are orthonormal if they are orthogonal and ⟨ v , v ⟩ = 1 \langle v, v\rangle = 1 ⟨ v , v ⟩ = 1 , ⟨ w , w ⟩ = 1 \langle w, w\rangle = 1 ⟨ w , w ⟩ = 1 .
Generalized Pythagorean theorem
Theorem (Carnot's theorem). Let v , w v, w v , w be vectors belonging to a vector space over C \mathbb{C} C endowed with a scalar product. Then
∥ v + w ∥ 2 = ∥ v ∥ 2 + ∥ w ∥ 2 + 2 R e ( ⟨ v , w ⟩ ) . \boxed{\|v + w\|^2 = \|v\|^2 + \|w\|^2 + 2\,\mathrm{Re}\left(\langle v, w\rangle\right)}. ∥ v + w ∥ 2 = ∥ v ∥ 2 + ∥ w ∥ 2 + 2 Re ( ⟨ v , w ⟩ ) .
(Recall: z = a + j b ∈ C ⇒ R e ( z ) = a ∈ R z = a + jb \in \mathbb{C} \Rightarrow \mathrm{Re}(z) = a \in \mathbb{R} z = a + jb ∈ C ⇒ Re ( z ) = a ∈ R ; see Complex NumbersReview of complex numbers: algebraic and polar forms, Euler's formula, powers and roots, the fundamental theorem of algebra, roots of unity, and why complex numbers cannot be ordered.Complex Numbers → .) If v , w v, w v , w are orthogonal the real part vanishes and we recover the classic Pythagorean theorem ∥ v + w ∥ 2 = ∥ v ∥ 2 + ∥ w ∥ 2 \|v + w\|^2 = \|v\|^2 + \|w\|^2 ∥ v + w ∥ 2 = ∥ v ∥ 2 + ∥ w ∥ 2 .
Proof. Just expand the scalar product using its linearity:
∥ v + w ∥ 2 = ⟨ v + w , v + w ⟩ = ⟨ v , v ⟩ + ⟨ v , w ⟩ + ⟨ w , v ⟩ + ⟨ w , w ⟩ = ∥ v ∥ 2 + ∥ w ∥ 2 + 2 R e ( ⟨ v , w ⟩ ) , \|v + w\|^2 = \langle v + w, v + w\rangle = \langle v, v\rangle + \langle v, w\rangle + \langle w, v\rangle + \langle w, w\rangle = \|v\|^2 + \|w\|^2 + 2\,\mathrm{Re}\left(\langle v, w\rangle\right), ∥ v + w ∥ 2 = ⟨ v + w , v + w ⟩ = ⟨ v , v ⟩ + ⟨ v , w ⟩ + ⟨ w , v ⟩ + ⟨ w , w ⟩ = ∥ v ∥ 2 + ∥ w ∥ 2 + 2 Re ( ⟨ v , w ⟩ ) ,
because ⟨ v , w ⟩ = ⟨ w , v ⟩ ‾ \langle v, w\rangle = \overline{\langle w, v\rangle} ⟨ v , w ⟩ = ⟨ w , v ⟩ , so the two cross terms are a number and its conjugate, whose sum is twice the real part. ■ \blacksquare ■
Exercises proposed in the course
Prove the parallelogram rule: for all v , w v, w v , w , ∥ v + w ∥ 2 + ∥ v − w ∥ 2 = 2 ∥ v ∥ 2 + 2 ∥ w ∥ 2 \ \|v + w\|^2 + \|v - w\|^2 = 2\|v\|^2 + 2\|w\|^2 ∥ v + w ∥ 2 + ∥ v − w ∥ 2 = 2∥ v ∥ 2 + 2∥ w ∥ 2 (the lecture shows a drawing with squares built on the sides and diagonals of a parallelogram).
Prove that the classic Pythagorean theorem for vector spaces over R \mathbb{R} R , ∥ v + w ∥ 2 = ∥ v ∥ 2 + ∥ w ∥ 2 \|v + w\|^2 = \|v\|^2 + \|w\|^2 ∥ v + w ∥ 2 = ∥ v ∥ 2 + ∥ w ∥ 2 , holds if and only if v ⊥ w v \perp w v ⊥ w ; also give a counterexample showing that this equivalence does not hold if the field is C \mathbb{C} C (hint: Carnot's theorem only forces R e ⟨ v , w ⟩ = 0 \mathrm{Re}\langle v, w\rangle = 0 Re ⟨ v , w ⟩ = 0 ).
Compute the scalar products ⟨ [ 1 − 1 ] , [ 0 1 ] ⟩ \left\langle\begin{bmatrix}1 \\ -1\end{bmatrix}, \begin{bmatrix}0 \\ 1\end{bmatrix}\right\rangle ⟨ [ 1 − 1 ] , [ 0 1 ] ⟩ , ⟨ [ 42 π 0 ] , [ 0 0 j j ] ⟩ \left\langle\begin{bmatrix}42 \\ \pi \\ 0\end{bmatrix}, \begin{bmatrix}0 \\ 0 \\ j^j\end{bmatrix}\right\rangle ⟨ 42 π 0 , 0 0 j j ⟩ , ⟨ [ 1 2 j − 3 − 4 j ] , [ j 2 j 3 j 4 j ] ⟩ \left\langle\begin{bmatrix}1 \\ 2j \\ -3 \\ -4j\end{bmatrix}, \begin{bmatrix}j \\ 2j \\ 3j \\ 4j\end{bmatrix}\right\rangle ⟨ 1 2 j − 3 − 4 j , j 2 j 3 j 4 j ⟩ .
Compute the p p p -norm of [ 0 0 1 j e j π 0 − 1 − j ] T \begin{bmatrix}0 & 0 & 1 & j & e^{j\pi} & 0 & -1 - j\end{bmatrix}^T [ 0 0 1 j e jπ 0 − 1 − j ] T for p = 0 , 1 , 2 , 3 , + ∞ p = 0, 1, 2, 3, +\infty p = 0 , 1 , 2 , 3 , + ∞ .