Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Self learning linear algebra I came to a proof for inner product. Problem doesn't matter, the thing is that within the proof the author makes an step that I honestly don't understand:

....

$xz+yz+xy$

=

$\frac{1}{2}(x+y+z)^2 - \frac{1}{2}(x^2 + y^2 + z^2)$

.... and then the proof continues. Since I want to really learn I can't simply assume it's true, I want to know what am I missing. I get out of high school some time ago and maybe it's obvious for anyone but me, but if you can help me it'll be nice.

share|improve this question
2  
Multiply $x+y+z$ by $x+y+z$. –  André Nicolas Apr 17 '13 at 20:14

2 Answers 2

up vote 3 down vote accepted

I recall

$$(x+y)^2=x^2+y^2+2xy$$ and $$(x+y+z)^2=x^2+y^2+z^2+2(xy+yz+zx)$$ hence note that in the both above cases the result is the sum of the square of every term plus twice the product of terms taken two by two, hence we generalize this result $$(x_1+x_2+\cdots+x_n)^2=x_1^2+x_2^2+\cdots+x_n^2+2\sum_{i< j}x_i x_j$$

share|improve this answer
    
Careful, it is $(x_1 + \ldots + x_n)^2 - x_1^2 + \ldots + x_n^2 = \sum_{i \ne j} x_i x_ j = 2 \sum_{i < j} x_ i x_ j$ –  vonbrand Apr 17 '13 at 20:39
    
@vonbrand you're absolutely right. Thanks –  Sami Ben Romdhane Apr 17 '13 at 21:06

$$(x+y+z)^2 = x^2 + y^2 + z^2 + 2 x z + 2 y z + 2 x y. $$ As you are out of practice, you should carefully confirm this yourself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.