1, \(x^2-y^2-2x+2y=\left(x-y\right)\left(x+y\right)-2\left(x-y\right)=\left(x+y-2\right)\left(x-y\right)\)
2, \(x^2-25+y^2+2xy=\left(x+y\right)^2-5^2=\left(x+y-5\right)\left(x+y+5\right)\)
3, \(x^2y-x^3-9y+9x=x^2\left(y-x\right)-9\left(y-x\right)=\left(x-3\right)\left(x+3\right)\left(y-x\right)\)
4, \(x^4+2x^3+x^2=x^2\left(x^2+2x+1\right)=x^2\left(x+1\right)^2\)
5, \(x^4+8x=x\left(x^3+8\right)=x\left(x+8\right)\left(x^2-8x+64\right)\)