A cube made of a metal of linear expansivity is warmed through a temperature of…