\(2\left(x-1\right)^3-5\left(x-1\right)^2-\left(x-1\right)=\left(x-1\right)\left[2\left(x-1\right)^2-5\left(x-1\right)-1\right]=\left(x-1\right)\left(2\left(x^2-2x+1\right)-5x+5-1\right)=\left(x-1\right)\left(2x^2-4x+2-5x+5-1\right)=\left(x-1\right)\left(2x^2-9x+6\right)\)
\(2\left(x-1\right)^3-5\left(x-1\right)^2-\left(x-1\right)\)
\(=\left(x-1\right)\left[2\left(x-1\right)^2-5\left(x-1\right)-1\right]\)
\(=\left(x-1\right)\left[2\left(x^2-2x+1\right)-5\left(x-1\right)-1\right]\)
\(=\left(x-1\right)\left(2x^2-4x+2-5x+5-1\right)\)
\(=\left(x-1\right)\left(2x^2-9x+6\right)\)
\(2\left(x-1\right)^3-5\left(x-1\right)^2-\left(x-1\right)\)
\(=\left(x-1\right)\left(2x^2-4x+2-5x+5-1\right)\)
\(=\left(x-1\right)\left(2x^2-9x+6\right)\)