Magnitude of a vector
The following gives us a formula to calculate the magnitude ("length") of a vector:
Consider, for example, the vector →OX=i+2j+3k, as seen in the diagram below.
We wish to calculate the length of the line segment OX. We first apply Pythagoras Theorem on triangle OAB to get OB2=12+22. We then apply Pythagoras Theorem one more time on triangle OBX to get OX2=OB2+BX2=12+22+32. This gives us OX=√12+22+32.
Generalizing this example gives us
If you are interested in why we use the modulus |⋅| symbol for vector magnitude even though it behaves slightly different from the usual modulus/absolute values for real values (e.g. |−2|=2), see this post.
Unit vectors
It is often useful to work with vectors of magnitude 1. We call such vectors unit vectors . Given any non-zero vector a, we can scale it to produce a unit vector that is parallel to it. We denote this unit vector with the symbol ˆa. The formula for ˆa is given by
One very useful application of unit vectors is given below and illustrated in example 2 below. See if you can understand the formula. Example 2 provides further explanation of why it works.
Solution to examples:
Answer: |a|=√12+(−1)2+22=√6.
ˆa=1√6(i−j+2k).
A common first attempt is to think that 5a is our required answer. Unfortunately, that does not quite work. From example 1, we know that |a|=√6 so 5a will be of magnitude 5√6.
Instead, we first obtain a unit vector parallel to a, ˆa. Since it is a unit vector (of magnitude 1), 5ˆa gives us the required vector of magnitude 5 that is parallel to a.
Answer: 5√6(i−j+2k).