Source: https://www.studyrama.com/IMG/pdf/mathematiques_produit_scalaire_-_le_cours.pdf