Consider a vector v=(v1)∈R1. We define its magnitude to be ∣v1∣. Thus ∣∣v∣∣2=v12. Now consider v∈R2. We have that v is the hypotenuse of a triangle formed by v1 and v2. Thus its length is v12+v22. Now, we can show inductively that ∣∣v∣∣ for a vector in Rn is v12+v22+⋯+vn2, it is the hypotenuse of the triangle with legs a vector in Rn−1 and ∣vn∣. We assume that ∣∣(v1,⋯,vn−1)∣∣=v12+v22+⋯+vn−12. Now using the Pythagorean theorem we get ∣∣v∣∣2=(v12+v22+⋯+vn−12)2+vn2⟹∣∣v∣∣=v12+⋯+vn2.
Magnitude in terms of the dot product
Recall that u⋅v=∑uivi, where i goes from 1 to n, and n is the dimension of the space containing u and v. Now, if we have v=u, then the dot product is ∑vi2. But this is also the square of the magnitude of v. Thus we have a new formula for the magnitude of a vector v: ∣∣v∣∣=v⋅v.