History of universities in Scotland perhaps the first of their kind in the world. His students founded practical chemistry at Aberdeen soon after. William Thomson, 1st Baron Kelvin was appointed to the chair of natural philosophy at Glasgow aged only 22. His work included the mathematical analysis of electricity and formulation of the first and second laws of thermodynamics. By 1870 Kelvin and Rankine had made Glasgow the leading centre of science and engineering education and investigation in Britain. At Edinburgh, major figures included David Brewster (1781–1868), who made contributions to the science of optics and to the development of photography. Fleeming Jenkin (1833–85) was
Thermodynamics physicist Josiah Willard Gibbs published a series of three papers, the most famous being "On the Equilibrium of Heterogeneous Substances", in which he showed how thermodynamic processes, including chemical reactions, could be graphically analyzed, by studying the energy, entropy, volume, temperature and pressure of the thermodynamic system in such a manner, one can determine if a process would occur spontaneously. Also Pierre Duhem in the 19th century wrote about chemical thermodynamics. During the early 20th century, chemists such as Gilbert N. Lewis, Merle Randall, and E. A. Guggenheim applied the mathematical methods of Gibbs to the analysis of chemical processes.