Sum of squares - Wikipedia
https://en.wikipedia.org/wiki/Sum_of_squares• The Pythagorean theorem says that the square on the hypotenuse of a right triangle is equal in area to the sum of the squares on the legs.• The Squared Euclidean distance (SED) is defined as the sum of squares of the differences between coordinates.• Heron's formula for the area of a triangle can be re-written as using the sums of squares of a triangle's sides (and the sums of the squares of squares)