Math Home

Definition

Let \(\overrightarrow{v} = <v_1, v_2, \dots, v_n>\) be a vector of \(n\) numbers. The length of \(\overrightarrow{v}\) is \[||\overrightarrow{v}|| = \sqrt{v_1^2 + v_2^2 + \dots + v_n^2}\]

This measure of length is from the Euclidean distance or \(l^2\) norm. Recall the distance formula for two points on the plane: Given points \((x_1, y_1)\) and \((x_2, y_2),\) the distance between them is \[\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}\] A vector \(\overrightarrow{v} = <x, y>\) has a tail at \((0,0),\) so plugging in \((0,0)\) for one of the points we get \[||\overline{v}|| = \sqrt{x^2 + y^2}\]

The formula for a \(3\)-dimensional vector \(\overline{v} = (x,y,z)\) is \[||\overline{v}|| = \sqrt{x^2 + y+2 + z^2}\]

Comparing length

The messiest part of the formula for the length of a vector is the square root. Often times, such as when you are comparing the length of two vectors, you don't actually need to compute the square root.

Which is longer, \(\overrightarrow{v} = < 2, 3, 2 >\) or \(\overrightarrow{w} = < 0, 4, 2 >?\)

If \(||\overrightarrow{v}||^2 > ||\overrightarrow{w}||^2\) then \(||\overrightarrow{v}|| > ||\overrightarrow{w}||,\) so it is enough to find \(||\overrightarrow{v}||^2\) and \(||\overrightarrow{w}||.\) \[||\overrightarrow{v}||^2 = 2^2 + 3^2 + 2^2 = 17\] \[||\overrightarrow{w}||^2 = 0^2 + 4^2 + 2^2 = 20\] Therefore, \(||\overrightarrow{w}|| > ||\overrightarrow{v}||.\)

Calculator

Enter a vector to see its length.

\(\overrightarrow{v}=\)
\(||\overrightarrow{v}||^2 = 5,\) so \(||\overrightarrow{v}|| = \sqrt{5} \approx 2.24\)

Warning: include_once(../../../snippets/math_lin_alg_keys.php): failed to open stream: No such file or directory in /var/www/michaelbriankelly.com/digital-garden/math/bourbaki/8_vector_length.php on line 44

Warning: include_once(): Failed opening '../../../snippets/math_lin_alg_keys.php' for inclusion (include_path='.:/usr/share/php') in /var/www/michaelbriankelly.com/digital-garden/math/bourbaki/8_vector_length.php on line 44

Fatal error: Uncaught Error: Call to undefined function makeKeyboard() in /var/www/michaelbriankelly.com/digital-garden/math/bourbaki/8_vector_length.php:45 Stack trace: #0 /var/www/michaelbriankelly.com/digital-garden/math/lesson/index.php(118): include_once() #1 {main} thrown in /var/www/michaelbriankelly.com/digital-garden/math/bourbaki/8_vector_length.php on line 45