Source: https://lnspe2.fr/Cours_PCSI/Thermodynamique04.pdf