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