Thermodynamics deals with energy changes of macroscopic systems involving a large number of molecules. To study these changes, we divide the universe into two parts: the system and the surroundings.
Systems are classified based on the exchange of matter and energy with the surroundings:
The total energy stored within a system is called its internal energy ($U$). It represents the sum of all forms of kinetic and potential energies of the constituent particles.
The internal energy $U$ can change when:
An adiabatic process is one in which there is no transfer of heat between the system and surroundings ($q = 0$). The wall separating them is called an adiabatic wall.
The First Law states that energy can neither be created nor destroyed; the energy of an isolated system is constant.
Mathematical statement:
$$\Delta U = q + w$$
For a gas confined in a cylinder with a frictionless piston under constant external pressure ($p_{ex}$):
Enthalpy is a state function defined as the heat content of a system at constant pressure:
$$H = U + pV$$
For finite changes at constant pressure:
$$\Delta H = \Delta U + p\Delta V$$
Using the ideal gas law ($pV = nRT$), for reactions involving gases:
$$\Delta H = \Delta U + \Delta n_g RT$$
Where $\Delta n_g$ is the number of moles of gaseous products minus the number of moles of gaseous reactants.
The heat capacity of a system is the quantity of heat required to raise its temperature by one degree Celsius (or one Kelvin):
$$q = C \Delta T$$
Energy changes associated with chemical or physical processes are measured experimentally using calorimetry.
For chemical reactions at constant volume, heat changes are measured in a sealed steel vessel called a bomb calorimeter immersed in a water bath.
For reactions carried out at constant atmospheric pressure, a simple coffee-cup calorimeter can be used.
The enthalpy change accompanying a chemical reaction is the difference between the sum of enthalpies of products and reactants:
$$\Delta_r H = \sum a_i H_{\text{products}} - \sum b_i H_{\text{reactants}}$$
Where $a_i$ and $b_i$ are the stoichiometric coefficients.
The enthalpy change when all participating substances are in their standard states (pure form at $1\text{ bar}$ and a specified temperature, usually $298\text{ K}$).
The enthalpy change for the formation of one mole of a compound from its constituent elements in their most stable reference states of aggregation.
If a reaction takes place in several steps, its standard reaction enthalpy is the sum of the standard enthalpies of the intermediate reactions into which the overall reaction may be divided at the same temperature.
Enthalpy is a state function, meaning $\Delta_r H$ is independent of the path taken.
The enthalpy change per mole of a substance when it undergoes complete combustion with oxygen under standard conditions.
The enthalpy change on breaking one mole of bonds completely to obtain atoms in the gas phase (e.g., $\text{H}_2(g) \rightarrow 2\text{H}(g)$).
The enthalpy change when one mole of an ionic compound dissociates into its gaseous ions. It is determined indirectly using the Born-Haber Cycle.
A spontaneous process is an irreversible process that has a natural tendency to occur without the assistance of an external agency.
Entropy is a measure of the degree of randomness or disorder in a system.
Gibbs energy is a state function defined to predict spontaneity for closed systems at constant temperature and pressure:
$$G = H - TS$$
The Gibbs Equation:
$$\Delta G = \Delta H - T\Delta S$$
Criteria for spontaneity at constant $T$ and $p$:
The entropy of any pure crystalline substance approaches zero as the temperature approaches absolute zero ($0\text{ K}$).
For a reversible reaction, the standard Gibbs energy change ($\Delta_r G^\ominus$) is directly related to the equilibrium constant ($K$):
$$\Delta_r G^\ominus = -RT \ln K = -2.303 RT \log K$$