Concept:
The volume of a parallelepiped formed by vectors $\vec{u}, \vec{v}, \vec{w}$ is: \[ |[\vec{u}\ \vec{v}\ \vec{w}]| \] The angle between two vectors is given by: \[ \cos\theta = \frac{\vec{u} \cdot \vec{w}}{|\vec{u}|\,|\vec{w}|} \]
Step 1: Find $\lambda$ using volume.
\[ V = \begin{vmatrix} 1 & 1 & \lambda \\ 1 & 1 & 3 \\ 2 & 1 & 1 \end{vmatrix} \] \[ V = 1(1\cdot1 - 3\cdot1) - 1(1\cdot1 - 3\cdot2) + \lambda(1\cdot1 - 1\cdot2) \] \[ V = 1(1 - 3) - 1(1 - 6) + \lambda(1 - 2) \] \[ V = -2 + 5 - \lambda = 3 - \lambda \] Given $|V| = 1$: \[ |3 - \lambda| = 1 \Rightarrow \lambda = 2 \text{ or } 4 \] Take $\lambda = 2$.
Step 2: Form vectors and find magnitudes.
\[ \vec{u} = \hat{i} + \hat{j} + 2\hat{k}, \quad \vec{w} = 2\hat{i} + \hat{j} + \hat{k} \] \[ |\vec{u}| = \sqrt{1^2 + 1^2 + 2^2} = \sqrt{6}, \quad |\vec{w}| = \sqrt{2^2 + 1^2 + 1^2} = \sqrt{6} \]
Step 3: Compute $\cos\theta$.
\[ \vec{u} \cdot \vec{w} = 1\cdot2 + 1\cdot1 + 2\cdot1 = 5 \] \[ \cos\theta = \frac{5}{\sqrt{6}\cdot\sqrt{6}} = \frac{5}{6} \]
Final Answer:
\[ \boxed{\frac{5}{6}} \]