<s>[INST] How do you factor $x^3-3x^2+3x-1$? $$x^3-3x^2+3x-1?$$
I know this may seem trivial, but I, for the life of me, I cannot figure out how to factor this polynomial, I know that the root is $$(x-1)^3=0$$ because of wolframalpha, but I don't know how to get there. any help would be greatly appreciated. and also if you have any recommended web sites that help with higher order polynomial factoring that would be extremely helpful. 
 [/INST] $$
\begin{align*}
x^3-3x^2+3x-1 &=x^3-x^2-2x^2+3x-1 
\\ &=x^2(x-1)-2x^2+2x+x-1 
\\ &=x^2(x-1)-2x(x-1)+1(x-1) 
\\ &=(x-1)(x^2-2x+1) 
\\ &=(x-1)(x-1)^2 
\\ &=(x-1)^3
\end{align*}$$
</s>