Source: https://www.normalesup.org/~dconduche/prepas/PT/exercices/FeuilleVariableRelle-1.pdf