Set , the rotational temperature. For a continuous nonnegative variable ,
Equating this derivative to zero gives the most populated rotational level
The second derivative is , so this is a maximum when . At lower temperatures the constrained continuous maximum is . For the physical integer maximum compare the nearby allowed levels explicitly.