Thermodynamics is the study of energy and its transformation. It deals with the relationship between heat, work, and the physical properties of substances. Thermodynamics can be studied through both a microscopic approach considering molecular behavior, and a macroscopic approach considering average properties without molecular details. A thermodynamic system is defined as a quantity of matter bounded by a surface, and can be classified as closed, open, or isolated depending on its interactions with the surroundings. Key thermodynamic properties describe the state of a system.