Source: https://mathematiques.lmrl.lu/Exercices/Exercices_de_5e/5-ch6-equations et inequations.pdf