Hello!

I am in an ANN class right now and my professor gave a proof for clustering algorithms & scatter matrices. Right now I am having a hard time getting through some of the math of the proof. I was hoping somebody could help.

There is one portion where he goes from:

(a-b)(a-b)' + (b-c)(b-c)' (1)

to

(a-b+b-c)(a-b+b-c)' - (b-c)(a-b)' - (a-b)(b-c)' (2)

where a,b,c are matrices and ' is the transpose operator.

Now, I've tested this with some values and it seems true, but the step from (1) to (2) confuses me. Could someone fill in the gap? Is there some rule for matrix algebra that does this expansion?

Thanks for your help!