Source: http://perso.ens-lyon.fr/marion.foare/files/teaching/map101/TD/sol_TD2.pdf