Source: https://www.usna.edu/Users/physics/tank/Other/MathMethods/LinearAlgebra/MatricesDets/CoupledOscillatorsApr2013.pdf