I'm an engineering student and I ran into something like this while studying mechanics of the continuum:
$\vec{\eta*} = [N]\cdot\vec{\eta}$ where $[N]$ is the rotational matrix and it represents the rotation which leads from the frame of reference x,y,z to the frame of reference l,m,n:
$[N]= \begin{vmatrix} lx & ly & lz\\ mx & my & mz\\ nx & ny & nz\\ \end{vmatrix} $
where lx, ly, ...nz are the direction cosines of the angles between the unit vectors l and x, l and y, ...n and z of the two frames of reference.
Proving that the rotational matrix is equivalent to the matrix of the direction cosines is straightforward in two dimensions. In fact, considering an anticlockwise rotation of the frame of reference from $x,y,z$ to $l,m,n$ by an angle $\theta$, with $z$ being the rotational axis (Image), the rotation matrix can be derived to be as follows:
$[N]= \begin{vmatrix} \cos\theta & \sin\theta & 0\\ -\sin\theta & \cos\theta & 0\\ 0 & 0 & 1\\ \end{vmatrix} = \begin{vmatrix} \cos\theta & \cos\bigl(\frac{\pi}{2}-\theta\bigr) & 0\\ \cos\bigl(\frac{\pi}{2}+\theta\bigr) & \cos\theta & 0\\ 0 & 0 & \cos0\\ \end{vmatrix} = \begin{vmatrix} lx & ly & 0\\ mx & my & 0\\ 0 & 0 & nz\\ \end{vmatrix} $
What I can't figure out is: how can I prove this holds true for every rotation in 3D space?