((x-2)^3-(x-1)^2+1)/(x-2)= ((x-2)^3-((x-1)^2-1)/(x-2)= ((x-2)^3-x(x-2))/(x-2)= (x-2)^2-x= x^2-4x+4-x= x^2-5x-1997+2001= 2001