Lecture 5: Thermoelectric Effects - Mathematics