The most likely reason the Ivory soap expands when heated is:
D. The volume of gas in the spaces of the Ivory soap expands when the temperature increases.
This option best explains the phenomenon observed when the soap is heated in the microwave, as the gas in the air pockets within the soap expands due to the increase in temperature, causing the soap to puff up.