Salta al contenuto
Note per Studenti Vector Spaces, Scalar Product and Norms Report

Vector Spaces, Scalar Product and Norms

In questa pagina 6

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}). A vector space is a set VV equipped with two binary operations:

  • vector addition: v∈V, w∈V⇒v+w∈Vv \in V,\ w \in V \Rightarrow v + w \in V;
  • scalar multiplication: λ∈K, v∈V⇒λv∈V\lambda \in \mathbb{K},\ v \in V \Rightarrow \lambda v \in V.

Axioms: for all u,v,w∈Vu, v, w \in V and all a,b∈Ka, b \in \mathbb{K} the following hold.

  1. u+(v+w)=(u+v)+wu + (v + w) = (u + v) + w
  2. u+v=v+uu + v = v + u
  3. there exists 0∈V0 \in V such that v+0=vv + 0 = v
  4. there exists −v-v such that v+(−v)=0v + (-v) = 0
  5. a(u+v)=au+ava(u + v) = au + av
  6. (a+b)u=au+bu(a + b)u = au + bu
  7. a(bv)=(ab)va(bv) = (ab)v
  8. there exists 1∈K1 \in \mathbb{K} such that 1⋅v=v⋅1=v1 \cdot v = v \cdot 1 = v

Definition (scalar). λ\lambda is called a scalar if it is an element of a field K\mathbb{K}.

Definition (vector). vv is called a vector if it is an element of a vector space VV.

Example (Euclidean vector space over C\mathbb{C}).

v=[v1v2⋮vN]∈CN,V={v∣v∈CN}.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\}.

Scalar product

Definition (scalar product in vector spaces over C\mathbb{C}). Let VV be a vector space over C\mathbb{C}. A scalar product over VV 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},

that associates a complex number ⟨v,w⟩\langle v, w\rangle to any couple of vectors v,w∈Vv, w \in V, such that:

  1. ⟨v,w⟩=⟨w,v⟩‾\langle v, w\rangle = \overline{\langle w, v\rangle} (conjugate symmetry);
  2. ⟨α1v1+α2v2,w⟩=α1⟨v1,w⟩+α2⟨v2,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 (linearity in the first argument);
  3. ⟨v,v⟩≥0\langle v, v\rangle \ge 0, where equality holds if and only if v=0v = 0.

(By property 1, ⟨v,v⟩\langle v, v\rangle is real, so the inequality in 3 makes sense.)

Transpose and conjugate operations. Transpose: [1j3]T=[1j3]\begin{bmatrix}1 \\ j3\end{bmatrix}^T = \begin{bmatrix}1 & j3\end{bmatrix}. Vector conjugate (conjugate transpose): [1j3]∗=[1−j3]\begin{bmatrix}1 \\ j3\end{bmatrix}^* = \begin{bmatrix}1 & -j3\end{bmatrix}.

Notation (scalar product in CN\mathbb{C}^N).

⟨v,w⟩=w‾Tv=w∗v,where w∗=w‾T.\langle v, w\rangle = \overline{w}^T v = w^* v, \qquad \text{where } w^* = \overline{w}^T.

Example. v=[11]v = \begin{bmatrix}1 \\ 1\end{bmatrix}, w=[j2−4]w = \begin{bmatrix}j2 \\ -4\end{bmatrix}. Then

⟨v,w⟩=w∗v=[−j2−4][11]=−j2⋅1−4⋅1=−4−j2.\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.

Norm

Definition (norm). Let VV be a vector space over R\mathbb{R} or C\mathbb{C}. A norm is a functional ∥⋅∥:V→R\|\cdot\| : V \to \mathbb{R} with the properties:

  1. ∥v∥≥0\|v\| \ge 0 (and =0= 0 if and only if v=0v = 0);
  2. ∥αv∥=∣α∣⋅∥v∥\|\alpha v\| = |\alpha|\cdot\|v\|;
  3. ∥v+w∥≤∥v∥+∥w∥\|v + w\| \le \|v\| + \|w\| (triangular inequality).

Definition (Euclidean norm or 2-norm).

