I have the following question. Find the matrix representation of the transormation $T:\mathbb{R}^3\to\mathbb{R}^3$ that rotates any vector by $\theta=\frac{\pi}{6}$ along the vector $v=(1,1,1)$.
A hint is given to find the rotation matrix about the $z-axis$ by $\frac{\pi}{6}$which is $$ \begin{bmatrix} \frac{\sqrt{3}}{2} &\frac{-1}{2} & 0 \\ \frac{1}{2} & \frac{\sqrt{3}}{2} & 0 \\ 0 & 0 &1 \end{bmatrix} $$ and then find an orthogonal basis for $\mathbb{R}^3$ that has $v$ as one of its vector then finally rewrite the above matrix using the new basis and that should be my answer.
My questions are
- Do I pick two random vectors and join them to $v$ and use the Gram-Schmidt process to get an orthogonal basis.
- Why does that work?
The Gram-Schmidt process is a rather tedious way to do such a simple geometric task.
First, the plane $P$ orthogoal to $v = (1,1,1)$ is $x+y+z=0$.
Second, pick any vector $P$ in that plane, say $w = (1,-1,0)$.
Third, let $u$ be the cross product of $v,w$: $$u = v \times w = (1,1,1) \times (1,-1,0) = (1,1,-2) $$ It follows that $\{v,w,u\}$ is an orthogonal basis.
Finally, a note of caution: before proceeding to rewrite the rotation matrix using this new basis, what you really want is an orthonormal basis, hence you should first normalize the basis by replacing $v$ with $\frac{v}{|v|}$ and similarly for $w$ and $u$.