a= \frac{sin \alpha (m_1 + m_2) - cos \alpha (k_1 m_1 + k_2 m_2)}{m_1 + m_2}