∥v∥2:=∑k=1N∣vk∣2.\|v\|_2 := \sqrt{\sum_{k=1}^{N}|v_k|^2}.

Definition (pp-norms). For a vector and p∈Rp \in \mathbb{R}, p>0p > 0:

∥v∥p:=∑k=1N∣vk∣pp.\|v\|_p := \sqrt[p]{\sum_{k=1}^{N}|v_k|^p}.

Two limiting cases:

  • if p→0p \to 0: ∥v∥0:=∑k=1Nϕ(vk)\|v\|_0 := \sum_{k=1}^{N}\phi(v_k), with ϕ(x)=1\phi(x) = 1 if x≠0x \ne 0 and ϕ(x)=0\phi(x) = 0 otherwise (it counts the nonzero components);
  • if p→+∞p \to +\infty: ∥v∥∞:=sup⁡k=1,…,N∣vk∣\|v\|_\infty := \sup_{k = 1, \dots, N}|v_k|.

Example. v=[1+jj]v = \begin{bmatrix}1 + j \\ j\end{bmatrix}:

  • ∥v∥22=∣1+j∣2+∣j∣2=12+12+12=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∥1=∣1+j∣+∣j∣=12+12+12=2+1\|v\|_1 = |1 + j| + |j| = \sqrt{1^2 + 1^2} + \sqrt{1^2} = \sqrt{2} + 1;
  • ∥v∥0=1+1=2\|v\|_0 = 1 + 1 = 2;
  • ∥v∥∞=∣1+j∣=2\|v\|_\infty = |1 + j| = \sqrt{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∈Vv \in V:

∥v∥:=⟨v,v⟩.\|v\| := \sqrt{\langle v, v\rangle}.

Orthogonality

Definition (orthogonal vectors). Two vectors v,w∈Vv, w \in V are orthogonal if ⟨v,w⟩=0\langle v, w\rangle = 0. Notation: v⊥w  ⟺  ⟨v,w⟩=0v \perp w \iff \langle v, w\rangle = 0.

Definition (orthonormal vectors). Two vectors v,w∈Vv, w \in V are orthonormal if they are orthogonal and ⟨v,v⟩=1\langle v, v\rangle = 1, ⟨w,w⟩=1\langle w, w\rangle = 1.

Generalized Pythagorean theorem

Theorem (Carnot's theorem). Let v,wv, w be vectors belonging to a vector space over C\mathbb{C} endowed with a scalar product. Then

∥v+w∥2=∥v∥2+∥w∥2+2 Re(⟨v,w⟩).\boxed{\|v + w\|^2 = \|v\|^2 + \|w\|^2 + 2\,\mathrm{Re}\left(\langle v, w\rangle\right)}.

(Recall: z=a+jb∈C⇒Re(z)=a∈Rz = a + jb \in \mathbb{C} \Rightarrow \mathrm{Re}(z) = a \in \mathbb{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,wv, 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.

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 Re(⟨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),

because ⟨v,w⟩=⟨w,v⟩‾\langle v, w\rangle = \overline{\langle w, v\rangle}, so the two cross terms are a number and its conjugate, whose sum is twice the real part. ■\blacksquare

Exercises proposed in the course

  1. Prove the parallelogram rule: for all v,wv, 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 (the lecture shows a drawing with squares built on the sides and diagonals of a parallelogram).
  2. Prove that the classic Pythagorean theorem for vector spaces over R\mathbb{R}, ∥v+w∥2=∥v∥2+∥w∥2\|v + w\|^2 = \|v\|^2 + \|w\|^2, holds if and only if v⊥wv \perp w; also give a counterexample showing that this equivalence does not hold if the field is C\mathbb{C} (hint: Carnot's theorem only forces Re⟨v,w⟩=0\mathrm{Re}\langle v, w\rangle = 0).
  3. Compute the scalar products ⟨[1−1],[01]⟩\left\langle\begin{bmatrix}1 \\ -1\end{bmatrix}, \begin{bmatrix}0 \\ 1\end{bmatrix}\right\rangle, ⟨[42π0],[00jj]⟩\left\langle\begin{bmatrix}42 \\ \pi \\ 0\end{bmatrix}, \begin{bmatrix}0 \\ 0 \\ j^j\end{bmatrix}\right\rangle, ⟨[12j−3−4j],[j2j3j4j]⟩\left\langle\begin{bmatrix}1 \\ 2j \\ -3 \\ -4j\end{bmatrix}, \begin{bmatrix}j \\ 2j \\ 3j \\ 4j\end{bmatrix}\right\rangle.
  4. Compute the pp-norm of [001jejπ0−1−j]T\begin{bmatrix}0 & 0 & 1 & j & e^{j\pi} & 0 & -1 - j\end{bmatrix}^T for p=0,1,2,3,+∞p = 0, 1, 2, 3, +\infty.

Versione ripasso

  • Vector space over a field K\mathbb{K}: addition and scalar multiplication satisfying 8 axioms (associativity, commutativity, zero, opposite, two distributivities, compatibility, unit). Scalars belong to K\mathbb{K}, vectors to VV. Example: CN\mathbb{C}^N.
  • Scalar product over C\mathbb{C}: ⟨v,w⟩∈C\langle v, w\rangle \in \mathbb{C} with (i) ⟨v,w⟩=⟨w,v⟩‾\langle v, w\rangle = \overline{\langle w, v\rangle}, (ii) linear in the first argument, (iii) ⟨v,v⟩≥0\langle v, v\rangle \ge 0, =0= 0 iff v=0v = 0. In CN\mathbb{C}^N: ⟨v,w⟩=w∗v\langle v, w\rangle = w^*v, w∗=w‾Tw^* = \overline{w}^T. Example: v=[1 1]Tv = [1\ 1]^T, w=[j2 −4]Tw = [j2\ {-4}]^T gives −4−j2-4 - j2.
  • Norm: ∥v∥≥0\|v\| \ge 0 (00 iff v=0v = 0), ∥αv∥=∣α∣∥v∥\|\alpha v\| = |\alpha|\|v\|, ∥v+w∥≤∥v∥+∥w∥\|v + w\| \le \|v\| + \|w\|. Euclidean: ∥v∥2=∑∣vk∣2\|v\|_2 = \sqrt{\sum|v_k|^2}. pp-norm: ∥v∥p=(∑∣vk∣p)1/p\|v\|_p = \left(\sum|v_k|^p\right)^{1/p}; ∥v∥0\|v\|_0 = number of nonzero entries; ∥v∥∞=sup⁡k∣vk∣\|v\|_\infty = \sup_k|v_k|. Norm of a scalar product: ∥v∥=⟨v,v⟩\|v\| = \sqrt{\langle v, v\rangle}.
  • v⊥w  ⟺  ⟨v,w⟩=0v \perp w \iff \langle v, w\rangle = 0; orthonormal = orthogonal with unit norms.
  • Carnot (generalized Pythagoras): ∥v+w∥2=∥v∥2+∥w∥2+2 Re⟨v,w⟩\|v + w\|^2 = \|v\|^2 + \|w\|^2 + 2\,\mathrm{Re}\langle v, w\rangle. Proof: expand ⟨v+w,v+w⟩\langle v + w, v + w\rangle; ⟨v,w⟩+⟨w,v⟩=2 Re⟨v,w⟩\langle v, w\rangle + \langle w, v\rangle = 2\,\mathrm{Re}\langle v, w\rangle. If v⊥wv \perp w: classic Pythagoras.
  • Typical mistakes: forgetting the conjugate in ⟨v,w⟩=w∗v\langle v, w\rangle = w^*v (the product is linear in the first argument and conjugate-linear in the second); thinking ∥v+w∥2=∥v∥2+∥w∥2\|v + w\|^2 = \|v\|^2 + \|w\|^2 implies v⊥wv \perp w over C\mathbb{C} (it only gives Re⟨v,w⟩=0\mathrm{Re}\langle v, w\rangle = 0).

Teoria collegata