*It is a question unanswered in my earlier post at: https://math.stackexchange.com/a/2755962/424260. *
I have been given that: $(y_1-y_2)(y_2-y_3)(y_3-y_1) = y_1y_2(y_1-y_2)+y_2y_3(y_2-y_3)+y_1y_3(y_3-y_1)$.
But, the derivation below shows that there is reversal of terms inside each of the $3$ brackets.
$$(y_1-y_2)(y_2-y_3)(y_3-y_1) = (y_1y_2-y_1y_3-y_2^2+y_2y_3)(y_3-y_1)$$
$$=-y_1y_3^2 -y_2^2y_3 +y_2y_3^2-y_1^2y_2+y_1^2y_3+y_1y_2^2$$
$$=y_1y_3(y_1-y_3)+y_2y_3(y_3-y_2)+y_1y_2(y_2-y_1)$$
Kindly help me with finding error in my derivation.