Thermodynamics plays a critical role in catalysis, determining the feasibility and extent of chemical reactions. Mathematical transformations like the Legendre transform are used to switch between different thermodynamic potentials (e.g., Gibbs free energy and Helmholtz free energy). This helps in understanding the energy profiles of reactions and the influence of catalysts on the reaction equilibria.