5. The graph of the function $f(x)=x^{3}-3 x^{2}+3 x+1$ has a center of symmetry at ( ).
(A) $(-1,2)$
(B) $(1,2)$
(C) $(-1,-2)$
(D) $(1,-2)$
5. B.

Since $f(x)=(x-1)^{3}+2$, the center of symmetry of the function's graph is $(1,2)$.