Source: http://users.polytech.unice.fr/~icart/Elec4/auto_etat.pdf