He also produced original work in mathematical and experimental physics. In 1864, he published a short paper on thermodynamics, and from that time his contributions to that and kindred departments of science became frequent and important. In 1871, he emphasised the significance and future importance of the "principle of the dissipation of energy" (second law of thermodynamics). In 1873 he took thermoelectricity for the subject of his discourse as Rede lecturer at Cambridge, and in the same year he presented the first sketch of his well-known thermoelectric diagram before the Royal Society of Edinburgh.