Read · 1 min

Magnitudes and dot products

Magnitude of a vector in Rn\mathbb{R}^n

Consider a vector v⃗=(v1)∈R1\vec{v}=(v_1) \in \mathbb{R}^1. We define its magnitude to be ∣v1∣\left|v_1\right|. Thus ∣∣v⃗∣∣2=v12\left|\left|\vec{v}\right| \right|^2=v_1^2. Now consider v⃗∈R2\vec{v} \in \mathbb{R}^2. We have that v⃗\vec{v} is the hypotenuse of a triangle formed by v1v_1 and v2v_2. Thus its length is v12+v22\sqrt{v_1^2+v_2^2}. Now, we can show inductively that ∣∣v⃗∣∣||\vec{v}|| for a vector in Rn\mathbb{R}^n is v12+v22+⋯+vn2\sqrt{v_1^2+v_2^2 + \cdots + v_n^2}, it is the hypotenuse of the triangle with legs a vector in Rn−1\mathbb{R}^{n-1} and ∣vn∣|v_n|. We assume that ∣∣(v1,⋯ ,vn−1)∣∣=v12+v22+⋯+vn−12||(v_1, \cdots, v_{n-1})|| = \sqrt{v_1^2+v_2^2 + \cdots + v_{n-1}^2}. Now using the Pythagorean theorem we get ∣∣v⃗∣∣2=(v12+v22+⋯+vn−12)2+vn2||\vec{v}||^2 = \left(\sqrt{v_1^2+v_2^2 + \cdots + v_{n-1}^2}\right)^2 + v_n^2   ⟹  ∣∣v⃗∣∣=v12+⋯+vn2\implies ||\vec{v}|| = \sqrt{v_1^2+ \cdots + v_n^2}.

Magnitude in terms of the dot product

Recall that u⃗⋅v⃗=∑uivi\vec{u} \cdot \vec{v}=\sum{u_iv_i}, where ii goes from 11 to nn, and nn is the dimension of the space containing u⃗\vec{u} and v⃗\vec{v}. Now, if we have v⃗=u⃗\vec{v}=\vec{u}, then the dot product is ∑vi2\sum{v_i^2}. But this is also the square of the magnitude of v⃗\vec{v}. Thus we have a new formula for the magnitude of a vector v⃗\vec{v}: ∣∣v⃗∣∣=v⃗⋅v⃗\left|\left|\vec{v}\right| \right| = \sqrt{\vec{v}\cdot\vec{v}}.

Interactive · 1 question

Remember the Pythagorean Theorem?

Choose one answer

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems