Source: https://laurent-lafleche.perso.math.cnrs.fr/docs/ExOpti%20Correction.pdf