A theoretical explanation for the inversion temperature