Are you solving the equation or ? I found complex eigenvalues instead of the that you did.

Also, for getting matrices, assume that and . Differentiating these gives and , which you can then use to turn any second order equation into a system of first order equations.