Let L be the line in R3 that consists of all scalar multiples of [2 1 2]. Find the reflection of the vector [1 1 1] in line L.
I'm calculating this using 2(u dot v) u - v. My solution:
2 ([2 1 2] dot [1 1 1])([2 1 2]) - [1 1 1]
= 2 (5) ([2 1 2]) - [1 1 1]
= [20 10 20] - [1 1 1]
= [19 9 19]
The correct solution is apparently 1/9 [11 1 11]. What am I missing here?
It's because $\|u\|\neq1$. Therefore, the formula that you should have used is$$2\frac{\langle u,v\rangle}{\|u\|^2}u-v.$$Try it and you will see that you will get the correct answer.