  In some planetary systems, the orbital periods of two of its members present
a commensurability, usually known by mean-motion resonance. These resonances
greatly enhance the mutual gravitational influence of the planets. As a
consequence, these systems present uncommon behaviors, and their motions need
to be studied with specific methods. Some features are unique and allow us a
better understanding and characterization of these systems. Moreover,
mean-motion resonances are a result of an early migration of the orbits in an
accretion disk, so it is possible to derive constraints on their formation.
Here we review the dynamics of a pair of resonant planets and explain how their
orbits evolve in time. We apply our results to the HD 45365 planetary system.
