the method with phi is basically identical. You know that :
yz = x
y - z = a (a is the difference)
This is a simple system of equations that you can solve (substitute the second one into the one and solve the quadratic). The method with phi just needs some preprocessing to obtain the difference between the factors.