\(\dfrac{x^3-3x^2-x+3}{x^2-3x}=\dfrac{\left(x^3-3x^2\right)-\left(x-3\right)}{\left(x^2-3x\right)}\)
=\(\dfrac{x^2\left(x-3\right)-\left(x-3\right)}{x\left(x-3\right)}=\dfrac{\left(x-3\right)\left(x^2-1\right)}{x\left(x-3\right)}\)
=\(\dfrac{\left(x-1\right)\left(x+1\right)}{x}\)