expand (x-1)^3
Let's expand: (x -1)3
With Newton's binomial formula: (a+b)n=k=0n(n!k!(nk)!)ankbk, let's expand the expression:
3!3!·0!·x3·(-1)0 + 3!2!·1!·x2·(-1)1 + 3!1!·2!·x1·(-1)2 + 3!0!·3!·x0·(-1)3
(-1)0 = 13!3!·0!·x3·1 = 3!3!·0!·x33! = 62! = 21! = 12·1 = 2(-1)1 = -162·x2·-1 = -62·x23! = 61! = 12! = 21·2 = 2x1 = x(-1)2 = 162·x·1 = 62·xx0 = 13!0!·3!·1·(-1)3 = 3!0!·3!·(-1)3
3!3!·0!·x3 -62·x2 + 62·x + 3!0!·3!·(-1)3
3! = 63! = 60! = 16·1 = 6-62·x2 = -6x22-6x22 = -3x262·x = 6x26x2 = 3x3! = 60! = 13! = 61·6 = 6(-1)3 = -166·-1 = -66
66·x3 -3x2 + 3x -66
Answer:   x3 -3x2 + 3x -1