A metal rod of length 50cm is heated from 40oC to 80oC. If the linear…