To check whether this is an identity, expand the left-hand side.
First Part: (a+b−c)2
=a2+b2+c2+2ab−2ac−2bc
Second Part: (a−b+c)2
=a2+b2+c2−2ab+2ac−2bc
Third Part: (a−b−c)2
=a2+b2+c2−2ab−2ac+2bc
Now adding all three:
LHS=(a2+b2+c2+2ab−2ac−2bc)
+(a2+b2+c2−2ab+2ac−2bc)
+(a2+b2+c2−2ab−2ac+2bc)
=3a2+3b2+3c2−2ab−2ac−2bc
This is NOT equal to 2a2+2b2+2c2.
Hence, the given statement is not true for all values of a,b,c. So, it is not an identity.