How do I calculate the unit vector of P = (3, 4, 5) and Q = (5, 8, 9) (line l going through these two points)?

22 Views Asked by At

My textbook says that the answer to this question is: unit vector v = (Q − P) / |Q −P| = (1/3) [1 2 2]. I don't see how they got here, this is my calculation: (Q - P) = [5 - 3, 8 - 4, 9 - 5] = [2 4 4]. The magnitude of this vector is the square root of (2*2)+(4*4)+(4*4) = 36 so 6. So I'd say that the unit vector is 1/6 [2 4 4].