Source: https://benlhajlahsen.fr/images/exercices_PCSI/exercices_oscillateur_harmonique.pdf