\(x^2-25y^2-2x+1\\ =\left(x^2-2x+1\right)-25y^2\\ =\left(x-1\right)^2-25y^2\\ =\left(x-1\right)^2-\left(5y\right)^2\\ =\left[\left(x-1\right)-5y\right]\left[\left(x-1\right)+5y\right]\\ =\left(x-5y-1\right)\left(x+5y-1\right)\)
`x^2-25y^2 - 2x+1`
`= (x^2 - 2x+1)-25y^2`
`= (x - 1)^2 - (5y)^2`
`= (x-1-5y)(x-1+5y)`