Factoring a perfect square trinomial with leading coefficient 1