Source: https://leurent.perso.math.cnrs.fr/macs4/TD1.pdf