The length of a vector
The ship flies the vector 3, 4: 3 thousand kilometres across and 4 up. How far is that, in a straight line?
Pythagoras
The move across and the move up are the two shorter sides of a right-angled triangle, and the vector is its longest side:
By Pythagoras, its length is
which is the square root of 25, so 5. The bars around a vector mean its length. A minus sign in a coordinate makes no difference, since its square is positive: the length of the vector minus 3, 4 is 5 too.
The distance between two points is the length of the vector between them. From A(1, 2) to B(4, 6), the vector is the vector 3, 4, so the distance is 5.
In space
With three coordinates, Pythagoras is used twice, and the length is the root of all three squares added:
which is the square root of 9, so 3.
A number in front stretches the length by its size: the length of 2 the vector 3, 4 is 2 times 5, and the length of the quantity minus 2 the vector 3, 4, is also 10, as a length is never negative.
Equal lengths
Where on the line x equals minus 2 is a point C as far from A(1, −3) as B(4, 1) is? AB is the vector 3, 4, with length 5, and with C(−2, a), AC is the vector minus 3, a plus 3. Its length must be 5 too:
Squaring both sides takes the root away, and gives 9 plus the quantity a plus 3, squared equals 25. So the quantity a plus 3, squared is 16, and a plus 3 is 4 or minus 4:
Both answers count: there are two such points, one above and one below.
The length of a vector is the root of its coordinates squared and added, by Pythagoras. For equal lengths, square both sides.