I have two vectors, $(-2, 3, 1)$, and $(-1, 2, a)$. I know that the angle between these two vectors is $40^\circ$. How do I find a?
When I try to algebraically solve for a, I run into problems with the magnitudes. I understand that $X \cdot Y = |X| |Y| cos(Z)$. The problem is the magnitude of $Y$ in this case turns out to be $\sqrt{5 + a^2}$, and the dot product of $X$ and $Y$ is a + 8, so I can't figure out how to resolve the two to find a.
$a + 8 = \sqrt{14} \cdot \sqrt{5 + a^2} \cdot \cos(40^\circ)$