Show that the inner product defined above for Rn as ⟨x,y⟩=x1y1+x2y2+⋯+xnyn fulfills the 4 properties of an inner product.
Let x,y,z∈Rn and α∈R.
⟨x,x⟩=x12+x22+⋯xn2.
Since every component is squared, we know that ⟨x,x⟩≥0. Let us check when x12+x22+⋯xn2=0. Since we are adding each component squared, all components must be 0 in order for this sum to be 0 as well, i.e. x must be the zero vector. Therefore, ⟨x,x⟩=0⟺x=0.
Norm
The norm of a vector x∈V is its length. We denote the norm as ∥x∥:V→R.
For vectors in Rn, to find the length of a vector x=x1x2⋮xn, we use the Pythagorean theorem.
∥x∥=x12+x22+⋯+xn2=⟨x,x⟩
Therefore, we can express the inner product of x with itself as the square of its norm:
⟨x,x⟩=∥x∥2
Properties
Norms have to fulfill 3 properties for x,y∈V and α∈R:
Nonnegativity: ∥x∥≥0, where ∥x∥=0 if and only if x=0
Scaling: ∥αx∥=∣α∣∥x∥
Triangle inequality: ∥x+y∥≤∥x∥+∥y∥, where ∥x+y∥=∥x∥+∥y∥ if and only if x=αy (i.e. when x and y are parallel)
Angle
We define the angle θ between 2 vectors x,y using the following equation: