Energy equation for relative velocities, one dimensional analysis