(-3*a-3*b-3*c)^2
Let's evaluate: (-3a -3b -3c)2
ⓘ The minus sign is factored out, changing the sign of each term: -3a -3b -3c = -(3a + 3b + 3c)■With an even integer exponent, the minus sign in the base disappears; with an odd integer exponent, it moves in front of the power: (-(3a + 3b + 3c))2 = (3a + 3b + 3c)2
(3a + 3b + 3c)2
ⓘ Factor out the common numerical factor 3 before expanding the power: (3a + 3b + 3c)2 = 32·(a + b + c)2
32·(a + b + c)2
ⓘ Powers are computed before multiplications, additions and subtractions. An integer power is a repeated product: 32 = 3·3 = 9
9·(a + b + c)2
Using the multinomial theorem: (x1+x2+⋯+xk)n=∑m1+m2+⋯+mk=nmi≥0(n!m1!m2!⋯mk!)x1m1x2m2⋯xkmk, you can expand the math expression:
ⅰ (a + b + c)2 = 2!2!·0!·0!·a2b0c0 + 2!1!·1!·0!·a1b1c0 + 2!0!·2!·0!·a0b2c0 + 2!1!·0!·1!·a1b0c1 + 2!0!·1!·1!·a0b1c1 + 2!0!·0!·2!·a0b0c2
9·(2!2!·0!·0!·a2b0c0 + 2!1!·1!·0!·a1b1c0 + 2!0!·2!·0!·a0b2c0 + 2!1!·0!·1!·a1b0c1 + 2!0!·1!·1!·a0b1c1 + 2!0!·0!·2!·a0b0c2)
ⓘ Any nonzero number raised to the power 0 is 1. In this calculation, we use the convention 0^0 = 1: b0 = 1, c0 = 1, a0 = 1
9·(2!2!·0!·0!·a2 + 2!1!·1!·0!·ab + 2!0!·2!·0!·b2 + 2!1!·0!·1!·ac + 2!0!·1!·1!·bc + 2!0!·0!·2!·c2)
ⓘ The factorial of a number is the product of all the integers from 1 to that number: 2! = 2, 1! = 1■By convention, the factorial of 0 is 1: 0! = 1■Multiplying by 1 changes nothing: 2·1·1 = 2, 1·1·1 = 1, 1·2·1 = 2, 1·1·2 = 2
9·(22·a2 + 21·ab + 22·b2 + 21·ac + 21·bc + 22·c2)
ⓘ We simplify the fraction by dividing the numerator and the denominator by 2, their greatest common divisor: 22 = 1■Multiplying by 1 changes nothing: 1·a2 = a2, 1·b2 = b2, 1·c2 = c2
9·(a2 + 2ab + b2 + 2ac + 2bc + c2)
ⓘ Expand by multiplying each term inside the parentheses: 9·(a2 + 2ab + b2 + 2ac + 2bc + c2) = 9a2 + 18ab + 9b2 + 18ac + 18bc + 9c2
9a2 + 18ab + 9b2 + 18ac + 18bc + 9c2
▶Result:   9a2 + 18ab + 18ac + 9b2 + 18bc + 9c2