\(3x^3-7x^2+17x-5=3x^3-x^2-6x^2+2x+15x-5\)
\(=x^2\left(3x-1\right)-2x\left(3x-1\right)+5\left(3x-1\right)\)
\(=\left(3x-1\right)\left(x^2-2x+5\right)\)
\(x^3-5x^2+8x+4=x^3-x^2-4x^2+4x+4x-4=x^2\left(x-1\right)-4x\left(x-1\right)+4\left(x-1\right)\)\(=\left(x-1\right)\left(x^2-4x+4\right)=\left(x-1\right)\left(x-2\right)^2\)
\(x^3-6x^2+11x-6=x^3-6x^2+12x-8-x+2\)
\(=\left(x-2\right)^3-\left(x-2\right)=\left(x-2\right)\left[\left(x-2\right)^2-1\right]\)
\(=\left(x-2\right)\left(x^2-4x+3\right)=\left(x-2\right)\left(x-1\right)\left(x-3\right)\)
\(x^3-x^2-4=x^3+x^2+2x-2x^2-2x-4\)
\(=x\left(x^2+x+2\right)=2\left(x^2+x+2\right)=\left(x-2\right)\left(x^2+x+2\right)\)