On the dependence of the coefficient of thermal expansion on density