The given polynimial exression is
(w^3-2w^2-2w+1)÷(w-1)
We wuld apply the long division method as shown below
The first step is todivide w^3 by w to give us w^2. w^2 is used to multiply w + 1 to give us w^3 + w^2 and this is subtracted from w^3 - 2w^2. The process continues until we cannot divide further. Thus, from the daigram above, the solution is
w^2 - 3w + 1