Question

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

Evaluate

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

Expand

$x^{2}-x+1-\frac{1}{x}$