9x^2-y^2-6x+1
=(9x^2-6x+1)-y^2
=(3x-1)^2-y^2
=(3x-1+y)(3x-1-y)
a^2-2ab+b^2-4
=(a-b)^2-4
=(a-b+2)(a-b-2)