Square of a generic sum of elements


The formula for computing the square of a generic sum of terms is as follows:

(k=1Kak)2=k=1Kak2+2j=1Ki<jaiaj

We can prove this property by induction, considering that it holds for K=2, since

(a+b)2=a2+b2+2ab

and that if the property holds for a generic K, then it holds also for K+1, as is proven in the following passages:

{aligned}(k=1K+1ak)2&=(k=1Kak+aK+1)2=(k=1K+1ak)2+aK+12+2k=1KakaK+1&=k=1Kak2+2j=1Ki<jaiaj+aK+12+2k=1KakaK+1=&=k=1K+1ak2+2j=1K+1i<jaiaj (1)
Title Square of a generic sum of elements
Canonical name SquareOfAGenericSumOfElements
Date of creation 2013-03-22 19:34:48
Last modified on 2013-03-22 19:34:48
Owner mat (27197)
Last modified by mat (27197)
Numerical id 8
Author mat (27197)
Entry type Definition
Classification msc 15-01