Source: https://www.maths-cours.com/seconde/323/ex1-recherche-antecedents.pdf