(a+b)(a2-ab+b2)-(a+b)2 (a + b) (a ^ 2-AB + B62) - (a + b) ^ 2 to simplify this formula, the answer is - 3A ^ 2b-3ab ^ 2, but how do you get it,

(a+b)(a2-ab+b2)-(a+b)2 (a + b) (a ^ 2-AB + B62) - (a + b) ^ 2 to simplify this formula, the answer is - 3A ^ 2b-3ab ^ 2, but how do you get it,

The estimated title - (a + b) ^ 2 should be - (a + b) ^ 3
(a+b)(a^2-ab+b^2)-(a+b)^3 = (a+b)(a^2-3ab+2ab+b^2)-(a+b)^3
=-3ab(a+b)+(a+b)^3 -(a+b)^3 =-3a^2b-3ab^2