Factor both parts. The numerator is x(x2−2x+1)=x(x−1)2 and the denominator is (x−1)(x+1), so the domain excludes 1 and −1.
f(x)=(x−1)(x+1)x(x−1)2=x+1x(x−1)(x=1,x=−1)
The denominator's copy of (x−1) cancels completely (the numerator had two to spare), so x=1 is a hole. Its height is the simplified expression there, 21(0)=0, so the hole sits at (1,0), right on the x-axis. That point is still a hole and not an x-intercept, because x=1 is not in the domain. The factor (x+1) survives, so x=−1 is a vertical asymptote.