I'm working on a question where I have to find an equation for the kinetic energy of a mass being rotated by a fold-able arm. The equation for $m_1$ is obvious, however, the equation I derived for $m_2$ is not entirely consistent with the solutions.
To derive the equation I figured that I could use the resultant instantaneous velocity acting on $m_2$ to find its kinetic energy. If I say $v_1$ to be the instantaneous velocity due to $\dot \theta_1$ and $v_2$ to be the instantaneous velocity due to $\dot \theta_2$ then the resultant instantaneous velocity can be found using the cosine rule:
$V_{r}^2 = V_1^2+V_2^2-2V_1V_2 \cos(\theta_d)$
$V_r$ is the resultant velocity, $\theta_d$ is the angle difference between the two velocity vectors and can be substituted with $\theta_1 - \theta_2$.
And hence the kinetic energy for $m_2$ can be said to be:
$K_2 = \frac{m_2}{2}\left(l_1^2\dot\theta_1^2+l_2^2\dot\theta_2^2-2l_1\dot\theta_1l_2\dot\theta_2 \cos(\theta_1-\theta_2)\right)$
However, the solution suggests a slightly different answer: $K_2 = \frac{m_2}{2}\left(l_1^2\dot\theta_1^2+l_2^2\dot\theta_2^2+2l_1\dot\theta_1l_2\dot\theta_2 \cos(\theta_1-\theta_2)\right)$
I can't think of any reason why the sign on the last term should be positive, would appreciate any help.
\sin
\cos
etc. $\endgroup$