For a different and detailed calculation of the gap formula (i.e. for the gap between bands) and the level splitting of eigenvalues of the one-dimensional Schrödinger equation see Müller-Kirsten. Corresponding results for the cosine potential (Mathieu equation) are also given in detail in this reference.