Source: http://mathematiques.ac.free.fr/IMG/pdf/Fonction_carre_exercices_2de.pdf