Source: https://www.maths91.fr/cours1spemaths/1S-03-PRODUIT_SCALAIRE-cours.pdf