$$x-1/x+1 { \left(x-1 \right) }^{ 2 }$$
$\frac{\left(x-1\right)\left(x^{2}+1\right)}{x}$
$x^{2}-x+1-\frac{1}{x}$