Where:

  • C is the center of mass,
  • mi is the mass of each component of the system,
  • xi is the position of each component along the axis.