Factoring a quadratic in two variables with leading coefficient 1