The Mathieu equation has periodic solutions and therefore it is possible to use finite difference approximations to obtain an equivalent matrix eigenvalue problem. The matrix will of tridiagonal kind with an extra two coefficients, one top right and the other bottom left when second order accurate differences are used.
Also see:
Article Onset of Convection in a Porous Layer with Continuous Period...
Thank you so much for your suggestion. I read your valuable research article. I am in an initial stage on hydrodynamic stability. Thank you so much. I will refer your other important articles . Thank you
Mathiew's differential equation is a second order differential equation of the form d2y/dx2 + (a -2qcosx)y = 0 . For that you have first to transform the second order equation into a first order differential system dy/dx = z and dz/dx = (a-2qcosx)y , second use a Runge-Kutta.
This link has more info https://en.wikipedia.org/wiki/Mathieu_function