The substance is Copper sulphate crystals (CuSO4.5H2O), which are blue in colour. When copper sulphate crystals are heated strongly, they lose all the water of crystallisation and forms anhydrous copper sulphate (which is white) :
CuSO4. 5H2OHeat−−−→CuSO4+5H2OHydratedAnhydrousWaterCopperCopper(goesSulphate (Blue)Sulphate (White)away)
Thus, on strong heating, blue copper sulphate crystals turn white due to the loss of water of crystallisation.
The dehydration of copper sulphate crystals is a reversible process. So when water is added to anhydrous copper sulphate, it gets hydrated and turns blue due to the formation of hydrated copper sulphate.
CuSO4 +5H2O⟶CuSO4. 5H2OAnhydrousWaterHydratedCopperCopperSulphateSulphate(White)(Blue)
(b) Chemical Formula of two such compounds whose one formula unit is associated with 10 and 2 water molecules respectively-
• Washing soda- Na2CO3.10H2O (Sodium Carbonate Decahydrate)
• Gypsum - CaSO4.2H2O (Calcium Sulphate Dihydrate)