Thermal analysis techniques such as differential scanning calorimetry (DSC) measure physical and chemical changes that occur in a material when it is heated or cooled. DSC specifically works by heating a sample and reference simultaneously while measuring the heat flow into or out of the sample. This allows it to detect transitions like melting, crystallization, and glass transitions. DSC is commonly used in pharmaceuticals to determine purity, detect polymorphism, and study stability and compatibility. It provides information on thermal events and material properties through measurements of heat flow versus temperature.