Thermodynamics deals with the quantitative relationship between heat and other forms of energy. There are four laws of thermodynamics:
1) The zeroth law establishes that thermal equilibrium is transitive - if A and B are in thermal equilibrium, and B and C are in thermal equilibrium, then A and C are also in thermal equilibrium.
2) The first law states that energy is conserved - it can change forms but cannot be created or destroyed. Heat supplied to a system increases its internal energy and can do work.
3) The second law establishes that spontaneous processes are irreversible and heat cannot spontaneously flow from a cold to a hot body. Entropy always increases over time for isolated systems.
4