(a+b+c)(a²+b²+c²-ab-bc-ca)
=1/2(a+b+c)(a²-2ab+b²+b²-2bc+c²+c²-2ca+a²)
=1/2(a+b+c)[(a-b)²+(b-c)²+(c-a)²]