Source: https://wiki.epfl.ch/houdre/documents/OptII 2011-2012/OptII 2012 Exercices/série5_2012_énoncé.pdf