Rotating Frame transformation

Least action method for block diagonalization