(a + b)³ = a³ + 3 a² b + 3 a b² + b³. The middle coefficients are 3, not 2. For (x + 1)³ the expansion is x³ + 3x² + 3x + 1.
Check x = 1: the left side is 8, and 1 + 3 + 3 + 1 = 8 on the right.
The binomial theorem, written out: MathGPT.