Abstract: The general form of an integral of motion that is a polynomial of order N in the momenta is presented for a Hamiltonian system in two-dimensional Euclidean space. The classical and the quantum cases are treated separately, emphasizing both the similarities and the differences between the two. The main application will be to study Nth order superintegrable systems that allow separation of variables in the Hamilton-Jacobi and Schrodinger equations, respectively. This is joint work with Sarah Post.