\(x^3-4x^2+4x-xy^2\)
\(=x\left(x^2-4x+4-y^2\right)\)
\(=x\left[\left(x^2-4x+4\right)-y^2\right]\)
\(=x\left[\left(x-2\right)^2-y^2\right]\)
\(=x\left(x-2-y\right)\left(x-2+y\right)\)
x3 - 4x2 + 4x - xy2
= x ( x2 - 4x + 4 - y2 )
= x [ ( x2 - 4x + 22 ) - y2 ]
= x [ ( x - 2 )2 - y2 ]
= x ( x - 2 - y ) ( x - 2 + y )