Thermal expansion is a fundamental concept in engineering and piping systems, referring to the increase in the volume of…