The second law of thermodynamics states that in any closed system, the total entropy can only increase or remain constant over time. Entropy is a measure of disorder or randomness, and this law implies that energy transformations are not perfectly efficient.
the second law of thermodynamics stated in terms of entropy cheat sheet for homework