Show solutionHide solution
Let \(\theta\) be the angle between \(\vec a\) and \(\vec b\). By definition of the dot product, for nonzero vectors,
\[ \cos\theta=\frac{\vec a\cdot\vec b}{|\vec a||\vec b|}, \] where \(0\le \theta\le \pi\).Given \(|\vec a|=\sqrt3\), \(|\vec b|=2\), and \(\vec a\cdot\vec b=\sqrt6\), we get
\[ \cos\theta=\frac{\sqrt6}{\sqrt3\cdot 2} =\frac{\sqrt6}{2\sqrt3} =\frac{\sqrt2}{2}. \]On the interval \([0,\pi]\), the only angle whose cosine is \(\frac{\sqrt2}{2}\) is
\[ \theta=\frac{\pi}{4}. \]Therefore, the angle between the two vectors is \(\frac{\pi}{4}\) radians, i.e. \(45^\circ\).