expand (x-1)^2
Let's expand: (x -1)2
ⓘ Raising a sum to an integer power is multiplying it by itself: (x -1)2 = (x -1)·(x -1)
(x -1)·(x -1)
ⓘ Expand by multiplying each term inside the parentheses: (x -1)·(x -1) = x·x + x·(-1) -1·x -1·(-1)
x·x + x·(-1) -1·x -1·(-1)
ⓘ Multiplying powers with the same base adds the exponents: x·x = x2■Multiplying by -1 gives the opposite: x·(-1) = -x■Multiplying by 1 changes nothing: 1·x = x■Multiplications are done before additions and subtractions. Two minus signs cancel out, the product of two negative numbers is positive: -1·(-1) = 1
x2 -x -x + 1
ⓘ Like terms are grouped by adding their coefficients: -x -x = -2x
▶Expanded form:   x2 -2x + 1