Nitin P. answered 06/24/20
Machine Learning Engineer - UC Berkeley CS+Math Grad
The cubic expansion is:
(a + b)3 = a3 + 3a2b + 3ab2 + b3
However, in the given expansion, we're missing the multiplications by 3 in the 2 middle terms. As you can see:
a2b = (16x2)(-1) = -16x2
ab2 = (4x)(1) = 4x
So, to get the correct expansion, use the actual formula:
(4x - 1)3 = 64x3 + 3(16x2)(-1) + 3(4x)(1) - 1 = 64x3 - 48x2 + 12x - 1