Problem:
Consider an axis $\mathcal{A}$ lying along the vector $\begin{bmatrix} 0 \\1 \\ \sqrt{3} \end{bmatrix}$. Rotating around the $x$-axis by an appropriate amount can allow one to place this axis on top of the $z$-axis. Use this fact to find the rotation matrix which will rotate by angle of $\pi/3$ around $\mathcal{A}$.
My attempt:
I calculated the unit vector by dividing by the vector norm, and then computed the arccosine of $y$ to get an angle $\theta = 60$. I don't really know if this is helpful, but I drew a picture, and I found that the angle between the line and the $y$-axis is $\pi/2 - \theta$, where $\theta$ is the degree in radians. This gives me $\pi/6$. I don't really know what to do next, or even if I'm doing the right thing.
Okay how this might work is the following:
There is a general formula for that but I will try to derive it here:
The key is a change of the basis.
First. Find a Basis with the given vector being "equal" to the x axis. e.g.;
$v1 = \begin{bmatrix} 0 \\1 \\ \sqrt{3} \end{bmatrix}$ $v2 = \begin{bmatrix} 1 \\0 \\ 0 \end{bmatrix}$ $v3 = \begin{bmatrix} 0 \\\sqrt3 \\ -1 \end{bmatrix}$
Normalize these and write them into the matrix A:
$$A=\begin{bmatrix} 0 & 1 & 0\\ 1/2 & 0 & \sqrt3 /2\\ \sqrt3 /2 & 0 & -1/2 \end{bmatrix}$$
Now the idea is to compute the matrix:
$$M = A^{-1}RA$$ with R being the rotation matrix around the x-axis. $A^{-1}$ is the inverse of A.
The idea is that you have given any vector in the given space. With the matrix A, you can transform it into default space. Then you rotate it and then you transform it back into the given vector-space by using $A^{-1}$ Note: I am not 100% sure if it is $ARA^{-1}$ or $A^{-1}RA$