a(c+b(a-c))-c(b(a-1)+a)-b(c-a(b-a)) =
a(c+ba-bc)-c(ab-1b+a)-b(c-(ab-aa)) =
(ac+aab-abc)-(abc-1bc+ac)-b(c-ab+aa) =
(ac+aab-abc)-(abc-1bc+ac)-(bc-abb+aab) =
ac+aab-abc-abc+bc-ac-bc+abb-aab =
ac-ac +aab-aab +bc-bc -abc-abc+abb =
-abc-abc+abb
-2abc+ab²
Die Probe mit Beispielwerten: a=1 b=2 c=3
a(c+b(a-c))-c(b(a-1)+a)-b(c-a(b-a)) =
1(3+2(1-3))-3(2(1-1)+1)-2(3-1(2-1)) =
-8
-2abc+ab² =
-2*1*2*3 + 1*2² =
-2*2*3 + 2² =
-12 + 4 =
-8