Module 1: Magnitude of a Vector
The last useful computation included in this module is magnitude. The magnitude (or length or norm) of a vector →v∈Rn is
‖→v‖=‖(v1v2⋮vn)‖:=(∑ni=1v2i)12.
For example:
‖(34)‖=(32+42)12=√25=5.
The magnitude computation is important because it allows us to define the distance between two vectors: Let →u and
→v be vectors. Then the distance between them is given by
‖→u−→v‖.
Using this computation we can argue that the smaller the value of ‖→u−→v‖ then the "closer'' the vectors
→u and
→v are to each other (or alternatively, how well the vector
→u approximates
→v). For example, let's find a vector of the form
(1t2)
which is as close as possible to
(011).
We compute
‖(1t2)−(011)‖=‖(1t−11)‖=((t−1)2+1+1)12.
This is them minimized when t=1.