Source: https://www.normalesup.org/~glafon/carnot11/deux_variables.pdf