Answer;
density = (mass/volume)
here density varies with respect to change in volume by assuming constant volume.
changing the temperature, change in density. most matter increases in volume when it gets hotter. Example, when an iron rod is heated, it will get longer and its density will decrease. This happens because the mass of the rod constant, but volume increase.