hide ---> http://www.math.harvard.edu/archive/21a_spring_09/PDF/09-03-dot_product.pdf