In $\mathbb{R}^3$ suppose I have an arbitrary vector $\vec{n}$. I want to find the rotation matrix about $\vec{n}$ through an angle $\theta$.
I can develop the rotation matrix in two dimensions and that makes it clear to me that the rotation matrices about the basis vectors are
$$R_x=\begin{pmatrix}1 & 0 & 0 \\0 & \cos\theta &-\sin\theta\\ 0 & \sin\theta & \cos\theta\end{pmatrix}$$
and similarly for $R_y$ and $R_z$. I've also looked at this answer: Vector rotation but I'm trying to follow the steps to deriving it, not just looking for the answer. Also, I know nothing about tensors.
I looked at this answer: Getting a transformation matrix from a normal vector I believe I understand why we would want a rotation that would take the plane normal to the normal, and align it with the $x$-$y$ plane, since having done that we might be able to then follow with a rotation about the $z$ axis to get the resulting vectors aligned with $x$ and $y$ axes. The composition of these rotations would map the new bases to the old, and the inverse would map the old to the new.
So the task is to now rotate $\vec{n}$ onto $\vec{k}$, and I can see (somewhat) why we would want a vector $\vec{u}$ in the $x$-$y$ plane which is normal to this rotation, and how to get it by solving $\vec{n}\cdot \vec{u} = 0$ with $\vec{u} = a\vec{i}+b\vec{j}$.
But once having $\vec{u}$, I'm not sure how I would find the matrix of the rotation about $\vec{u}$ which takes $\vec{n}$ onto $\vec{k}$, and the answer given there points to a Wikipedia article to do this. But again I don't just want the answer, I want to understand the derivation.
Besides that I'm somewhat confused by the methodology in this sense: Don't we have a situation that is not very much better than the situation we started with? Right now I have a vector $\vec{u}$ and want to rotate $\vec{n}$ about it ... Well isn't that the same as what we're trying to do generally? Is anything gained by the fact that $\vec{u}$ is in the $x$-$y$ plane which makes that easier than just doing the same task with $\vec{n}$ directly?
And I would really prefer a derivation that went more like the way that the 2-D rotation proceeded, since I understood that clearly. It would be nice to consider vector $\vec{n}$ and the rotation of $\vec{i}$ about it, write those coordinates into the first column of the answer, and then do likewise for $\vec{j}$ and $\vec{k}$. Of course, perhaps we don't do it that way because it's very hard, and hence why I can't see how to do it that way on my own.