Given the vectors u = (1, 2, 3, 4), v = (−1, 2,−2, 1),w = (0, 2,−2, 2), compute the following:
(a) the length (norm) of each of these vectors (give exact answer);
(b) the angle (in radians) between all pairs of these vectors (3 significant figures);
(c) the unit vector pointing in the opposite direction for each of these vectors.
my revision,any idea how to do those thanks.
my answer for (a) is
u = [1 2 3 4];
>> v = [-1 2 -2 1];
>> w = [0 2 -2 2];
Your answers to (a) seem correct, but you are asked an exact answer. So for the first one you should give , for example.
For (b), use the fact that where is the angle between the two and is the dot product.
For (c), can you find a vector of length one pointing in the same direction as each of your vectors? If you can do that then you should have no trouble finding the one which points in the opposite direction.
Well the length of a vector [a,b,c,...] is
so the legnth of u would be
which is what you got, you just need to provide it as a squareroot for the "exact answer"
Sorry i can't help with (b), but for (c) a vector in the opposite direction has the negative of the components of the original vector. e.g. the opposite direction to [a,b,c,d] is [-a,-b,-c,-d], so the opposite direction to w=[0,2,-2,2] is [0,-2,2,-2]. A unit vector in this direction has a length of 1, so it is some positive multiple k of [0,-2,2,-2] which has a length of 1. Calculate the length using the above formula.
so the unit vector in the direction opposite to w=[0,2,-2,2] is
Hope this helps
thanks so much!
Originally Posted by chug1