\ddot{\mathbf{q}}+\left[\mathbf{A}^T\mathbf{M}^{-1}\mathbf{K}\mathbf{A}\right]\mathbf{q}=0