Source: https://www.lamfa.u-picardie.fr/ogarnier/ens/aa/td1.pdf